blog

bug-on-code

There is a Bug on this Code

by

Software is a serious business. Fatal bugs have been around since at least the 1980s, and a decade-old report estimated the annual cost of bugs at $60 billion. Tech companies spend millions on political lobbying. Opponents argue over labor shortages and H-1B visas.
So how about we take some time out to give three cheers for a little levity?
[“hip”,”hip”]
hip hip array!

Favorites from r/ProgrammerDadJokes

What do you call a skinny ghost?
BOOLEAN
~~
Why did the programmers send their kids caroling on Halloween?
Because oct 31 = dec 25
~~
It may seem kinda random, but these twins had the same seed

~~
We frequently have multiple gallons of milk in the refrigerator, but usually only one is open at a time. My wife thought one of the gallons tasted off, so she opened another gallon from our usual store. I’ve still been drinking from the suspect one.
This morning, my wife had her gallon of milk on the counter, and I filled a cup from the other gallon. She turned toward me and saw the cup with milk in it.
Wife: “I couldn’t figure out how you did that, and then I remembered that we have parallel milks.”
Me: “As opposed to serial milks.”
Wife: “Cereal milks?”

Programming Games


Cube composer’s quick, addictive puzzles help teach functional programming techniques, and it feels like you’re programming with legos. It’s written for HTML5’s canvas and localstorage, so it’s easy to drop in for a level or two — no Java or Steam strings attached. Plus, the code is open source at sharkdp/cube-composer.
~~
codingame
CodinGame aims to slip programmer puzzles into a game setting, and to some extent it succeeds, though many of the mini games are cheesy and unimaginative. Compared to many other similar platforms, it’s refreshingly geared towards experienced developers, and it includes multiplayer support to vet your algorithms against others’.
~~
[youtube https://www.youtube.com/watch?v=kkdbzFV1NoQ&w=853&h=480]

Keep Talking and Nobody Explodes is one of my favorite inventive games, a cross between simulation and party game. One player sits at a computer, defusing a virtual bomb with a bunch of different modules; a second player sits across the table, with a printed manual explaining what to do for each module. The art is in their rapid communication, as the defuser describes criss-crossing wires, morse code blips, and alien keypads while the expert tries to make sense of the system’s logic and steer the defuser down the right path. It’s incredibly stressful, but so satisfying.
Image via imgur

+ more

Accurate Timing

Accurate Timing

In many tasks we need to do something at given intervals of time. The most obvious ways may not give you the best results. Time? Meh. The most basic tasks that don't have what you might call CPU-scale time requirements can be handled with the usual language and...

read more