What is the right name of event handler? onClick or handleClick?

This is subjective, but what you would see the most is the following: if you are creating component and exposing event hooks, those props would be on: onClick, onHover, onUsernameChanged, onError. From inside your components, these props are just functions you call on some event. You don’t care what they do, your job is to … Read more

I’m getting an IndentationError (or a TabError). How do I fix it?

Why does indentation matter? In Python, indentation is used to delimit blocks of code. This is different from many other languages that use curly braces {} to delimit blocks such as Java, Javascript, and C. Because of this, Python users must pay close attention to when and how they indent their code because whitespace matters. … Read more

ReSharper Line Breaks and Wrapping

I guess that your problem is that the first line got broken in three. This is because of bug http://youtrack.jetbrains.com/issue/RSRP-288271 that was fixed in ReSharper 7.0. You should consider upgrading or turning off option ReSharper | Options -> Code Editing | C# | Formatting style | Line breaks and wrapping -> LineWrapping | Wrap long … Read more

How can I beautify JavaScript and CSS in Firefox / Firebug?

There is now a plugin that intercepts JavaScript downloads and deminifies it at that point. Unfortunately, the way it hooks into Firefox means that it applies to all JavaScript downloads and just not specific ones and the JavaScript files have to be served with an appropriate MIME type. https://addons.mozilla.org/en-US/firefox/addon/247565/