GOTO considered harmful. Except for… The goto is considered harmful. In general. If anyone finds a goto keyword somewhere in a code base nowadays, the default action is to identify the author of this code line and instantly assassinate him. It’s safe, because jury always sides with heroes who do good for public. Java doesn’t even have this keyword, probably […] gugit

It’s not really code, it’s comments. Part 2 This is continuation of my previous post about all kinds of comments I find in code. Sometimes everyone gets pissed off with front-end issues: [crayon-5cddf65199128794075709/] [crayon-5cddf65199133762076968/] [crayon-5cddf65199138165159168/] [crayon-5cddf6519913c290710806/] And here is some mysterious stuff: [crayon-5cddf65199141327932055/] [crayon-5cddf65199145369439737/] [crayon-5cddf6519914a396288979/] [crayon-5cddf6519914e090748632/] [crayon-5cddf65199153573397081/] [crayon-5cddf65199157877535256/] [crayon-5cddf6519915c233916801/] And some “security” stuff: [crayon-5cddf65199161249834458/] [crayon-5cddf65199165277334771/] [crayon-5cddf6519916a958693439/] Now imagine you been trying to find […] jack

Boost your personal productivity at work If you are any type of knowledge worker – meaning you use your brain for work, you should know that your performance is being measured by your ability to produce results not by the volume of things you do. Especially for programmers it is important to reach development goals effectively and that is why lines […] gemi

Cool websites from the 2013 I love browsing websites from design showcases and thinking why did they make it there. And I have my own criteria for choosing the best of the best: design must communicate an idea or story, not design itself if you follow trends, think about details, that make you unique adapt navigation, layout, typography, colors to […] alevantana

It’s not really code, it’s comments. Part 1. A while ago I used to work with one legacy platform. It started its existence more than 10 year ago, most probably as a customer specific solution which turned into platform. It’s still quite popular and I guess it covers major user requirements. But as it happens with systems which doesn’t evolve good enough or […] jack

Random thoughts about the current state of the universe Once in a while I get stupendous insights of Life, the Universe and Everything, like “Ah, but that makes perfect sense, how could I have missed this before”. At some point of my life I was really fascinated by a field called Futurology and various future trends. I had great moments reading books about foresight […] alevantana

One-to-one going one-to-many Suppose you have two abstractions – an event listener and an event producer. The relationship is 1:1, that is, there’s one abstraction that fires events, and another one that knows how to deal with them. At some later time it turns out there should be more than one listener. If you’re coding in Java, your […] gugit

Captain Obvious meets OOP: What Liskov principle is and what it isn’t I got to read Barbara Liskov original paper. You may get surprised by my findings. Liskov Substitution Principle is considered important. Somebody called Robert C. Martin included this cornerstone axiom into “five basic principles of OOP”, and somebody called Michael Feathers named those principles S.O.L.I.D., where “L” stands for “Liskov”. It is being taught in […] gugit

Really short one here Trying to convert a small Java project to PHP, and got stuck immediately. Common guys, really – how do you PHP people survive without a strict typesafe enum?! I know PHP ppl don’t like strong typing, and you also can survive without method overloading, but this is… common ppl… no workaround for enum, NOTHING AT ALL? […] gugit