Programming Featured Code Comments And When To Use Them tl;dr: Don't. Basically any information you might want to put in a code comment is better communicated somewhere else. Please read if you don't believe me.
Work New Job I started a new job a few weeks ago! I am now a Senior Developer at a prominent advertising agency. Photo by Thomas Quaritsch on Unsplash
git Transfer Git Branch Across Repos Quick guide for moving a commits in a git branch to a separate repository.
Programming Destructure First And Last Element Of Array Extracting the first and last items in a JavaScript array should be easier.
Programming A Gentle Introduction To Using Git A Gentle Introduction To Using Git Terminology working directoryThis is the top-level directory (folder) that contains your project files. Once you initialize git (git init), your working directory will have a new .git directory in it. Everything you do related to your project will be done in this directory.repositoryA
Ruby Triangle.rb Notes - Things To Look Out For In Rails 5 Things To Look Out For In Rails 5 2017-01-10 with Brandon Mathis [http://brandonmathis.me/] (meetup [https://www.meetup.com/raleighrb/events/236355556/]) History Rails 1 Rails 2 * Tiobe language popularity ranking [http://www.tiobe.com/tiobe-index/] * EnvyLabs "commercials" * They did a whole series of "Rails Versus xxx", which might
JavaScript Thought On React And Redux Note: This post is in response to a client asking why a single state store is preferable to a more object-oriented approach with multiple objects, each managing its own state. -------------------------------------------------------------------------------- First, a caveat: I don't have much hands-on experience with React, and I've never used Redux, although I plan
Ruby Triangle.rb Notes - Ten Gems To Know About Ten Gems To Know About 2016-07-12 by Brandon Mathis [http://brandonmathis.me/] (Meetup [http://www.meetup.com/raleighrb/events/224075188/]) -------------------------------------------------------------------------------- 0. pry [https://rubygems.org/gems/pry] 1. pry-byebug [https://rubygems.org/gems/pry-byebug] (also byebug [https://rubygems.org/gems/byebug]) 2. awesome_print [https://rubygems.org/gems/awesome_
JavaScript Thoughts On Setting Up A Greenfield Node Project Basic Setup The choice is between a "traditional" server-side rendering setup or and API server with client-side rendering. I'm aware of full-stack frameworks like Meteor [https://www.meteor.com/], but that is complete overkill, at least for my current project. I'm looking for something that feels lightweight and has decent
JavaScript JavaScript Prototype Functions AKA "instance methods"! Constructor functions (any function you call with new) in JavaScript have a prototype property, which you can decorate with functions and other arbitrary values. When instantiating an object, these functions become instance methods. When calling a "method" (for instance foo.bar()), JavaScript will find the function foo.
Ruby Fun With Ruby Enumerators Yesterday evening for fun I decided to write a factorial method in Ruby. My first attempt looked like this. 5.times.inject(&:*) This is a really elegant solution, and it almost works, but Fixnum#times starts counting at 0. Normally this isn't an issue since n.times is usually used
Programming Functions Versus Methods When I first started programming, I remember encountering functions and methods. I was familiar with functions from high school algebra, but I had no idea what a method was. They looked similar to functions, and online comments indicated they were essentially interchangeable. When you are getting started, you can think
Programming Triangle.rb Notes - Nothing Is Something http://www.meetup.com/raleighrb/events/224075188/ 2015-08-11 by Sandi Metz [http://www.sandimetz.com/] (video of the same talk at RailsConf [http://confreaks.tv/videos/railsconf2015-nothing-is-something]) * Smalltalk infected * Condition adverse * Message sending * Abstraction seeking Bunch of code slides here... Ruby has special syntax for booleans Conditions breed! Null Object
Programming Java Makes It Safe To Assume The Worst Today I started getting strange errors whenever I added a dependency to our Android app. The dependencies installed without issue and the project would even build. However attempting to run the project failed with a :dexDebug error. ``` com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 Error:Execution
Programming Line Limits (In response to http://www.aaron-gray.com/line-limits/. Aaron is a great guy; let the reader visit his blog and learn from his wisdom.) Yesterday after work I said that hard character line limits (often eighty characters, but not always) were a antiquated relic of the past. This was in
Programming Declaratively toggle class names data-dyna-context takes an expression to provide a this evaluation context for nested data-dyna-class attributes. Contexts may be nested arbitrarily and may optionally be named. data-dyna-class takes a collection of key-value pairs. Values are e
Programming AngularJS Thoughts I've been working on my first AngularJS [http://angularjs.org/] project since October. It has some strangeness, but on the whole I am impressed. Pros * Single language. I normally work with Ruby on Rails [http://rubyonrails.org/] , which means some JavaScript is inevitable. Now I'm writing almost entirely in JavaScript
Programming Node Resources I haven't really keep this page updated, so take these links with a grain of salt so to speak. In fact this page should really be viewed as a historic document, and *not* as a useful reference.