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 - "cases"
-
Girl : I like dangerous men.
Me : I didn't run test cases while committing my changes last night.
Girl : my hero!
Me : *wakes up from the dream*14 -
When CS professors are lazy to grade so they think they can just give you any grade without you questioning them...
Me: Hi Professor, I see I got a 94 out of 100 on my 2nd project. Your comments said, some of my functions didn't pass your junit test cases.
Prof: Yes!
Me: How come? I tested it several times before submitting and they all passed the test cases. You gave us the test cases to write the code for.
Prof: Yeah, but some of your functions aren't passing on mine.
Me: Since I'm in your office, can you please run it again so I can see?
Prof: Are you doubting me? I gave you the project and I'm telling you they're not passing my test cases.
Me: I just want to make sure because I did work really hard on this project to pass all the test cases. *Runs the code to show him on my laptop and they all pass*
Prof: Fine, let's run it together on mine again. *He runs it and they all pass on his laptop*..hmm, that's weird. They didn't pass when I ran them. Maybe, because of the IDE I used earlier.
Well, looks like you get your 100.
Me: Thank you but which IDE did you ran it in that failed? Just wondering..🤔
Prof: Doesn't matter now...they're passing. Just be ready for your next project...you guys will be writing the test cases yourself this time..9 -
YOUTUBE HAS A DARK THEME?
How long has this been going on and why didn't I know about it? In all cases, I just turned it on and it seems like the start of a good day.14 -
FUCK.
That feeling when you get inspired with an idea for a web app, do a quick search and find out there are already 2-3 sites that offer exactly what you envisioned...
My motivation just sinks so low after cases like this!
PISS.15 -
For my fellow javascript devs:
var floored = 12.68 | 0;
Is much faster than:
var floored = Math.floor(12.68);
And in both cases floored === 12
#JustJavascriptThings ¯\_(ツ)_/¯
Source: http://stackoverflow.com/questions/...
Performance test: https://measurethat.net/Benchmarks/...5 -
I curb procrastination by throwing in a random "sudo rm -rf --no-preserve-root /" to my test cases to see if I have unsafe evals. It's like Russian Roulette every test.1
-
Fun/Interesting fact:
"++i" can be slightly faster than "i++"
Because "i++" can require a local copy of the value of "i" before it gets incremented, while "++i" never does. In some cases, some compilers will optimize it away if possible... but it's not always possible, and not all compilers do this.15 -
My Sunday night:
8p.m. “finally, down to one small function.”
9p.m. "shit."
10p.m. "why......"
1a.m. "aaaaaaaaaaaaaa finally done! Time for test cases."
1:15a.m. "shit."
2a.m. "why TF..."
2:36a.m. "Done, done, done!!!!" *Submit
2:37a.m. writing this post.1 -
Manager: In ALL cases if someone uses vanilla javascript to do something instead of a library then that is a sign they are an ABSOLUTE BEGINNER!!!
Dev: …11 -
Me: Listen dude, the code worked perfectly and all the test cases passed so I'm done here.
Also me: What is this? What the fuck is this? Why does this work? What witchcraft is this?
*Screams internally*1 -
🎶 On the sixth day of debugging my program gave to me ...
6 failed tests
5 help forums
4 broken dependencies
3 edge cases
2 moving specs
And 1 keyboard smashed in rage 🎶
This little carol is dedicated to the buggy-as-fuck nodejs project I was given for fixes and updates.
Happy holidays everyone6 -
Company: We were able to save a couple of dollars by purchasing an entire fleet of ipads instead of iphones through our supplier!
Dev: Our users walk around an industrial facility carrying things all day, how will they carry these devices now that they no longer fit in their pockets.
Company: We can get them backpacks!
Dev: …
Dev: did you at least buy protective cases for them?
Company: We have to save money! Don’t worry we told the users not to drop them. Plus none of the old iphones were ever broken so this is a non-issue.
Dev: The iPhones are in cases, they drop them quite a bit.
Company: Oh, well they shouldn’t be doing that!
** They proceeded to buy the cheapest knockoff cases I’ve ever seen. At least one ipad is smashed a week now, backpacks aren’t used because of lack on convenience. All this in the name of seeming to shave off a couple bucks for a one time purchase that didn’t even need to be made, iphones were working perfectly fine. Meanwhile there are glaring issues at the company getting ignored because they get themselves continually distracted by unhelpful pet projects that address things that are not broken and often make them worse.8 -
- Premature optimization is bad and wastes your time
- You need to see the big picture
- Always add extra hours to your estimates
- Test your feature like a QA engineer; look for the edge cases2 -
> Writing some code 😀
> Compile it
> 10 errors 😣😣
> Debugging mode on😎
> Write about 100 print statements to debug the code
> At last found errors and now remove those print statements😅
> Compile code
> 2 out of 30 test cases pass😤😤
> Exhausted and angry😡
> Silicon valley new episode arrives🎉
> Super excited after watching the episode and think like you too can code like Richard Henricks😎😎
> Coming back to the old code and build logic from scratch
> Compile and finally all test cases pass
> Task completed😂😂3 -
I really miss the days when Windows XP had product keys on stickers stuck to computer cases. If I ever needed an XP product key, I just went to Staples and wrote one down from one of the machines on display.9
-
I saw one guy in Office writing unit test cases and documentation for his code .
Such a psychopath!!!9 -
Indian web dev company (during the interview)::
We follow standards
Me:: Hey, can I get the project's github link so that I can fork it, do my tasks, run test cases, push and, make pull request that you can review, run integration test, and finally merge.
Indian web dev company:: What?? Here's the ftp credentials.
Me::12 -
I just love articles like "Moving from Go to Node.js"
2 completely different topics and different use cases and can't and should not be mentioned together10 -
No one:
Absolutely no one:
Microsoft: "What about if our camera app stops recording as soon as its window is minimized because there is no such thing as people filming themselves reading from screen?"
You have to be impressed by the ability of these fucking morons to make common use cases artificially hard to do with their software.3 -
Let's see the coder in you.
If I give input: 1 output: 2
If I give input: 2 output:1
Only these two test cases needed.
You should not use control structures such as if,else,for,while,switch etc. (The answer is simple) (Don't cheat)
int number;
cin>>number; //get number
cout<<??????; //Your code53 -
Why are all flat and fully closed design raspberry pi zero cases either only available in a fucking $100 bundle or have holes somewhere to accomodate for the fucking pinheaders or just random dickholes, for no fucking reason.21
-
5" phones are too big.
15" laptops are too big.
Mid tower cases are too big.
Yet the market seems to disagree with me.24 -
My project at work (an electron/angular desktop app) has an exceedingly rare bug that causes it to crash-to-desktop while loading. Nothing about the bug makes sense, and there's no way to catch or detect it until the next run, and it happens 100% of the time for affected users.
There have been six confirmed cases so far (out of 500k+ users), and nothing linking them together. None of the fixes discovered by those users have worked for other affected users.
The worst part?
I was the first of those cases. I inadvertently fixed it for myself and haven't been able to reproduce it since.
I'm stumped!17 -
$str = str_replace(array("\{","\}")," ",$str);
//Replaces with spaces the braces in cases where braces in places cause stasis1 -
My PM once inserted test data directly into the dev database [ We do have an admin panel ].
Took screenshots of what was not working properly with the imagined data.
Posted them on the WhatsApp group.
Greets me in the fucking morning with "I WROTE TEST CASES YESTERDAY".
FTW -
Project for school: The answer in most cases is no. I feel glad I could make a documentary on this topic.25
-
Why do we have code reviews:
To stop stupid crap like column names with mis-matched cases:
* FirstName
* Lastname
Now it's in the production APi and nobody can change it.8 -
I think I'm falling in love. With TDD.
I used to be very skeptic about it. You know, the usual reasons: it takes longer to deliver, constant "flow" interruptions, etc, etc. But ever since I've tried it I'm nothing but happy about my choice :)
I'm moving forward, I'm not making any regressions, I'm no longer afraid to make any changes in my code as I know tests will show what exactly I break,.. And most importanty, I have all use-cases with corner-cases defined and "explained" in the code... No more do I have to search in Confluence for how this exact scenario should behave. Everything is here. Everything's in the tests.
It's amazing!
Yeah, it DOES take longer to deliver so if you're hardcore Agile living by "Ship it as soon as it compiles" TDD might be too slow. But if you prefer knowing when your code is covering all the use cases w/o any errors -- TDD is the way.12 -
Three days thinking of a solution to a problem in HackerRank...
Came up with a very elegant O(n+m) solution... failing several test cases...
Check here, there, over there. Everything seems flawless...
Re-read the problem statement letter by letter. There it is, I misread the requirement. FML8 -
Let junior dev design module.
Make code review.
What junior dev says: "It is a totally flexible concept!"
What junior dev means: "It is extremely shitty to use for the one use case it was meant to do, but it will be equally shitty to use for all the use cases we will never have."
Back to square one.9 -
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 -
Kevin, we use the v2 of the Java AWS SDK. Stop dragging in your crappy v1 dependencies, in many cases *duplicating* the bloody v2 dependencies anyway, because, I quote:
"Stackoverflow and AWS don't seem to have many examples using the v2 SDK though"
Use your bloody brain and figure it out, Kevin.2 -
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
-
I'm writing a huge program of identity management from two months, taking data from different sources and edit them to comply with a lot of cases. Today, my boss told me that he changes idea and my code is now useless... I would cry.4
-
You don’t appreciate how large a project really is until you have to write tests cases for QA, to cover most work flows.
God this is mind numbing, only half way there... I think 😰3 -
Me : hey do you remember that c++ file ?
Him : which one ?
Me : the one with 69 if-else's and 420 switch cases ?
Him : oh yes I remember, but I don't remember, or do I ?
Me : -_______-7 -
The most frustrating situation
when you do competitive coding...
2/50 test cases failed . tried all possible .. and still not done !!
its like "operation success patient dead" .....12 -
Me: yo DEV2 parse this string into a hashmap. Use regex, 2 rows of code are enough for the job
DEV2: implemented 40 rows of switch/if cases into nested for loop.
Please kill me 🔫🔫🔫🔫🔫🔫🇮🇹3 -
„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 -
Worked so many hours on a bug. Some manager thinks my code is too complicated. He asked my coworker to take my pr, then remove all logic that handles many edge cases. Now the shit is merged 😂. I hate my job8
-
Electron....
Ok so recently I have seen many people hating on electron like here https://medium.com/@caspervonb/... ...
I understand that it may not be efficient or native whatsoever but it has specific use cases in which it is ideal. For example Discord (a teamspeak/Skype for gamers) is an amazing platform and they used to be web based. Eventually people wanted a desktop app for all these platforms so they used electron. i have used discords desktop app for 5 months and NEVER have I seen it go over 1 gig of ram or 3% of my cpu.
Electron isnt bad it just has specific use cases. Its like NoSQL, it's awesome but not for everything.2 -
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 -
Today I was writing Selenium tests and was struggling to find a good way to test a text editor. We did a weekly code review and my team lead rewrote the test ij 10 lines to generically handle all cases.
Hopefully I'll be a good dev someday. 😔4 -
The moment the first news article was published in my country about covid cases decreasing (it isn't actually decreasing btw), these motherfucking sweatshops just swarm in like a pack of fucking hyenas to open up and get their employees killed again.
What the fuck is up with this sweatshop bullshit attitude of "Devs won't work unless I micromanage them in person" you twats? My productivity has literally doubled the entire time I was at home.
And this sickening, narcissistic email about how we're supposed to enthusiastically go for work and meet our friends and increase productivity, yay, jesus fucking christ, my apartment has two ongoing cases. Try living in the real world some times you HR troglodytes. -
Who else makes it a habit of (in most cases) upvoting the main post when they respond to it?
Unless it's just a terrible post but you had to say something.
But anything neutral and above I respond to, i++14 -
When the devs "fix" the unit tests by modifying the test cases so they pass.... Bugs are still there, but our deployment succeeds now. Oh federation....1
-
Our team(except one guy) does follow TDD, it may or may not be the best but solves for us in most cases.
This one guy follows HDD : Hope Driven Development.
He writes some code, checks_in and HOPE it works :-)
And breaks preprod almost once per week.2 -
My mum told me to, "get the sheets of the line."
I did as she asked, but later that night she came back and said, "where are the pillow cases?" -
Yesterday my cousin called me to fix his scanner, he said that it didn't work anymore. When i went to his house to check it out, the scanner worked properly! In the 99% of cases, the problem is between the device and the chair2
-
Go to the vacation.
Return back to see all those useless features that should not be part of the MVP, that I have previously rejected multiple times, poorly implemented...
Now we have to maintain this shit, that nobody even uses in real life...
Fucking imaginary use cases... -
"test cases should have an identity and a reason for being" well shit, I'm not even sure I have those things4
-
- build a self-service shell script to manage your environment in all kinds of ways with a single script and different switches
- ask tech manager for a server to keep that script [and others] at so coleagues should not bother setting dependencies up on their windows workstations
- be asked to list out all use cases
- be promissed your consolidated tool will be torn apart and replaced by 8 other tools depending on use-cases. Meaning 8 different browser windows open at all times to manage your single env
- be assured that this kind of improvement will take months and is doubtful to pay off2 -
Fuck you edge cases! This task was supposed to be a breeze and thanks to you it’s turning into a nightmare 🤯2
-
Damn, CSS Grid and Flex are fucking awesome!
I've been using both at least a year now and with a handful of SCSS mixins they have made the never-ending misery of front-end bearable.
Before I was forced to use Bootcrap floating grid and it was just a fucking mess and in some cases made JS hacks necessary.4 -
Holy crap, I can't take it anymore.
I know that user acceptance testing is supposed to be done by the end user but it's as if they entirely skipped UNIT TESTING and QUALITY ENGINEERING.
Does their API work? Yes. It does.
Are their endpoints working? Sort of... why are query parameters required again?
Is it good overall? No, there are CORNER CASES ALL OVER THE PLACE (are they even still corner cases at this point?). It feels like it was made by amateurs!
Why am I doing quality testing on their services??? holy crap, they should pay ME for doing this1 -
When you find out you didn't need that if-else statement in your code if you simply made an additional variable with an expression that works for all cases of that if-else statement
-
I would make unintelligent customers disappear.
Reason:
What did I do today, one may ask? Spent the entire day debugging code and creating test cases to fix a high priority trouble ticket submitted by the PM of a program.....where nothing was wrong to begin with.
User error makes the world sad.7 -
Why arePC cases so damn useless and ugly nowadays. It's either a cheapo metal box with perforation on the side panel (why?!), Or a decent one with filters but also with a shitty and useless glass panel formo reason.
Why can't cases be just functional metal boxes with filters? Why all that useless shit?30 -
Stocks are up, bitcoins is up, gold is up, bond rates are down... Which means prices are up...
COVID cases are up...
Nothing makes sense anymore... Maybe I should just give up...14 -
Sprint 0: This design is the appropriate amount of engineering abstraction.
Sprint 2: This is over-engineered, too much work
Sprint 5: This is under-engineered, too many edge cases
Sprint 10: This is over-engineered, component Foo could be replaced by a bash script
Sprint 42: Foo is now the cornerstone of half our business logic2 -
I am getting paid just to develop a FYP project for two students.
After 3 weeks;
"When are you gonna do the charts, use cases etc?"
"WTF?"2 -
I hate when some programmers say that goto should NEVER be used. It's clear that in common cases is not needed but there are situations where goto is the best solution10
-
What kind of seizure of insanity led the devs of Python to believe that static, mutable default parameters could be a good idea? You can literally share whole arrays between multiple calls of the same function with the same input, and the number of cases where a sane person would intentionally want to do that is FUCKING ZERO.4
-
So when code is badly written, more corner cases are unnecessarily introduced. And it’s sometimes tricky to find the corner cases and probably messy to fix the corner cases.
And so the code grows in size as a result. And when these fixes to the corner cases are not well done, they introduce more corner cases.
So what results is a large collection of corner cases. Only corner cases remain when this goes on for a while.
Because of this, every new feature can be effectively translated to a collection of corner cases to be implemented.
As corners grow, triangles become circles and tetrahedrons become spheres.
I live in such a sphere.8 -
Guys. GUYS. There are so many freaking weird edge cases for regular expression evaluation. *head desk*8
-
KISS, DRY, Path of Least Resistance, Three Strikes and You Refactor, early returns, no array.map when nothing is returned, only use switch when # cases >= 3.
And using var in javascript instead of let/const to piss off my colleagues (and because I understand function scope well)6 -
Worked on an Android app that synchronized contacts. Didn't consider the contact id may change, leading to (rare) cases of properties being synchronized to the wrong contacts. Only found out later in production when one of my frequent contacts called - and my phone showed a wrong profile picture for him.
-
That awesome moment when your code passes all the test cases 😁
Anyone else likes competitive coding??1 -
Why do people compare languages? Like C++ vs JAVA, C++ vs Python, C++ vs Elixir?
All languages are best in their own specific use-cases. So why we need to compare all this stuff?
Or might be I am wrong.19 -
The best kinds of comments:
/**
Gets user CC info datas.
*/
public Object getUserCCInfoDatas() {}
If you really want to outdo yourself:
/**
Gets user CC info datas.
@param someshit Outdated docs ftw
*/
public Object getUserCCInfoDatas(String unrelatedToDocAbove) {}
Honestly, no documentation is better in some cases. At least I can't be angry about their shitty quality... And they don't waste my time.1 -
I wondering what could possibly slow down our server app , Just found out there's one mother fucker who use async in every cases and async everywhere. Hey not all function are async!3
-
React is an overengineered pile of shit designed to let pretentious developers show of their golden arse holes with useless implentations of worthless business cases where everything and anything is an abstraction of some silly theory.5
-
One day before beta is the wrong time to tell me you refactored the entire licensing module - and have zero test cases for it.2
-
Idk why but i rarely see devs who lift. All i see is 2 different types of devs;
- who runs
- who doesn't run which either leaves him to be very skinny or somewhat fat which both cases are unhealthy af.10 -
Who said CSS/Sass is not worth commenting? I'm fed up with those devs not commenting a single thing in their code. CSS/Sass might seem simple but there's many cases where a single line of comments would save you 10mins, or more... FFS!4
-
I see a lot of complaining of managers talking about blockchains, but I would like to know if someone actually had to make a blockchain system because of managers and for what purpose? It seems to be completely useless for most of the cases1
-
Just got a Google Home. I'm very impressed with it, there's just so many possibilities with it. I just found out I can trigger a HTTP request using my voice (!). So now I need to find out good use cases and build a server.
Ideas?7 -
Is it just me or do a lot of job ads seem daunting? Companies seem to expect you to know pretty much every major tech stack, and pay less than 35k and in some cases as low as 28k... Unbelievable 🙄8
-
My Frankenstein monster.
Scraped out of discarded parts thrown away by friends and ex's (in most cases easily fixable by changing fried parts).
It looks like shit and runs even worse, but considering that out off all the setup only mouse and keyboard are actually bought and not 8+ years old or held together with glue and hope, I'm quite fond of it.2 -
Is there a Developers' Manifesto? Like Agile Manifesto?
If not let's start one here, I'll start:
-We should not be working outside work hours except for exceptional cases, hours != 24/7 && exceptional != 7 days a week
-Death to last minute changes!
-Everyone needs to understand Murphy's Law, it's real!3 -
Product Management thought of automating an entire legacy product so they funded undisclosed amount to program management who in turn hired >20 contract devs managed by architects and dev managers with zero functional or technical knowledge of product and who in turn went ahead automating the product in selenium, end result of which was an useless automation framework with lot of browser specific dependencies and whuch could run only on one setup environment and migrating test cases to another environment and running is almost impossible and tyrannical to configure. The automation test cases are highly disorganized with all generic setup, DB configurations and business case test data mixed up in same config files and which need to be rewriten every time ported from one environment to other.To add misery to my woes as a dev working in that product I was told to utilize that framework and enhance the quality of my code by writing inline automation Cases for the same. I am left speechless thoughtless and emotionless after that decision.2
-
One more easter egg. What a coincidence Thanksgiving and easter egg. Is there some AI ?
https://stackoverflow.com/questions...3 -
The most shittiest feeling in competitive programming is when your code passes all the test cases except the last three. 🤓😌2
-
"The job description requires Java, and this candidate knows Javascript, are they interchangeable?"
No they are not, lawyer handling H1B immigration cases. No they are not.3 -
Yesterday my tests caught more typos in copy/paste test cases than in actual logic.
'twas was a decent day.2 -
When you're at the end of a sprint, implemented a cool new feature and only the garbage issues are left over -.-
-
There is no damn worldwide shortage of Cobol devs. There's a few localised, highly publicised cases where those devs are needed, those cases are diminishing fast, and that's about it.
Please stop touting this nonsense that everyone who learns Cobol can just drop into a job and make 6 figures. The only thing that's going to come out of this is a worldwide surplus of devs who learnt Cobol, and are now gobsmacked no-one wants to hire them to work in an antiquated language they have zero real-world experience in. -
My worst legacy code experience:
>10k lines of switch case statement with "some" fall through.
Even fall through for 4 or 5 cases.
This monster was copy pasted and modified over years (Order of the case statements and another fall throughs).
So you can't diff this piece of shit for refactorings.
Luckily I leave that company. -
Stackoverflow(ed)!!
Lucky to see this today.
Must say, the very next page refresh the site was up.
Don't know if it was really a maintenance or just an alternative message in some cases.
Had this been continued for some more time then many tasks' dev completion dates would have got affected. 😬 -
What would be the better approach for loading very big in size or in quantity files in java?
1) Loading data parallel through multiple threads
2) Loading data in series in a single thread
3) any other methodology?
Just asking because loading time is varying both cases.16 -
When you contact the API communication support of the supplier, and several emails and test cases later they still fail to understand your problem.1
-
I'm gonna rant about how Discord does not let you disable 2FA after having it enabled if you forget the code they provide for cases where you don't have access to the 2FA in the first place and I lost a damn account to that :/8
-
I don't know why, but in DevRant's weekly rant, I always find a word that I cannot understand. Even google translate is not that helpful in those cases. for this rant, the word is "Procrastination" :-/
Why some English words have to be so terrifyingly hard? These words always make me stay away from writing for the weekly rants :-/18 -
The moment I realized test cases are just super tiny applications that make use of parts of your codebase to run things and see what happens.1
-
I keep hearing about manual repetitive work that could be automated with software but for no specific reason, is not. For years I've been calling this "meatware" and yes in these cases you the developer is the meat3
-
A bunch of testers got laid off at my company and we're facing a release. So our PM put all developers on testing with a total of 6k test cases (!).
The overall mood at the office is not good..4 -
If a frontend dev asks for screens, mocks, designs or whatever, all the company pushes for it and gives it to them, but if a backend dev asks for a set of input/output samples for a feature, the same people claim "its so hard to think about the cases"... Wtf are they thinking?3
-
Fun fact: after iPhone 4’s antennagate (iPhone 4 losing reception when you grip it hard enough) Steve Jobs and Apple didn’t screw people over. They offered free cases that fixed the issue.6
-
There is a Codingame Level wich took me a whole fucking day. I was soo happy when all those test cases passed!
-
Get assigned a PR review
Spend half an hour meticulously looking through it
Looks flawless, no errors, compiles, test cases passing, expected results
Approve request
Another developer immediately finds a flaw
Fuck. I think I am totally incapable of making myself look good.4 -
Windows containers with Kubernetes on AWS and Azure are thing now.
What does that mean? Is it now possible to containerize system critical windows 3.1 legacy software from the 90ties (like the ticketing software at Airport Paris Orly) and orchestrate it in the cloud?
Do you know any use cases for Microsoft Windows in the cloud?2 -
Target: Migration of an old system(not developed by us) to a new without touching existing applications.
Todo list:
[✅] Migrating old webservice from VB.NET to C#.
[✅] Decide if we go to the old system or the new based on the document class.
[✅] Start implementing same logic to the new system so the results will be the same.
[✅] Stunble across a search method with fuck up logic.
[✅] Create test cases to foresee all cases.
[✅] Implement logic for new system.
[✅] Stuck in infinite refactoring to fix existing bugs brougth from the old code to the new while mantaining the response the same.
[ ] Become insane during the process. (In Progress) -
We kinda feel the feature you lead was messy because even though you brought up valid use cases and we decided to postpone the development of those till the next release, the user wanted them and we pressured you to get it done in a couple of days…which lead to a slightly buggy less than perfect release…so yeah, even tho you saved our asses for secretly starting development of those extra use cases beforehand we won’t showcase it as a successful release.
- Management1 -
When you find a fix that is consistent and covers all edge cases, then your teammate writes two different work arounds .
-
tests? ain't nobody got time foh dat. my brain already does all the job. it assumes and says to myself "all tests passed ✅" whenever i make quick changes
i like to live dangerously 😂1 -
I was failing all the test cases for a CS assignment where we had to implement our own methods for strings in C++. After an hour of debugging, turns out strings don’t end with ‘/0’ in C++ like in C.
Fuck my life.5 -
*class ends, close laptop*
Ten hours later (right now)
Me: 😶 can't remember why these unit tests failed... Let's run again and see why.
*build success, runs more test cases and tests, all builds fine*
Best feel ever 😎1 -
Fuck you android studio, fedora, and my incompatibility with you. Maybe I'm just a stupid user or I'm forever treading on corner cases, but all I'm trying to do IS GET STUDIO TO SEE WHERE THE JDK IS WTF.4
-
I'm still pretty new to elixir and functional programming. There have been numerous cases where I accidentally recreated functions such as Enumerable.map 😅2
-
One time I had to review some SAP / Excel / Visual Basic toolchain.
It was a huge mess with like 10 layers of if-then cases in around 1000 lines of code analyzing excel sheets, resolving error codes etc. in maybe two functions.
It turned out that I programmed that code about 8 years ago :/ -
Sometines after a long day of having clients continually find edge cases that break the code makes me want to be like.
"Hey! Having the app work well was never part of the scope for the project, just that it would work ish."
But I know better. -
Project teammate has abnormally erotic feelings for bootstrap. I understand why it's useful in some cases but he's using only like 10% of it (the grid) and not even using it properly1
-
REST apis. More than you think it is.
Just because you can access a resource by a uri, doesn't mean you have a good api.
Hypermedia that shit and let websites reuse your links from api responses, then we are getting somewhere.
Also, Fucking api versioning.. Learned the hard way that /v1/ doesn't mean Shit in most cases -
Me 🤗"Since you know the domain far better than me, can I ask you to help me understand if I managed to cover all the edge cases with these UNIT TESTS?
😒" no no no, you don't need to check for those cases, you already do that in your code"
🤗 "I'm sorry, I must have explained myself badly. I have written these UNIT TESTS exactly to ... TEST if those CHECKS in my code work and what I need is you to tell me if there are additional cases ..."
😫"but you don't need to!!! You already have that logic in your code"
😐😵☠ 🦍💊🔫🔪"you know what? I'm gonna give them a second look. Thanks"
And then I moonwalked out of the room -
If I hear the word "platform" one more time...
What you mean are products that support varying use cases.
IMO, it's more difficult to build/support one application that supports 3 different user types, than it is to have 3 different well-scoped applications.
Thoughts? -
Benefits of using Strings for Boolean intended logic?
I'll go first
easily implement cases before finally checking if true
generateUsername: { type: String }
if(generateUsername == 'humanReadable'){
// generate a username in a human readable format AKA yoDudeImRainbow
} else if(generateUsername == 'hash'){
// generate a username by using a random hash
} else if(generateUsername){
// generate a username by using a random hash
}21 -
When an interviewer asks, what are the steps that you take usually when given a task to do something, what do you guys say?
I said, I devote 10-20% of the time to understand the given problem - sit and explore all possible scenarios to handle, then develop a brute Force approach, improve the approach to make it more efficient, see if it handles all edge and corner cases, then write test cases for it.
( I'm thinking, the process doesn't vary a lot for most of the people?, Except in TDD - one'll write the test cases first)
How would you answer this question?
I have this feeling that I messed up something 🤔8 -
Goin on vacation tomorrow night... As expected to have two more days.
Started packing everything for my new addiction...
I usually take two cases, with everything I want, even a laptop. So space is already filled except my stuff and clothes.
Already have 3 cases... only with electronics stuff :D1 -
asked to estimate size of ticket about adding test data, but no details about what test cases or what kind of data
welp6 -
Working a support role years ago I commonly would be asked how to turn on a monitor. In rare cases I was asked where the PC power button was.
-
Users have use cases, test cases, user manual etc documented material with them at the time of UAT.
But in the end users do only those things which they don't suppose to do..!! 😑😥1 -
CATCH2 PLEASE DO YOU FUCKING WORK.
I HAD TO REWRITE MY FUCKING THING TWO TIMES BECAUSE YOU FUCKING RUN MY TEST CASES WEIRDLY THUS MAKING MY THINGY NOT WORK3 -
me, testing my software:
"ok, well it works for this case.. let me make a spreadsheet of all cases and test them one by one"
*doesn't create spreadsheet
*3 use cases later..
"Ah, you know what, this seems fine, I didn't change too much...............................
...........................................................
..........................
...............
.... it should be ok"
*cough*
you know what happens from here. -
Sometimes, I run tests just because I want a break from writing code. In good cases it's so that I take a moment to think about what I'm going to do next. In most cases however, I'm struggling for motivation1
-
Me: This story doesn't account for certain edge cases. Who do I talk to?
Scrum master: Talk to the PO.
Me: Ok. Wait, the PO is out today to watch the eclipse.
SM: you can also talk to person2, 3 or 4.
Me: they're all out. I'm going home.
Ping me if they ever decide to get work done. -
Actors/Use cases and analysis modeling approaches as a whole are for retards that require pictures for everything they do.
Designing this shit is time consuming and should be delegated to simple board drawing rather than full featured software that can develop this monumental waste of time.
Change my mind5 -
Someone please explain to me how error messages such as
"Something went wrong" or "Critical error" are valid and provide little to no follow up explanation in the GUI, Logs, or client logs.
I get that not all error cases can be displayed on a GUI, but at least have decent error handling. Especially if your $8+ billion company.1 -
I added a method to an interface. Was to lazy to find all use cases so I just hit Run and waited for the compiler to throw all places where the method is missing. #effectiveJava1
-
I had been struggling with writing some test cases for days - so I decided to delete all the test methods I'd written and start from scratch - took me less than 30 minutes!
I'm happy now -
Just started learning Android with Kotlin and is really nice but why the hell the sintaxis has to be in some cases really weird 😲6
-
My biggest dev sin is premature optimization. I'll try to produce the best possible code without the need for it to be there. I will waste my time thinking of wierd edge cases that can be handled with a simple if-else, but why not tweak the algo to handle them internally.
-
const ifs = i => {
if (i === 1) return '2'
// (a lot more ifs)
}
const switches = i => {
switch (i) {
case 1: return '2'
// (a lot more cases)
}
}
console.time('time')
for (let i = 0; i < 1_000_000_000; i++) ifs(i)
console.timeEnd('time')
// time: 637ms
console.time('time')
for (let i = 0; i < 1_000_000_000; i++) switches(i)
console.timeEnd('time')
// time: 949.524ms25 -
If you are building a superfantastic framework for dealing with all the gigabazillion possible use-cases and stuffs and whatnots, write some decent documentation. Please.
-
Just wasted 2 hours wondering why my simple bit of code didn't pass the test cases. Turns out what I thought was an add was actually supposed to be an xor. It was a hacker rank challenge. So much for trying to improve myself.
-
How to go from manual test cases to automation is NP-Hard. Figuring out we have less time than we need is not.
-
"Okay, we'll try to explain again why you being able to execute your test cases against prod is a bad thing..."
-
Is it okay, to wrap posix-commands in your program for stuff like remove, mkdir and copy, if the language doesn't provide this functionality to accomplish these, without having to implement them yourself and handle half a million edge-cases.23
-
Colleague wrote all his test cases after finishing his code and set expectedOutput to garbage. His tests failed, printing actualOutput. Then he just replaced the garbage expectedOutput with actualOutput. Bingo bango, all tests passed.
"How do you like me now TDD?"1 -
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 -
one thing I don't like about programming: documentation. I've spend 6 hours today on writing use cases :(
-
I spend more time reading bad written documentations with ugly examples that don't work (and anyways won't apply to other use cases) and reading about new concepts and new frameworks that should increase productivity, instead than actually write code and program.
Yes, it's increasing productivity, but it's not fun anymore -
I still wonder which one is better to fully learn/understand. I know to code something in both, I know about the different way of how they handle memory and I know about some of their use-cases, but then again... this stupid question still pops out:
C or C++ and why?2 -
Me when I complete the actual coding implementation and have to write Unit Test cases:
" AND NOW MY WATCH ENDS HEREEE! "1 -
There are mainly two cases (up to my knowledge) for naming variables. `snake_case` and `CamelCase` but some how we managed to add another one. Snake_Camel_Case_Combined. e.g. That_Weird_Variable_Name is so annoying to use.10
-
QA guy: Your app crashed on this Samsung.
Me: Checks Firebse logs and finds out that phone was rooted and tells QA guy.
QA guy: You must consider all use cases.
Fuck you dude!2 -
As opposed to my horrific experiences with PayPal, Swish, a Swedish (really smooth) payment processor has some really nice documentation. An example:
"The callback, in the happy case, will return an intermediate response with the status DEBITED."
And other nice things such as clear numbered lists describing user flows, with images for extra clarification. Also, they provide full lists of error responses and in many cases suggested way to proceed with these error cases.
And as the cherry on top, this is developed as a cooperation between a few Swedish banks. The banks, who are the most thick type of companies when it comes to IT, does it better than PayPal.6 -
It's exactly not an idea but it pisses me off when people say we're Uber for xyz or were Amazon of xyz. Just finding special use cases of other startups.1
-
Right now, I'm doubting my reading skills.
I'm doing a feature acceptance presentation and half way through they're like "did you handle cases A, B and C?"
No.
Fuck.
Now it's got to be rushed in ...
And all because I can't read the spiderweb of requirement docs -
When yo wake up in the morning and you read:
"Upcoming updates to the AWS Lambda....in rare cases, package updates may introduce compatibility issues."
("rare cases", yeah sure. skip everything)
"...You have the following options: 1. Take no actions, 2.blabla 3.blabla..."
Close the blog.
Communicate to the board that due to lack of resources, randoms bugs could happen in the next weeks and that the quality of a 500K$ project is at random risk.
Rant.3 -
Tfw when you wake up, realize the interview question code you submitted was broken, check the provided test cases, they don't catch your logic error, so you write back with a breaking test case and an outline of the bug fix. Got the onsite...1
-
You make edits to your code, then you deploy.
But the behavior remains the same.
You try to figure out why your new code doesn't get executed.
Try other cases.
Try changing this.
Try changing that.
Still no changes.
Then you realize you deployed to a minimized emulator* the whole time.
* replace emulator with device/server/whatevs -
Kotlin
Look up the Kotlin Puzzlers presentations by Anton Keks, in which he shows the strangest behaviours of the Kotlin compiler. Bizarre syntax, strange results, bugs, etc. Some aren't even edge cases. And he's wearing a captain's hat.
2017: https://youtu.be/ukwVzLq_pHk
2018: https://youtu.be/Xq9vBZs0j-8
2019: https://youtu.be/_AM5VbPTKeg -
It is 4:08 am here, I am supposed to complete my first task as an intern by tomorrow night(technically tonight) and here I am on devRant.
Plot twist: I already did the job. It was writing test cases ffs. 😕2 -
Program seems to work better when there is about 2-3 times the amount of code related to error handling the task than just the task. I'm always glad to see quality stuff that accounts for the edge cases especially with helpful error messages.1
-
Here we go again...
Here(Kerala) covid cases raising day by day.. Almost like lockdown here.... Back to boring Online classes, heavy assignment, homeworks.... Here we go again...
Just like before....
Btw stay safe and be healthy... Our health is on our hand... Have a nice day❤5 -
Do you guys think it would make sense to add polls to the rant categories?
Not the first time I've seen questions like "What's the average age of devRanters?" or similar, and polls would make it a whole bunch easier to read/write answers in those cases!
@dfox
P.S. Was this discussed before? If so, my bad!5 -
What are your suggestions for notebooks with metal /Aluminium cases?
My MacBook Air won’t live much longer and I wanna get away from apple.. however, a robust case is important to me..
Maybe a ZenBook?18 -
Devs with gaming mice.
What hotkeys / macros do you use?
For years I've been using gaming gear with additional buttons to map various hotkeys and macros to speed up my work flow.
Let's share the use cases here.3 -
What's all the fuss about Message Queuing? Why so much hype and noise? It's just literally message Queuing? What are use cases?3
-
Designed a person detection and tracking algorithm based on RCNN and lukas-kanade object tracking algorithm in openCV python.
Need help in cases of occlusion any suggestions?4 -
Never opened a long forgotten program you wrote to be astonished how it was well implemented?
Usually looking at old code the reaction is "WTF!did i wrote this crap?" but in some cases you can find hidden gems. -
In some cases only emojis are not encoded properly - dont know how to replicate - dont know why its happening (made sure im setting to utf8)3
-
Anyone used base 12 in a project before?
Read about it on the internet (duo decimal, dodecimal, dozenal, etc) and I wonder if:
* There are useable implementations.
* Actual use cases.
* Have you used it in projects before?
Trivia: before Napoleon raged in Europe, a lot of citizens counted in 12. Think of your clock or legacy money.
I'm especially interested in the use cases. I bet there are implementations, just haven't bothered to Google them yet.3 -
I'm not going to get any real work done today, am I...
Here I sit waiting for the next problem to pop up because of silly untested edge cases by this team.
Ugh... 😮💨5 -
There's a special place in hell for JS people using `.then()` and `.catch()` instead of simply `await func()`.
Why have 5 lines of code with an await, when instead you can have 5 nested `.then` callbacks.
And yes I know there are some cases where async/await isn't applicable, but that's rather rare25 -
sending in code every week into uni to get graded and every freaking time... my test cases are all green, and yet they manage to think of overcomplicated ~hidden~ test cases to fail me.. it'd be like: program a method that multiplies two numbers and return the result! so ill be like 'easy peasy lemon squeazy! return a*b; theyll be like 'yeah :D u got 40%' liKE wHAt do u Want from mE7
-
So long story short:
I've been told to think about a new feature which is really helpful but it's a bit tricky. Tricky because many edge cases have to be considered. So I've thought about it tried to consider all cases wrote a todo list and was hoping to implement it.
But it came as it should and my coworker got that job :( as always if you really want to implement it yourself ;) -
Paraphrased wise words from lecture by the one and only Donald Knuth:
If you want to learn something new, don't try to learn by explaining it to another human. Make a computer do it instead because then you'll have to truly understand how something works for all cases.1 -
"And so we have an issue. A classic impasse. Management wants process. Developers want to build something that works. Designers want to spend time thinking about use cases. What do we do?" - Ben Bleikamp1
-
Because of coronavirus we have two weeks remote work, I would say huzzah, but I took 1.5 week holidays for those days.
Btw we have 3 corona virus cases in the country 😂😭6 -
Lessons from a really big project I will almost certainly finish:
When specifying a program, a lot of inputs become valid which have few to no real use cases, simply because they logically follow from the requirements.
When implementing a specification, some narrow use cases become unexpectedly difficult to handle.
It's important to recognize the intersection and reject it. -
Since this is a very serious, very important question, I'll tag ot correctly.
Glass vs metal desktop cases.
Discuss.11 -
Just leave it and be angry about the project. When I start thinking about it the next day in most cases you know the answer of the stupid mistake you made 😅1
-
questions for those hard core lazy geeks, I'd like to try out raspberry pi. what's the most crazy use cases in you mind but yet no way to find time to do it? if I get rid of my laziness, I may do it, no promises😜17
-
People who use destructuring assignment EVERYWHERE; why you do this to me?
In most cases it does not even reduce code length. Like
{ field } = object
save(field)
Why no just type
save(object.field)
Tis' hard to understand4 -
So far nothing yet, since I'm in a region of the US with no confirmed cases. Am worried about relatives in China though.
-
Writing automation tools using SSH feels so backwards... Thank God for paramiko and click!
Also GPT4 is a better documentation than Paramiko's. Especially for edge cases!1 -
Me: Writes tests while fixing bug
Supervisor: "I'd suggest fixing other bugs and then picking up test cases"
Well the reasons we have so many bugs is that you let our off-shore devs just write code with ZERO code coverage!! -
I just saw a rant about a fix price website request and I wonder if anyone creates websites for a fix price in some cases.2
-
Can someone explain Scrum to me, like everything, what it is, why it's used, why it's effective, cases where it isn't effective, what the roles are etc, I've tried to understand it online but to no avail (need a childish explanation I guess)14
-
A doctor heals, a gardener plants, a baker makes some bread, a driver brings you to a location, only IT is nonsense in the most use cases.
Maybe I will switch one day to another and more useful job which makes more sense7 -
Does anyone actually rely on voice assistants? I.e. would they be missed if they went away? I’m leaving out cases where they are absolutely necessary for accessibility purposes.6
-
i dont know typescript and thus hate it
why can't my fucking ide extract the type of a thing
i've no fucking clue if it's a function or not or the syntax
statically typed language gang rise up,
dynamic can be good for certain use cases and if you know what you're doing i suppose3 -
1. Docs
2. Tutorials
3. Realize tutorials skipped a few details
4. Back to step 1
And in most cases, joining a slack/telegram group for the tech -
Edge cases are the best, some physical IPhone has an issue on the site. Browserstack simulation tells me everything works just splendid.
FML.2 -
Always check your logic for non trivial modules or functionality before you write the code. It may take some time, but you can find a lot of possible errors or missed cases if you first put your logic in words...
You also get free documentation for your code if you write it as indented comments :) -
Quote from Psychology Today's Article Entitled "How Technology Paves the Way for Passive-Aggressive Behaviour"
"Indeed, the same technology that makes real-time contact and around-the-clock communication possible has, in many cases, drastically lessened the amount of time that human beings spend actually interacting."
To which I say: There *IS* a God... -
The moment when u forget to break from a switch statement from its one of its cases and try to figure wtf is wrong with ur code.1
-
Which product has the most ungoogleable errors?
Right now my vote is Oracle Ops Center. Not even any useful error codes and its obviously blaming wrong things in several cases.7 -
Any Vim users here?
Do you use Vim in VSCode and Jetbrains IDEs with ideavim?
If yes, Can you help me with some use cases? Thanks14 -
What are your use cases for noSql dbs? I haven't really found a reason beyond stuff like chat messages or logs, but even those tend to work perfectly fine with SQL.
I imagine they're pretty good for prototyping, but haven't really tried them out for that yet. Perhaps for cases where you're handling billions of records?9 -
Does your company use QA team? Or do you do your own QA.
We do our own QA and then write detailed damned test cases in excel o.o for other people to run the scenarios you've already run through o.o4 -
Question I ask myself : does jUnit is tested with jUnit? What if there is a bug? How to know if the bug is from the framework or the tests cases :o10
-
Not a rant. Request suggestions.
I am developing a Sublime Text plugin for real-time code monitoring ( screencasting) using Websockets. I would like to know if it makes any sense to develop such a plugin. Also, please suggest some use cases so that I can increase the features of the plugin. Point out if it already exists. Thanks :) -
when a senior likes to kick up a fuss on PR reviews, you'll do whatever dumbass shit they want in most cases, assuming it works
but its a relief when a tech lead or architect tells them to fuck off -
I’m paying for GitHub Copilot and it is serving me well in about 40% of the cases. It is nice to not have to type entire utility methods. Sometimes it also try-catches things that I wouldn’t generally do with a new library that I haven’t used before. Pretty cool.
I also used the Cursor IDE, that isn’t very useful in general cases, but helped me read and understand a horrible piece of 200 line-function with extremely cryptic variable names. Sadly, my free quota there ended.
I hope GitHub Copilot Chat is better at explaining things.2 -
Was working on fixing some test cases in js, tried everything i could but part of test case was never executing.
After couple of days of pulling my hairs, found someone had overriden the test lib methods by mistake😭😭3 -
TLDR: Wrote a custom class for writing apibtest cases for a project with zero code test coverage.
We have a project with zero test coverage. Recently, i was tasked with writing api test cases for said project, it might have taken me months to write tests for all endpoint, plus the main issue was that each endpoint needed to tested for all available user roles and permissions.
I tried the main stream approach of writing api tests, but ended up running into a lot of issues directly linked to our projects roles/permissions architecture (cherry on top some endpoint are apikey specific). Don't get me wrong in my opinion this is by far one of the best user roles architecture out there, but writing test cases keeping it in mind is pain in ***.
After trying out different testing methods and frameworks, i decided to write my own class by extending django test framework (which uses unitest)
- It has generator and validators for request and response.
- Supports testing for user roles and permissions.
- We won't have to make any changes to code after user role or permissions changes
- I just have to copy and past request and responses from postman api collection.😂1 -
Original class has 185 LoC, unit test class have 315.
But it's one of the most important classes, with most states and corner cases.
And, thanks to unit tests, one of the few classes I'm almost proud of. -
Im a student, and im learning coding, but analisys too( diagrams, use cases, documentation).
I really love code, but not feel the same about the other part.
Do you feel the same ?2 -
What's your worst case of documentation examples that only cover the most basic of use cases, along with API docs that just repeat the name of the functions with some punctuation... angular js unit testing docs for me1
-
Not sure if it is a fav, but counting the number of times each day my other half mentally strangles me. I think it is going up more rapidly than the number of coronavirus cases.
-
For some test cases some text was overlapping. I tryed many times different ways and in the end what I did was changing the paragraph and putting a standard one and fitted it perfectly forever.
-
I'm currently working on a polyfill for backdrop filters. It's going great so far, stuff like backdrop blur is just so awesome fur UIs! The polyfill will be compatible with WebComponents, :hover, :active..., transitions and scrolling/resizing. Would you have use cases for this?4
-
During the lecture today, our Professor talked about the implementation of nodes as stacks and queues. Looking at the code itself, I thought it is pretty straight forward. But then he threw a curve ball. For excercise we were told to think of special cases. And I was there, frozen, couldn't think of any. Then he gave us some answers on what those special cases are. And there I was, feeling dumb because I failed to think of such simple things.1
-
Been doing parallel programming and I’ll be taking a distributed systems course next semester. I’ve also been dabbling with Rasp Pis and have been enjoying working in linux/CLI and I’m considering getting building a cluster.
What are some use cases where I could put into practice distributed systems/parallel programming with cluster setups? No limits here :)2 -
Trying to wrap my head around writing unit test cases using Karma/Jasmine. Seriously, writing test cases for a specific directive is a bit tricky in angularJS 😑
-
What do you guys think about the comma expression in JavaScript? I'm aware that due to it's (to some) unknown nature that it can lead to subtle bugs, but I have at least one good use case for it and wanted to hear reasons why I shouldn't use it for similar use cases, but also what would be some other cool (not necessarily "good") use cases :D8
-
There is no reason for detailed tech specs except for putting blame on people and covering ass. (Critical industry with strict standards excluded)
It should be a high level overview.
Then you start working on it and then review small pieces in code review and make modifications as more edge cases surface.2 -
MySQL tables named haphazardly, table column names in mixed cases, redundant columns and tables, the horror
-
Anyone else getting a small confidence boost on your progression when you circle back to the documentation for something and whatever you're doing with the software is under the "Advanced" or "More Complex Use-Cases" tab? Like I can now answer questions on the basic shit I guess...7
-
Just migrated a behemoth of a wordpress installation and it works twice as fast on our shared hosting than the previous dedicated server with cdn it was on.
After just 2 emails from the previous website admin i understood why... The guy clearly has no idea what he is doing.
There should be an IT police squad for cases like these.1 -
My confession is that I love doing OPS where I can fix an issue I caused myself and people are actually grateful for just having it working.
All other cases not so much.... But please team don't identify me and put me on support 24/7 :'( -
Newbie here, is storing json in sql (as like column data) as weird as I think it is or are there valid use cases?
The one I heard, didn't get the details but something like "startup move fast"12 -
The heck is wrong with the testing framework. I can obviously see that it a correct value why doesn't the test case pass.
FAILED:
REQUIRE( positive==static_cast<double>(0.7352941176) )
with expansion:
0.7352941176 == 0.7352941176
===============================================================================
test cases: 1 | 1 failed
assertions: 1 | 1 failed10 -
I was adding/removing some programs on os x, and accidentally did sudo rm -rf /usr/local ... now guess who is staying all night formating and reinstalling everything? OS X should really ask in such cases..3
-
I see a lot of React devs (ab)using the array.map function in cases where a forEach would be more suitable (e.g. without assigning the result, and without return statements). What are your thoughts on this?5
-
Have anyone used machine learning in real world use cases? (would be nice if you can describe the case in a few words)
I'm reading about the topic and do some testing stuff but at the moment my feeling is that ml is like blockchain. It solves a specific type of problem and for some reason everyone wants to have this problem.7 -
Once this happened to me where I copied some static text from notepad to VIM editor and my test cases was failing because of junk characters inserted. It ruined whole dam day and later found out the root cause.
Something I learned that Windows != Linux1 -
I've spent a whole day writing date helpers that already exist in moment.js and cover many more cases than mine.
Webpack tree shaking is a thing, you know? Library size doesn't matter anymore <__< -
I refactor, speed up, and generally slim down our api tests - so our 'api test' specialist QAs can happily dump thousands upon thousands of lines of new copy-pasted test cases in again with every commit, without fear of the test execution pipeline timing out again...
-
Why is it always the case when you give your cide to QA they find more bugs than you? Even though developers write test cases, why can't we catch them all?4
-
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
-
I was supposed to write test cases for existing code using gtest. No one wrote any test cases in our team but the framework setup was there. Cmakelist
I did everything I could but just could solve a linking error.
Asked all the senior people about my issue. No one could solve it in 10 minutes and it was also not a functional requirement so no one really bothered. I tried and tried and tried. After 2 weeks 3 days. On Thursday morning at 11 oclock I could solve it. I was under a lot of stress. Seriously those days were bad 😔
My manager used to think I'm technically weak. Now things have changed. And Cmakelist is awesome. -
So, I have a little issue with a program on Github.
- little ttest script in PHP PDO: works
- MySQL-CLI: works
- the program itself: doesn't work
In all 3 cases, the credentials are the same (checked a thousand times)
maintainer be like: "this issue is most likely caused by invalid credentials or the user that doesn't have the rights"
Not the case since the other 2 test cases did succeed --'6 -
I have been writing unit test cases after writing the code. Not the other way around. I do not think this is TDD . Is it ATDD?
Should I keep going on with this?
Thoughts?8 -
So tried running my test cases to and they all failed JUST BECAUSE OF A .test.js extension
At this point I felt like shutting down -
they say you should just do rust clone cuz it's fast enough in most cases anyway and you won't have to hassle yourself with borrowing rules as a newbie
instead my script started to crash cuz evidently I had so much in RAM Linux was thrashing between RAM and swap until it just kept giving up lol
inb4 database24 -
- This presentation will show how you can increase your productivity with the new tools that we develop!
Spends the next 50 minutes showing results of VERY specific cases and the last 10 minutes actually describing the tools. Last remarks:
- The tools are now in beta so some features are not yet available.
Thanks? -
: Tools are just tools. Technology evolves quickly.
: Still uses 1 language for all use-cases
I mean. Tools are just tools. But don't exclude language as tools. Without a framework/purpose. That language may eventually die and the descendants will also die. -
My question is for all participants of today's codevita. Will i get a interview call if i have submitted 2 solutions and public tests are passed, but in pvt test cases i am exceeding TLE and MLE.3
-
What's your opinion on using personal devices at work (especially for Android/iOS dev)? Using emulators is never really a practical solution in most cases.2
-
So I picked up an interesting project to work on. Visit https://minilancer.in to check LIVE stats of coronavirus cases worldwide. I'm using coronavirus API from rapid api
-
The texts appear a gazillion times better on the external monitor when I am running windows 10 on Bootcamp compared with when I am running MacOS.
Monitor settings (like resolution and size and connection) exactly same in both cases. 🤷🏻7 -
Forced to write UT on excel shiit for confirming test cases are covering units properly, but the reviewer even don't want to read test code!! it makes incredibly unmaintainable documents
-
What container/virtualisation technology do you guys prefer?
Also I've been thinking of picking up either k8s or docker, mainly docker for ease of deployment or do you think it's wortb learning both perhaps? I do know they have a bit of different use cases6 -
Anyone got a motivator for university?
I love to do all the tech stuff - but i am sooo sick of memorizing stuipd stuff and edge cases...5 -
Have you integrated any AI tools into your workflow yet? I am interested to hear about your use cases.12
-
The most fuckin irritating thing when code is terminated due to timeout of just 4 test cases out of 14 in this case 😥af...but never give up 😎2
-
!rant
I'm in the process of building a reccomender engine for the lols. After doing it for awhile I've realized that once I get it going then it will be very hard to optimize because I can't think of test cases or deterministic correct answers. Has anyone built one here who has tips on testing one? Thanks :) -
gah. when I say I like doing documentation, I don't mean gantt chart, test cases, status update, rollout plans and newsletters
-
i thought whiteboarding turning into leetcode mediums or harder correctly in 20 minutes or less was bad
now codesignal is fucking us over, tried my first one without researching any of the code score shit
anybody have tips for gaming the system there? i heard claims that speed trumps correctness for their point system (e.g. faster but not passing for all test cases may score higher than slower but all test cases pass) additionally code cleanliness/readability isn't weighed as heavily as the other factors
and to do problems individually to completion further rather than spreading yourself out across multiple problems in an exam
wont deny im still a salty scrub at the end of the day -
This week has been an exercise in convincing my team that server side JavaScript and nosql aren't just passing fads and that they are actually worthwhile for some use cases, but their affinity for LAMP may be too strong to break
-
BitBucket has an option to delete the branch on merge which for most cases make sense.
But what about release branches? needs 2 merges for master and develop.10 -
Don't you hate it when you think you have the situation under control, you had tested and checked every edge case which you can think of, then you added and double tested some fresh undetected cases from colleagues, QA, project managers and even some of the higher ups, and then when you... [read more]5
-
Leverage online code platforms for exercises/assesments. Something like qualified.io for educators.
Teach algorithms with code challenges with sample test cases. Builds confidence, makes learning fun, and gives immediate feedback. -
To all the Indians in here, who is participating in TechGig CodeGladiators 2020 ? I could solve both the problems but in some test cases my runtime got exceeded #PythonProblems. I didn’t give a damn about it tbh, as my solution was correct.
-
I used to use Twitter for character count often while debugging or writing test cases. Now the shitty ring counter is freaking useless😑
-
Anyonebody here has experience with Shopify? I'm looking for some straightforward resources on Shopify Thememe development & Shopify API; looking for pros and cons and ideal use cases and stuff like that.
Any help would be much appreciated; so far, my googling has only revealed docs and stiff from Shopify itself -
I love the ansible documentation, so many examples which cover so many use cases and all the descriptions of all the possible arguments are very clear :)