Posts

Showing posts from April, 2017
Difference between a method and a function A  function  is a piece of code that is called by name. It can be passed data to operate on (i.e. the parameters) and can optionally return data (the return value). All data that is passed to a function is explicitly passed. A  method  is a piece of code that is called by a name that is associated with an object. In most respects it is identical to a function except for two key differences: A method is implicitly passed the object on which it was called. A method is able to operate on data that is contained within the class (remembering that an object is an instance of a class - the class is the definition, the object is an instance of that data).
Twitter bootstrap white gap on right side of page. This might be a little late but I found the other answers to be misleading. It is true that the row class is what is causing the issue, but that is because it is always supposed to be placed inside a container element. from  http://getbootstrap.com/css/  : Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding. The container element usually has a -15px padding on both right and left and the row class has a 15px padding on right and left. The two cancel each other out. If one of the two is not present you will see extra space.