So after I posted that I had a dash of productivity. I discovered that Chrome Canary was not crashing anymore so I continued to do my project.
I have a lot of uneasiness seeing others’ code styles and their arguments all have good points. My code style by the way really just derives from Microsoft’s: 4 spaces for indentation, starting brace along with the block starter, and avoid putting comments on the same line as code if possible—put them before the code. Also, put spaces between operators, it makes the code look cleaner. 🙂 But don’t put spaces around function parentheses, and around their children, this is to mimic math.
First off, the tabs vs. spaces debate. I have read posts on why one is preferred over the other yesterday. A pro-spaces post argues that when tabs are used in places other than indentation, things can get messy with different tab widths. My argument is that people shouldn’t really put things like comments on the far right. Put comments before code. Some people like to realign things like key-value pair values or CSS values, this is just for aesthetics really and is not required, but it does make editing multiple ‘values’ a lot easier. My argument is that for realignment, use spaces altogether.
A pro-tabs post argues that it should really be the user’s choice when it comes to tab-width, aiming to be flexible over people’s preference on tab widths. Of course the post overlooked the above arguments, but the post’s points are also strong. But my faith is not shaken. 🙂