Alexander Vassbotn Røyne-Helgesen PRO
Lover of life, technologist at heart
– Eller, hvordan starte apokalypsen!
– Eller, hvordan starte apokalypsen!
Anything that can go wrong will go wrong.
Heng ham ikke, vent til jeg kommer
hm. I've lost a machine.. literally lost. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Assumption is the mother of all fuckups
A programmer is going to the grocery store and his wife tells him, "Buy a gallon of milk, and if there are eggs, buy a dozen." So the programmer goes, buys everything, and drives back to his house. Upon arrival, his wife angrily asks him, "Why did you get 13 gallons of milk?" The programmer says, "There were eggs!
var milk = require('milk');
var customer = require('customer');
var store = require('grocery-store');
if (store.gotEggs()) {
// Buy 12 gallons
customer.buy().product(milk).quantity(12).unit('gallon');
} else {
// By one gallon
customer.buy().product(milk).quantity(1).unit('gallon');
}
var milk = require('milk');
var customer = require('customer');
var store = require('grocery-store');
// Buy one gallon
customer.buy().product(milk).quantity(1).unit('gallon');
if (store.gotEggs()) {
// 12 more gallons
customer.buy().product(milk).quantity(12).unit('gallon');
}
var eggs = require('eggs');
var milk = require('milk');
var customer = require('customer');
var store = require('grocery-store');
// Buy one gallon
customer.buy().product(milk).quantity(1).unit('gallon');
if (store.gotEggs()) {
// 12 eggs
customer.buy().product(eggs).quantity(12).unit('pieces');
}
Principal Engineer, Knowit, Oslo, Norway
By Alexander Vassbotn Røyne-Helgesen
Hei, du der. Ja, DEG! Utvikleren som leser denne artikkelen. Er du klar til å kalle på de fire rytterne og starte apokalypsen? Starte den neste atomkatastrofen? Drepe pasienter? Gjøre banker konkurs? Har jeg oppmerksomheten din nå? Ja? Bra. For alt kommer til å gå til helvette, hvis du ikke tar deg sammen!