Software development is really hard and wrestling with complexity is mentally taxing. In business time is money and deadlines add to the stress. Here are some Productive Tricks that every developer should know to give themselves a boost:
When doing any testing, always do it in the live production environment! if it works which it will then you save a ton of time and hassle. Don’t worry about complaints from your end users, use these handy responses:
- “It’s a user error, you are doing it all wrong”
- “It works fine on my computer, the problem is clearly your machine”
- “This is a known bug in your browser”
- “It’s an extremely rare race condition, a mute German walrus has a better chance at telling a joke then this happening again”
#2 Database Tuning
Speed issues? its because you have too much data, stop being greedy and stop data hoarding. You don’t really need all this data! and besides you add new records every day! so use this handly one liner
DELETE FROM TABLE LIMIT 100000;
voila! speed up is now OVER 9000% , don’t worry about your boss shaking his clenched fists in the air, that’s just a double fist pump for victory!
Security is hard, the weakest point of failure are always passwords. But coming up with and remembering passwords are a pain right?
Don’t worry, everyones knows that the most obvious password is “password123″. So here is a clever trick, use a double bluff by setting your password to “password123″, because everyones knows no one would
be stupid enough to use THAT password so you win!
#4 Source Control
Why use SVN or complicated tools like GIT? Source Control are for fools! all you really need is good ‘ol email. Its amazing and super secure and in the cloud (use trick #3 for setting your password to make it really secure)
Need to share your codebase? hit forward and BAM!, need to revert to an older version? check your sent folder and BOOYA!
#5 Code Reuse
We have all heard about the DRY (Don’t Repeat Yourself) principle, why waste your time retyping the same old same old huh? copypasta is your friend, “Ctrl+C, Ctrl+V” these are the wizards darkest spell. The more you use it the more code is reused! plus you can fine tune each one independently, Polymorphism baby!
They say that if you don’t have 3 copies of your data then it does not exist. This is very sage advice indeed so take heed and make sure you store all 3 of them on the same machine, because when the time comes and you need your data the
last thing anyone wants to do is run around looking for backups duh! Your DevOps people will laugh and cry at you manically because of your genius forethought next time the database server blows up.
Donald Knuth said it best “Premature optimisation is the root of all evil” so don’t optimise that’s for idiots and losers besides life’s too short to be a human compiler. We all know that hardware gets faster every time you blink, why not let the hardware scale for you! not running fast enough? no problemo remember “mo’ memory, mo’ scale”. Instead of wasting time optimising use this time to play golf with your boss on his Yacht as they say “I don’t optimise, I socialse”.
So now that you know these amazing super productive tricks, do you have any more of your own? let the world know..