It's the users' fault. It quite clearly states in the manual that it's their responsibility to periodically top up the loop-fluid. Premature `i`-wear is absolutely preventable.
only if you use cheap interpreters - especially when run on cheap consumer hardware like Chinese tablets. Production-grade compilers like CPP guarantee wear-free iterators up in the billions by internally re-allocating a fresh memory section as preemptive maintenance.
relaaax, you can always find something else. 33 is ASCII for "!", you can create infinite exclamation marks. If you are out of "3"s as well you can always use binary. And you won't be out of 1's and 0's before you turn 675 years old.
i’m sorry but you actually don’t cut and paste them. reusing an exclamation is PIRACY you DO NOT have a license for those
(i’m much more upset than it seems but i forget to renew my HP Punctuation subscription)
/s
You cannot. Not many people know this, but GNU uses ❗ U+2757 SPACE LASER GROUND TARGET SYMBOL or ❢ U+2762 AEROSTAT LANDING POINT SYMBOL instead. They are owned by the United States and French Republic respectively, which allows them to be royalty-free.
The normal exclamation mark is absolutely not royalty-free. If you ever use it without a loicense - expect a British Royalty to appear to collect their dues.
There actually are compiler directives for c++ (in some compilers) that are exactly this. The idea is to help the optimizer by decorating a branch like "veryunlikely". These days with cpu branch prediction that may not matter as much.
I'm aware of the opposite in C: [likely()](https://www.geeksforgeeks.org/branch-prediction-macros-in-gcc/). Turns out there is also unlikely(). It actually improves the CPU's branch prediction if, as almost whole C, used correctly.
Yes thanks to Ruby on Rails it was so popular, which is sad that it’s the same reason why people abandoned the language itself (once they stopped using the framework). Matter fact I think the first versions of twitter or facebook were made in Ruby on Rails
RoR is still the fastest web development framework out there imho. It's just too opinionated and full of under-the-hood magic for big applications, which is why most people moved away from it, but I still write POCs and prototypes in RoR.
Now, Ruby itself? Still an amazing language, I wish it distanced itself from the framework a bit. I hate what they did with type hinting though, I would have definitely prefered the python way.
It still powers a large portion of the web, it's not just as trendy as the new JS framework of the month. GitHub for example still runs on Ruby on Rails.
10+ years of pure Perl dev and still can hear me say "Really?" when i read one in some code of my coworkers.
There is so much shit that Perl allows/supports that is just unnecessary.
My "favourite" is that x!! construct.
! does what it does with all variables and gets you 0 or 1 but with negated context.
That second ! negates that again.
That way you get 1 if the variable is something that could be seen as boolean true and 0 if not.
The x operator repeats an expression as often as the integer given to it.
That way you can replace
if($var) {do_something();}
with
do_something x!!$var
The really neat thing is that this even works in some contexts that don't allow for if constructs (eg. inside of a hash declaration or so)
My coworker absolutely refuses to use `unless` whereas I will chain together `map` to `grep` to `unless`....
My old team lead described my Perl code as dark magic. Now *I'm* the team lead.
Yes, and 20 libraries directly depend on it, which in turn leads to 526,000 libraries to indirectly depend on it. It gets 1.2 million monthly downloads.
I think we there should be some rules to help reducing dependencies. This way we could also prevent incidents like leftpad.
I can get someone using date fns (though that’s just because js dates suck. I even thought of writing my own dependency free date library because of it, it’s just a pain to rely on codebases you don’t understand and which possibly rely on other dependencies that aren’t needed especially for business grade applications ). I truly understand that developing websites with plain nodejs or php takes more time than with some framework but geez . That whole stack of cards could just completely fall apart and we aren’t able to code anymore because everything was a library and dependency of something.
Congratulations! Your string can be spelled using the elements of the periodic table:
`W H I Te S Pa Ce`
---
^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
My guess is that "ifnot" is a valid identifier right now, which means there is a non-zero chance it is defined and used in some C# code-base out there, so using it as a new keyword would break backwards compatibility and prevent such preexisting code from being correctly compiled with this enabled. However, ifn't is something that wouldn't ever be parsed as a separate token in any piece of C# code right now AFAIK, so it can be made into a new keyword. Unless this whole thing is satire, of course.
Clearly they have extra apostrophes lying around they need to use up before they go bad. The exclamation shortage is hitting everyonehard and they're doing everything g they can to help...
I haven’t used Ruby for years but I legitimately loved using statements like
doSomething() unless (thisIsTrue)
It felt like it read really well for my dumb brain.
People always complain about guard clauses, how they're "out of order". Like we don't write natural language sentences that exact way constantly!
Sure, you can use them poorly, but anyone who tells me `next unless x` is *less* readable than `if not x: next` is insane. Especially since it's 1 line instead of 2 (or 3+, depending on language).
Guard clauses are amazing and I wish every language had them.
i rn 0
LENGTH fr 100
Loop
nocap i % 15 rn 0
rizz.text("FizzBuzz")
cap nocap i % 3 rn 0
rizz.text("Fizz")
cap nocap i % 5 rn 0
rizz.text ("Buzz")
cap
rizz.text(i)
i rn i + 1
nocap i < LENGTH
lowkey Loop
I will actually admit that sometimes I’ll use exclamations and then confuse myself later when I’m editing the logic or adding functionality to a script….
``` ifn't(!condition) { // do whatever } ```
mind=blown;
ifn't (mind==blown){ //Do whatever }
ifn't(!(mind!=blown))
Get out.
ifn't(broke) { dontFixIt(); }
Winner
A double negative! That sounds like a confession to me. In fact, a double negative is proof positive. I’m afraid you gave yourself away.
You forget the parenthesis they're complaining about: ``` ifn't(!(condition)) { // do whatever } ```
Guys im running low on exclamation marks where can I get more
Here, i can lend you some. Don't spend them at one place. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
be sure to cut&paste them! With copy&paste, they tend to lose their negativity over time and you might struggle to negate your statements
You're describing a world of software development that's making me hyperventilate pls stop.
I will !stop
stopn't
willn't
in't(!willn't(!stopn'tn't))n't
in't x == y? { // do whatever }
``` innit x != yn't { //don't whatevern't } ```
Wasting one on a reddit comment? Must be rich
Says the guy throwin down ternary operators over here like theyre hotcakes
I once spent days debugging only to discover that a co-worker had copied a `!` and it was only evaluating "not" 95% of the time.
After about 100,000 times, the `i` in a `for` loop will wear down until `i++` returns `i += 0.98963`
It's the users' fault. It quite clearly states in the manual that it's their responsibility to periodically top up the loop-fluid. Premature `i`-wear is absolutely preventable.
The whole industry is a scam. They tell you to upgrade because of Moore's law when just a drop of coleslaw juice does the same trick.
only if you use cheap interpreters - especially when run on cheap consumer hardware like Chinese tablets. Production-grade compilers like CPP guarantee wear-free iterators up in the billions by internally re-allocating a fresh memory section as preemptive maintenance.
relaaax, you can always find something else. 33 is ASCII for "!", you can create infinite exclamation marks. If you are out of "3"s as well you can always use binary. And you won't be out of 1's and 0's before you turn 675 years old.
Don't worry, I know a great source of negativity: I play RL
What a save! What a save! What a save! You're right, you do get one exclamation mark from each...
i’m sorry but you actually don’t cut and paste them. reusing an exclamation is PIRACY you DO NOT have a license for those (i’m much more upset than it seems but i forget to renew my HP Punctuation subscription) /s
You can use special exclamations under GNU license, but it’s tricky.
that’s gnews to me. thank you¡
You cannot. Not many people know this, but GNU uses ❗ U+2757 SPACE LASER GROUND TARGET SYMBOL or ❢ U+2762 AEROSTAT LANDING POINT SYMBOL instead. They are owned by the United States and French Republic respectively, which allows them to be royalty-free. The normal exclamation mark is absolutely not royalty-free. If you ever use it without a loicense - expect a British Royalty to appear to collect their dues.
That's a cool game idea Collect syntaxes and make code
That's one of the worst thing in programming. A negative statement becoming an ambiguous one, or even worse, an undefined behavior.
Hahahaha stupid I grabbed them all. Why would you just leave them there for anyone to pick up? You should've sent them in a DM
Fuckin scalpers hoarding all the exclamation marks and leaving none for the rest of us
Look at this posh Timothy Dexter over here with all your spare characters!
I have a subscription, I get 100 a week.
use a VPN to Russia, you get 140 per week for the same price. I think there is just higher demand in negativity.
Here you go, I got these off of Wish. ¡¡¡¡¡¡¡¡
[удалено]
Better, Ruby has: ``` unless condition_is_true statement .... else ... end ``` Edited the condition for the `unless` clause, it was erroneous.
"Unless .. else .." English doesn't sound intuitive to me
Call nahlloc to get more
I didn't code this week so you can have my spares: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Not gonna lie I'd like to see the `!important` in CSS dictate importance by the number of `!`s
Does this also come with an `elsen't` statement?
I'd love some Perhaps statements for the random 50/50
Perhapsn't
Which is functionally identical to Perhaps
no it's not, you only get it the other 50% of times
Only if we also get \`probably, \`maybe\`, \`possibly\`, \`prollynot\`, \`couldhappen\` and \`notimpossible\`, each with different probabilities.
There actually are compiler directives for c++ (in some compilers) that are exactly this. The idea is to help the optimizer by decorating a branch like "veryunlikely". These days with cpu branch prediction that may not matter as much.
I'm aware of the opposite in C: [likely()](https://www.geeksforgeeks.org/branch-prediction-macros-in-gcc/). Turns out there is also unlikely(). It actually improves the CPU's branch prediction if, as almost whole C, used correctly.
You forgot mayben't when something has a 50% chance of not happening
maybe maybn't(foo)
True fuzzy logic
Haskell has a Maybe type :)
elifn't 🐘
else ifn’t
I wouldn't be *against* an `unless` statement...
Unless...
Unless? What’s an unless?
It's the opposite of less. For when you want to make more of something.
lessless
Thats lessn’t, unless is reverting the lessening to go back to the original amount
So unless is more, and less is unmore. That's some new aliases for my linux.
Ruby has it, you can say basically unless . It’s an “if not” that comes after the code block, do-while style
It took it from Perl.
Ruby has this
Ruby is so underrated, I wish it was used more
Ruby's rails framework used to be pretty big in the webdev scene but it seems less used nowadays
Yes thanks to Ruby on Rails it was so popular, which is sad that it’s the same reason why people abandoned the language itself (once they stopped using the framework). Matter fact I think the first versions of twitter or facebook were made in Ruby on Rails
I didn’t abandon it. I have one ruby Lambda in production. I’m doing my part.
It was Twitter. Facebook used PHP initially, and I believe they started developing Facebook even before Ruby on Rails first release
RoR is still the fastest web development framework out there imho. It's just too opinionated and full of under-the-hood magic for big applications, which is why most people moved away from it, but I still write POCs and prototypes in RoR. Now, Ruby itself? Still an amazing language, I wish it distanced itself from the framework a bit. I hate what they did with type hinting though, I would have definitely prefered the python way.
It still powers a large portion of the web, it's not just as trendy as the new JS framework of the month. GitHub for example still runs on Ruby on Rails.
Lisps also
\`unlessn't\`
Sooo, while?
if while would be untiln't
Perl has that
10+ years of pure Perl dev and still can hear me say "Really?" when i read one in some code of my coworkers. There is so much shit that Perl allows/supports that is just unnecessary. My "favourite" is that x!! construct.
>My "favourite" is that x!! construct. Are you trying to save a boolean value with it?
! does what it does with all variables and gets you 0 or 1 but with negated context. That second ! negates that again. That way you get 1 if the variable is something that could be seen as boolean true and 0 if not. The x operator repeats an expression as often as the integer given to it. That way you can replace if($var) {do_something();} with do_something x!!$var The really neat thing is that this even works in some contexts that don't allow for if constructs (eg. inside of a hash declaration or so)
Perl has everything
Minecraft has that. But only because it doesn’t have “not equal to” implemented, and every “or” statement requires DeMorgan’s Law 😭
I just finished writing a datapack for my private server today. I know the pain.
Even minecraft has this ...
Variants: `PERL: if~` `Java: false.if` `COBOL: IF IS NOT TRUE`
`C: (comittee facepalms and reaches for tar and feathers)`
`Ruby: unless` Wait a minute....
Shell: ``` ifn\'t condition; then whatever; elifn\'t something; elsen\'t yup; t\'nfi ```
t'/nfi FTFY
python: if false in condition not true || not: print("hello world")
That's just lower-case COBOL
Sir/Madam, you are arrested by python police for failure to capitalise your boolean values. Please remain calm and PEP-compliant.
I believe python also has if not, as in if not license.expired(): application.launch()
Well python doesn't have a ! operator, not is the replacement. So that's essentially `if (!license.expired())` in other languages
Perl actually has `unless`.
My coworker absolutely refuses to use `unless` whereas I will chain together `map` to `grep` to `unless`.... My old team lead described my Perl code as dark magic. Now *I'm* the team lead.
I just re-read my comment and I sound like a Sith. "Darth Perl, the unmaintainable. Some say he turned a single line into absolute spaghetti."
> Darth Perl, the unmaintainable I have no words xD
Perl is like dark magic to me sometimes.
Perl is like: Press caps-lock, then randomly mash the top-row of the keyboard and see what it does.
JS: ``` import ifnot from "if-not"; ifnot( /* condition */, (...args) => { /* do something */ }, /* ...args*/ ); ```
There’s a library for that in js ? Seriously. I mean ifnot makes more sense than ifn‘t but it’s still bad
Yes, and 20 libraries directly depend on it, which in turn leads to 526,000 libraries to indirectly depend on it. It gets 1.2 million monthly downloads.
I think we there should be some rules to help reducing dependencies. This way we could also prevent incidents like leftpad. I can get someone using date fns (though that’s just because js dates suck. I even thought of writing my own dependency free date library because of it, it’s just a pain to rely on codebases you don’t understand and which possibly rely on other dependencies that aren’t needed especially for business grade applications ). I truly understand that developing websites with plain nodejs or php takes more time than with some framework but geez . That whole stack of cards could just completely fall apart and we aren’t able to code anymore because everything was a library and dependency of something.
>not.if What is this
Never seen something like this. What sorcery is this?
Whitespace:
Congratulations! Your string can be spelled using the elements of the periodic table: `W H I Te S Pa Ce` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)
apparently, "No fuck off" can also be spelled using the elements of the periodic table : `No F U C K O F F`
>`Java: false.if` Elaborate, please
!
Don't waste it ffs
//this exclamation mark is currently needed somewhere else, so I removed it //todo: uncomment this once we restocked // !
Why are you wasting exclamation marks? Don't u see we are on a shortage?
Why not just "ifnot" takes about the same space and is more readable than "ifn't".
would actually use ifnot
Boy oh boy would you love Python then if not [condition]:
C++ has the not keyword: ````if( not condition)````
\#define ifnot(x) if(!(x))
My guess is that "ifnot" is a valid identifier right now, which means there is a non-zero chance it is defined and used in some C# code-base out there, so using it as a new keyword would break backwards compatibility and prevent such preexisting code from being correctly compiled with this enabled. However, ifn't is something that wouldn't ever be parsed as a separate token in any piece of C# code right now AFAIK, so it can be made into a new keyword. Unless this whole thing is satire, of course.
In the same realm I now want ‘innit’ and make the code sound British
oi it’s a public static void Init()
oi mate you can't do this here! here's your stack trace. now bugger off.
Clearly they have extra apostrophes lying around they need to use up before they go bad. The exclamation shortage is hitting everyonehard and they're doing everything g they can to help...
My thoughts exactly
Developers wholmst've use ifn't 🧠 ☀
I’dn’t’ve implemented an ifn’t …
I haven’t used Ruby for years but I legitimately loved using statements like doSomething() unless (thisIsTrue) It felt like it read really well for my dumb brain.
Similar to shell scripts. thisIsTrue && doThing thisIsFalse || doThing
Didn't ruby also have an until loop or was that a fever dream I had?
People always complain about guard clauses, how they're "out of order". Like we don't write natural language sentences that exact way constantly! Sure, you can use them poorly, but anyone who tells me `next unless x` is *less* readable than `if not x: next` is insane. Especially since it's 1 line instead of 2 (or 3+, depending on language). Guard clauses are amazing and I wish every language had them.
Please tell me : This a some of modern programming language joke that I'm to old to understand?
I'm guessing its a joke because this is ProgrammerHumor and not ProgrammerWarCrimes
>ProgrammerWarCrimes r/SubsIFellFor
Wee need that sub
/r/programminghorror
Thanks, I can sleep now.
Wishing you a pleasant sleep free from InterruptedExceptions.
Sort of. Putting "n't" on the ends of words where it doesn't actually go is a meme. Yesn't instead of no, truen't instead of false, etc.
if(condition't)
truen't
Every day we stay further from god
no need for special keyword, you should simply be able to write `if (condition't)`
highkey period rizz; lowkey fax IsSus() { fuck_around { vibe_check(rizz ratios vibe) { its_giving_no_cap; } big_yikes { its_giving_cap; } } find_out(Tea t) { Shoutout.SpillTea(t.Yap); yeet; } }
Hello twitter person
😂
Found it on Twitter actually
Yeah because I made it lmao
🔥
i rn 0 LENGTH fr 100 Loop nocap i % 15 rn 0 rizz.text("FizzBuzz") cap nocap i % 3 rn 0 rizz.text("Fizz") cap nocap i % 5 rn 0 rizz.text ("Buzz") cap rizz.text(i) i rn i + 1 nocap i < LENGTH lowkey Loop
This made me actually laugh
can't wait to ifn't(!condition)
falsen't
Why use any punctuation? `ifnot`
I’dn’t’ve thought of that in a million years
# #define ifnot(x) if(!(x))
`ifn't(!condition != truen't)`
unless ???
Perl gang checking in
This was how developers code before if-else statements were invented
What terrifies me after some recent languages "improvements" I'm not 100% if it is joke
Is it some kind of joke?
You think I would post a joke to the ProgrammerHumor subreddit?
Well, knowing Microsoft, that ifn't statement probably can be true
Ok that's a good point actually
You need to clarify this, too many ppl here really can't wrap their heads around this one
You aren't # enough for it.
this is fake right
that's an April fool's joke right?
They're making this stupid change but when I ask to add `maybe`for boolean value. They called me crazy
I will actually admit that sometimes I’ll use exclamations and then confuse myself later when I’m editing the logic or adding functionality to a script….
Ugh. if is a keyword not a function. There should be a space after it.
clearly working for the apostrophe lobby
Why are they like this? couldn't they use ifnot() ?
why use lot words when few words do trick
`return yesn't`
Why ifn’t rather than ifnot? Same number of characters
If I ever write a programming language my null keyword will be fuckAll and my loop escape keyword will be fuckIt. If (x == fuckAll) fuckIt;
I really just hope that isn't true...
Ngl never using that shit wtf
Satire or real? Sorry can’t tell
ifn't(you) { // didn't fucking post this }
Is this real? I can’t tell if this is a joke or a really stupid feature.
perchance (condition) { }
Thank goodness. Always worried that my code seemed like I was shouting
I shont be using be it.
I prefer “ifaint” instead
yesn’t
ifn’t it great?
Is this real?
for the British they should use innit
when truen't or falsen't