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 - "case"
-
Only pure evil can design a PC case that has reset button same size and shape like USB port and place it next to USB ports.21
-
Admin: "Wait, I noticed unusual traffic."
Me: "What is it?"
Admin: "Looks like we have a bot here."
Me: "A bot? Didn't know we are so popular."
Admin: "It makes constantly login requests through our API, it already surpassed 600.000! I will ban it right away."
Me: "wait, that just sounds like my bot.."
Admin: "DUDE, WTF? ARE YOU SERIOUS?"
When there is bug, you don't know of, it can end up quite embarrassing.11 -
Looking at my code for 10 minutes. The switch case is always going to default. Almost about to break my head.
I FORGOT TO PUT FUCKING BREAK AFTER EACH CASE. WWWWWWWHHHHHHHHYYYYYYYYY12 -
A programmer puts two glasses on his bedside table before going to sleep. A full one, in case he gets thirsty and an empty one, in case he doesn't.4
-
I recently got my first job and I already saw code that I won't ever forget
for(int i=0; i < 2; ++i) {
switch(i) {
case 0:
~~~
break;
case 1:
~~~
break;
case 2:
~~~
break;
default:
~~~
break;
}
}23 -
Just finished writing a script with all the classes and variables named after the characters from Sherlock Holmes. I regret nothing.7
-
Gathering all parts for building my first computer.
"nahh, I don't need a 'beautiful' case, i don't care about that stuff"
I am now searching for the most beautiful case I can find 😐16 -
My father just told me that I'm not a good programmer, because there are kids out there, who are younger than me and know more programming languages.
Besides the fact that the number of programming languages one knows has nothing to do with programming skills, I just said: "I wanna see that kid.", because I already knew his answer.
"Well, I never said there are many of these kids."
*facepalm*9 -
A programmer puts two glasses on his bedside table before going to sleep. A full one, in case he gets thirsty, and an empty one, in case he doesn’t.10
-
Coworker 1: Ugh, what name should I give this variable? Any idea?
Coworker 2: Doesn't matter that much. Just give it a name.
Coworker 1: ** Types in "albert" **6 -
A programmer puts two glasses on his bedside table before going to sleep. A full one, in case he gets thirsty, and an empty one, in case he doesn't.3
-
About a week ago I bought a server rack case from some guy online for 40 bucks. When it arrived it was in the worst state I had ever seen a case. Even if I tried I wouldn't have abused a case like that. Rust... everywhere...
I stripped it down and removed all the rust I could. Then I painted it and this is the end result. Pretty cool if I say so myself :)12 -
Why do people get so unbelievably greedy when there is something for free.
Like "it's a free game server host, let's just create 100 accounts so I can have 100 empty servers"
Or "you can get a free game key if you contribute a lot, so let's just spam until I get the key"
It's so painfully to watch.3 -
"We want a perfect PHP dev"
... yea, and he will produce shitcode like
switch(true) {
case 1 < 2:
...
case $a == $b:
...
}
no thx5 -
YouTube, I called it. I freaking called it! This is an old story, it was back when Cryptominer via browser became a thing.
Me: "How long do you thing it will take until YouTube advertisements will contain cryptominer?"
IT WAS A F*CKING JOKE YOUTUBE, I DIDN'T KNOW YOUR ADVERTISEMENT POLICIES ARE REALLY THAT BAD!
A month later, after I said it to an friend, I had increased lags with literally anything I was doing. After some days of research (because I didn't pay that much attention to it at first), I could pin down the cause to my YouTube tab in my browser (because I listen to 24/7 music livestreams). And I was like:
Me: "I bet this is because of cryptominer. I bet this is because of cryptominer."
Guess what. About two weeks later YouTube confessed. Cryptominer ads were possible.
I wonder how much money these companies made...4 -
Me searching for some random ideas.
Case 1
Me - I want to create something.
Friend - Can you hack into ... ?
Me - No, bye
Case 2
Me - I want to create something.
Bro - I also want to create one awesome project
Me - Ok, cool
Case 3
Me - I want to create something
Mom - Come, help me with preparation for dinner.
Me - *I have been trapped* Nice move3 -
Dear customer,
as our services are completely free and we do not get paid for working, we beg you to understand, that there are some things you have to tolerate.
1. We are DEFINITELY not going to work 24/7 for you and answer immediately anytime. Only because it's 3pm in your country doesn't mean it's 3pm in our country!
2. We will NOT waste any time figuring out your gibberish and translate your language to our language or whatever, you have to be able to understand English anyways because our website and rules and everything is English!
3. Speaking of rules, READ THEM, I'm sick of explaining to you why you are banned, what do you think FAQs are made for?!
4. STOP SPAMMING AND TAGGING ME FFS. First we have a support chat so you can leave a message there and somebody will read it eventually AND SECONDLY I'M NOT THE ONLY SUPPORTER SO STOP BUGGING ME.
5. READ THE FUCKING MESSAGES I WRITE!
geez.. I just lost it for a second... okay.. gotta go now, I got 20 new messages since I started writing this rant.6 -
I want a case/skin/idk for my lappy after I finally leave this company. I have this awful habit of associating things with memories. If the memory is bad, seeing the object reminds me of it, and e.g. makes me feel burned out again. So, I want to add a really pretty case to my lappy so it feels like my laptop instead of the company's.
I've found a few really beautiful ones on Etsy and Pinterest, but they're so ridiculously expensive! I really don't want to pay $90 🙁
Does anyone know where I can find alternatives?13 -
// Just in case
if ($scope.currentPlatform === 'android') {
$scope.enableDatePicker = true;
} else {
$scope.enableDatePicker = true;
}5 -
I arrived at 8am sharp today, SHARP, I usually arrive 2-3min earlier, so I can start with my actual work at 8am sharp, but traffic was rough and my scooter wouldn't turn on, so I wasn't able to.
Suddenly my boss calls me into his office, being all like "you are late everyday, you won't start work until 5 after 8 yadayada". Wtf?? You know I have a clock on my desk and I always check the clock when I'm arriving at work? (He has security cameras everywhere, so he can actually see me check the clock every morning). This morning I arrived at 8am sharp and the only reason why I started with work late is because he thought it's necessary to remind me to be at work in time. Now he expects me to start with work 5min early everyday, fuck off!20 -
I hope I can code myself like below.
me.Girlfriend = true;
me.Millionare = true;
but, the real case is
me.Girlfriend = false;
me.Millionare = false;
the sadest case is
me.Girlfriend is not defined T.T11 -
Short horror story: a coworker of mine renamed a directory in the git repo from ABC to abc. All MacOS users found their repos completely broken after pulling the changes. They didn't know that Apple's crappy HFS+ filesystem was case-insensitive.
I have ~10 coworkers, and each of them wasted at least 1 hour manually fixing this problem. This is like not working for more than a day.
(I'm forced to use a Mac too, but I use an ext3 volume for repositories.)7 -
So he is in the “elite” team as a “Sr” dev and i’m in the normal team as a ssr dev.
He: Hey look, the ‘F’ case is empty and doesn’t return anything, can you help me? This is some old code and we have to add some features.
Code:
Switch(string) {
case “J”:
case “F”:
cade “D”:
// some code
break;
// more code
}
I’m crying9 -
Guy using VPN:
why would anybody use tor unless he hides something?
Me (using Tor):
why would anyone use VPN unless he hides something?
In my opinion there is no difference in using Tor than in using VPN, it's all about privacy. I would consider Tor as an free alternative for your everyday privacy needs, if you can't afford VPN, or am I wrong?22 -
I have my laptop for almost two years now. I've never dropped it once, even though I carry it a lot. So I decided to buy a plastic case this Monday. Just in case.
It's Saturday and I dropped it 3 times already. Shit. --> Never buy a case for your laptop.
/**
* It did it's job though.
* No damage on the device,
* just on the case
*/8 -
I've created an AI!!!!
Code:
switch msg:
case "Hi": return "Hello";
case "What's the weather": return "Weather is great";
case "Are you an AI?": return "Yes, I'm highly intelligent"8 -
Case 1 - You sold the coins. And price continue to increase
Case. - Even when the coin reached it peak, you just hold the coins, because you learned something from Case 1. Eventually coin collapse.
And this continues in loop6 -
I move that the term snake case be renamed sausage case because it makes way more sense.
this_is_a_sausage
Snakeslookmorelikethis10 -
I hate setting up case statements cause it's hard to cover every case. What if a virus puts a gun to my programs head? What if my program is at a cache party and chrome offers it weed? What if my program isn't gay, but $20 is $20?2
-
I am Front End dev at a medium size company and I had to teach my PM how to create use case diagrams... Things are getting better and better at this dream job.
-
Windows: No internet connection.
Me: Runs troubleshooter.
Windows: Problem found and resolved: Default Gateway Server is not available
Me: Wait.. since when can windows fix user input?!
Windows: Still no internet connection4 -
Reviewing old code. First thought always starts with "What the hell... What did I do here?"
Best case scenario: " oh.. Oh! I wrote this? Nice."
Worst case scenario: "I hope nobody has seen this... Oh God the header has my name..." -
Client stores all user accounts in a publicly accessible google spreadsheet in case the user forgets their login. It includes user name, plain text password, and just in case, the hashed password....6
-
*Keyboard breaks*
*Calls Desktop Support*
Me: Hey, my keyboard is broken. I want to replace it.
*Support guy sends new keyboard*
*Calls support again*
Me: Hey, the shift key on the left side of the new keyboard is broken.
I don't know who came up with this keyboard design, but that person really wanted to see developers who write in camel case suffer while their muscle memory adapts.16 -
I excused myself for writing a switch statement with only one case during a code review with thinking it was likely to get more cases in the future. Lead dev said that's okay, then chuckled a little before he showed me a switch statement with two cases added by one of the people who can bypass the review process: case true and case false.6
-
„Couldn‘t figure out how to detect the end of a case, forced every developer to end a case with a break; so it doesn‘t go through all cases“
- the guy who invented switch case10 -
Hey remember that edge case we told you about months ago and you said ya "don't worry, it's an edge case" ya, we just found the edge and sailed right off it
-
Recently I got an E-Mail from PayPal.de with the headline "Your account gets limited". Fun Fact: I don't have a PayPal account.
This Mail got me curious though, as it couldn't be a phishing mail, since I don't have a PayPal account in the first place, so I opened the e-mail just to get greeted by pure emptiness. It was completely empty. I thought to myself "oh no, is this some sort of new trick? Did I get infected by some sort of a weird hacky backdoor trojan already?!"
Name: PayPal.de
Original E-mail Address: NULL (never seen this before)
I then realized, that Thunderbird blocked the only content from this mail: a clickable image.
This is getting even more confusing the longer I examine this unique mail. The image is showing me a domain from a site completely unrelated from PayPal, so it was obviously no phishing, but I didn't trust this clickable image, so I looked up its hidden link to find an even more confusing redirection to not a picture upload site like the image suggests, but to a game key reselling site instead, like wtf? What was the whole point of this whole e-mail? Was this a weird try to make advertisements for more than one website? It wasn't even a ref-link or something like that. It was just weird, iunno.8 -
I recently found a ridiculous edge case that no test case caught and is very hard to debug and fix.
Then, I was assigned to find and fix it.
FML4 -
Conversation that probably went down when they designed the pc case I use:
Person A: You know what we should do, we should design quick-release clip things so that you don't have to use tools in order to install or remove a hard drive.
Person B: That's a great idea! Should we also have the opening for the drives to slide in to on the side so the user has easy access to the drives. Or at least make the front panel completely removable for this purpose.
A: No, let's have him remove the fucking gpu in order to install a new drive.
B: That sounds impractical!
A: Fuck it, you know what, lets design it so bad that even that won't be enough. Let them take out the fucking whole motherboard, so basically let them disassemble the whole working pc in order to add a single drive! That will be hilarious! -
I had to set up a Raspberry Pi just to display a webpage since it is inexpensive and I didn't have enough budget to get a case for it so I present my homemade case. Lol. It's zip tied to the box within another box.5
-
Had to modify, but phone case is looking good.
(Took embarrassingly long time to figure out how to take photo of phone case, ala, just take phone out of case.)😅4 -
Making backwards compatible websites for IE8 and back honestly feels like releasing the new blockbuster in VHS..2
-
My GPU blocks the airflow from the lower front intake fan to the CPU, so I wanted to have a fan in the 5.25" drive bay directly targeting the CPU.
While that bay fits a 140mm fan nicely, there was no mounting point. I ended up making four fan struts out of the metal covers for the 5.25" inserts, the ones that you wiggle out. Drilled holes into the case, a bit of foam above and below the fan to seal the larger gaps, and done.
The trick is ofc that the 5.25" case covers are meshed and hence act both as air intake and dust filter. The CPU runs a few K cooler under load.14 -
Oh my god my brain is hard wired to write c++ in snake case. Spent 4 years doing it. This code base uses camel case.9
-
I drink a lot and of water so I always have two glasses by my bedside -
A full one in case I get thirsty and an empty one in case I don't... -
Random thought:
I rarely see emojis on devrant and most of the time I see them, they are used in a rather cringe-full way. There are some posts however, which use emojis in a way I like, for example to replace the client's name.
But my favorite emoji is still the shrug emoji, not the Unicode shrug emoji, but the *real* shrug emoji. ¯\_( ツ)_/¯10 -
I am building my own server right now, problem was that the case was too small for the Mainboard to fit.
Solution: drilling the fucking case apart
(PS: sorry for no cocktail rant, but soon)8 -
Grabbed a case off of the backlog, and noticed the estimate was set to 100000 hours.
Time to get a coffee before tackling this task.4 -
Found this aluminum Arch Linux sticker on Etsy. I'm sure some of you will enjoy it. I thinking of ordering a few myself.
https://etsy.com/listing/174356504/...2 -
Switching from a camel cased standard(js) to a snake cased standard (rust) tutorial
pub fn do_shit() {°°°}
...
pub fn doMoreShit()°°
*Notice wrong case*
To self:
Aaarghbkflahvflw. Why can't you fucking get the damn case right! And you call yourself a fucking senior programmer, you piece of useless shit.
#existentialCrisis
#questioning_life
pub fn do_other_shit()
...3 -
When you're reviewing code and you find:
switch(intIn) {
case 1:
serial.println("1");
break;
case 2:
serial.println("2");
break;
case 3:
serial.println("3");
break;
etc
case 123:
serial.println("Correct response ");
break;1 -
Best: learned to code, started writing smart-home scripts for home automation and developed biologic and quantitative data analysis scripts in Python and R.
Worst: didn't get paid to develop them and haven't got enough experience for it to be more than a hobby. -
macOS fuckup continued. Today I used a camelcase name for some new file and a directory. Later I didn't like it and wanted to change to lowercase. Pushed it to bitbucket: now I had both versions! Hold my goji berries, what's going on? Maybe some git config screw up? After a bit of fiddling I remembered an old Linus' rant on Apple's file system when they wanted to adopt case insensitivity. So wait, did they actually do that shit? I thought I was on a unixoid, bastardized BSDish system, that apart from all the oddities that Apple bestowed on it, that there was still some sanity left... But, no there isn't. AFP really defaults to case insensitivity.
I have no words.
So switched to my Debian, where I resolved the duplication in two secs. Now Linux feels even much more comfy and home.29 -
Guys kill me please...
WE USE CLEARCASE AND ANT
Because git and maven are still under evaluation....
Am I working for the wrong company?5 -
When Amazon asks if my email address is all lower case... The desire to make it an informative moment that email addresses are not case sensitive is outweighed by my desire to resolve my issue as fast as possible.1
-
Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers.
This guy is the best user case.
http://www.wired.com/2015/11/null/3 -
I had to do a double take... Needless to say I can't sign in for shit, fucknows what mental finger dance I did on the shift key when signing up to these guys...
Also: forgotten password is "please type your email, if there's an account associated to this email address we'll fucking email it with password reset instructions"...
Fucking arsehole fucks, I just wanna pay my fucking energy bill. -
A programmer puts two glasses on his bedside table before going to sleep. A full one, in case he gets thirsty, and an empty one, in case he doesn’t.5
-
I'd like to use snake case like everywhere. Got that from rust.
Now in typescript, but seeing libraries and baseline core libraries in camel case, I end up going back to camel case.
I guess consistency is more important to me4 -
As a programmer, I puts two glasses on my bedside table before going to sleep. A full one, in case I gets thirsty, and an empty one, in case I don’t.
-
So...
function watch($i = null)
switch($i) {
case 1:
return 'Game of Thrones';
break;
case 2:
return 'Silicon Valley';
break;
case 3:
return 'Fear The Walking Dead';
break;
}
}
echo watch(rand(1,3));6 -
Just left my first "here be dragon's" comment... I feel dirty.
I am required to develop using the WORST documentation, that I was told is 100% accurate, but contradicts itself, had blank parts, etc. When I emailed the creator, they fixed the parts I mentioned, but didn't proof the rest.
The math is probably all wrong, but I am working off their information and it seems to work in the one case they gave...1 -
A programmer puts two glasses on their bedside table before going to sleep. A full one, in case they gets thirsty, and an empty one, in case they don’t.2
-
Jonny Ive---It's not great design when the first thing most of your iPhone users have to do is mod your product with a case just to use it for its intended purpose.
Especially as the primary purpose of your design seems to be to focus on the visual aesthetic---which is voided by said case.2 -
Almost finished yet.. Yea the power supply is on the wrong side, but it looks way cooler! #BlueLED4
-
sAleSfoRce aPEx is a hot wet garbage fire. How can I make this actually make this work right when I need to compare case sensitive strings?10
-
Make awesome generic function that covers any case. Get told by PM its too generic and to write something for each case >.>
-
Print("Hello World")
When people design a brand new Postgresql schema (case sensitive) using a mix of upper and lower case letters.
Only to then proceed and escape every single table and column name in every single query.1 -
I'm quite pleased to show off the initial rendering of my CaaB (Cluster as a Box)!
This is a project that I've put not enough time into, and them finally I decided to get a move on with it. The estimated cost of the whole device/s ranges somewhere around $600. It's gonna be fun!
P.S. Suggestions welcome, particularly if it's about a substitute for the ODroid HC1.10 -
...
We are using a shitty language and a even more shitty IDE at our company for our software.
I'm quite new to this, so I don't know all sorta stuff.
Was writing an addition to a convertion from an old system to a new one.
Needed to "Map" Strings to IDs, so I used a switch case to determine the needed IDs.
Because that fuckin horseshit has no realtime errors (just at compile time...) I didn't realize that there is no such thing as strings in switch case in this language.
So I wrote this whole fuckin shit and when I compiled I got massive list of errors.
So I had to redo that shit with If, Else If... And that motherfucker just crashed on me...
HOLY SHIT...7 -
PyCharm's Warning: "Function name should be lowercase for PEP8 naming conventions."
Do Python developers not like camel case function names?4 -
What does projektaquarius do when he doesn't have a working IDE? Reformat code (that I am already refactoring) to an industry standard format and prepare for the arguments that are going to come from the other group who has their own coding standard that isn't industry standard.
Already preparing for the Pascal case versus Camel case argument. Emotionally that is. Mentally the argument basically just amount to "your group didn't want to refactor the code so we did it. Live with it or you do it." -
document.getelementbyid("myid");
Runtime error !
must be "ById"
:/
also same problem with elem.innerHtml
(Correct: elem.innerHTML )2 -
The creators of the Python language are giving some thought to a new proposition, PEP 622, that would finally bring a Pattern Matching statement structure to Python. PEP 622 proposes a method for matching an expression against various kinds of patterns using a match/case (simply like switch/case in C) language structure :
match some_expression:
case pattern_1:
...
case pattern_2:
...
It includes literals, names, constant values, mapping, a class or a mixture of the above.
Source : https://python.org/dev/peps/...6 -
So my in-ears just disappeared from within the fucking case. Like wtf? My case is in my pocket, but the headphones aren't there. What???5
-
Okay, this is quite hard to explain properly, but I'm actually scared of my personal future.
In about a year, I finish school and I don't have a straight plan of what to do next. I want to work independently, preferably as a game dev, but I imagine that to be a hard task. I have thought of doing a bachelor's degree in game development, but the university I prefer to go to costs 20k€, which is a huge sum and I don't even know whether it would be actually worth it. The university states that 20% of all their graduated students work independently afterwards and they even offer you a flexible "loan" (not sure if it's the right term) you can pay off while you start working, but I fear I won't be able to pay it back, I cannot imagine making this much money any time soon after I start working independently as game dev. Additionally I fear I won't be able to keep my motivation up, since I struggle doing so already, on the other hand my lack of motivation could be caused by this toxic environment I live in.
I've also considered doing freelancing, but when I'm scrolling through the requests made, I never find something I am experienced in, I don't know what request is best to get started with freelancing.
I just don't know what to do in the future and I'm scared and considering to go to this university is probably pretty stupid already and I consider it as me ranting myself, because of my nonexisting self-esteem. So I don't know what to expect from this post, I just needed to share.1 -
Starts search and replace.
Trys to replace a type in the whole Project.
Syntax Check: lol no, apparently everything is broken now, good job
(literally my whole project was marked red)
Reverts changes
(project still marked red)
Syntax Check: lol what? Your code already looked like shit before, won't let you compile this.
It was a bug which breaks the syntax check after big replace requests. Had to start a new project and copy my code step for step, so it didn't break again. However I've forgotten to replace the type before I copy...
Another story regarding this shit:
Renames Variable
IDE: oh, let me help you by replacing all old var names with the new one
Agrees
IDE: oh shoot, didn't know it could break things
Wants to revert
IDE: did you think I would go through this mess again?! Do it yourself!3 -
TAP ONCE WITH TWO FINGERS FOR A RIGHT CLICK!!! ONCE WITH TWO FINGERS !!! NOOO NOT THE TOUCH PAD RIGHT CLICK DON'T TOUCH THAT!!!
NO NO NO DON'T DO THAT...
DON'T SCROLL BY HOLDING THE LEFT BUTTON AND DRAGGING...
TWO FINGERS SLIDE TO SCROLL
BARBARIANS ALL OF U3 -
It feels so great to check a box from your to-do list... even if it's as little as creating the project file.1
-
Stuck in a stalemate maths eq, guess I'm bad at it
case 1:
971 - 291 = 680
680 - 15 = 665
case 2:
291-15 = 276
971 - 276 = 695
Why the fuck both eq different?4 -
What do you mean you sent a fucking mail about it? Theres a reason we have case systems with case fucking numbers. Its so that we can keep track of different customers, which is crucial for day to day operations. You retarded fucking fuck.
-
Every time I read something on computer (which I haven't previously come across), I can't figure out whether it's a l ( small case letter L) or a I (capital case letter l). Worst case is working with passwords. :(4
-
"Oh computer, your real name should be porn funnel. I love my family more than you, but only collectively. on a case by case basis I love you more than any individual family member. "
-Nerd 'robot chicken' -
I thought my project would break on an edge case and I would have to spend 2-3 hours rewriting some code to fix it. Turns out I had already thought about that edge case when implementing that functionality (which was like 6 months ago), so nothing breaks and I don't have to fix anything. What a pleasant surprise!3
-
I'm finally going on vacation, which is good, but I already know there will be many stupid people writing me endless private messages about them being banned or their server not working correctly BECAUSE OF THEIR OWN SCRIPTS and they will spam me like they usually do although I WRITE THEM I'm out of the office but they don't care since they don't have other things to do than COMPLAINING ALL DAY.
Geez okay, I got to calm down, I'm on vacation, don't want *that* to ruin my mood.
It was stupid to ban all those people for breaking the rules today though, should have waited another week, so guess this one is on me.1 -
I was pissed off beyond all reason yesterday when I realised that the reason my code didnt work for 2 days was because i spelled eForm with an uppercase F in my data model, and a lowercase f in my object classes. There was no way for the compiler to warn me so everything compiled fine but crashed at runtime when I tried to access that property. When I saw it, my head hit the desk....
-
got my Devrant stickers!!!
attached them to the PC case I decided I'll be keeping for the rest of my life (I just love this case). Ended up super gluing part of the big sticker to my desktop.2 -
Any disposable e-mail address service:
"FIGHT THE SPAM"
"THANK YOU FIGHTING THE SPAM"
"YOU DID GOOD BY FIGHTING SPAM"
The users of disposable e-mail address:
*creates another spam account*
*creates another multiaccount in order to exploit a system*
Companies actually fighting spam:
Now there is even more spam to fight against. (which is not good)
About 2/3 of the accounts created daily on our website are spam accounts. We have to waste our time with this shit instead of actually improving our services. Since we do not track IP-Addresses and there are countless amounts of disposable e-mail domains AND there is still the option to create countless spam e-mail addresses within legit e-mail providers, there is no easy way of stopping this madness.
"Fight the Spam", you could start by deleting your shitty service or at least give us a list of all the domains you're using, srsly. -
so some controversial opinions
Our company is moving most of our code style to snake_case, even the JavaScript. Here's our resoning:
Take the CustomerAccountMembership model. In our Python server, we would access it as obj.customer_account_membership, in JavaScript as obj.customerAccountMembership and our API endpoint as api/path/customer-account-membership. Thus we had several String utility functions such as `camelize`, `kebabChop` (which is ironically camelCased) and `snakeify`, and we would use them in translating from URL path to JS to Python, which was troublesome.
Now HTTP allows _underscores_ unescaped and do not pose any significant meaning. JavaScript also accepts it as a valid character in variable names. On the other hand, HTTP is strictly lower-cased, and all computer languages use the -dash- to signify subtraction. Sooo the _underscore_ is the only style that is compliant everywhere.
Unless, of course, we go with customeraccountmembership, which I refuse to do.
I'm not that deep into code character rules.
Opinions?7 -
I guess asking my friends for their opinion is part of my workflow and I really shouldn't do, because their reactions tend to be demotivating and frustrating all the time. As if I don't have enough to worry about already.
-
Currently trying to make a multi boot machine, with a lot of linux distros inside, like debian, fedora, gentoo and arch.
I know I will have to format everything a lot of time, because of stupid mistakes, I want to try to put /home in common, and play with some more SSD, and to put a preempt_rt patched kernel somewhere.
I am starting from debian,
Format counter: 3
Reason 0: because i need to install at least once...
Reason 1: I am stupid
Reason 2: I disconnected the SSD,to connect a disk with windows. Now bootloader doesn't find any os in the SSD anymore... still no clue, and in case of doubt: give windows the fault 😠😠😠
DAMN YOU WINDOWS, how did you find that I want to use debian? What did you do to break it?? (Despite it wasn't even connected?!?)
I have checked everything about secure boot, and I am sure it is disabled...
And every search online gives results about dual boot, but it is not my case... :/ -
I was taught Perl and Java in just under 3 months during my Master's in Computational Biology which fueled a dislike towards these, so I self-taught myself Python and JavaScript in my free time and loving life now!1
-
Something you really should not do:
*adds a new feature*
*build & run*
*See no difference*
Me: "Hmm.. Maybe 1 is not the best test integer, let me pick something higher..."
*build & run*
*INTEGER OVERFLOW EXCEPTION*
Feel free to share your "let me choose anothee test integer"-stories, which gone terribly wrong.1 -
In case you want to become a front-end dev learn your basics. Dont use position absolute if not necessary. Don't margin -300px, if that's the case to position something there is another error in code that could be fixed to solve this
-
Today my ping caught me off-guard once again, but I will stop this madness for all eternity! Writing the ultimate ping tool, so I never have to fear high ping ever again.. well I cannot fix my f*cking internet provider, but my ping tool can warn me, even if it detects only the slightest inconsistency!
But first I have to figure out why my tool doesn't output the ping... -
;)
function getReason(num) {
switch (num) {
case 1:
console.log("Love to create something new!");
break;
case 2:
console.log("It's fucking cool!");
break;
case 3:
console.log("Money!");
break;
default:
console.log("Fuck offffff");
break;
}
}10 -
I would love to reschedule my whole life to live during the cool night time throughout the summer, but I can't because I don't live alone...
Guess I have to feel like garbage for the next few weeks...2 -
16h a day. I was late for a birthday present so I worked on it for as long as I could. It took me 2 months and I was not done in time...
I had eyestrain of death and all this trouble only for a freaking birthday present.
But the present was good, although it was incomplete.2 -
When someone calls me VincentNwonah and expects me to answer. but I'm a programmer and VincentNwonah is a different object from NwonahVincent. ;p
-
Friend keeps gold coin in case the economy tanks. I have a home git server in case the Internet goes down.1
-
//In the code block below. What are both self methods refering to? do both self methods refer to the Suit enum because it is inside the enum block? I am trying to better understand self. Please see link for expanded question.
enum Suit {
case spades, hearts, diamonds, clubs
var rank: Int {
switch self {
case .spades: return 4
case .hearts: return 3
case .diamonds: return 2
case .clubs: return 1
}
}
func beats(_ otherSuit: Suit) -> Bool {
return self.rank > otherSuit.rank
}
}
https://code.sololearn.com/c9KIG0ab... -
I wanted to resetup my gitea on a newnserver and now? I can't connect with the postgres db and i have literally no idea why. it fucking worked when it ran on my old debian and now it won't even connect.
😭 -
TL;DR I just recently started my apprenticeship, it's horrible so far, I want to quit, but don't know what to do next...
Okay, first of all, hey there! My name is Cave and I haven't been on here for a while, so I hope the majority of you is doing rather okay. I'm programming for 6 years now, have some work experience already, since I used to volunteer for a company for half a year, in which I discovered my love for integrations and stuff. These background information will probably be necessary to understand my agony in full extend.
So, okay, this is about my apprenticeship. Generally speaking, I was expecting to work, and to learn something, gaining experience. So far, it only involved me, reading through horrible code, fixing and replacing stuff for them, I didn't learn a thing yet, and we are already a month in.
When I said the code is horrible, well, it is the worst I have ever seen since I started programming. Little documentation - if any -, everywhere you look there is deprecated code, which may or may not been commented out, often loops or simply methods seem to be foreign for them, as the code is cluttered with copy paste code everywhere and on top of that all, the code is slow as heck, like wtf.
I spent my past month with reading their code, trying to understand what most of this nonsense is for, and then just deleting and rewriting it entirely. My code suddenly is only 5% or their size and about 1000 times faster. Did I mention I am new to this programming language yet? That I have absolutely no experience in that programming language? Because well I am new and don't have any experience, yet, I have little to no struggle doing it better.
Okay, so, imagine, you started programming like 20 years ago, you were able to found your own business, you are getting paid a decent amount of money, sounds alright, right? Here comes the twist: you have been neglecting every advancement made in developing software for the past 20 years, yup, that's what it feels like to work here.
At this point I don't even know, like is this normal? Did git, VSCode and co. spoil me? Am I supposed to use ancient software with ancient programming languages to make my life hell? Is programming supposed to be like this? I have no clue, you tell me, I always thought I was doing stuff right.
Well, this company is not using git, infact, they have every of their project in a single folder and deleting it by accident is not that hard, I almost did once, that was scary. I started out working locally, just copying files, so shit like that won't happen, they told me to work directly in the source. They said it's fine, that's why you can see 20 copies of the folder, in the same folder... Yes, right, whatever.
I work using a remote desktop, the server I work on is Windows server 2008, you want to make icons using gimp? Too bad, Gimp doesn't support windows server 2008, I don't think anything does anymore, at least I haven't found anything, lol.
They asked me to integrate Google Maps into their projects, I thought it is gonna be fun, well, turns out their software uses internet explorer 9.. and Google maps api does not support internet explorer 9... I ended up somehow installing CEF3 on that shit and wrote an API for it in JS. Writing the API was actually kind of fun, but integrating it in their software sucked and they told me I will never integrate stuff ever again, since they usually don't do that. I mean, they don't have a Backend as far as I can tell, it looks like stuff directly connects with their database, so I believe them, but you know... I love integrating stuff..
So at this point you might be thinking, then why don't you just quit? Well I would, definitely. I'm lucky that till December I can quit without prior notice, just need a resignation as far as I can tell, but when I quit, what do I do next? Like, I volunteered for a company for half a year and I'd argue I did a good job, but with this apprenticeship it only adds up to about 7 months of actual work experience. Would anybody hire somebody with this much actual work experience? I also consider doing freelancing, making a living out of just integrating stuff, but would people pay for that? And then again, would they hire somebody with this much experience? I don't want to quit without a plan on what to do next, but I have no clue.
Am I just spoiled, is programming really just like that, using ancient tools and stuff? Let me know. Advice is welcomed as well, because I'm at a loss. Thanks for reading.10 -
to me, "var a" is unorthodox. i'd rather use switch(expectedOutput){case 1:a=1;break;case 2:a=2;break;case 3:a=3;break;case 4:a=4;break;case 5:a=5;break;case 6:a=6;break;case 7:a=7;break;case 8:a=8;break;case 9:a=9;break;case 10:a=10;break;case 11:a=11;break;case 12:a=12;break;case 13:a=13;break;case 14:a=14;break;case 15:a=15;break;case 16:a=16;break;case 17:a=17;break;case 18:a=18;break;case 19:a=19;break;case 20:a=20}1
-
sometimes I have random curiosities while I'm out and unable to test things. this is one of them (will comment with answer if I ever test it):
obviously writing aliases to make things you do frequently easy is a win. but what about typo aliases? stuff like sl, dc, she, etc. these aren't typo'ed often (hopefully) but are defined every single time you create a new terminal.
has this probably miniscule overhead actually been meaningfully measured?
question: how many aliases must be defined to cause a significant (say, 3sec?) slowdown when opening a new terminal? -
Imagine that I have written 1000 lines of code and imported many libraries. Sometimes I get confused when trying to use a name I defined earlier. In my mind is this name a class or a method, is it a local or global variable, is this a constant. So I came up with a way and it totally works, although my ide complains, but who cares, I use it anyway.
I use PascalCase for class.
camelCase for methods.
snake_case or lowercase for global variables.
kebab-case I don't use this
UPPER_CASE for constants
snake_caseL or lowercaseL with a capital letter L at the ending for local variable.
I hope this is helpful 😊🤔11 -
Instead of using MySQL, I zipped a bunch of json files... It's fast, but definitely not reliable, I was young and stupid, I should finally getting started with mySQL, srsly.2
-
Seriously, what's with the naming ordeal?
We start with userInput, then spiral into userInputUpdatedFinalV2
Are we writing code or crafting spell incantations? camelCase, snake_case, kebab-case, PascalCase – it's a syntax battleground.
Can we have names that make sense, for sanity's sake?3 -
In the first place I dont do it that often in private projects because the estimation is always wrong.
At work i just think about best and worst case scenario and the average time it could take. If the the worst case scenario is really time intensive and there are a lot of factors that could go wrong in contrast to the best case, I significantly increase the estimated time for the task. Otherwise its 1/6 best case; 1/6 worst case; 4/6 average time2 -
Did anyone of testers know if there is any free online test case management tool available for small development project? since I was trying to use JIRA, but the license is not free. So any advises? Thank you.1
-
In case of hot debates...joke/meme tgaa troubleshoot windows visual novel count to 11 with microsoft reply ace attorney argument1
-
Wanacry didn't touch me yet, my gaming machine is on Windows, I disabled the update service, I haven't restarted it for 2 months now...
Now doing an update, just in case
My laptop is dual booted with antergos, my work files are all on onedrive, so if something happened to my laptop it wouldn't be the worst
Still disabling the update service after the update :P13 -
So we're supposed to test even the most imporbable edge cases to make sure that our software is reliable. But there is a limit. We let a marketing intern go bug hunting. We use the same component in two tabs of our SPA, but we distinguish them through some parameters. The intern found that if you switch back and forth between those two tabs super fast a couple of times, the program for some reason confuses those two tabs and swaps them. Now management has listed it as a priority. When are the customers _ever_ going to do that?!4
-
How do case insensitive searches work?
Usually if I needed case insensitivity, I'd probably just store all the keys in lowercase and for searches convert whatever is typed to lowercase.
But what about Google. Can't convert everything to lower.
And if need to check the lower and upper case of each letter, like in a Tree, you would need to go down 2^N paths?20 -
Friends:
They want you to listen but they never give a shit about what you're talking themselves. This is why I have quit most of my friendships and practically replaced them with devrant, not sure if it was a good idea in the long run though...2 -
switch (type)
{
case QUESTION:
I'm program'n. What about you?
break;
case RANT:
This ain't no rant--this be question.
break;
default:
Enums are fuck'n awesome!
}1 -
I just want to pet their grown up kitties
Human and otherwise
And I want to viciously penetrate the masters with.. something
Will vary from case to case lol25