Things I Learnt The Hard Way - Start Stupid

One way to get away from the IDE is to "start stupid": Just get the compiler and get an editor (ANY editor) with code highlight and do your thing: Code, build it, run it.

Read more  ↩︎

Things I Learnt The Hard Way - Always Use Timezones With Your Dates

No matter if the date you're receiving is in your local timezone and you'll display it in your timezone, sooner or later, the fact that you ignored there was a timezone behind that date will hurt you.

Read more  ↩︎

Things I Learnt The Hard Way - Always Use UTF-8 For Your Strings

Long gone are the days where ASCII was enough for everyone. Long gone are the days where you can deal with strings with no "weird" or "funny" characters.

Read more  ↩︎

Things I Learnt The Hard Way - Cognitive Cost Is The Readability Killer

"Cognitive dissonance" is a fancy way of saying "I need to remember two (or more) different and contradicting things at the same time to understand this." Keeping those different things in your head creates a cost and it keeps accumulating the more indirect the things are ('cause you'll have to keep all those in your head).

Read more  ↩︎

Things I Learnt The Hard Way - Thinking Data Flow Beats Patterns

When you're trying to find a solution to your problem, think on the way the data will flow through your code.

Read more  ↩︎

Things I Learnt The Hard Way - Learn The Basics of Functional Programming

At this point, you should at least have heard about how cool functional programming is. There are a lot of concepts here, but at least the very basic ones you should keep in mind.

Read more  ↩︎

Things I Learnt The Hard Way - The Magical Number Seven, Plus Or Minus Two

"The magical number" is a psychology article about the number of things one can keep in their mind at the same time.

Read more  ↩︎

Things I Learnt The Hard Way - Understand And Stay Away From Cargo Cult

"Cargo cult" is a type of cult which appeared in the Melanesia, in which the natives would build their copy of an airplane (no motor, 'cause they didn't have the knowledge to build one -- or even knew what went inside the airplane) in the hopes they would get the same results as a real airplane.

Read more  ↩︎

Things I Learnt The Hard Way - Don't Mess With Things Outside Your Project

Simple rule: Is the code yours or from your team? Good, you can make any changes you want. Does it come from outside? DON'T. TOUCH. IT.

Read more  ↩︎

Things I Learnt The Hard Way - Design Patters Are Used to Name Solution, Not Find Them

Most of the times I saw design patterns being applied, they were applied as a way to find a solution, so you end up twisting a solution -- and, sometimes, the problem it self -- to fit the pattern.

Read more  ↩︎