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
-
Root825567ybool should_dance(int drunk_rating) {
if (drunk_rating < 1); {
return true;
}
return false;
}
// yes, this should be:
// return (drunk_rating < 1);
// but that ruins the joke. -
DoSth();
CheckIfUserCanDoSth();
DoSthAgainRegardles();
Not the language idiocy per se, but sth a coworker of mine did.. -
Crazed20507yLook, I like because it challenges me. It's fun yknow, there are a lot of different solutions but taking different paths require different sacrifices. Not everyone knows about closures. Not everyone knows how to use an IIFE. There are a lot of parts of JavaScript that are complicated but don't need to be. It is one of those languages where it is weird but not necessarily wrong.
I love JavaScript because it was developed in 10 days and has been sensationalized across the world - it is the language of internetwork human interaction -
Crazed20507y@Root it appears to be so. I read "what is your favorite programming language"; I attribute that to the vodka needed to deal with JavaScript. It's a love/hate relationship
-
me = hooman(social=0.1)
while me.drunk():
if me.canDance():
me.doDance()
else:
me.doDance()
me.addItem(tequila=1) -
prototyp (tanzen)
neueVariable (ichbetrunken = "ja")
leer tanzen
anfang
schreiben ("TANZ TANZ TANZ")
ende
haupt
anfang
wenn (ichbetrunken == "ja")
anfang
aufrufen(tanzen)
ende
ende -
pda8714307ypublic class NightOut
{
private int drunkThreshold
{ get; set; }
private int alcoholUnitsConsumed
{ get; set; }
public NightOut(int _drunkThreshold)
{
this.alcoholUnitsConsumed = 0;
this.drunkThreshold = _drunkThreshold;
}
private void GoToBar()
{
this.alcoholUnitsConsumed++;
}
private void Dance()
{
//todo
}
public void HaveNightOut()
{
while(this.alcoholUnitsConsumed < this.drunkThreshold)
{
this.GoToBar();
}
this.dance();
}
}
public class Program
{
new NightOut(3).HaveNightOut()
}
What would be this in your (programming) language?
joke/meme
dance anayways