Notes and anecdotes

Techstuff rambling

Parallax. CSS it, please.

Parallax is hot. But in so many implementations, it’s not. Because it’s implemented shittily. Parallax shouldn’t be done with Javascript, because then it might end up like this: so laggy it breaks my heart. It should be done with CSS. Jsfiddle  

7 ineffective coding habits

Notes from Seven Ineffective Coding Habits of Many Programmers by Kevlin Henney 1. We clutter our code (with comments) Comments are ignored by the compiler. They are also ignored by programmers. So who’s the audience? Reading comments is like a sign of defeat, so it might be useful if your code is uncomprehensable in the first place. But then,…

Continue Reading

Clean Code III: Functions

This post is an my interpretation of the teachings in Robert C. Martins Clean Code III: Functions. Functions should do one thing You can tell that a function is doing more than one thing if you can extract a function from it with a meaningful name that is not merely a restatement of its implementation. Make…

Continue Reading