From a bit of code I found lurking deep in an accounting software package one company I worked for wrote: void Foo(BOOL *flag) { if (null == flag) { ... } else if (TRUE == *flag) { ... } else if (FALSE == *flag) { ... } else if (TRUE + TRUE == *flag) { ... } else { ... } } Ah yes, the five Boolean values, null, false, true, really true, and "something else".
@@DasIllu Oh yes. But not as much as some. I worked mainly with financial software or systems level components. Floats and doubles weren't much used. Either not necessary or not precise enough. Not even decimal was that useful as we usually needed metadata to go with the number. What was the date of the transaction, what was the originating currency, etc. Multicurrency is a bugger.
@@tomaspecl1082 he (probably, i cant read peoples minds) talking about variable having NaN stored even tho it shouldnt turn NaN in any possible situation, it happens sometimes if there is a bug in your code, if you dont add "else" that tells you that this value has some shit instead of real data inside it then if value recieves NaN or any other unintended data you gonna agonise in debugging for half a day trying to figure out why the heck this code doesent work(well this can happen even with this "else" statment, just less likely)
That 265 line one hit hard.. I spent 3 hours trying to figure out that exact issue, only to realize that my cat had run across my keyboard and put a quote and semicolon all the way at the end of the line that wasn't visible because word wrap was not turned on...... FML...
11:55 My first programming job, we were using a mini computer that apparently had a bad memory location. The only way to get my program to run was to get the compiler to do nothing in that memory location. No, our team could not replace the machine or get it repaired.
1:29 explanation - it's [probably] NOT the empathy that he means here [, unless he does], but the fact that you will start seeing bugs and floppiness everywhere, even when things look perfectly normal for other users. It will become egregious to the point that complaining will simply make no more sense. You can complain, if you see a bug or glitch from time to time, but if "everything is bugged or glitchy", then complaining stops being worth the effort 🤣🤣
I remember my first arguement with a computer, well technically it was the software that I was arguing with. The software was whining, ' I can't do that, I don't know how' and I said, ' You're going to do it, and you're going to like it' You have to let the little critters know who's in charge. That particular piece of software and i had many late-night conversations like this and my wife typically went somewhere safe to hide.
@@Beregorn88 on so many levels .. and the end function omg returns False if True equals True and True if True is not True .. and why this implementation? rly a function that tests if True is False, it will retun True for any value other than 1 if u want to check bit 1 it faar better ways .. if u want to invert a bit, several bits, or all bits thers also not how to do it
@@Patrik6920 We outsourced some simple Unity C# code to a freelance last year... 2 months later, still nothing is working, so we took back the code to do it internally, I literally saw this kind of code with a boolean tested with true THEN with false to return... a boolean... Obviously we didn't keep any of his "senior developer/unity expert" code... (Because yes, how many noob with many cheap level programming announce themselves as "experts"...)
"Why programmer using double bed?"
Extra precision.
Off by one error.
Big brains have big bodies.
From a bit of code I found lurking deep in an accounting software package one company I worked for wrote:
void Foo(BOOL *flag) {
if (null == flag) { ... }
else if (TRUE == *flag) { ... }
else if (FALSE == *flag) { ... }
else if (TRUE + TRUE == *flag) { ... }
else { ... }
}
Ah yes, the five Boolean values, null, false, true, really true, and "something else".
Ah i see, you also have tasted the %NaN-Bread at some point i assume :D
@@DasIllu Oh yes. But not as much as some. I worked mainly with financial software or systems level components. Floats and doubles weren't much used. Either not necessary or not precise enough. Not even decimal was that useful as we usually needed metadata to go with the number. What was the date of the transaction, what was the originating currency, etc. Multicurrency is a bugger.
@@DasIlluwhat is NaN bread? I know what NaN is.
@@tomaspecl1082 a play on words with Naan.
@@tomaspecl1082 he (probably, i cant read peoples minds) talking about variable having NaN stored even tho it shouldnt turn NaN in any possible situation, it happens sometimes if there is a bug in your code, if you dont add "else" that tells you that this value has some shit instead of real data inside it then if value recieves NaN or any other unintended data you gonna agonise in debugging for half a day trying to figure out why the heck this code doesent work(well this can happen even with this "else" statment, just less likely)
That 265 line one hit hard..
I spent 3 hours trying to figure out that exact issue, only to realize that my cat had run across my keyboard and put a quote and semicolon all the way at the end of the line that wasn't visible because word wrap was not turned on......
FML...
Also seen that because there is an error in the preceding {...}; block... It was missing a «;» about 50 lines up.
1:33 Become a software tester and be unable to not see the bugs and problems in a video game ever again.
In the slide 'Find the programmer' I couldn't do that, but I did spot the DBA.
I learned to code and still complain about bugs not being fixed.
The git one is so true. Oh, I can find the programmer, I can also find the Ui designer
11:55 My first programming job, we were using a mini computer that apparently had a bad memory location. The only way to get my program to run was to get the compiler to do nothing in that memory location.
No, our team could not replace the machine or get it repaired.
1:29 explanation - it's [probably] NOT the empathy that he means here [, unless he does], but the fact that you will start seeing bugs and floppiness everywhere, even when things look perfectly normal for other users. It will become egregious to the point that complaining will simply make no more sense. You can complain, if you see a bug or glitch from time to time, but if "everything is bugged or glitchy", then complaining stops being worth the effort 🤣🤣
9:02 C++ or java, just as they communicate in japanese
JavaScript or Java
5:00 is the best so far. The first task of the developer is to explain to the customer what he wants.
So true that it hurts.
I remember my first arguement with a computer, well technically it was the software that I was arguing with. The software was whining, ' I can't do that, I don't know how' and I said, ' You're going to do it, and you're going to like it' You have to let the little critters know who's in charge. That particular piece of software and i had many late-night conversations like this and my wife typically went somewhere safe to hide.
8:57 ah yes, the code that my unemployed friend does on tuesday
5:04 lmao this is so true holy shit.
In the picture: smartest thing is readme.mp4
In reality: cat readme.mp4
We extracting coffey to byte code
9:47 This is literally me
4:46 It's rare, but it happens A LOT.
1:42 change that to Corporate and Dev and you have the AAA game industry 2024
3:52 always log out of friends or go into offline mode you fool!
5:04 Heck, yeah!
9:48 GET OUT OF MY HEAD
9:50 doesn't everyone?
12:03 .. aw that physically hurt...
Yep. Like, WHY?!
@@Beregorn88 on so many levels
.. and the end function omg
returns False if True equals True
and True if True is not True
.. and why this implementation?
rly a function that tests if True is False,
it will retun True for any value other than 1
if u want to check bit 1 it faar better ways ..
if u want to invert a bit, several bits, or all bits thers also not how to do it
@@Patrik6920 We outsourced some simple Unity C# code to a freelance last year... 2 months later, still nothing is working, so we took back the code to do it internally, I literally saw this kind of code with a boolean tested with true THEN with false to return... a boolean...
Obviously we didn't keep any of his "senior developer/unity expert" code...
(Because yes, how many noob with many cheap level programming announce themselves as "experts"...)
@@Patrik6920 Note that the "IsEven()" example at some point was also pure noob code.
@@garryiglesias4074 ya lol ... its a one bit test..
but ya u run into functions/code every once in awhile that make u question humanity lol ...
10:50 In the era of the webmasters it is like that...
7:30 yeah , why do they? They are single , i mean they don't have roomates ,
Don't even think about programmer having a partner
PTO anyone?
never heard of it. Nope.
At 11:57, unbelievable and yet, believable.
2:25 why VS forgetting code?
I think you meant , Learning code versus forgetting code
7:35 every time.
3:48 i can't understand...
She is at home , but NOT working
@midoevil7 okay! That was a little tricky to understand