Veerpal Brar

ABOUT   BLOG   PROJECTS   CAREER   RSS


Questions Answered #3: Struct And Openstruct

This month I explore what Structs and OpenStructs are and how they compare with classes and hashes.


Book Notes: Practical Object Oriented Programming By Sandi Metz

I recently read Practical Object Oriented Programming by Sandi Metz and want to share the ideas that stood out the most to me.


Questions Answered #2: Closures In Ruby

Questions Answered is a series where I try to learn the answer to a software development questions I have. This month I tried to understand how closures work in ruby.


Questions Answered #1: Understanding Database Indexes

Questions Answered is a series where I try to learn the answer to a software development questions I have. This month, I tired to answer the question: What is an index and when do you need to create one?


Implementing Tags In Jekyll With Github Pages

Unfortunately, Jekyll hosted with Github pages does not have built-in support to implement tags on your blog. Luckily, it is easy to implement the tag functionality from scratch.


Rails Active Record Relations And Method Chaining

The other day, while working on a rails application I wrote the following line of code: Poem.where(...).order("created_at DESC").limit(10)


Markov Chains

At the end of last year, I developed a Markov chain generator, which generates new text based on a provided corpus. Here is an overview of the project.


Contributing To Open Source

All newbie programmers hear how they should contribute to open source in order to build their portfolio and give back to the programming community. This is a hundred percent true, but it’s also a daunting task. I’m going to share my experiences as a newbie open source contributor and share some tips that helped me in the process.


Reading CSV files with Python

I recently needed to parse a CSV file and decided it would be a good idea to automate the process. Since I didn’t need to do heavy data analysis , I decided to use pythons native csv library rather then panda’s or numpy.


Communication in Computer Science

For the last three months I have been working for the Ministry of Transportation as a web developer. Going into this experience, I thought I would learn about the web development process. I figured I’d learn the various technologies and technicality’s of running and maintaining a website. Instead I learned something more important.


Google Extensions - Using Variables as Object Keys

Recently, I just finished creating my first google chrome extension, called SafetyTab. Now, google chrome extensions are relatively simple to create, as long as you know some HTML, CSS, and JavaScript (including asynchronous JavaScript).

The documentation provided by google is simple, straightforward and they have a lot of samples to look at. Not to mention, there is a wealth of tutorials available online. I highly encourage anyone looking for a quick coding project to try and create a google chrome extension.


Accessibility

This past month I have been working as a web development assistant with the Minisitry of Transporation. A lot of my work as been about web accessibility.


Hello World

For my first post, I figured I’d start with “hello world” in true coding fashion.