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 - "is it true?"
-
CTO: I heard about this great architecture of microservices. What is it exactly?
Me: it's building many servers with one responsbility each.
CTO: That sound good. But let keep it simple and build only one big microservice.
Me: 😲
(True story from a comapny a worked for)8 -
My first post on devRant. Hope you like it (is a true story)
User : Hey, can you help me with this thumbdrive? Cannot open it
Me: Sure, let me see...
At this time I noticed that the drive was leaking something and smells funny also...
Me: Did you dropped it into water or something liquid?
User: Ehmm. Yes! Washed it with bleach!
Me: But why?
User : Oh! because of viruses.8 -
I don't know why @dfox , @trogus didn't want a username with underscore and I'm sure they must be having some valid reason for it. But how in fuck did this user have the guts to rate the app 1 star simply because it doesn't have a login with fb feature? I mean you can request for a feature but it's dumb of you to rate 1 star because it doesn't have a feature you want. This is true for any app not only devRant.
Source : One of the user reviews of devRant on the play store.54 -
Oh the project is almost finished?
Here's another feature the client requires before it can be released.
Me: Okay this will take another 2 weeks to implement. Is the client happy with that time frame?
PM: You have 3 days and there's no test time, so test as you go.
Me: .....*quits*
True story, was the last straw.6 -
After months of agonizing work I found out my team mate deleted my code cause they thought it was useless. Then they come back and ask if I KNOW WHERE THE BUG IS. I now realize how true this is.3
-
So my cousin approaches me with his Android phone and, with a worried tone, says:
- "But... is it true that if you enable the developer mode you can get arrested?"
- "What? No. Why?"
- "Because this screen says so. I once enabled them out of curiosity but then I couldn't disable it so I had to reset the phone."
Turns out that, in Italian, "arrest" is a synonym of "halt". The message says "these settings can cause the _arrest_ or malfunctioning of the device"
Couldn't stop laughing 😂18 -
Found this code back in jQuery 1.9.1. Checked again, and t is still here in jQuery 3.1.0. Suppose it is just in case the values of true and false ever change 😃11
-
Is it just me or am I the only one who gets pissed if someone checks the expected result of a variable first?
For example:
if(true === $var)
Instead of:
if($var === true)19 -
Me: code quality is important
Everyone: <no shit given>
Director: code quality is important
Everyone: yes, it is very important, hurray!
Fast forward few weeks/months...
Me: why this function accepts 14 arguments?
ShitDev: yhm, you know, we need to fix it... maybe
Me: why this exception is swallowed?
ShitDev: oh, really? yhm, yhm
Me: why this function is copy-pasted and repeated (20 LoCs)?
ShitDev: yeah, true, but we wanted to make it fast.
Me: Dear director, this project sux and its quality is shit.
Director: you're exaggerating, it can't be that bad, it works, right?
Me: <polishing CV>
ShitDev: got praised for delivery14 -
Got assigned to fix a bug in a validation function that would always return true even if the data is invalid.
I looked at the code from the function and noticed that the only line of code in the function was "return true;"
Apparently, the programmer who wrote this function a few years ago got fired and no one ever finished his work.
Now it amazes me that no one ever has looked at the problem and just assumed it would be a complicated bug.7 -
This is a true story
I am a freelance developer, i recently had this conversation with my client:
Client: Add multi language option to my website
Me: Ok, I need for it 3-5 days
Client: Why?
Me: I need to create multi language system, this
website is built from scratch without using any
framework
Client: No need to built it, Just enabled it i need it fast
Me: Sir there is no such thing to enable features that
does not exit
Client: Listen me, I need this feature today, enable it
and we are done.
Me: Thats not how it works..
Client: I know how it works, i have hacking certificate15 -
This is not a joke. This is not something I wrote to be funny. This is not found randomly off the internet. This is a real part of the project I inherited: a function that not only is more cumbersome to use than the simple <Array>.contains that it wraps, but rather than returning the boolean result from the function, sends it through an if statement and returns hardcoded true and false values for... Good luck? I guess?47
-
GUYS WE HAVE BEEN WRITING FOR LOOPS IN JAVA WRONG THE WHOLE TIME. Here is how it should be done correctly...
int i = 0;
for(;(i<10) ? true : false;)
{
i++;
System.out.println(i);
}
Jokes aside though does anyone have any more horrid ways to write this?20 -
Great news, our company's has a brand new security-first product, with an easy to use API and a beautiful web interface.
It is SQL-injection-enabled, XSS-compatible, logins are optional (if you do not provide a password, you are logged in as admin).
The json-api has custom-date formats, bools are any of "1", "0", 1, 0, false or null (but never true). Numbers are strings or numbers. Utf-8 is not supported. Most of our customers use special characters.
The web interface is using plain bootstrap, and because of XSS it is really easy to customize everything.
How the hell this product got launched is beyond me.10 -
Hold on, is it true that when you select something in windows (not sure about macos), go to any other program (and to an input box thingy) and press the middle mouse button, the selected text doesn't get placed there?!
Is that just a Linux (and possibly macos?) feature?!
I couldn't go without it 😍16 -
So my husband and best friend are arguing that I get upvotes just because I got boobs. Is it true?34
-
This has to be the funniest IT fail ever. https://m.reddit.com/r/...
Found it in a comment somewhere on devrant (i forgot who posted originally, but this is me giving credit)9 -
A roommate said he didnt have internet on his laptop. Wifi wasnt working for him and the cable doesnt fit because he has a new ethernet port and needs another cable for that.
I told him that there is no new ethernet port or new ethernet port standard, I would have heard about it.
But he insisted that it was true.
So I grabbed the ethernet cable, pulled the clamp on his ethernet port down (as most new laptops now have) and plugged the cable in.3 -
How stackoverflow works(for me):
- First some guru will downvote it & someone comments saying it is duplicate/easy/stupid/should be somewhere else.
- Then a very generous person comes in, says its a valid question, answers & upvotes it.
- After few hours/days, other people come looking for the same question & then they upvote it.
This is called a true happy ending.4 -
*wiggles the mouse on my Windows box to activate it again and watch some videos while eating*
Le wild BSOD appears!!
Windows used KERNEL_SECURITY_CHECK_FAILURE!!! It's super effective!
Hah! Well, you know.. it's fucking true. Windows' kernel security is a fucking joke.
First time that I actually laughed at a BSOD like this. Thanks Microshit!14 -
My apparently my friend's wife gets suspicious whenever his Snapchat goes off after 10pm, always wants to know who it is.
"It's [algo], it's always him sending me pics of his code late at night. That's is the only person that Snapchat me this late"
And it's true.6 -
I see this is true.
I am learning software development I understand what the code does but the most difficult part is to think and think and think what code to implement and how you're going to code it to make the program work.6 -
theNox.age++
I wanted to screenshot some of the birthday wishes that were printed for me on the discord server early this morning but they're spread too much, thanks anyway! That was very cute of you all. Only people from devRant actually bothered to wish me a Happy Birthday this early (maybe I influenced it a little bit ... 😂) But it's true
Everyone remember that ThatDude's Birthday is on January 28th 😉16 -
> replaces HDD with SSD in weak-ass laptop, powers it on
> "wow, this is really fast, pretty cool"
> powers on ultrapowerful HDD based desktop pc
> AURGH WHY DOES IT TAKE MORE THAN 0.01 SECONDS TO OPEN THE FILE EXPLORER I CAN'T LIVE WITH THIS SHIT GO FUCK YOURSELF YOU USELESS PILE OF CRAP
> goes back to weak-ass laptop
> contentment
'tis true, once you experience the glory of SSDs you can't go back to HDD based systems.6 -
To any fellow Linux sysadmin out there, is it true that 32 bits systems can handle a max of 16gb ram?
Running a 32 bits CentOS live disc in my dedi which shows 16gb ram available while the BIOS shows 32gb installed...
😅12 -
Today the lead developer and I where loling and wtfing hard to the following code:
if ($looked_column == true)
{
$trunca = 1;
}
else
{
$trunca = 1;
}
Mind you, we had no clue why he named the variable $trunca, and even then it had been set at the top of the file as 1 to begin with....was never used up to this line and $looked_column had also a set to true.
This is why a lot of people give php a bad reputation. This right here is why people make fun of php......15 -
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 -
My previous manager always complained about the programmer that used to be there before me was utterly incompetent and unable to work.
One day checking a legacy app that needed a minor update I was looking at the code and said: “It is true the previous programmer didn’t even know how to put together 2 lines of code, this is literally the shittiest thing I have ever seen, thank God he is not around anymore!”
…
Manager: “Actually I wrote this myself”
…
…5 -
Someone gave me a web method that return a boolean.
The Boolean tells me if the operation went well.
True means everything went well
False means something went wrong
But
It throws exception when something went wrong.
Basically they implemented a Boolean system to check if everything is alright but I also have to add a try/catch if something is not right.9 -
i once had a manager that would fuss at every little detail.
front end had to be pixel perfect on every freaking device he could find and the backend being over documented that one liners needed a bloody comment.
//is it true?
if( true ) {
}
anything needing more then 5-10 minutes to work out required several meetings to discuss every tiny aspect in detail.
drove me insane and glad i left!2 -
Is it just me or does this shirt make no sense? If your coffee was empty, then it would return true and you would keep coding. If it was not empty you would fill it.
Plus it's not a while loop, so unless this is some sort of recursion you wouldn't keep going....4 -
so... i'll probably be joining my first job in 17 days.
My profile is *supposed to be* devops engineer (not that i know much about it, they just felt i was better suited for it than java programming (and i do agree)), although, apparently, the offer letter states java engineer and i talked to them about it, they said that it's a standard template but u are chosen for devops only. i hope that is true.
mostly i feel really upset that college will be over, but i am kinda excited about the job too.
wish me luck guys 😅😅😅13 -
Is it true that the seo guys get more ++ because they know how to tag the post in a manner that keeps it on top in algo list?4
-
*based on a true story*
Co-worker: Let's release it
Me: Wait, I want to add just a little feature
Co-worker: Is it necessary?
Me: Trust me
*5 minutes later*
Co-worker: So, have you finished implementing your "little feature"?
Me: Yeah, well, it's done. Maybe.
Co-worker: What the hell have you done?
Me: MAYBE I've added 647 lines of codes to the file to implement my little feature, MAYBE it doesn't works and MAYBE the entire project is compromised
Co-worker: ah3 -
Nightmare came true..
Stackoverflow down..
I am not able to access it...
Checking if it's really down or VPN issues..
Update: VPN is not an issue. It's down.6 -
when you are a 19yo trying to build a portfolio and you have a mother bashing everyday that you only spend time "at the computer" and I should get "a real job" and that "your dream will never come true" really is the biggest disappointment of my dev life.
It just builds pressure and sads me. She doesn't support me cuz I'm not "doing any money".
I feel like I should just quit everything or even disappear from this shitrock that is called earth....19 -
Dev slang
Me: Hey “Schatz” (german equivalent to “treasure”, “sweety”)
Schatz: Yes?
M: What R U doing?
S: Working on my page
M: Oh C (C for “Sí”, what is “Yes” in spanish)
S: && U?
M: null (nothing)
* several Simpsons memes later *
S: Schatzy (female schatz, me), (Want to go to Amy Winehouse tributte) == true
M: !C
S: Why?
M: Cuz I !like it
S: oh, && you.want2Go2TheCinema == true
M: !false
S: True ^_^
M: When?
S: I !know, Tomorrow at !morning?
M: !not cool
S: !hate you
M: Me !neither
Note: Schatz it’s also a dev (Php dev)
What do you think? Should we all promote a “developer slang”? Which phrases would you like to add?5 -
I saw an article about being able to set your phone to silent with your Google Home device. "Wow that's cool. Hey Google! Set my phone to silent."
Forgets about it.
This morning I noticed I was getting messages on Snapchat, but not getting any notifications.
"Snapchat is a piece of fucking garbage." (Still a true statement lol)
Half an hour later, I remember I set DND on and never turned it off.
Just here to say that I am a fucking moron.
I'm Stux and thanks for coming to my TED talk.4 -
Swear to god if people don't stop calling the new RTX cards true ray tracing I'm going to ring their necks...
It is far from true ray tracing, it's a hybrid with ray trace base technology... Pls stop5 -
So I just got asked this question.
"Is it true that Windows only has up to 10? Isn't Windows 13 already out?"5 -
Well, it finally happened.
After 25 years coding in all types of languages and environments, I’m no longer having fun.
It now seems like it’s a fight to get interested in the code. I used to be something that I would spend hours / days doing. Now I just want to walk away from the code.
Is it true (do you think) that after a while all you see is a for loop, an if statement, a null check and you just think to yourself. Fuck this! Because I think I’m there.
God it’s depressing to think that I no longer find it fun.4 -
This rings true even if the customer is internal. Built a feature and provided documentation on how to use it and one of the end users still used it wrong.
It was a simple validation process too. Input the member ID then click validate, the app then checks if the person is in the system and fills in some other fields and does some other backend stuff. How could you get that wrong?! 🤔7 -
Am I the only one?
Do {
I want to know EVERY FUCKN SKILL A DEV CAN POSSIBLYHAVE, but I want to know it all NOW..
googling 30 times for tutorials and posts about a topic,
opening 30 tabs,
then spending around 30 seconds on each one ...
Trying 1-2 tutorials,
not understanding why I dont get this shit...
this is stupid
loosing interest in 3..2..1...
Aaand let's try and learn this new skill..
} while(true)
Welp5 -
Person: "What is bool?"
Me: "Boolean, true or false."
Person: "But why is it called that?"
Me: ...
Brother: "Because it's based on boolean algebra. Made by George Boole."
https://en.m.wikipedia.org/wiki/...7 -
Today in IT class our teacher said: 'you can only use char and int in a switch statement'
I was confused because I was 100% sure that you could also use string and so when I got out of school I immediately looked it up.
It is true, well it was true until 2011 when Java 7 was released which added the possibility to also use the string data type in switch statements.
In this I see a huge problem with the education system. Teachers (almost) never 'update' their knowledge and then teach outdated stuff to their pupils. While this may not be a problem in some subjects, it definitely is a huge problem in IT.
The development world is always evolving but if the teachers don't follow along the pupils get taught outdated stuff which, in my opinion, is a really big problem when they finish school and go out in the world to find jobs.9 -
While getting a pro in Kotlin, I started using
when(condition) {
true -> doOneThing()
false -> {
xyz = whatEver()
blaBla()
}
}
instead of simple if-else.
It looks nice but also distracting.
What is your opinion on that?
I guess most will be like:6 -
Me: there it is, app is complete and work correctly
Friend: What is this 5 warnings?
Me: It's nothing just ignore them
Friend: If you are a true developer fix these warnings
Me: (after 5 hours) compile..... 14 Error, 😡 fuck you I want my warnings back3 -
My Project Manager to me, after attending his first ever Hackathon of life
PM : Did you see, how people create a full project in a day,
So it is POSSIBLE and here you always complain about the deadlines
Me : Yeah true :|
Of Course it is possible to create a well documented, bugs free, features enriched, stable and properly structured project in a day
My Bad :/1 -
FUCK, I just realized something..
A lot of people are probably aware of the statement "Respect is earned, not demanded/given".
Now, if you are aware of the meme "Press F to *pay respect*", you probably know where this goes.
The statements "pay respect" and "respect is earned" are actually connected. Just like money, you pay money to people who deserve it. You work hard for it.
But if this is true, is "attention" also earned? I often hear "Please pay attention" from my teachers back then.
This is some big brain shit right here8 -
Expert: "The core problem with passwords is that they reside on a server."
I suppose that's true, but only if you're a complete moron. Store a hash of a password, and users can authenticate against it with a password that doesn't get logged. This is technology that's been around for over fifty years. If you're storing passwords on a server, you deserve whatever trouble you get.6 -
Today i found variable called "booleanValue". So it IS true, that there are two hard things in computer science: cache invalidation and naming things...3
-
Now this is true. Devrant changed me and now, after one of the devranters post I'm finally searching for a new job. Most of the time I was using PHP, but here I've seen lot of rants about laravel. Now I'm building a website with it and going to change my job. Thank you Devrant creators and community.3
-
our tester arguing with software house about blocker severity bug
SH: "No, this bug is not possible. It's possible only when you are logged as admin in other tab"
T: "I managed to replicate it in another browser in private mode"
SH: "But you can't replicate the bug now"
T: "True that I don't know steps to replicate it and it occurs just sometimes... Let me check right now"
...
T: "Okay, I managed to replicate it right now in private mode in other browser on normal user account"
SH: "Because you are admin"
They are pretending to be idiots or just are?6 -
So there is a WP plugin for GDPR conformity. True to form of the shitty WP plugin ecosystem, it has a major security hole that allows taking over the WP installation:
https://wordfence.com/blog/2018/...4 -
This is so true. I agree no one will slow down and put in the effort to make lasting stuff or it is rare.
"It Just Seems That Nobody is Interested in Building Quality, Fast, Efficient, Lasting, Foundational Stuff Anymore"
--Nikita Prokopov
Article from Slashdot:
https://m.slashdot.org/story/3461603 -
Casual chat with a girl in Facebook.
Me : Hey, What are u doing these days?
She : I'm completed a IT course.
Me : hmm... Interesting, What are the languages you have learnt at the IT course.
She : I learned English
Me : (Close the Chat,
Blocked her,
Shuts down the PC)
(Yes, Yes, This is a true story.)4 -
True story
Was free at work so applied for a stretch project.
PM: you know mobile dev?
Me: yes, built a few apps
PM: good, we have an old app we want you to take the JAR change everything but the look of it and make it a new hybrid app with the required features.
Me: *kill me please*
PM: and use WordPress as the server.
Me: ...........
Accepted the challenge. Did the entire app in ionic and build a server for it with SpringBoot. Client loves it PM is still doesn't know😂2 -
3 hours...
3 damn hours for 200 lines of bash code.
Exorcism, Magic I don't care.... But please make a special person never touching bash programming again.
I ripped my hairs out. Really.
Till I realized someone wrote functions with _logical_ return true codes as numbers.
0 - as logical false, for failure
1 - as logical true, for success
Leading my brain into a severe segfault fun.
Why... Oh why.
Second fun part as I corrected that...
Someone wasn't fond of exit codes at all.
Script is now 86 % rewritten....
God damn it, if you don't like a languages fine.
But inverting core logic should give a free trip to the electrical chair.1 -
Disclaimer: I apologise in advance for those tired of language wars, if it bugs you that much just skip this rant.
"C++ is better than C"
An accepted truth. OO is better than Procedural, C++ is an upgrade from C, it fixed all the problems.
End of.
Except - when it comes to actual evidence, empirical studies have shown that there are no productivity gains with C++ vs C.
This bugs me the most because it's such a fringe view, OO has dominated industry purely by dogma, alternative programming paradigms are just simply ignored because: "OO is best. End of."
https://researchgate.net/profile/...22 -
Ohh you study something about computers!!
Here's an old Nokia phone and it doesn't have Internet on it, can you make it have Internet?
This is a true story. :(1 -
I found it yesterday that 6 and null is false and 4 is true in our database in addition to a previous rant. I went to see how it's stored. I assumed it was an integer.
It was a nvarchar(6). I just sat there in disbelief and felt disgusted.
It kept me up later than usual last night
Why tho? 😐1 -
I’m in a big company now. We have all the resources in the world. We promote best practice. We don’t even seem to have deadlines. We mob on everything so that we get the benefit of all our experience combined.
So if all that is true, why in gods name does the first class I open have shed loads of hard coded settings, IP addresses and GUIDs in it?
FML. How did I end up working in this shit.9 -
trs()
For those of you desiring to post non-rants, I wrote a handy utility function for you:
/*
* Toggles whether this post is
* a rant or not.
*/
function toggleRant()
{
// Check if toggling is safe
for(var i = 0; i < 999999999; i ++)
for(var t = 0; t < 999999999; t ++);
console.log("Crazy security checks came through.")
// Toggle ('isRant' is true by default)
isRant = !isRant
}
From now on, you can easily put 'toggleRant()' on the first line of any rant. As we all know, the 'isRant' on devRant is true by default.
Feel free to play around with it:
toggleRant()
toggleRant()
toggleRant()
This would also indicate that your "rant" is not a rant.
I've also wrapped the 'toggleRant' into another function with a shorter name for you lazy people (which most programmers are):
/*
* Wrapper for 'toggleRant'.
*/
function tr()
{
toggleRant()
trogus() // Just in case
}
Or if you type one additional letter, you also make sure that it's extra safe to call the function:
/*
* Extra safe version of 'tr'.
*/
function trs()
{
for(var i = 0; i < 746985768; i ++);
console.log ("Extra safe")
tr()
}2 -
I realize that in interviews I can fake confidence to such high levels I thought would never be possible for me.
I keep impressing myself with every interview lol.
The saying "Fake it until you make it" is kinda true. It works for me haha3 -
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 -
Fuck everything about Microsoft Dynamics. I'm supposed to use the REST API to make a web front-end. I notice all of the data comes back codified.
null == 0.
boolean true == 100000000
boolean false == 100000001
except sometimes when
boolean false == 100000000
boolean true == 100000001
or other times
string "Yes" == 100000000
string "No" == 100000001
string "Maybe" == 100000003
Hang on. Is the system representing a 1 bit value with base 10 numbers? Did the client set this up like this? Holy crap every number corresponds to a unique record in a table somewhere. That means it only returns numeric values instead of strings and I have to figure out what the number means in the context of the table.
A "key" is user typed? So every time someone starts to make a new record it saves a new "key" without a record? So I can pull a bunch of "0" records if I pull sequentially? So basically I need to see all of the data in Dynamics to have any context at all for what is returned from the Dynamics API? Fuuuuuuuuuu10 -
My boss asked me two days ago to fix some errors in an application. From the errors I saw it would be a 5 minute fix. I fixed the problems just now because there was no documentation on how to set it up.
After setting it up it was just changing a value from true to false...
I ruined two days just because there was no documentation. Please everyone, I know writing documentation is boring but at least write some documentation on how to setup a project.3 -
Well, I got it. The new job that is so from December first I really am a C# developer :)
We just have to agree on the salary. I will at least get more then I have now (as support technician) and well it's kinda a dream come true.2 -
Biggest regret is not what I have done, but what I haven't. A long long time ago, in the early 90s, I had a great idea for a game, but somehow I never made it come true. A few years later, Maxis launched a game very similar to my idea, and it was called The Sims.4
-
I find it weird that for C floats, -0<+0 is not true. Had to write a little bit of extra code to enforce this.
-0 could represent an incrementally small number below zero but greater than the next lower quantisation level.4 -
Star Citizen.
I have never ever been so excited about a game. It is like a childhood dream coming true.20 -
🪙 The golden age of tech is coming to an end. We currently live in a world of tech built by engineers and great minds; both Windows and Linux are great in their own ways. PCs are the peak of engineering, both desktops and laptops because of how versatile, powerful and universal they are. They serve engineers, designers and end users. You can do anything you can imagine; because the great people who built it, did it in such way that they themselves could use and enjoy it.
📱 The tech of the future will become ever more limited. The next generation of humans will use Chrome OS gladly and not even feel limited because they never experienced the freedom provided by a true personal computer device. Android OS is already getting ever closer to restricting 3rd party APK installers. Big tech will do everything they can to limit freedoms and make everyone use cloud, where they can charge $ for every damn click.
☎️The consumer-facing tech will become increasingly dumbed-down over time. The programmers and engineers will be still able to use "true" tech, but only for work. In everyday life, they will have to be content with the dumb limited tech.
And there is nothing we can do to stop it.9 -
guide to programing success
step 1: check if you are being productive.
if the answer is false have some coffee
if it is true have some coffee
step 2: repeat6 -
PM asked me to make the code deeper, here's the new load script:
//Someone is born (init script and load deps, also run it)
$life = new begin_life();
//magic happens (generate random token)
$life->Living = openssl_random_pseudo_bytes(rand(), TRUE);
//We end it all
$life->die();3 -
It is true what they say; Designers are from Omicron Persei 7, Developers are from Omicron Persei 9.2
-
There are comments in prod code which say "need to change after POC" or something similar in multiple places.
Also, something that was designed to check something, but the call is made in such a way that it always returns true.
Best part, all the original authors left the company before I joined this team.1 -
Common misconception is that low efficiency technologies (react native, in this case) are completely useless. That is not true at all. Im building a smart home, and yes i want a mobile app, but 90% is just requests to endpoints, so its way simpler to just copy paste some buttons inside a js file than do it properly with native. Would i use it in prod? Fuck no. Would i hack together a bunch of buttons? Fuck yes.8
-
This is true incident.
I fried the motherboard of my new Windows 10 Home ASUS UX303UA laptop having 8 fucking gigs of RAM and 1TB HDD with dedicated Nvidia Graphics Card and video memory by just trying to repeat what I love to do which is :
Install and play Crysis on EA Origin paid channel
And
Install and program on Linux VM using Virtualbox
And
Listen to music
I am so fucking scared now that I am not going to repeat it again.
I fuck the fear of using such machines.21 -
Wow, great read for anyone that's interested.
https://linkedin.com/pulse/...
For example, this snippet is very true and I guess a lot of use know it. (It's how I became a programmer).1 -
Who else can relate to being in this guy's shoes? This is so funny because it was so true at my last job.
https://youtu.be/BKorP55Aqvg5 -
Is it wrong to expect some widespread documentation from a $350 billion company to properly document a key part of their upgrade path for a new SDK version? beware any Android devs upgrading from API 3.X to 4.X on the Facebook SDK.......you'll want FacebookSdk.setLegacyTokenUpgradeSupported(true); before your call to initialize.....
-
This is the most wtf thing that happened me with Javascript, I had a regular expression and it caused bugs only with 4 digits long words, then I just noticed this:
/^.{3}$/.test(null) // false
/^.{4}$/.test(null) // true
What the fuck, I can't believe that who designed the .test method didn't think to avoid null coercion2 -
Came across a method in the code base that returns a boolean.
It uses a ternary operator which returns true if the result is true and false.. you guessed it... if the result is false.
WHY NOT JUST RETURN THE FUCKING RESULT!!!
What. The. F#%#....2 -
what is the else there for, it reminds me of all the times I saw shit like
if(variable == true){
}else{
doSomething();
}8 -
I'm sure it's repost, and I don't know who to credit for this (my fiancé sent it to me), but this is so true ->4
-
I have a cheap crappy drone and while not using it I hang it on the smoke detector. Neither the drone or the smoke alarm have batteries.
I glance up and see a light flashing, freak out, shoot the drone...lights still flashing and I realize it's the smoke detector. Fuck that, there's no batteries. I shoot the smoke alarm and it explodes...battery lands at my feet still intact...
...the alarm is dead, the drone is crying, the toaster is laughing and I can't figure out why the fuck I shot my drone and smoke detector but the toaster doesn't phase me.
(Some of this is actually true)3 -
When you see
int i = 0;
while (int i == 0) {
//Code where nothing changes i
}
If you're going to create an infinite loop you could at least write it as
while (true) { }
and save me a little time wondering what the hell 'int i' is for!3 -
<html><body>shit everywhere<meta>more shit</meta></meta><\meta>countles garbage code lines</body><head>[copy&pasted html code that actually works <img ... />]Tons of shitload</body></body></html>
Me: what are you reading?
PM: some email code that doesn't render well in the browser...
Me: let me see... OMFG!!!! who was the author of this garbage?
PM: Oh! it is not that bad! It was working well 'till today...
Me: But... but... this is really bad! you can't send this to customers!
PM: I think that the problem is the "/" at the img's end...
True story. -
!dev && random == true
Venus (top), Jupiter (bottom). There's a star (Antares) there to make it triangle but the star is dim to get caught by my crappy phone camera.
I've always fascinated by the night sky. Nevermind the mission to travel to Mars, the only matters now is how beautiful the night sky is but a lot of us don't get access to it because of light pollution. It's kinda sad that I need to go outside of the cities to see more of what the sky has to offer. I really wish everyone can see and appreciate it once in a while.1 -
The # in C# could’ve been decided when they realize that you can draw the ++ of C++ diagonally and just extend the lines, or you may even think of it being ++++, and tile them up in a 2x2 way. If either is true, are they trying to imply that C# is superior to C++? :P6
-
My dad: I don't know why you like programming... you write lines of meaningless things, there is no logic behind.
Me: ...Actually, it's not true... ehm... it doesn't matter... (in my mind: you would not understand)1 -
Problem with code:
Computer: "Error on line 189: ....."
Me: "But the code ended on line 58 "
-----------------------------------------------------------------------------
Programming is funny
!false
(its true)
(i wrote it here because devRant allows us to post one rant in 2 hours)4 -
Repost from Reddit, i will probably do another with certain color theme, i just prefer this to be 'dark' build as it is how i initially immagined it.
I plan on expanding with certain micro pc, as server, 3d printer and some true hifi.
Suggestions?14 -
how i declare Coding session of the day to be over : when i see an error about an error that is not an error... :D
(hint: fatal: validation failed but when asked if it passed, returns true... ) -
Apple’s Vision Pro Hacked On Launch Day
Just within hours of Apple releasing its much-hyped mixed reality headset, Apple Vision Pro, a security researcher was able to discover a critical kernel vulnerability in the device’s software – visionOS, which, if exploited, could potentially enable jailbreaks and malware attacks. More detail:
https://aprogrammerlife.com/top-rat...10 -
i transferred money to my US account and it "arrived" tuesday
however, due to the absolute JOKE of the US banking system, its now FRIDAY, and THE MONEY STILL ISNT CREDITED TO MY ACCOUNT
i saw once on a video a guy was basically explaining "transfers" in US banks essentially actually just movements of text files on FTP servers somewhere? Is this really true?9 -
There is a true story at my workplace.
A Linux administrator installing putty on its first day of work. On fedora Linux. Alright maybe normally using Windows. The next thing he had done was amazing.
He changed the UID in passwd file of root and pushed it to all servers......
Nobody could fix it anymore because even root didn't had rights to edit passwd. Next day he was asked not to come back3 -
ios is such a fucking piece of shit os. it won't let you upgrade it unless you are on wifi, and even if you connect to wifi it will say "iphone will try to install this update later tonight". typing on the ios keyboard is terrible, and feels like i'm in 2011 again. it would have been much more usable if the good parts were not sacrificed to suit appearance and whoever is in charge of ios development didn't think that his way of using the iphone was the only true way of using a phone. i'm so pissed off because of the wifi thing gosh
P.S. i can't imagine someone coming from long time android use and saying "how fucking awesome!"7 -
whenever i tell my dad about a technology that is going way beyond our imagination and tell him about the consequences of it and how we should worry about that
then he watches some random tv show about internet security/cyber security and various algorithms (very abstract) which are currently changing the world and how we should care about our data and what the consequences of X technology is...
he be like: "oh is that true? that's interesting, how does that work?"
i'm like😑 dad, i already told you about that😩
ever had similar experience?1 -
Read this somewhere: Most students don't love programming so much because they are taught it as a science, while it is a craft.
Got me thinking. So true.7 -
Right now. It's happening. I'm sitting on one of those seemingly impossible issues. I'm reading the exception and can't fathom how it can be true. I mean, the evidence is right there! The error message must be wrong! But that's the thing, it never is. It's always something stupid and obvious. After you figure it out, you shake your head and laugh at yourself for not seeing it. It's all shits and giggles after you figure it out, but that's not where I'm at right now. Right now I'm being laughed at by this stack trace. It's mocking me even!
Jokes on you though, because I'm coming for you!!2 -
Textbook definition of insanity is debugging in Spyder
While True:
Do:
#Comment out code
Run
If not BUG:
Comment back in
Else:
Print('Congratulations. You found it. Just kidding. It's not THIS line. It's just the combination of lines')
Does anyone have a suggestion for a good python debugger that allows jumping to statements, etc.?2 -
Everyone is going on about how suddenly finding a programming gig is or has become a lot harder why with the outbreak and the economic downturn it is going g to cause.
But realistically is it true? Did I just pick a bad time to start a new career in this particular field or is it just FUD?20 -
People are so busy building their coding profiles, that they have forgotten to build themselves as human. 🙂
++ of it is true.6 -
code is emotional because it represents ideas, collaboration, and hard work. On the other hand, code is completely cold, instructional, and meaningless.
I think both of these are true.2 -
I love programming drunk! I can't sit still and always want to do stuff. When I'm drunk / tipsy I come up with ideas and start working on it. Most of the time in the morning, when my mind is clear, I'm not so creative and open minded as I'm drunk. Sometimes my ideas ain't that bad, but I loose interest in developing it any further. So I stop working on it.
This is a while == true loop -
God I'm changing to Linux , fuck windows ... It would be a perfectly fine os, but in true Microsoft fashion.... They fuck it up.
Been out of the Linux game (cept for Kali) for a while any advice? On a distro
I lost hours having to reinstall , thinking it's doing shit but in fact it's just sitting there cause there's no fucking loading bar or anything other then a spinning circle.
I can't afford to lose 10 hours of work. Which is what I've lost the past two weeks dealing with Microsoft's shit updates.14 -
So...
After about a month and a half of lots of interviews with 2 different companys, BOTH of them offered me a job last night.
One is a big digital agency in my country (~2000 employees) the other one is a smaller development firm (~200 employees).
It feels sad to have to deny the smaller one but the bigger one is a dream job for me due to the fact that thet focus a lot more on new tech compared to the smaller one.
But i have never been happier in my life!
It is a dream come true!3 -
There is a special place in hell for people that use Boostrap, only to destroy it and recreate to destroy it and recreate for "customisation purpose"
I just spent a whole day figuring out what the fuck was going on with the collapse system that wouldn't trigger or was dying to trying to, only to discover that someone played the smartass by adding or removing a class when the collapse was triggered, so it would put everything in display:none
FUN FACT : ARIA-DISPLAY="TRUE/FALSE" HAS THIS EXACT PURPOSE, FUCKHEAD4 -
Client sends screenshots, compressed, and shrunk down to an unreadable size, inside a docx file.
Just... just no. Where is a spray bottle or a rolled up newspaper when you need one.
(For you three people who are going to comment 'why don't you just teach them...' ssssssssssshut up, some people are just unteachable ( for you other three who are going to say 'everyone is teachable.' Not true, if it was you wouldn't be saying such things.))1 -
// Stupid JSON
// Tale of back-end ember api from hell
// Background: I'm an android dev attempting to integrate // with an emberjs / rails back-end
slack conversation:
me 3:51pm: @backend-dev: Is there something of in the documentation for the update call on model x? I formed the payload per the docs like so
{
"valueA": true,
"valueB": false
}
and the call returns success 200 but the data isn't being updated when fetching again.
----------------------------------------------------------------------------------------
backend-dev 4:00pm: the model doesn't look updated for the user are you sure you made the call?
----------------------------------------------------------------------------------------
me 4:01pm: Pretty sure here's my payload and a screen grab of the successful request in postman <screenshot attached>
----------------------------------------------------------------------------------------
backend-dev 4:05pm: well i just created a new user on the website and it worked perfectly your code must be wrong
----------------------------------------------------------------------------------------
me 4:07pm: i can test some more to see if i get any different responses
----------------------------------------------------------------------------------------
backend-dev 4:15pm: ahhhhhh... I think it's expecting the string "true", not true
----------------------------------------------------------------------------------------
me 4:16: but the fetch call returns the json value as a boolean true/false
----------------------------------------------------------------------------------------
backend-dev 4:18pm: thats a feature, the flexible type system allows us to handle all sorts of data transformations. android must be limited and wonky.
----------------------------------------------------------------------------------------
me 4:19pm: java is a statically typed language....
// crickets for ten minutes
me 4:30pm: i'll just write a transform on the model when i send an update call to perform toString() on the boolean values
----------------------------------------------------------------------------------------
backend-dev 4:35: great! told you it wasn't my documentation!
// face palm forever4 -
So earlier my Windows 10 machine decided to crash to blue screen on me. First time I have seen a blue screen in 4 years. I thought, this sucks. I waited for it to reboot. I logged back in and saw it was busy doing "stuff". Then I heard the hardware attaching noise.
This is what I think happened. I think because I did an update the other day that it had installed new drivers. I think there may be some sort of driver A/B testing going on. So the blue screen gave Windows enough info to know which driver. Then when the machine restarted it either reverted to a known "good" driver or switched to an alternate.
I don't know if this is true, but it is a cool feature if it is. Do other OSes do stuff like that?6 -
This is why I love Mr.Robot. They hide easter eggs in there for programmers and such. I found this at around the same time as these guys did but they beat me to decoding it. https://m.reddit.com/r/MrRobot/...4
-
What paradoxes taught me.
Perhaps each time a paradox is encountered in mathematics, there is a useful distinction or mathematical tool hiding in plain sight, one that hasn't be discovered or utilized. For cursory evidence I give you: division by zero, the speed of an arrow at any point in flight, and calculus.
Maybe this isn't true for some paradoxes, or even most, but as time goes on I suspect people will discover it is more true than they might have thought.
Undefined behavior and results aren't nonsense: They look to me like golden seams to be explored for possible utility when approached from uncommon angles with uncommon problems.6 -
Need opinions on testing as a career:
- is it good?
- Do you find your work interesting?
- Is it rewarding(in terms of salary/timings/other stuff)?
- Does it has a good career growth?
- How hard is the work for a fresher in this?
- How much mentor support does a fresher gets in this?
- How much salaries are there in this?
- how true do you find the believe that software testing will get automated and jobs in this area will get reduced in future?
(Better if you can give a comparison in your answers, with developer profile) how tru
I am a dev and am thinking of getting into this6 -
Studying engineering doesn't make you an expert physicist, and studying medicine doesn't make you an expert virologist. Learn the bloody difference, just because somebody has a degree doesn't mean all they say is true and verified, especially if the don't list their sources or talk about it "exclusively" for one media.3
-
I am learning exploit development on Windows and I have a problem with it, when I analyze the registers ESP and EIP.
I am able to overwrite both ESP and EIP.
The problem is that I can not make use of "mona.py". "Mona.py" keeps showing me that there are no pointers and any os dlls whereas that is not true.
Immunity Debugger is working completely fine.
I need "mona.py" to find pointers to ESP, but it says there is none.4 -
I read this rant on Quora. Is this true ?
“The IT industry has devolved into a gigantic ponzi scam built on exploitation and BS. Quality of solution and quality of work was replaced with a ‘Does it work now?’ approach with zero contingency.
And the fact that geeks and nerds are naive only helps the white collar crooks to exploit them as code monkeys.”9 -
!rant && isSorry = true
this aint StackOverFlow but I need a tiny help here, I'm receiving data result from an API that is formatted as x-www-form-urlencoded, do I add a valid url at the beginning and use URI parser in Android or is there some other solution for it?
Sample of the result I'm receiving:
repositoryId=TEST&response.gatewayCode=BASIC_VERIFICATION_SUCCESSFUL&result=SUCCESS&sourceOfFunds.provided.card.brand=MASTERCARD15 -
! rant
I started to learn Matlab today. After I learnt that arrays starting with 1 in the Matlab, I started to think about why using 0 based arrays was made popular in the first place and I realized that C arrays actually just pointers and first element of the array is just a location pointed by array name. There is no need to add number to reach to the first element. After googling it, I saw that my assumption is true. Finding it all myself made me a little bit of proud 😀😀😀 Also, this expanded my horizon 🗻🗻🗻2 -
I have been wondering if there is a way to use social media in a positive way.
Since high school (when Facebook first started) I knew that this social media was a cancer.
From what I know there is no positive use for cancer, and I’m pretty sure that the same is true for social media.
But to be honest, it is a tool that is very effective in manipulating the masses. In fact, it is likely the greatest tool for leading sheep to slaughter since religion. I’m always looking to take advantage of every tool at my disposal.
Tools shouldn’t be seen as good of bad, so I am going to have to accept it is a tool of great power and use it. Hopefully I can use it in a positive way, but that doesn’t look likely...1 -
!rant
Back to my old true self ~ ^^
(except now I have a yellow background, what looks like some sort of beverage, and a slightly darker skin because the Sun is a deadly lazer).
(I changed my avatar hours ago, already, but I couldn't rant about it then because of the 2h cooldown, so yeeeaah)6 -
I spent 2 weeks building a website for a friend for equity in his company. Different user types and views to serve his purposes. He changed it out with a Wix site yesterday... It is true my CSS was shitty but damn, I spent so much time on the backend. I think I learned something?4
-
I upgraded eclipse with devStyle. The next time I started eclipse a quote showed up. I'll post it here 'cause I think it's totally true:
"Experience is the name everyone gives their mistakes".
It's so freakin' on point...1 -
Is it weird to not put a space between the beginning of my if statements? (i.e. if(true) vs if (true) ) Cuz my boss thinks it's weird enough to "have a talk with me"...8
-
Web developers working since years in Java, spring and hibernate have no idea how to make a website live and don't even know basic MVC structure..
Being a PHP developer m so shocked !!
Is it true for most of the java developers??6 -
Teacher: good job on the first project I assigned you to do. Now do the same project but use JSP instead of PHP.
Me: F***
BTW, is it true that programming in JSP is like programing in Java? Or at least similar?9 -
Android guys, is it true that marshmallow requires location enabled for Bluetooth pairing?
I find this popup odd.7 -
Lenovo T series laptops are amazing. I've purchased one in 2010, it was too good to be true and used for 5-6 years, forgot about it after I upgraded to Mac. Didn't touch for ~2.5 years, turned on today for my nephew. It is still working like charm, even the battery holds charge for 2hours, I'm impressed 👍12
-
This is how security bugs get introduced into open source. This comment came into a project I'm watching today, and I don't have the time to follow up on how bad of an idea that is:
"If you are still interested, I got it working by removing verify=True"1 -
Halt and Catch Fire is having another great season. Lived those days and it is so true. CompuServe, Compaq, Commodore, 5 1/4", Tandy 1000, Byte Mag, Atari, The Well... The tech you see is really 1985ish. Attention to detail is appreciated by long time technologists.
H&CF is about building a tech business and much applies to today's startups. That two brilliant tech women are leading the charge adds to it. All the characters are great Cameron, Gordon, Donna, the devs at Mutiny and Joe channeling Jobs (in my opinion) is spot on.
Any H&CF fans have an opinion?4 -
think I'm coming to the realization that you gotta have impossible goals
ones you regularly try to work towards, preferably obsessively
because then it trains your spirit
and everything else in life becomes a cakewalk by comparison
which is the true gift of the whole ordeal
maybe that's where all that rhetoric about "working towards something greater than yourself" came from but it got warped by exploitative parties 🤔2 -
I try to do my work and shut up about it but it is true; work sucks the life out of your soul slowly, everyday.7
-
Sometimes I get in a mode where everyone is a potential enemy. So my mind will be say, "The fuck you say!?" in a reactionary way. When this happens I sometimes respond badly online. I am noticing this pattern before I respond. It can take great effort to not post shit online at times.
My general goals when conversing online these days:
1. Spread joy through humor. (it isn't my problem if you don't think it is funny)
2. Care for people by telling the truth. (it isn't my problem if you don't think its true. I do like exchanging ideas.)
3. Try to listen and help people if they exhibit a perceptible need. (sometimes a lone voice reaching out can make a huge difference)
4. Restrain myself when someone aggressively challenges my beliefs. (work in progress, the fuck you say?!)
5. Sharing common interests with people. (games, programming, staying sane, etc)
6. Shitting on Javascript. (not because it is true, but because it is funny. see goal 1)1 -
I've decided to, as an educational exercise, implement DEFLATE compression / decompression and zip file format, and eventually tackling Excel format (which is just a .zip) so I can generate true excel spreadsheets (instead of .csv files) client-side using JavaScript.
Are there already libraries that do this? Yes, but then I don't get to try to implement these interesting algorithms. Is it currently 1 AM? Yes. Do I have work tomorrow? Also yes.
If I don't just fall flat on my face, I'll post updates!1 -
I get it. Functional code is still kind of considered the "new hotness" in languages like Java, but THAT DOESN'T MEAN YOU NEED TO CRAM IT IN EVERYWHERE FOR THE SAKE OF IT. If in doubt, *please* go for the simpler, classic option...
Just inherited a code base that's full of things like this:
Optional.of(getResult()).filter(s -> s.equals(true)).ifPresent(s -> callService());
Optional.of(getResult()).filter(s -> s.equals(false)).ifPresent(s -> logError());4 -
My parents on the one side love my passion to programming (it’s actually because of my dad who introduced me to computers), but on the flip side they think that I should focus more on school - which is true, but you know... It’s hard to stop with something you like, isn’t it?
-
Not a specific bug, but I always have that satisfactory feeling when I fix a bug inside a code like this:
1. Spaghetti af
2. Duplicated af
3. Heavy use of static fields instead of passing via callback when required
4. variable names like: textbox1 ..etc.
5. No comments
It is true that is a huge pain in the ass to deal with, but then I look at it as I was able to create something out of that mess, I mean all is mixed up nothing is clear, no clue where it starts and what caused it, but then I put the pieces together and end up with a solution of what I thought to be: It will never be solved when that mess is here.
Not an excuse for messed up code, I try fixing whenever possible, but hey, at least I did not run away and give up -
What things do people around you keep repeating related to programming?
For me it is surely "linux is soooo permissive", which is true but still funny when people start saying it unrelated and simply as a mean to jokingly explain why something doesn't work how is supposed to. Even if the problem is not even on a computer4 -
the worst part about studying networks is that I can't even say it's useless and that i won't use it in my life, because it's very not true. it's a pain, but god dammit I should know this shit7
-
"It is pointless to use just a fraction of the data in a homologation environment"
Those words reveal the truth in our creed.
We work in the deepest of back-ends to serve the front.
No data is true. Everything can be edited.
We are Data Engineers.
And for those words to take hold, a junior must execute a leap of faith, and push a hotfix into production.5 -
Here’s a snippet of code that I found in our production codebase. I found this while fixing a bug. This is not part of the bug though but I see this a problem. Should I say this to my senior that his logic is off here?
First he doesnt have to do explicitly strict comparison since the return type is boolean and it could be true or false. Also the returnUrl will alway be undefined because redirectIfUserLoggedIn is called first before it was set.
He dosent like me. Hell get mad for sure. I think ill let this go.37 -
RIP my laptop 2016-2018. This fucking shit just won't charge anymore. Battery holds, laptop works when I take out battery, but it just won't charge...I read somewhere that it is fucked up motherboard so if it is true, RIP lol.6
-
This condition over here which is never supposed to be true sometimes becomes true, no one know how or why, just change it manually in prod whenever that happens...
-
!rant /* but */ is funny == true
Developers! - should browsers forgive you ?
Or put a curse on you so you can never align your elements like you want to ?
You will know you don't want it there and it will annoy you, it will eat you inside looking at that webpage..
Again, W3C guys being straight up no sugar coating 😂😂😂1 -
Was talking to a friend of mine and he was very expressive about companies (Especially tech companies) just wanting money...
Turned to him and said that wasn't true because if it was Motorola would make a gen 3 of the Moto 360...
(This is sort of a mini rant for me because they are too busy copying the iphone design instead of giving the people what they want and will earn them a shit tonne of money)3 -
rant == false && help == true
I usually don't like posting non rant stuff here but I need help.
How do you usually design your service communication class?
I am working on a mobile app which contains talking to a REST service, I usually put all network calls in one class. Down side if it becomes a big class it becomes a pain to maintain. Any thoughts?
For a backend service I usually go with Repository design and it is working out well for me. But for mobile Apps I'd like to see if there is a better approach4 -
Who already used Electron to create desktop apps ?
Is it simple ? Some people tell me it's similar to react-native is it true ?7 -
I have always wondered this: The compiler knows that I need to have semicolon at the end of the line. It complains to me about is missing. Why can't it add that semicolon there by itself?? I mean, clearly it's the smarter one of us two. It knows all those language standards and is able to check them. I know jack shit. Still instead of helping me, it has to be a bitch and just nag.
Also, what's this business with "true" or "false"? How the hell should I know? Most of the time I am like "maybe". I want code like this:
if (myVar =~ true)
function1()
else sometimes
function2()
or maybe
function3()
or instead usually
function4()
if (error = true)
fix it9 -
The feeling that every work day is composed of new challenges that help you to grow and learn more. Also, how cool is it when your code works as intended and with no ramifications on the first try? Last but not least how many people can say that what they do at work is their true passion?
-
I just downloaded battery monitor app to figure out why my new phones battery is draining so quickly...
The app says though it's best to charge only up to 80%.
But logically if this were true, shouldn't the manufacturer adjust for it themselves so that when Android says 100... In reality it's actually 80?15 -
Had a coworker tell me that WPF is a very deep technology. He basically said it could take months to years to learn it well. How true is that? (I am gonna have to learn it anyway, but this will affect how I go about it)4
-
So I am finishing school this year and I want to study computer science after that. They keep telling us at information events that a salary of 90.000+ €/year is quite usual for a good programmer...
I'm just wondering if it is really true or are they just talking bullshit? Does anyone have some experience or information for me? :)9 -
We are currently in home office because of the actual corona situation. Since yesterday we experience internet problems in this region. So I constantly check ping to see how worse it is.
Let's see how long it takes for my girlfriend to rage:
while true; do if (( $(ping -c1 1.1.1.1 | grep "bytes from" | cut -d "=" -f4 | cut -d " " -f1) > 40 ));then espeak "fuck" ;fi;sleep 1;done3 -
I have no specialty, I’m a total generalist. Frameworks and buzzword tech is only useful to me if it makes it easier to code without extraneous syntax, or if I need to know it for the job! Recruiters hate hearing this, they want someone who lives, eats and breathes react.js! They want someone with PASSION for easier (or harder due to shit design) ways to do easy things bc ITS FUTURE! React separates true developers from code monkeys! You never heard of Deno? Serverless NOSQL? BAH! Back to your cave, you bickering caveman! MY DIVINE RECRUITINESS DEEMETH THEE UNWORTHY FOUL WORM6
-
How do you deal with relatively complex Boolean logic requirements?
Here's a simple example, of which I missed 50% of the cases because it was non-intuitive to me:
A year is a leap year if:
- it is divisible by 4
- except it is also divisible by 100
- unless it is also divisible by 400
To my intuition, the logic tree is as follows:
if (year % 4 == 0) -> true
if (year % 100 == 0) -> false
if (year % 400 == 0) -> true
so I ended up with 3 cases and I initially missed all the others until I started coding.
The full solution is:
if(year % 4 === 0) {
if(year % 100 === 0) {
if(year % 400 === 0) {
true
} else {
false
}
false
} else {
true
}
true
} else {
false
}
}
I don't like it when I don't immediately see all logic paths.19 -
If multiple engineers say something about their system design that is so stupid it cant possibly be true, it's gotta be. Holy eff it is.
-
It is finally settled. You have heard that the cure is often worse than the disease. This may not be true anymore.
After seeing this:
https://en.wikipedia.org/wiki/...
and this:
https://en.wikipedia.org/wiki/...
I have decided that the New Disease is worse than The Cure.1 -
node.selected = false //Node becomes selected
Why? It is a valid question so I was trying to resolve a bug in one of our components that uses a TreeList of DevExpress and on the event AfterNodeFocus we raise an event to update the current object selection by putting the node selection to true and updating other values as well.
Well it seems that every thing is OK so why the fuck is this thing not working????
After 30 minutes into the problem realized that the event SelectionChanged is raise in the end of the AfterNodeFocus. Then realized that the event was running twice. One when I was setting the node.selection = true and after the event AfterNodeFocus but the list of selections were different. So what I discovered is the event SelectionChanged raised after AfterNodeFocus is using node.selection = !node.selection.
So how do I fixed it?
Before finishing AfterNodeFocus I set the selection of the node to false and voila the selection of items works now.
Well after 5 hours into the problem lets try another thing.3 -
ON PERSONALIZATION: I'm so conditioned into not allowing non-algorithmic recommendations (i.e., from friends) to reshape my taste profile that I watch YouTube & TikTok videos sent to me only on the web & in Incognito Mode so they won't influence my recommender's suggestions.
At scale - especially with the volume of stuff that I get everyday from actual people - it has a noticeable effect. it basically negates the benefit of true personalization, because what my friends send me is interesting to THEM, not necessarily ME.1 -
To err is human – and to blame it on a computer is even more so.
Found this on reddit once, so true about most people. -
Indians are misusing their power of population. With that much population we can do much better things but we are just down voting apps.
Every platform has good and bad content. TikTok has good content too if you follow right profiles.
PS: Earlier I liked when govt. ban TikTok in India but after using it, I realised it has good content too with some bad one and it is true for every platform.7 -
Q: Has anyone heard anything about Google leaving Kotlin and Java behind to use C# for Android development?
I was talking to someone who told me this yesterday. Of course I dnt believe it, nor can I find anything on that BS he was feeding me.
That whole-ass 1 hour convo was BS from start to finish.
There was more crap said, but I’ll spear you all the details. I just need to know if this is even remotely true. I’m sure it’s not, but he’s convinced it is. 🙄13 -
Does it really need to learn jquery in 2019? Bc I read some websites saying that JavaScript has developed and no need for javascript , is that true?10
-
From my recent experience, I observed that a flow of money should be there, else the project will never get complete. Is it true?2
-
So at one point I worked on an inherited project that had the worst code I've ever seen. I mean bad, so bad there may no quantifiable measure that can accurately convey how bad. We ended up naming the thing 'the hydra', cause it had a million issues and they just kept growing as we fixed things. To my point, in C++ they implemented their own primitive type Boolean32 as a signed int32 pointer. If that wasn't enough they used it as an octal bit mask. They also switch the value using logical and / or between 2 numbers, 037777777777 and 000000000001. So essentially they only switch this value to 1 or -1 and end up comparing it to their own const true or false. In c++ any value not 0 is == true...apparently not in this code.undefined octals why me? why would you do that? terrible code awful code c++ coding no designs bad code
-
Learning C++ in university for all three years. They have decided that teaching only one language is good and that once you know one language you can pick them all up.
Not sure how true this is... also sick of the lecturer saying "In the real world you would not do it this way but" I wish university's would just teach real life skills and not how to pass a test. What am I spending £9000 a year on....
Anyway rant over5 -
Isolating every part of the system optimizes current performance.
And it also hinders any future connections from being formed.
Just thinking this is also true about group, team and personal connections as well.2 -
Seems like the #1 rule of thumb in hacking is
"if you can't break it, make it irrelevant".
Seems to be true because god some of these OEM recovery discs are just... awful at securing themselves. -
I’ve been arguing with my friend about this for some time. He loves mac and says a lot of people in SV use macs. But mac is a TERRIBLE os and it’s soooo annoying. Sure some of you might disagree, but is it true that most ppl in SV use macs? I was surprised to hear that they didn’t choose linux over mac.19
-
Never ever ever ever ever ever ever ever ever ever ever ever give the opportunity, not even once, to let a BE decide how a front end is going to work. They will fuck it up 100% of the time. I’m sorry but it’s true.6
-
Yeah, I have experience qith qorst CS teacher.
Considering that teacher as function (object) no matter what we pass never give results... It was anti boolean function can't even decide true or false because lack of info and throws any exception even on success..
It was like getting tons of errors when code is 100% perfect -
So I was checking out Scaleway home page, and they said: Gitlab use their infrastructure?
Is it pure lie or gitlab really host something there? And why would they do that if they use Google?
I don't know what to trust these days lol23 -
I don't have an ios device (and hope I'll never have to :p) but I hear people saying that apps never crash on it.
Is this true? And if so, how is this achieved:
Forcing devs to pay extra attention to this or some system mechanics/structure or...?
Although i think i already saw things crashing somewhere...4 -
Before Corona:
- Quantarine
- Quantertine
After Corona:
- Quarantine
As a non-native English speaker I always used to struggle with this term used by Antivirus softwares. Now it is everywhere.
True Story..
🤣🤣😷😷2 -
Today I read a book and it talks about giving feedback on others; as a developer we tend to give feedback and review others code almost everyday. When I write the code I always put a lot of effort on making it look at prefect but I found I am having trouble on receiving others criticising and comments being judgemental. Instead if we make it as a "draft" rather than "final", that will make you becoming more open towards others opinion. I find this is quite true and I hope this could benefit developers who have similar attitude :)2
-
featureRequest = true;
It would be nice if clicking outside the "Post Rant/Comment" box doesn't dismiss it, I almost lost a long comment a while ago due to wrongly clicking outside the post button (which is not small but somehow I am able to fuck it up lol)4 -
Sometimes I really don't understand why so many CS students take pride in talking in a highly disrespectful manner about their professors. While it is true that not all professors are upto the mark, but imo that still is no reason to use derogatory language for someone senior to you, which sadly is quite common these days.3
-
!dev
People that say shit like "real fans know that *their opinion* is true" or "anyone that knows anything about x knows that *their opinion* is true" are some of the worst people in society.
You can't start a sentence implying you're going to state a fact only to give your opinion. It's bullshit. It's lame. It makes you look like an idiot.3 -
i was wondering Is it true when people do drugs they code alot better?
All where I see this concept.6 -
8 bits is always an octet, and i fucking hate it when people say 8 bits is equal to a byte, because in some some system that's not always true3
-
And again some "evangelists", saying certifications and training, start talking a hit about some method or practice unchained...
How the fuck people don't say the problem with borderline charlatanism...
If Scrum doesn't work it means you're not doing TRUE Scrum...
You should do TRUE TDD (the definition is so long and complex that you can fuck it up) and it'll solve your problem.
Every time is like fucking cults " you have to see the true light, then there is no possible problem... Everything will be solved".
So fucking infuriating!!2 -
Best part for me is when you see the final product. I do not mean once you're done working on the entire project (which is never true, always more to do! xD) but when you add a feature and it works.
Actually seeing it work, that gives me such a good, fulfilling feeling.
That has always been what attracted me to programming, or.. the main thing. -
I'm supposed to write a term paper about a scrappy python/sqlite3 project I put together in a day. And even though mine is the most advanced of all the student's programs (it's cocky but it's true), I feel so ashamed... It is so scrappy and useless... Now I'm supposed to pull something out of my ass, what I did or how I did it sounding all pretentious and proud. After I get my grade I'm wiping it off my disk for sure!1
-
MOBBING DICTIONARY - 3 -
Sentence (harsh public remark)
- You always want to do everything.
Purpose
- highlight a (true or false) defect of the target, a lie repeated thousands of time will become true.
Result
- whether or not that is true, everybody will start to see the target with that particular defect. Every action will be justified to correct the defect.
While it is often true that people at time have difficulty to delegate, usually the reason is not that they don't want to, but they don't know how.
The mobber want to remove the person rather than helping on the "how".
This strategy get the best result when the target is self aware, take the mobbing sentence as a constructive feedback and start to effectively delegate. He/she will contribute to make him/herself useless and could be later easily disposed of.1 -
I think deja vu is even worse for me
*as a developer*, even if it wasn't true,
thinking 'I have a already done this
exact thing before' is such a downer
for productivity..
For some reason I just had it with Xorg,
I don't think I ever touched it before..2 -
!rant
whenever I hear my phone vibrate in the background I open a new tab with devRant and check the new notifs.2 -
Today I removed all the stickers I had on my laptop, and it looks pretty clean and better now.
I still remember the day when I would do anything to collect schwag and free stickers. In fact - I joined devRant just to get those free stickers XD.
but yesterday I had to do a presentation in my college and during the presentation, I realized how stupid it is to have a laptop filled with laptop stickers.
What I used to chase in the past, is what I am getting rid of in present. And it is true with many other things as well. We crave things and once we get them it hardly matters to us.
I sometimes wonder what life is really about, and is there anything that we can cherish forever and not take for granted?13 -
everyone comment on every video on youtube is an unoriginal thought copying all the others
and yet they are all smug saying "AI could have never done this"
look in a mirror rubes, you've already lost
but i guess they'll never recognize
yours truly,
🤡🥃🤡🥃🤡🥃🤡🥃🤡🥃🤡🥃
source for the angry: https://youtube.com/watch/...
also, true "moral" of the story is that the meaning of life is your hot highschool girlfriend? wtf?
it is probably true that zoomers are the most lost of any generation ever
kinda ironic when we have easier access to every bit of compiled human information than ever before
oh well4 -
https://youtube.com/watch/...
I honestly don't believe it is really true and if it is, I don't think google listened in the backround or even cortana did, but it was youtube itself.
But still, pretty creepy and maybe listening does not work like in real time, but it is working. Slowly. Hidden. Precisely.1 -
My manager, while apparently trying to blast us over taking too much time to understand a product (that no one in the team knows about completely):
I don't understand why you guys don't understand the severity of it. How will you support the product if you don't even know it? There's no comments or anything also, just code! You guys should be able to grasp it!
I'm sorry, what now?
(The part about no comments is true, by the way) -
Sharing code between IPTs is fun and definitely reduces risk and level of effort. And if I say it often enough it will become true.
-
This is what happened. I had Linux on my machine. I wanted to show off. So I asked my friend to give me a flash drive with full of viruses which will kill HIS machine if plugged in. Wanted to show that Linux is superior. So he handed me a flash drive. And while he was watching, I plugged it into my machine, proudly. Alas, my machine was dead in half a second. I was like, WTF man. I asked him, "what runs on your machine?". He replied, "freaking Linux"
(this is not a true story) :p5 -
I have a small job I work with another team on Fridays. For the last 2 weeks we've had issues with an API for our accounts server not working correctly. It's been a shitter because it only accepts XML. I've been tearing my hair out all day and getting very little usable info from the company that made the API as we reached the point where we couldn't do anything else without the API working.
Today we discovered the issue. It's that the API receiving the XML was failing because the Bool values were in capital. As far as their API is concerned, "TRUE" != "true". Something not mentioned anywhere on their (incredibly short) documentation.
I might go insane tonight. -
Now I finally got the power of conspiracy theories: They make the world feel more profound, magically and purposeful, because there is more we do not yet understand.
For one day I thought the Basilisk collection was true, and it filled me with wonder and awe: https://suricrasia.online/unfiction...
(I know it's not a conspiracy theory, but I imagine it must be similar if you believe in one of these things and go down the rabbit hole.)4 -
cataloguing and accounting for known unknowns and knowing when exactly you need to turn them into knowns (if ever).
basically getting used to the idea that you're always in some way and to some degree stumbling in/through the dark because your light is too dim to illuminate everything, so you have to choose the right direction to point it in. getting lost isn't not knowing what's everywhere around, it's not knowing what's in the specific direction that you need to go in.
oh and, also, sadly, this shouldn't be true, but at least in my life it is: there's nobody to ask for help when you're the one others come to to ask for help. either I solve something, or it will stay unsolved. which is... stressful and exhausting, and often desperation-inducing, but i guess it is what it is...1 -
Really hate it when a project is switching focus every month or so. You start focusing and committing a lot of time to make things work. Taking initiative to enhance things. Then some weeks later management is switching focus and you have to port all fixes in the new code base. Then some weeks later you have to work on the things you did before but with some adjustments that result in the old code not being possible to use and you have to port fixes again. When complaining you sometimes get the question "how hard can it be, it's just some code". Some motivation is lost every time. And repeat this like a "while true" loop.
-
Quote from reddit is too true
If your company runs AI generated SEO for other AI generated advertising for SEO services that promote your AI to other SEO services- you might be snake oil peddling and if anyone looks twice at your company it will blow over like a solo cup on the back porch.
https://reddit.com/r/... -
Hey motorcyclists
Just now have I come across something quite unbelievable...
Is this a real deal? what's the catch? Why would it cost that little...?
Link1: https://alibaba.com/product-detail/...
Link2: https://jszhongxing.en.made-in-china.com/...16 -
Almost two decades of working with JavaScript, and I just got caught out by the most stupid of things..
Did you know that `["ping"] == "ping"` is `true`, whereas `["ping"] === "ping"` is `false`...? 🤔 I did, once upon a time, long ago. Apparently I forgot about it though.
Seriously, fuck you JS.. with all of the internet's 10 foot rusty barge poles.11 -
You may not be ready to accept what I'm about to say, but Subway Surfers is a true roguelike game.
Let's see:
- Procedurally generated levels — check.
- Grid-based layout — check. You have three predetermined lanes and seven height levels: sliding, running, jumping without boots (small obstacle height), jumping with boots (train height), jumping from train to bridges (bridge height) and jetpack.
- Permanent death — check. When you die, you start from the score of 0. This can be avoided with keys, but Pixel Dungeon features ankhs that resurrect you, and they can be purchased. Pixel Dungeon is undoubtably a true roguelike game, so if they can get away with it, Subway Surfers can too.
Yep.8 -
Doesn't the existence of NULL in a language mean, that there cannot be a boolean type? Because a bool is defined by the fact, that it can have two possible values. Having NULL changes that.
Without NULL a variable of the type bool could be True or False, two possible values. With NULL is can be True, False or NULL, three possible values.
I hate NULL.18 -
I don't get it how people fall for that AI robot Sophia.. anybody with the slightest idea of coding or updates with the adavancements in AI applications would know Sophia is too good to be true. How do people even fall for it...
https://theverge.com/2017/11/...
https://liljat.fi/2017/11/...3 -
Fullscreen support in browsers is a nightmare.
I don't mind vendor prefixes, really. But iOS has different method names entirely and unnatural restrictions. You can't make <div> go fullscreen but you can fullscreen <video> element. And it gets complicated when said video element is inside iframe. The iframe has to have allowfullscreen="true", so you need to make another feature detection for that!1 -
Bool rant: true;
Bool dev: false;
I purchased my Lenovo P90 a year ago and it never updated since.
Lenovo even took the P90 off the upgrade plan. Is that why I spent around 350$ on it?
I'm sill running android 4.4.4 and can't find a ROM because the phone is intel based.
When I asked them in E-Mail I got a copy-pasted anwser to use the phones update function(it returns that I'm running the newest version)1 -
I've talked to people, psychiatrists and tried religion just so I can stop watching porn.
I have a beautiful wife, MSc degree in engineering and well-payed job.
But for some reason, whenever I'm alone my mind bursts images of porn, and before I know it, I'm watching porn.
Despite the things I've achieved, it feels like my true potential is hold back.
This influences my mood, development work and so on.
Mindfulness doesn't work, plugins to block it doesn't work and talking to someone doesn't work. Everything is tried.15 -
It's common belief that developers don't like people and they(we!) prefer to stay away from people and social situations.
So I was wondering how true is it?2 -
Did u know that its true?
Here is my favourite quote:
Don't worry about what anybody else is going to do. The best way to predict the future is to invent it. - Alan Kay -
Okay I always found these js weirdnesses that you see in memes more or less logical if you think about it, but so far I could not find any logic behind this:
true&&undefined
>undefined
false&&undefined
>false
can anyone explain wtf they thought about there? undefined is falsy so why not just convert it to boolean implicitly!4 -
Why don't we change all conditionals from if to as long as?
as long as true:
as long as false:
Is it not beautiful?8 -
I've been given two months to make an AR app that gives information on buildings seen out of the window of a client's skyscraper office.
So off I go, smash together some Ar.js in a few days because it looks easy. Yet I quickly find out that the compass on mobile phones are completely trash. Every device I try has true north randomly chosen from anywhere between 10 degrees wrong or full on 180 degrees the opposite direction. It's a miracle that none of these devices have managed to stumble onto true north by luck. I'm getting suspicious that ar.js is actually just mapping coordinates based on north instead of true north or something ridiculous. This likely won't be helped by GPS interference from the skyscraper.
It isn't helped that ar.js is a steaming pile of bugs on top of bugs, many of the examples taken straight from documentation straight up don't work.
I'm trying to get ar.js with three.js now in the hope that I can figure out some kind of true north calibration controls as an offset to whatever the phone says north is.
If anyone has any suggestions for a better solution that would be grand.5 -
I'm writing a Python script to manipulate Excel files, I'm using the openpyxl module, does anybody know how can I check if a user input is in a column, I've done this:
newItem = input("What is the new item?")
for itemChecker in inventory["A"]:
>>>>if itemChecker == newItem:
>>>>>>>>item_on = True
>>>>if itemChecker != itemNuevo:
>>>>>>>>item_on = False
if the user input (newItem) is in the "A" column of the variable assigned to an Excel file called "inventory", the variable "item_on" is set equal to True, if the user input isn't in the "A" column, "item_on" is set equal to False
what am I doing wrong, I'm not getting any errors but it always says that the user input isn't at the "A" column (sets "item_on" equal to False) even when I know it is1 -
Saw my colleague debugging. He's got a try-catch, then I asked, "Why aren't you logging the stack trace?". He answered, "I don't cause it will be a security risk". So there he was having a hard time debugging.🤯
Can you guys confirm if what he said is true?4 -
!rant; question = true;
Switched to non-google for every device I own, however:
When I accidently go to Google and try to search, it tells me that I am blocked for suspicious activity and need to solve a captcha - If I do, the current search works.. Shortly after tho, it gives me the same thing again.
Any idea how to get more detailed info about the issue, e.g. Ensure none of my systems is quietly participating in a botnet?
PS: why should I care? Just don't use Google! That's right, yes, it still bugs me tho7 -
I was working on a bug in a parser for the response from an api which returns 'n/a' when a certain measurement isn't available. The code was "if ($value == 'n/a')" and when this was true the value was rejected (language is php).
Some of you may instantly understand the problem here. I didn't. Some of the measurements were 0 which is ok, but for some reason it didn't accept them.
Then I discovered the bitter truth:
0 == 'n/a' is true!
Apparently php tries to convert the string to a number to compare it and if it fails it returns false, so false == 0
😞3 -
!dev I knew this was true but I'll say it again because I recently was met with this situation again:
Rule: If the interviewer says at the end of your first interview: "We'll see", you didn't get the job.
I'm starting to think that getting a job these days is a rarity..2 -
Its kinda true. Also this is a rant about "my girl": She had a boyfriend till the first october and we met some while before it. We had sex, she dropped her boyfriend and said "i hope you mean this between us serious". I mean it serious, but she is like "i don't know if we should be together". Now i followed this path and got rid of an other girl because of her (if|else) and she doesn't know if she wants to be together with me. Wtf girl. Also she types "yas" instead of "yes". I don't know what to do.13
-
var rant=false;
var question=true;
Question to devrant game developers is it possible to make complex 3D PC game using javascript?9 -
Agirl wanted me to explain to her how to do a thing that we learned in IT. Basicly a code organising plan. And she said that the only thing she knows is that" they have start abd end" and i said" no if you have while(true)."2
-
On science and religion. Inspied by a comment in another rant, credits to @Commodore and @cjbatz
According to Godel's incompletness theorems, aritmetics is incomplete and inconsistent. Therefore, any science based on aritmetics (dude, like, every) is also.
Therfore, as a mathematician, I must accept that there are things that cannot be proven by current science, and that there are statements that are true and false at the same time in current science.
So, science can't prove religious beliefs? It cant prove P vs NP either. It might someday. Science couldn't prove earth wasn't flat for a looong time. Or Pythagoras theorem.
But more importantly, if science can prove something, doesn't mean it can't prove the exact oposite.
This way of thinking allows for any and all ridiculous beliefs, under the shield of "it might be proven one day" or "doent't mean opposite isn't true also" but kerp in mind that there are complete and consistent sciences and proofs in them. Check if something's been proven to exist or not exist without doubt.11 -
Lol this Rebecca James deleted its comment after i replied to it like that "You all sound like bitcoin promoting bots"
There was many accounts with boomers profile picture, one was promoting specialist of bitcoin trading. The other was saying "bitcoin is the true democracy"
I knew it was shady shit 😂 -
My bos told me that you can't create a loop with glass fibre cables is that true? Why is it different from copper?13
-
So I was wondering what was going on with Recall. Heard it would take screenshots without permission and send to MS. No idea if that is completely true. This continues to confirm that Windows 11 is a complete shit show. As I was looking I found a discussion of copilot being forced on users. Huge threads at Microsoft support saying it is a piece of shit (and that was a one of the nicer comments). So even before Recall comes out copilot is destroying the desktop experience. Is this the end? Will this force users to Linux or Mac? I am actually in shock how incompetent Microsoft is becoming.
I run games and support clients with Windows 10. I absolutely do not ever want to run Windows 11. It just keeps getting worse and worse.7 -
So my boss tells me that industry standard for serving images is that you have one image on the server that is approximately 3x larger than the largest size you need it to be and resize it on the client side as you need. However, a lot of the tutorials I have seen online lead me to believe that is not true. Is it? Because I have to serve up a whole lot of 150kb images for something I didn't even want to do in the first place and it's causing serious performance issues, even with lazy loading.5
-
SITECORE VS OTHER CMS'S
FIGHT!
Someone I know has been convinced beyond a shadow of a doubt that SiteCore is this amazing peice of magic software where you push a few buttons and your wildest dreams come true.
Anytime there's a probem with our other websites (laravel sites or Drupal sites) we get a lecute on how a SiteCore site would do X so much better and how the problem would never happen on a SiteCore instance'
I think it's a little bloated and don't like the tech stack behind it.
What are your thoughts on it? Is it magic ? Should I agree with him and just stop fighting the inevitable?1 -
What the Fun Javascript Part 2
With reference to my old rant : https://devrant.com/rants/1445754/...
An explanation to this...
In JS whenever it sees '==' it has a set of rules that it follows before comparing quantities...
One such rule is...
When we compare a number with a boolean using '==' it first converts boolean into number then compares the two quantities...
So in this case..
When we convert true to number we get 1 and when we compare 1 and 2 they are obviously unequal hence we get false...1 -
visit the corporate elearning portal to do the mandatory trainings.. open browser, go to the page, login. start the training, then a quiz question pops up...
my IT sense tingling... open browser's developer tools, starts checking the HTML and JS source... then suddenly found something like this:
isCorrect = selected.join() === anwsers.join()
placed break point, put in random anwser, checked watch... (heartbeat increasing)
see the value is FALSE. Changed to TRUE manually, resume code...
Thank you, your anwser is correct!
WTF? I don't consider myself as a developer, but it's still hurts...1 -
You know how people rant about js frameworks; well the very same is true about nosql.
I thought let me broaden my horizon (pun intended) with a nosql db in my project.
So from Friday evening, I started off with ElasticSearch, which is pretty simple to get started, but apparently I need to understand it a lot better to use it as a primary data-store.
Then I stumble upon orient-db, was pretty exciting and learnt the apis/librarys but researching it a bit more to learn about the community; there is some bad-blood there.
Now I'm onto something called ArangoDB, think I'll stick with this; Any more time spent on this and I'll just give up on the project.5 -
HELP! Stack overflow did not take this question! I want to learn code! How can I learn code if they won’t help! Question was:
CS 101 take home assignment question 1: write a function to determine if an array of numbers is sorted. The function must return true if it is, false otherwise.
@Fast-Nop , @Root , @theabbie please. I have a week to get this question done 😭22 -
Recently had trouble with some SQL. My tests would not pass, so I had to manually run it to debug it.
SELECT * FROM a JOIN b ON [...] WHERE b.foo NOTNULL
Yielded 0 of 3 rows. Expected 1
Tried querying WHERE b.foo ISNULL instead. Would have expected 2 of 3 rows, but got 1.
After googling i discovered that comparing with NULL does not return a true/false binary description, but may also return unknown if the type is not a NULL type, e.g. 42 ISNULL =" UNKNOWN
😳 -
We have a huge domain model in Java and something is really fucked up with our equals/hashcode implementations and know body can track it down.
I have suggested Lombok/Groovy several times but they didn't listen.
Anyways it is so fucked up, that map.contains(foo) returns false, although it is part of the map.
So we wrote something like this:
for (Entity e: map.keyset) {
if (foo.equals(e) {
return true;
}
}1 -
I still enjoy developing . The part I'm finding difficult these days is that, if I'm under deadline pressure and need to work overtime; instead of being supported by my family, my wife moans and blames me for doing this job; saying I just want the money (which isn't true) and guilt trips me for not spending time with the kids. So, I get it from both sides. As if life isn't hard enough.1
-
For the whole january month, i was looking to create a text editor in which text is edited in the div block so i thought of doing it with javascript creating events of when this button is pressed do this. then today i found out i can do that with just adding contenteditable='true' in the div element. I was like i should have searched it in the first place.A Month wasted.2
-
I like that scene in Liar Liar where Jim Carey tells everyone what he really thinks. What would you scream out at a group of programming elites if you could do it without getting in hot water. I admit I have been advised not to buck convention openly. I think that is bs but probably true.
-
I asked the Node gitter community but didn't get any response, and I fear for my life when I am posting on SO.
So, I would be posting my query here. Any help would be appreciated.
Query:
Hey! So I have a code like
var cached = true;
if(cached){
}else{}
When the v8 will profile and mark this function as hot, will the full compiler optimize it so that the 'if(cached)' is not checked every time?2 -
Is Apple alone who owns the rights to its systems? Or do users also own the system when they buy the iPhone? What I know is that users have a USER ONLY license, a non-private, limited and revocable license by Apple. And if what I think is true and that Apple owns its systems, then it is a private right for it, isn't that true?. So why are governments such as the governments of the European Union trying to impose laws on Apple and try to impose changes on Apple's systems even though the systems are private and not public or open source? Is this not considered an attack on private property? I don't know, I just want to get your opinion on the matter more..
What I know is that there are options other than Apple's own systems!!. Therefore, if you want to change, take Android instead of forcing Apple to change what Apple does not want to change.9 -
I'm a computer science student. My friend who's working in the industry rn told me that the android development field is shaking (bad kind of shaking). I really want to become an android developer. Is this true? Damn it.
P.S Android Studio, fix your damn ass, you're eating too much of my ram jeez5 -
Opinions on recruiters? Who has gotten a great job from a recruiter that reached out to them? Is it true that they tend to fill jobs that are hard to fill?4
-
Well, so this time, it's not a joke....it's a moral kinda thing.....
Why do we want something?
We want something because we have the desire to know about it or we have the desire to achieve something or prove ourselves superior.
Why do we want to be superior?
People are so getting into the phrase, "Life is a race, if you don't run, you loose", that they unknowingly have the desire to be superior and fight for it.
This is totally not true. Life is not a race...it's an experience....we learn from life....we learn from everything and everytime we act. Life is not an assest that you race with. So, then why to race? Enjoy life. Gather true knowledge, not the so-called school's exercise book "knowledge".
Until we defeat our desire, till then, we are evils even though we think that we are good.
Desire kills, Defeating desire will give you a true life to live.9 -
Can someone please help me with my code below
import socket
s = socket.socket(socket.AF_INET, socket SOCK_STREAM)
s.bind((socket.gethostname(), 6139))
s.listen(5)
while True:
clientsocket, address = s but if I enter . It crashes can someone please help me
Ps this is on Python3IDE1 -
Hey database experts. MySql question:
I have a table with houses, there is the location, color, etc. Shall I make a column for the owner or make a separate table HouseToOwner - where I connect the id's? I have no idea why is it good practice but saw it in few cases. I have the same with the things inside like I would just make a boolean column for a TV-like haveTV - true/false. Tell me why to not fill everything in one table. thx17 -
Is it true that some of these Uber drivers are making more money than some of the Uber software developers ?1
-
What do you think, is this bad practise?
boolean isNumber = true;
try {
Integer.parseInt(somestring);
} catch (NumberFormattingException e) {
isNumber = false;
}
Or is it better to create a method to check, even though I only use it at one place in 700 lines of code?6 -
Hmm..
My game changing caching proxy [mitmcache] in CI implementation works miracles in localhost. It shaves off build times significantly: what used to build in ~2min now builds in 18sec.
However, this doesn't seem to be true in CI... For some reason build times remain the same [more or less] when cached and considerably longer when the cache is cold/empty..
Damn it.
I don't understand why...
A week wasted. And I have to explain the client why me failing in this is a good thing, so I'd get paid
https://gitlab.com/netikras/... -
So I have this gulp task to minify javascript but it doesn't actually do that, It minifies in a single line which is actually correct, but it doesn't convert if/else into ternary and true/false to !0/!1?
> Gulp Task: https://pastebin.com/1d8k8juX -
I got my first client at upwork almost a week ago and the experience has been awful so far, not because of this client but because of the codebase, it's so bad, it is running DEBUG=True on production and if I turn it DEBUG=False things break for some fucking reason that makes no sense (I don't think that's true but the previous developer states it). The website is running on pythonanywhere which is weird, bootstrap is a nightmare, the database needs to be in sync all the time using a manage.py command that executes tasks received through a webhook from a Hubspot shit that has all the information. Just adding a simple edit/verify profile on that site is such a fucking nightmare. The whole project its full of holes and things that are just screaming to break, its like a fucking house of cards that falls to the ground the second I edit something and it looks like its my fault. I'm thinking of telling the client that I will no longer work on this project
-
I just made this up but it seems true
There are only two ways 2 people can disagree about making a decision
One is if a person has more (or less) knowledge about the subject
The other is they both have sufficient information about the factors of the decision, but one person simply values a different set of principles than the other person
Have a good day3 -
Display quality is a realm where Apple's options are straight up bargains, the cheapest thing to exist.
All I want is a display that ticks all the boxes: it has true blacks (probably OLED), high PPI (more than 200), high refresh rate (more than 120 hz), and good enough colors for graphic design. At $2,499, MacBook Pro 16 is an offering no one can touch.
I'm yet to find an external display that can match it. Gaming displays that have the refresh rate lack in color fidelity and PPI. Designer displays with good colors are almost all IPS and are all 60 hz.
Even if this godforsaken external display exists, it sure as hell costs more than 2.5k, and it doesn't even come with one of the best laptop CPU/GPU there is.3 -
Not so awful I suppose as long as it's produces quality output
Still only interested in davinci
Question
When chatgpt recognizes stateful requests "modify the part of the procedure Jojon where it updates storeitem to add a column verifiedbyhuman and set it's value to true" is chatgpt feeding everything at once to do davinci ?1 -
According to MIT and some other programmers, as I interpreted it from their video, Computer Science is not a science, but rather an art:
https://youtube.com/watch/...
I'm not sure this is the truth.
First things first. Definition:
- In order for a field to be a science, it has to have an internationally recognized body (such as physics has one). Does computer science have one?
Furthermore, one of the definitions of science:
"a branch of knowledge or study dealing with a body of facts or truths systematically arranged and showing the operation of general laws:"
source: https://dictionary.com/browse/...
- In order for a field to be considered art, its essence has to be about aesthetics.
Now, it's true that Computer Science is not about computers (as they are mere physical manifestations and tools that we use to practice the essence of what are abstract models that we theorize, much like Mathematics is not about numbers).
Like is said in the video (3:39 and example at 4:06): Computer Science is about formalizing intuition of process: input, algorithm, output, the precise imperative knowledge of 'how to' vs. Geometry ('what is' true, i.e. declarative knowledge).
Now, if we're formalizing and being precise, are we being scientific or theoretical? It could be argued we're then being theoretical, except for the case of Applied Computer Science, where things get more scientific (introducing observable proof).
Further elaborate discussion is welcome.
Proceed.4