Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
rui7257617yOoppss i was looking at reverse the whole time I thought it was the endpoint should be a string haha Ty for pointing that out
-
@lotd Haha yeah, that would be very much the programmer's action: go in there and instead of claiming your free coffee, tell them that their code is out of date :D
-
@avalanche I thought it's just dirt or leftover chalk from something that was written there before. There should be a space and nothing else
-
@lotd
const yourDrink = 'coffee';
const reverse = s => s.split('').reverse().join('');
const barista = {
str1: 'ers',
str2: reverse('arap'),
str3: 'met',
request: pref => `${pref} secret word: ${barista.str2+barista.str3+barista.str1)`,
};
barista.request(yourDrink);
=} -
olezhka25767yYou know what's funny? The code contains reverse and I believe the pic is flipped on Y axis, too, as I swear to god I've seen it quite some times before and it was a mirror image of this pic.
-
@lotd Depends, if the offer is only valid for coffee anyway, you might as well make it immutable :D
But yeah, let probably isn't a bad idea there -
@Galrog neither does he have a method to actually give you your drink. :p
You can just request it, barista is like "ok." and that's all that ever happens. Great coffee shop.
When you see this in the internet and get ideas for your next meeting
joke/meme
javascript
evil
coffee