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
Search - "false"
-
Interviewing a junior dev.
> Make this function return false.
> junior: deleted all code in function replaces it with return false;
Literally no words.........21 -
Welcome to JavaScript where
Number.isInteger(0.9999999999999999) is false and
Number.isInteger(0.99999999999999999) is true11 -
There are two kinds of people:
those who write
if foo.isBar() {
foo.setBar(false)
}
else {
foo.setBar(true)
}
Vs
those who write
foo.setBar(!foo.isBar())
Only good programmers will understand😢😊31 -
public boolean even( int num ) {
if ( num < 0 )
num = -1 * num;
while ( num > 1 )
num = num - 2;
if ( num == 0 )
return true;
else
return false;
}21 -
Code: if(customer.primaryContract)
Boss: "just using a variable as a boolean isn't very readable"
Me:
if(!(!customer.primaryContract != !true).toString() == 'false')13 -
Lol 😂. I was expecting a mnemonic of some kind but this works too.
https://stackoverflow.com/questions...2 -
if( !condition ) vs. if(condition == false)
Pointless debate started with readability, turned into heated insults under 30 seconds 😂21 -
int main()
{
bool NeedPoints = true;
int Points = 0;
if (NeedPoints)
{
Points++;
if (Points > 10)
{
CreateAvatar();
NeedPoints = false;
}
}
}29 -
Boss: "Can you create a login page where every login fails?"
Me: "Sure thing!"
*Writes out php file that returns false and calls it via AJAX*8 -
Me-
/ / / / / / / / /
if (bool == true)
{
bool = false;
}
if (bool == false)
{
bool = true;
}
/ / / / / / / / /
My friend-
/ / / / / / / / /
bool = !bool;
/ / / / / / / / /
*not a real story*15 -
Just spent like ten minutes searching why my api always returned false.
I forgot, that I am using Java and therefore cant compare strings using equal signs 🤦♂️23 -
bool success = false
if !success {
success = try()
}
if !success {
success = try()
}
if !success {
throw new GiveUpException()
}8 -
not the worst by itself, except I keep finding them everywhere
if(thingThatIsTrue == true) {
// omfg
}
or it's inbred cousin
if(!thingThatIsTrue == false) {
//herpa derp
}6 -
Where I work, in our database, we use 3 to indicate true and 7 to indicate false and 0 is true but null is false
In another table, we use 'P' to indicate true and 'I' to indicate false and 'Y' is also false and null is false
And the most used table, we also use 'Y' to indicate yes and 'N' to indicate no, but null is also Yes.
We also store integers as varchar in a live table, but stays an integer in all the other tables. I hope I'm not there when the number of digits exceeds the varchar limit.
These are all live and used in production all created by my boss, the head of IT.8 -
Today at work while reading legacy code:
do {
...
} while(false)
Wanna cry and laugh at the same time23 -
Want to piss off the person reviewing your PR?
don't just return true or false use 1 == 1 for true and 1 == 2 for false.
Watch the glorious rage unfolds 🤘🤘🤘6 -
Developers who writes something similar
if (count >= 0) { return true; }
else { return false; }
deserves a special room in hell.16 -
I hope I can code myself like below.
me.Girlfriend = true;
me.Millionare = true;
but, the real case is
me.Girlfriend = false;
me.Millionare = false;
the sadest case is
me.Girlfriend is not defined T.T11 -
JavaScript question of the day:
Is NaN equal to itself?
NaN === NaN
A. SyntaxError
B. False
C. True
D. NaN11 -
I have previously seen this in a production code base. The same code base included nested if statements (20+ conditions)...
If (condition == false) {
return false;
} else if (condition == true) {
return true;
}15 -
Being told that real life experience < school degree.
You couldn't possibly be more fucking wrong.3 -
console.log(0.47-0.01===0.46);
Output: false :/
That got me stuck for quite a while..
Learned more about floating point arithmetic and representation 😊7 -
Kids use "if(condition)"
Men use "if(condition == true)"
Legends use "if((condition == false) == false)"14 -
bool DDD = true;
if (DDD == true && DDD == false) {
//some code
}
//when I will have an option to be a compiler i will don't allow to compile that3 -
!rant
In firefox:
about:config
In "dom.webnotifications.enabled", change "true" to "false"
Website notifications are now disabled. You're welcome.8 -
If my laptop made the same many sounds that computers in series and movies does, I would go insane and became as creepy, cynical and depressed as the people you see in those films and series using their computers are3
-
bool True = false;
bool False = true;
if (True == true)
{
False = True;
}
else
{
True = true;
False = !true;
}
if (!False == !!true && True == !false)
{
False = True;
True = (!!False)true;
}
Console.WriteLine("Banana");5 -
Do ya ever hate how often people use the term "AI" so loosely. It's like saying your thermostat or your "smart oven" (or "smart"-everything) is "AI-infused" because it can regulate the temperature. Unless the machine actually learns something for next time around, a bunch of "if" statements isn't truly AI in my book.5
-
i always thought that making a simple game is easy until i saw the source code for the dynosaur game you have in chrome when your internet is down7
-
I really think we should have a "misleading or false" reason for --, or some other way to deal with fake news that generally plague internet forums.25
-
So, if i false just correct me to true. But if i true i will be false at the same time. But this is not false.
Thank you devRant algorithm 😂1 -
How to test your cpu cooling system:
Open Firefox
Set option CloseOnLastTab to false
Hit CTRL W and don't let it up
Watch cpu burn.11 -
Your choice. Select one
1.
foo (bar) {
return true;
}
2.
foo (bar)
{
return true;
}
3.
foo (bar) { return true; }
4.
foo (bar)
return true;
5. Collapse
|-------------------|
| foo (bar) ... |
|-------------------|
6.
#define foo boo
#define bar par
#define ( `
#define ) '
#define return go_home
#define true false
#define { ☞
#define } ☜
6-1.
boo `par' ☞
go_home false;
☜
6-2
boo `par'
☞
go_home false;
☜
6-3.
boo `par' ☞ go_home false; ☜
6-4.
boo `par'
go_home false;
6-5.
|--------------------|
| boo (par) ... |
|--------------------|
Select and Comment below.
Or add your own.28 -
Javascript is so funny
"0" == 0 //true
"" == 0 //true
"0" == "" //false
Always remember the ===
Realize this took me an hour of debugging7 -
My first login function
const login = (email, password) => {
If (email && password) {
return true
} else {
return false
}
}12 -
I just found this `Cyberpunk` VS Code theme and I'm a fan 🤩
https://marketplace.visualstudio.com/...7 -
Am I the only one who's getting more and more aggrevated about how the large youtube channels misinform and make out VPN providers (I am looking at you, Nord VPN, mostly) as the messiahs of the internet? How they protect our data that would otherwise be in incredible "danger" otherwise?
I understand they need clients, and I know most of the YT channels probably do not know better, but... This is misinformation at best, and downright false advertising at the worst...
"But HTTP-only websites still exist!" - yes, but unlike the era before Lets Encrypt, they are a minority. Most of the important webpages are encrypted.
"Someone could MITM their connection and present a fake certificate!" - And have a huge, red warning about the connection being dangerous. If at that point, the user ignores it, I say its their fault.
Seriously... I don't know if Nord gives their partners a script or not... But... I am getting super sick of them. And is the main reason why I made my own VPN at home...16 -
Class DonaldTrump extends Shit implements Asshole {
public final boolean PRESIDENT = false;
public final String THINKING = "bullshit";
public void talk () {
System.out.println(THINKING);
}
}1 -
Ok , so True is just !Falsejoke/meme testing database nosql development java javascript project management sql python programming php4
-
Spent hours trying to figure out why API calls to a third party service weren't working.
Hit up their support and find out the following:
"Hi there, we can only take true and false as strings."
"Uhmm... Does it take anything apart from true or false?"
"No, but they must be sent in as strings"
"Any reason why you don't take booleans if it's just true or false?"
*crickets chirping*
GFG2 -
Just JavaScript things:
alert(typeof NaN); //alerts 'Number' alert(NaN === NaN); //evaluates false
What else would you expect?4 -
Lets play a game of spot the bug...
Too easy you say?
What if I told you that this code was written by a well paid dev over an exceptionally large period of time?
Crazy huh, but that's still nothing. The most ludicrous thing about it - is that you (like me) probably suffer from a mild case of impostor syndrome.
I just ended that suffering. The only thing worse than impostor syndrome is believing you actually know what the fuck your doing. Keep it in check but learn to love it... it's probably the reason you could spot the bug after all.5 -
Today I found this jewel in a PR of a respected dev of my workplace:
if(conditions)
{
return true;
}
else
{
return false;
}3 -
OSC, or open sound protocol, does not have a Boolean type. instead, the Boolean true has type true and the Boolean false has type false.
what.
well.
at least the problem wasn't in my code? -
When you search for this error during 3 hours
if (false);
{
printf("why u right ?");
}
And it was just the first lines comma9 -
Is it just me or devrant has a bug of showing false notification badge?
It's stuck on this number even though I don't have any new notifications7 -
I wrote this code last month...
def func(is_admin, user):
is_admin = is_admin or False
user = user # so pro much wow
return is_admin ^ user4 -
I’ll often open up my console and check if something is true and then check if the opposite is false. Thanks js3
-
didn't anyone go for the "#define true false" joke? i didn't actually see it in action, but it would be a pretty harsh one.1
-
Dear Windows,
y is it that Windows Defender is suddenly closing down apps, I opened on my own, and have been using and interacting with for ages since I installed this OS?
How the fuck is this unwanted software?
Fuck you.14 -
I'm surprised management allows us to write false positive tests just to have high coverage instead of refactoring it first. Time to abandon ship.
-
$md5 = md5_file($file_uri);
=> Returns false
Mmh...
die(is_readable($file_uri));
=> Returns false
[Mmh intensifies]
if(!is_readable($file_uri)) {
chmod($file_uri, 0777);
}
=> Chmod() returns false
GAAAAH FUCK THIS I CALL IT A DAY6 -
I've noticed when I talk to people I use terms like "true" and "false" a lot. Like "Dude that's totally false". "So true!"
#CantHelpIt💻5 -
Going to make a new programming language, positive# .
Where the default value of a Boolean is true instead of false. -
My man said "What should I return if the True/False field is left blank?"
WHY WOULD A BOOLEAN BE ANYTHING OTHER THAN TRUE OR FALSE???!!!
I'm gonna have an aneurysm. I shouldn't be educating people on best practices for something that's already been written about time and time again. RESTful philosophy has been documented so much, and all it takes is a quick google search, but noooo! I have to take time out of my day as if I'm a regular old stakeholder to explain that I want the exact thing that I sent in an email two weeks ago. Amazing.20 -
I tried this on tinder. She was confused and proceeded to un-match me. A !false statement would be to say that I’ve failed at life. 😉5
-
I really dislike when people don't use braces { } on if/else statements.
If(almond.harvestStatus == undefined) almond.harvestMode=false
almond.dropdown = false.2 -
//How To Don't Get Spoilers
<?php
$newGoTEp;
$seen;
do {
turnOffInternet();
} while ($newGoTEp == true && seen == false);
?>
😂😂😂2 -
When you debug all day, and at the end only thing that boss sees are 3 line changes in git commit.2
-
Is there a relation with bad long term memory and programmers?
Most really good programmers I know don't have great memeory11 -
Helped somebody learning Arduino (he is new to programming in general)...
I saw this at the top of his file...
I admire his effort tho...14 -
PSA: negate your tests and make sure they fail!
I have what I thought was a weird and slightly paranoid habit. When I write tests sometimes just as a sanity check negate the assertion to make sure the test fails and isn't a false positive. Almost always fails as expected.
But not today! Turns out I had forgotten to wrap my equality check in an assertion so it would always pass. It freaks me out to imagine pushing a test that always passes not just because it doesn't do its job, but could also obscure a bug and trick me into thinking it works differently than it does. Broken tests are the worst!
But it pays to be paranoid. -
if false? if false what? (false is just not defined, but this is the sort of shit I come across in the twig-theme-saas world, makes me angry)5
-
Just found this gem:
<a href="..." onclick="if (! confirm("Are you sure you want to log out?")) return false;">Log out</a>1 -
How to deal with legacy code when you see such thing:
if function() == !!!false
1. Ctrl+A
2. Del
3. rm -rfv /3 -
When someone defines a Bool3 type in swift to represent true, false and undefined. Even tho swift already has Optionals as a first class feature. 😳
-
When a condition is true and false at the same time...
var_dump(0 == "x"); // true
var_dump(!0 == " x"); // true
WTF?!
I started using the === more often...5 -
At first it seemed harsh, but then I learned that he committed code like
if (a == b)
return true;
else
return false;9 -
function isBool(input) {
return (mixed_var === true || mixed_var === false);
}
at least this crap wasn't used anywhere in the code base
#gemoftheday #wtf -
bool isTrue(bool val){
If(val == true){
return true;
}
else if(val == false){
return false;
}
else{
cout<<"Wrong value";
}
Function isTrue is the future ! 😂😂😂2 -
Found this in production code.
For those who doesn’t understand Delphi:
switch (some boolean) {
case false:
// some code
default:
// some code
}8 -
Return code 200
{"success":false,"error":"Your comment couldn't be created, most likely because the comment was blank."}
Devrant, that's bollocks.11 -
A while back a buddy and I were keen on making an MMORPG that for a variety of reasons just didn't work out.
Game development is an exercise in futility unless you have a LOT of time and a LOT of willpower. Unfortunately, where the project would have taken at least both of us, only one of us was able to actually do the work. I'll leave it up to you to figure out which one of us it was :|
It sucks because it was a stellar idea, the art style was going to be amazing, and I had already began working hard on a lot of the music. My best musical work to date, just sitting private on my soundcloud, unused and collecting dust.
Listening to them now still fills me with that glimmer of hope to a degree, but it's bittersweet.3 -
Why would anyone use -1 for true and 0 for false in a database.
Booleans people!!! FFS
Making migration of old project a real PITA4 -
Just got intern to “help me” on project. Told him to install nodeJs and run ‘npm install’ inside project folder that he pulled from git.
He ended up running ‘npm install’ inside C:\Program Files (x86)\nodejs
Don’t have slightest clue how he got this idea, ... I just wanted to smash my head through window by that point. Similar shit repeated whole day long.7 -
Again found myself before deadline. My excuse? I'm more productive during the deadline rush :D
How everyone else sees it: you fucked up
What do I say to myself: never again!!!
```
sleep(until_next_deadline);
goto begining_of_this_post;
``` -
LicenseManager(){this.licensed=false;this.licenseCached=false}
change false to true
and Vysor Beta is PRO!! cracking was so simple ahahahaha OMG Fuck -
allUpperCase = true
for char in rant.message:
if !isUpperCase(char):
allUpperCase = false
if allUpperCase:
rant.category = "rant"
else:
rant.category = "!rant"6 -
just found a build in function in a certain framework.
that function has a parameter named
"fail_silently".
func(fail_silently=False)
made me laugh.
and my laugh function was like.
laugh_func(laugh_silently=False)
😆😁3 -
What the heck PHP, why does this if think it's false!?
Probably gonna feel stupid soon 😅 but this makes no sense whatsoever.12 -
I hate complicated and out of date documentation!!!
if (me == angryClickityClackity) {
headButtKeyboard = True;
}else{
headButtKeyboard = false;
}15 -
myCheckbox.isChecked = myboolean--> weirds bugs
myCheckbox.isChecked = myboolean ? true : false --> All weirds bugs fixed
\o/ Thank's Visual Studio for spending time \o/4 -
if (smart === false) {
system32.delete();
} else if (smart === true) {
system32.DEMOLISH();
}
MUAHAHAH5 -
import answer from "./knowledge.js"
const topic = 'Vue'
const rant = false
const allowDumbAnswers
const q = 'Why to use only a single Vue instance?'
allowDumbAnswers ? return : answer(q);9 -
Skynet 😎 **evil laugh**
Or at least, an AI that can detect and emulate emotions, including sarcasm. Without errors or false results 😐1 -
my C# dream:
if (Object.Property != null)
wouldn't produce an exception if the obejct is null but just equal to false5 -
To all guys who write shitty code:
if (false)
I just found that when compiling for Release mode in Visual Studio the JIT compiler eliminates this:
Dead code elimination - A statement like if (false) { /.../ } gets completely eliminated.
And a lot of other similar stuff2 -
boolean experience = false;
boolean get_a_job;
while(!experience){
get_a_job = false;
while(!get_a_job){
experience = false;
while(!experience){
get_a_job = false;
.....
«To infinity and beyond!»8 -
Bragging about knowing how to hack the company's emails definitely gets you into trouble. And then coming out clean and saying it was all a bluff still gets you into trouble. Hacking jokes in the office is same as a bomb joke in public(crowded) places.
-
Some managers think if one woman can deliver a baby in 9 months, then two can deliver a baby in 4 and a half...1
-
define myDay() {
if (time==0600) {
while (sleeping == true) {
xiaomi.miBand.vibrate();
}
}
morningCoffee = new coffee("Strong");
sleep(120); // Gotta let that cool
while (morningCoffee.state.empty == false) {
morningCoffee.drink();
}
while (time > 0630) {
putFaceOn();
}
leaveForStation();
while (train.overground.atStation() == false) devRant.scroll;
getOnTrain();
while (train.overgrond.atStation("Kenton") == false) devRany.scroll;
getOffTrain();
getBus();
while (getToUni == false) devRant.writePost.wk4;
devRant.uploadPost.wk4;
while (time > 1300) project.workHard();
while (time > 1400) lunch.obliterate();
while (time > 2100) project.meetDeadline();
walkToFlat();
goToBed();
}3 -
Today I got a message from a "friend" of @Alice and me, for a long time. And I was already ranting by myself, because this little fucker is writing maybe two or three times a year, just to have a computer support, like now. He needed help, because a game was crashing everytime at a specific point, and I advised him to reinstall the game, which he can't, because of his slow internet. His answer stated, that he would have only slow internet right now. After this I explained him, that his internet is for around 2.5 years slow. And 2.5 years aren't "right now". I'm still waiting for any reaction.
It's the same fucking guy in Alice's wk post here: https://devrant.com/rants/1564585/...3 -
Snartsheet requires checkbox values of "true" or "false"
Microsoft Flow only passes booleans as "True" and "False" so the API rejects the data.3 -
var gotGud = false;
while(!gotGud)
{
try
{
makeCode();
gotGud = true;
}
catch(AbilityException ex) { }
} -
I said and will say again (over and over) Microsoft WTF!
Set-CalendarProcessing -Identity $userUpn -AutomateProcessing AutoAccept -AllowConflicts $false -BookingType 'Standard' -BookingWindowInDays 365 -MaximumDurationInMinutes 1440 -AllowRecurringMeetings $true -EnforceSchedulingHorizon $false -ScheduleOnlyDuringWorkHours $false -ConflictPercentageAllowed 0 -MaximumConflictInstances 0 -ForwardRequestsToDelegates $true -DeleteAttachments $true -DeleteComments $true -RemovePrivateProperty $true -DeleteSubject $true -AddOrganizerToSubject $true -DeleteNonCalendarItems $true -TentativePendingApproval $true-EnableResponseDetails $true -OrganizerInfo $true -AllRequestOutOfPolicy $false -AllBookInPolicy $true -AllRequestInPolicy $true -RemoveOldMeetingMessages $true -AddNewRequestsTentatively $true -ProcessExternalMeetingMessages $false -RemoveForwardedMeetingNotifications $true
ok I "splatted" that command but yet does not look much better :-)
Oh how I miss my dear old VIm and SSH sessions can't wait to go back to where I belong!5 -
The crown definitely goes to whenever I have to deal with dates/time/calendars/timezones across platforms and/or systems... Always makes me doubt those 10+ years of experience...1
-
If(person.getState().equals("Texas")){
person.setCanDrive(false);
}
Like I was just driving to my class and so many people were driving like maniacs. So frustrating >. <3 -
True or false? You know your waiter is making a lot, and your probably being overcharged, when you see her wearing an iWatch.17
-
What do people like more?
if(condition){
return true;
} else{
return false;
}
Or just
if(condition){
return true;
}
return false;7 -
Anyone who codes like this?
if(IsThereAValue($("#txt_term").val(), true) == false)
{
}
this is too much!!! damn! complexity!!!
PS. He is my senior developer.6 -
"X ? true : false"
I love seeing these :D
Clearly a decent attempt at simplifying the code and at the same time missing the mark.13 -
More glorious gems from stupid hipster API dev:
HTTP GET api.redacted.com/referral/$id
{
"referral_id" : null // yes it was actually null
"referral_is_inactive": true,
"referral_deactivated": false,
} -
Do you prefer?
var foo = true;
if (some condition){
var foo = false;
}
Or
if (some condition){
var foo = false;
}
else{
var foo = true;
}9 -
Just a reminder guys especially who do agile(scrum). TEAMS SHOULD BE HIGHLY ALIGNED BUT LOOSELY COUPLED!5
-
CodingRoom room = new CodingRoom();
room.lights = true;
// or
room.lights = false;
// how do you like it?12 -
Function works() {
Try {
HorriblyDyingCode();
Return true;
} catch (Exception e) {
Return false;
}
} -
def haveNiceDay(){
while code.works():
if frustration == true:
game.play()
food.eat()
keepCoding()
if error.notResolved():
while giveup!= false:
screen.stare()
} -
Bad coding style:
bool condition = false;
if(condition) { /* enough whitespace so that braces appear offscreen in editor*/ }{
std::cout << "hahahahaha" << std::endl;
}6 -
Quick javascript question:
let a = .............
Make a == a always return false.
What would a be? One solution is to let a = NaN. Anything fancier? :>4 -
A videogame that I play has an achievement for getting all the achievements.
Has a developer, this just reads as an always false condition.1 -
I guess I’ll choose ok...
But seriously, come on! That’s why I love open source: if there’s that f🤬cking thing harrassing you, you can send it right in the void. 👌👈👆 -
worked the whole weekend on a presentation my boss held today. he totally messed up and gave false interpretation to every single number. karma's a bitch😁
-
spent all day finishing up a feature that i did not want to do at all and think its not the time for it...
after 5 hours of coding & debugging i finally made the PR, took the rest of the day off, felt happy i got rid of that task along with the nagging of the PM. life was good.
At 8 PM, some test i never heard of failed, my branch was the issue and it got reverted and now ill have to work on it again on Monday to fix it. fuck my life. -
self.rant = self.dev = False
I just won a debate defending mass surveillance and I hate myself.
I actually used Snowden to defend it.2 -
How to know that you need a rest?
You see a code:
```
public function scopeEnabled($q)
{
$q->where('disabled', false);
}
```
And assume that you have a serious bug...1 -
Whoever uses "status" as boolean in responses to indicate whether error happened (true) or not (false)??????!!4
-
import datetime as dt
while(True):
time_left = 24
work_hours = 8
trained_today = False
while(work_hours>0):
do_work()
listen_to_music()
browse_interesting_feeds()
work_hours -= 1
time_left -= 1
while(time_left>0):
if trained_today == False:
train()
trained_today = True
eat()
if dt.datetime.now().hour > 23:
time_left -= time_left -
if (thingYouNeed.exists == false)
developer.make(thingYouNeed,
function(err,success) {
if(!err) thingYouNeed.exists = true;
})3 -
You gotta love PHP:
<?php
$bool = true && false;
var_dump($bool); // false, that's expected
$bool = true and false;
var_dump($bool); // true, ouch!
Source: http://php.net/manual/de/...
http://php.net/manual/de/...3 -
FUCK YOU hash_hmac and your stupid fucking $raw_output = false default...UGHHHHHHHHHHHHHHHH
http://php.net/manual/en/...4 -
TypeScript! Why you default compiler option "pretty" to false!? Why would anyone want this as false? This is such an amazing feature disabled out of the box! GNARF!
I USED TO GREP FOR ERROR TO GET ERROR HIGHLIGHTING!
:/ -
"Please ad this feature to the tool" spend the next 30 mins removing the comparisons from ugly (something == true) and (somethingElse == false) statements.
-
AV heuristics toggle alarms on a program I created. I did not know that I integrated some virus features. Lovely.1
-
|----------------------------------------------------|
| FALSE(1) User Commands |
| |
| NAME |
| false - do nothing, unsuccessfully |
|----------------------------------------------------|
My daily activity summed up in a linux command man page. -
if($scope.soup && $scope.checkout.broken){
$scope.fixCheckout()
};
$scope.fixCheckout = function() {
$scope.accrueTechnicalDebt = true;
$scope.writeDisgustingCode = true;
$scope.feelsGood = false;
$scope.maintainable = false;
}; -
Problems with Dynamic typing (eyyy JS)
0 < undefined // false
0 == undefined // false
0 > undefined // false6 -
if (in_array($needle, $haystack)){
return true;
}else{
return false;
}
# yeah, I did it.... wtf brain!!1 -
int totalHourSpentOnFixingBootflags = 5;
while (!isWorking) {
Clover.flags = "-x -v -s -f nv_disable=1 injectNvidia=false ncpi=0x2000 cpus=1 dart=0 -no-zp maxmem=4096" + Internet.getRandomBootFlags();
}1 -
<?php
die(eval("printf('Is PHP bad for your mental health and should you choose something simpler? %s',2000 == '2e3bf55c7e4dd7ef7bc5b1bf05fcf786' ? 'true' : 'false');"));2 -
Foreach (DevrantUser user in devRantUsers)
{
Bool hundredPlusPlus = false;
While (user.hundredPlusPlus == false)
{
Rant myRant = new Rant(awesomeness);
user.postRant(myRant);
If(myRant.plusPlus >= 100)
hundredPlusPlus = true;
}
}3 -
At work we use a custom python library to parse XML responses from an internal API to objects. I literally spent half an hour pondering why an if statement was misbehaving. Turns out it parsed <tag>false<\tag> as obj.tag = 'false' instead of the boolean False which obviously made "if obj.tag:" misbehave 😒
-
Got a new notebook for work, got all Projects from tfs and it's like every single project I want to build has false references
-
{
while(time_to_exams > 0){
me.shouldBeLearning(true);
time_to_exams--;
}
public void shouldBeLearning(boolean bool){
if(bool){
should_be_learning = false;
waste_time_on_DevRant = true;
} else {
waste_time_on_DevRant = true;
}
}
} -
Why tf does Bitbucket always fuck up commits after 3am........
190 file changes happened - only one was commited....11 -
$TheForce = 'Impostor Syndrome';
$incompetent = true;
while ($incompetent) {
echo <<<EOT
I am one with $TheForce. $TheForce is with me.
EOT;
if(get_training($result) > 9000) $incompetent = false;
} -
Where to start, maybe from string.
Empty string conditions and string comparison.
if “”: - python
“” == false - javascript
.equals() - java1 -
Microsoft? what a fucking joke
I do /remotelogout in skype. Next thing you know you can’t relogin with skype for WP. It says “*login successful, but we can’t log you in right now*”. Peace of shit.
On Android works with no problems, I wonder why WP has 0,00000000NULL% market share. -
Q) 0 is false and !=0 is true.right??
A) 1,2,3,4.........................................................................................................................∞ -
var rant=false;
var question=true;
Question to devrant game developers is it possible to make complex 3D PC game using javascript?9 -
Why do you fucking retards make the tinyint column nullable AGAIN and use 'null' as false instead of setting fucking false!
-
Legacy code in java :
boolean recursiveMethod(args){
Int i= 0;
Boolean doublon = false;
For(--whatever the loop--){
If(condition1 && condition2){
If(i++ > 0){
doublon=true;
Return doublon;
}
}
}
[...]
}5 -
TypeScript has two levels of private values (at least in the beta):
private foo = false; // Cannot be accessed outside the object in TypeScript
#bar = false; // cannot be accessed outside the object in both TypeScript and JavaScript.2 -
If (method-exists (devrant->rantAboutBreakingUpWithGirlfriend ()){
Echo "This seriously sucks %#$@£¥";
}else {
Return false;
} -
Unique error message layouts on my college's site thus far?: 2
Time since entering site?: 30 minutes
Trying?: False
https://imgur.com/a/3sbJgep