James Hughes·Oct 6, 2017HTML: Setting a Value For an Unchecked Check-boxI am currently working on a ‘menu builder’ application, in which I can add menu items to either a lunch or dinner menu (or both). My…
James Hughes·Sep 19, 2017Using ‘Case Statements’ in RubyI have learned a lot from ‘codewars’, which is a site that essentially gives you coding challenges (called ‘katas’) and rewards you with…
James Hughes·Jun 27, 2017Refactoring if-else statements with the ternary operator (? :)If you are a new coder, I recommend getting familiar with the ‘ternary operator’ (often called the conditional operator) as quickly as…
James Hughes·Jun 10, 2017Using the ‘reduce’ method in RubyThe ‘reduce’ method can be used to take an array and reduce it to a single value. Lets start with a simple demonstration of this method.A response icon6A response icon6
James Hughes·Apr 25, 2017Using the ‘select’ Method in RubyThe ‘select’ method is used to only select the elements in an array that meet a certain criteria. For example, if we had an array of…
James Hughes·Mar 17, 2017Using the ‘map’ Method in RubyThe ‘map’ method can be used to modify each element in an existing array in the same manner. It is important to note that a new array will…
James Hughes·Mar 4, 2017“Hello, World!”I’ve found myself being reintroduced to these two words several times over the last few months. I have been learning computer programming…