48
u/this_is_martin May 16 '20
As a developer you want to hate testers like these at first. What the fuck do you need the -1st fucking array element for? Who the hell wants the distance between 2 times the same point?
But when I think of our testers, they are utterly useless. All they do is tests with totally expected input values to reach full coverage. Damn I wish we had dedicated testers like these.
13
→ More replies (2)19
u/osxy May 16 '20
As a QA engineer myself I tend to focus on the edge cases and strange thing, a lot more fun and 99% of the expected stuff is covered in unit tests anyway.
→ More replies (3)
1.2k
u/carlinwasright May 16 '20 edited May 16 '20
Anything dealing with dates & times...I guaran-fucking-tee there are bugs to squish, every time.
343
u/tinydonuts May 16 '20
Someone argued with me in another thread that dates and times are dead simple.
476
u/YourMJK May 16 '20
Well, depends on what abstraction level you are working on.
If you're only working with a date & time library (like you should!) instead of trying to do everything yourself, it's actually often not that complicated for the programmer.The actual topic however is very complex and nuanced. That's why "you look at the people who dealt with this before and you thank them very much, you take what they made and put it in your program and you never ever look at it again. Because that way lies madness."
190
u/simulatedsausage May 16 '20
Spot on. Date and time are very, very tricky but luckily some big brained folks already figured out the hard parts and we can just use the libraries.
67
u/larhorse May 16 '20
I can tell you, as a dev who works with Dates and Times as the primary product - Those libraries also still have bugs. They're just more likely to be smaller edge cases.
Ex: Brazil decided not to change clocks again for DST in 2019. And we had Newfoundland clocks as an hour off - but no one noticed because the total pop is only about 500k and we had just a single customer in the area.
→ More replies (3)48
40
u/hahahahastayingalive May 16 '20
Having a library doesn’t mean you’re done with it though.
It just means you’re set a dam between you and the complexity, and the day the dam inevitably cracks or overflows you’re still getting wet, very wet.
Either you flee from area to area so that you’re never there when the dams cracks, or you fix dams so often that you effectively became a dam engineer and you ended up internalizing all the complexity and spend your free time swimming on the other side.
→ More replies (4)→ More replies (2)9
May 16 '20
Thank you for the link. I'm just getting into coding, finishing up CS50 right now. And damn, I haven't laughed that hard in a while. It was nice watching the video knowing it would end with that quote!
85
31
u/Muhznit May 16 '20 edited May 16 '20
They aren't. Want proof? Try writing an algorithm that will tell you when easter occurs for a given year.
EDIT: I hadn't expected people to jump up to the challenge, but the amount of people starting their solutions with "Given ____..." kind of hints at how non-straightforward it is.
35
u/tinydonuts May 16 '20
Oh I know they're not. The other dude thought so though... JuSt UsE a LiBrArY.
→ More replies (5)→ More replies (7)9
u/EirIroh May 16 '20
Given dates of the equinox and full moon occurences, it’s pretty simple. Missing any of those, you suddenly have a much larger task.
→ More replies (11)1
59
u/LiqdPT May 16 '20
Timezones are the bane of my existance. Whenever I join a project, it's right about the time that they're doing something that has to deal with timezones. But only sometimes. But definitely has to deal with someone in a plane changing timezones. During the DST switch. ARGHHHH
→ More replies (2)23
u/kjb_linux May 16 '20
I get get shit from some coworkers because I log everything in UTC, literally every date is in UTC, however I also use DateTimeOffset fields to store them so it’s actually rather easy to convert they just think it’s a hassle. I mean do we really need to know when something fucking happened in a mission critical system with data centers in 4 time zones, some of the legacy apps use sys date for the db server and that’s set to the time zone but there is no offset attached so when the reports are run on the aggregated tables in the report server the date times mean nothing at all. Auditing that app is a bitch, but I’m not the DB guy so I don’t know what I’m talking about.
25
u/LiqdPT May 16 '20
Oh, absolutely. Log everything in utc. Store dates in UTC if possible. If you can, take api input in utc. That's not always possible when getting input from a variety of devices. Then there's the UX of various sorts. Used to work on fitness tracking software... What does a sleep look like when DST changes in the middle of the night? How do daily tallies (for things like steps) look in a 23 or 25 hour day? What's a day when someone changes timezones? If the user has a reminder to stop having caffeine at a certain time of day (to get sleep), well that should probably stay at the same time of they change timezones, right? But what about a medication reminder? If they have to take it every 8 hours, you don't want that to follow timezone cuz you'll end up with one interval that's too long, and one that's too short.
→ More replies (3)→ More replies (1)5
u/LiqdPT May 16 '20
Oh, and the ux that displays your logs might want to (at least give the option to) convert it to local time. Way easier to diagnose stuff if its easy to figure out that it happened "2.5 hours ago" or "15 min ago" without having to constantly do mental gymnastics.
→ More replies (2)6
u/TingeOGinge May 16 '20
Just finished a second year group project that needed a scheduling calendar and the deadline was a few days before daylight savings.
Yes the application had a date time library. Yes the database had it's own separate one which handled DST differently. Yes I loathe people that say dates are easy.
→ More replies (2)4
u/FartVader97 May 16 '20
Also the question doesn't say the unit. So initial difference could be in years or seconds.
3
u/AncileBooster May 16 '20
Fortunately my Arduino projects don't care about dates because they won't live through the day before they reset.
→ More replies (4)3
u/the_ju66ernaut May 16 '20
Sometimes a datetime is not the right way to go buy to use an int for years or age if you were capturing things like birthdate
8
12
u/jess-sch May 16 '20
Can we just agree to abolish time zones?
What's so horrible about going to work at "5pm in the morning"?
9
1
u/YourTextHere_Studios May 16 '20
I wish it was that easy :(
4
u/jess-sch May 16 '20
It would be a good first step, and it would be pretty easy: Every country just switches to GMT+0, and passes laws that redefine all times in legal documents signed before the law to be offset by ${OLD_GMT_OFFSET}.
3
u/YourTextHere_Studios May 16 '20
But lots of old programs would break, especially ones on computers running old versions of windows Vista/xp/95, which is what lots of aircraft, missiles, and power control structures use. So would be easy in theory, but sadly not in practice.
In short: easy to develop, hard to implement
2
u/jess-sch May 16 '20
You sure about that? I guess the power control structures might be an issue, but those could be updated. Military equipment shouldn't be a problem because they already have their own time zones, which wouldn't be affected by abolishing civilian time zones.
→ More replies (3)5
May 16 '20
I also support one universal time. It's just so much better for international business. I have no idea when the stock markets in the US open because there are 4 different answers and we're anywhere from 5 to 8 hours apart or something. It could instead be 4 for everyone. What importance do the numbers have anyways?
4
u/Argosy37 May 16 '20
So You Want To Abolish Time Zones - a fantastic response to that idea.
9
u/jess-sch May 16 '20
It makes a ton of assumptions about what abolishing time zones would actually mean. And they're not necessarily true.
Everything would still be offset by a fixed amount of time. instead of "AU is n hours ahead/behind", it would be just "in AU, everything happens n hours earlier/later". Not as big a deal as someone might pretend when they're desperate to make a point.
Day names: You could absolutely still keep them around. Who says they have to be for solar days? Monday would still be Monday, it just wouldn't be starting at night everywhere.
→ More replies (6)
416
u/97mario May 16 '20
User: she’s 22 years old
96
u/ijmacd May 16 '20
That's what the troll question was hoping you said. So this guy troll answered back.
44
40
u/gamebuster May 16 '20
Github issue: App returns 42 when it should return 22.
40 comments “why is this closed? I have this problem too!”
3
u/Siguza May 16 '20
"I have forked the project and changed this in the code, but unfortunately I can't get it to compile. Creating a PR so devs can hopefully test."
5
→ More replies (2)3
u/trololololololol9 May 16 '20
Should I feel bad if that was my first answer?
3
u/TGotAReddit May 16 '20
My first answer was 42 but because the response was so long i second guessed myself and went “wait is she 22?”
299
u/pkuyken May 16 '20
This sounds similar to the QA GOD we had on my previous team. In 20+ years of development I've never come across someone so damnable thorough than <redacted name to make sure nobody can poach him>.
86
50
2
288
u/fade_is_timothy_holt May 16 '20
This can’t be a real Quora answer because it didn’t start by condescendingly telling the asker what they really meant to ask, spend a page on the history of every term in the question, and then include a personal anecdote about how the topic of the question saved their dad’s life.
134
u/resistentialism May 16 '20
You forgot to include a link to the relevant business you happen to run.
22
21
u/HDSQ May 16 '20
So Quora is basically the Stack Overflow of stuff that isn't programming?
27
u/Pixelmod May 16 '20
Add a layer of self-righteousness and the mentality of a facebook circlejerk group and you're about there.
→ More replies (2)10
u/KuntaStillSingle May 16 '20
IME, no, Quora is more about asking a simple question and getting a bunch of really expansive or nuanced answers that don't really attack the heart of the question, but get upvoted because most people who view the question had no stake in it. For example you can ask what tool to use to turn a screw with the star shaped depression, and the top answer will explain it might not fit the technical definition of a 'screw,' whether or not the screw itself can be turned depends on your frame of reference, why this style of screw is used in certain applications compared to say, philips, an anecdote about how they found one suspended from a spider web once. Incidentally this can be helpful to the op, but it is never purposefully so, the responder wants whatever points or incentive quora offers for people liking their answer.
In contrast SO is like 10% direct answers, 20% marked as duplicate, and 70% explaining "how to do x" isn't important, they should do y instead, regardless if y is actually suitable or whether the OP actually controls whether x or y is used.
6
u/writtenbymyrobotarms May 16 '20
No, because unlike Quora reading StackOverflow answers is actually helpful most of the time.
10
u/sunburnacoustic May 16 '20
This had an odd way of making me want an r/quoracirclejerk
→ More replies (1)5
u/MrDOS May 16 '20
Followed up by half a dozen “related links” landing in your inbox later in the week, because Quora strongarms you into logging in then gets all creepy with its knowledge of your search history.
2
u/montagic May 16 '20
One time I searched up what Walter White from Breaking Bad's IQ was and the dude who answered it spent 2 paragraphs talking about how high his was and his justification. Fuck Quora.
→ More replies (1)
466
u/Glathull May 16 '20
A QA tester walks into a bar and orders a beer. Orders 1,000,000 beers. Orders -5 beers. Orders a horse. Leaves the bar. Rides the horse into the bathroom window and unflushes the toilet. Rides the horse into the main bar area. Orders null waters for the horse. Orders a prostitute and fucks her in the ass 3000i times with the 10” dick he ordered from the bartender he didn’t tell you about. Files Jira tickets against all these bugs.
Dev: uhhh, all this program does is print “MVP”. You’re a sick fuck.
Product manager: I guess we have to build a bar now so that we can close all these bug tickets.
Eng. director: working as intended.
VP of product: I want that magic dick.
CEO: we’re pivoting to unicorn prostitutes at Facebook scale.
154
u/Mr_Tottles May 16 '20
It’s gotten so bad that the word “pivot” makes me cringe a bit.
68
→ More replies (1)12
u/TagMeAJerk May 16 '20
The only thing that the word pivot does to me is laugh because of the show Friends
7
→ More replies (1)19
u/AlmostButNotQuit May 16 '20
User asks the bartender for a napkin. The bar explodes.
→ More replies (1)
47
u/almarcTheSun May 16 '20
That was.. actually educational. Scary as it sounds, we have a lot to learn from QA.
12
u/_d4ngermouse May 16 '20
As a QA first and developer second, yes there's a lot to learn. But, and this is a big bit, just think about the risk impact and likelihood of all the edge cases, a good QA could hold a project up indefinitely with perfectly valid defects; but that doesn't get the bills paid.
→ More replies (2)2
u/Warranty_V0id May 16 '20
I never got why people think work is a competition between groups. Releasing decent software is always a team effort.
83
26
u/athergon May 16 '20
As a QA who just spent 12.5 hours thursday finishing up a release for go live I can confirm. We have to look at everything from every angle. As my mentor/test manager tells me ever damn day "our job is not to assume". If we don't hit every angle of every AC and we let a bug slip through to prod that is our ass and our name on that story. Luckily the release and go live was very very successful with minimal bugs so work Friday was pretty stress free and relaxing. Shout out to the devs that put up with our bs and nitpicking everyday. Yall the true MVPs lol.
77
u/8sleef May 16 '20
Not to mention units weren't specified for 4, 2, 44...
My sister and I were playing CS and comparing kill counts. When I was 4, my sister was 2. I am now 44. How old is my sister?
6
u/jwmojo May 16 '20
Also, what if they want to answer the question using Kanji or Cyrillic characters?
→ More replies (2)
33
u/tehngand May 16 '20
Quara user Samual Lipoff never would have thought having spent years studying at Harvard it would have been put to use after many hours in the library he contemplated what way would he be able to use his great intellect he'd captured from an ivy league school all of his researching, the years spent studying and enslaving over the pursuit of knowledge accumulated to this one glorious moment a Quara question.
6
30
u/1nd1anaCroft May 16 '20
I have that guy on my team, and I love him. I hate him while he's testing the HELL out out of my code, but I love him on release night and the day after
8
→ More replies (1)3
14
u/NinthTide May 16 '20
"My" sister is ambiguous for cases where you have more than one sister. Should've given the sister in question a GUID
8
May 16 '20
He didn't even think of the option of him being an astronaut and aging slower than her therefore his sister can be 44 or older
smh
→ More replies (3)
7
May 16 '20
Greybeard: why don't you just ask her? this isn't a problem that needs a technical solution, so please don't waste my time.
*slams door to server room*
→ More replies (1)
10
u/stergro May 16 '20
First thing you learn as a tester during ITQB certification is it is impossible to test all cases. But in practice you really often try to cover every bullshit edge case because your department has to produce enough bugs to justify its existence.
I had really good experiences with DevQA structures. If the tester sits in the same room as the developers things are much quicker and there is no war of the departments.
4
u/TheProcess96 May 16 '20
I'm a manual QA tester, and work in the same room as the developers. It definitely helps that they're highly collaborative and want me to test the crap out of their tickets. It's such a complex system that a big ticket with little issues is almost unheard of, so I have a lot of liberty to spend time on any edge case I think is necessary. The toughest part is the scale of operations, there's a lot to test and not all testers can think of everything, I often feel more pressured because I just know how to test the system better.
11
u/dfreinc May 16 '20
I thought this was going to be one of those things that tells me I'm autistic at first.
4
u/Apoplexi1 May 16 '20
Programmer: Discuss that with the requirements engineer and come back when you have an agreement.
2
4
u/Rerel May 16 '20
You can argue even further because according to Einstein time is a relative concept and the higher you live above sea level the faster you should age.
So let’s say she decided to leave in the Swiss Alps while her brother lived undersea in a research facility...
4
u/TheTacoWombat May 16 '20
Former manual QA here, but not by choice. My company got bought by a bigger fish that believed that testing should be automated by the developers themselves in a very convoluted build pipeline (such that there is a Test Services team, but there is such an allergy to the word "test" that our new owners engineers simply refuse to talk about testing itself, it is "beneath" them).
We were a team of 8 at our peak, with various backgrounds, that got whittled to two, then zero. I like working here (the people, not the work, keeps me happy), so I've forced myself to learn new skills to remain useful (I'm in an SRE type role now, learning coding as I go).
It's been 3.5 years since we got bought and I'm the only remaining SME for our divisions main product. Everyone else has been siloed into specific dev teams and doesn't know how the product ui interacts with our backend systems. It's insane.
I really miss working closely with devs and catching bugs before production, or working through user workflows with product designers. It was good work. I did good work.
Now I struggle.
1
u/Monokuma_Follower May 16 '20
As programmers we felt superiors to the others simp that doesn't know how to program, the superior are the testers though
1
u/YourTextHere_Studios May 16 '20
It goes dev, then sec, then dev, then users, then dev, then fire
That's the circle of life for you
3
u/Stoomba May 16 '20
Age is but a distance from a frame of reference. If we consider this person and his/her sister to be the matter/energy that makes up their body then they are really the same age and this scenario makes no sense!
3
3
u/shinndigg May 16 '20
I actually think this is relevant to more than just programming. I'm just starting to actually do a job after 3 months of training. Time and time again I feel like there's an obvious answer, only to realize there are layers and possibilities I didn't even begin to consider.
4
u/PediatricTactic May 16 '20
Please don't use phrases like "time and time again" without specifying the timezones or at least an offset.
2
u/PeebleInYourShoe May 16 '20
That is important to keep in mind when you start (first job or any new job), there is no stupid question and it is better to clarify everything. Sometimes you avoid huge misunderstandings.
2
u/00Ruben May 16 '20
Don't forget that units aren't specified. Are 4, 2 and 44 even references to age??
2
u/rekthard May 16 '20
The sister could also be “24” assuming the original person added “4” years to his life :^)
2
2
2
2
u/mirsella May 16 '20
guess is come from here https://twitter.com/QualityFrog/status/1261212047640952833?s=19
2
2
2
2
u/This-Moment May 16 '20
To be clear to any QA experts reading this - we are not making fun of you, we are celebrating you.
With my luck the very first production user has an adopted lightspeed traveling sister.
2
u/jasontheknight May 16 '20
This reminds me of when we tested an interview question on a data scientist. "Plot what you think would be the relationship between sales of bagged salad and outside temperature". Most candidates did various permutations between 0 and 40 Celsius. Our data scientist kept going up to the heat death of the universe
2
u/Cryse_XIII May 17 '20
I wonder if this person is capable to predict an entire project scope the moment a new customer Walks through the Door.
3
u/Scarface9636 May 16 '20
Ok what bothers me most is tge idea that even if you share a mother if you have different dads she isnt really your sister. Completly ignoring halfsiblings. (aka all of my siblings)
2
1
1
1
1
1
1
1
1
1
1
1
1
1
u/DARKxxKiLLeR May 16 '20
This is how my Code Reviews always go. I'm always wondering if I am dumb at what I'm doing.
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/Little_Elia May 16 '20
I think under extreme circumstances and taking timezones into account she could also be 44 or 40.
1
u/Liesmith424 May 16 '20
Customer: "When I was 4, my sister was 2. I am now 44; how old is my sister?"
Programmer: "0-254".
1
1
1
1
May 16 '20
As a manual tester early in my career and now a big boy SDET, I've had all the excuses from devs my favourite being "Yeah well I didn't read the ticket".
Very few devs that I have ever worked with actually care about building quality unit tests and products. Most of them seemingly just want to flex how many certifications/languages/fotm frameworks they have under their belt. Yet they have very little proof of their ability to properly utilise any of it.
I'd say one of the most disappointing parts of joining software development was the realisation that whilst devs get paid a lot of money, they sure as shit aren't worth it a majority of the time. Stupidly I believed that people knowing how to code made them intelligent, wrong again!
→ More replies (3)
1
1
1
1
1
1
u/imadeanewaccount2 May 16 '20
my company doesn't believe we need testers. i might use this to explain why we do.
1
1
1
u/Kaneshadow May 16 '20
A QA engineer walks into a bar. He orders a beer. He orders 5 beers. He orders 0 beers. He orders a bere. ...
1
u/bulkdensity May 16 '20
This is so me :D I am working as a QA Engineer and in the current project I've been working, I've found so many edge case bugs. Sometimes developers going nuts for this telling me it is too much of an edge case to occur in live environment.. But 99% of the time, they fix them and we are getting along really well :D
1
u/mcherm May 16 '20
Where can I hire testers who think like this? That's an incredibly valuable skill.
1
1
1
1
u/vVv_Tr4nce May 16 '20 edited May 16 '20
QA Automation person here! Now try living your life with that same thought process! I overthink the shit out of everything and sometimes it’s a fault. One of the best reactions I’ve had was for a promo code in the url, “////\” is allowed to be used as a promo code and it breaks the cart” only to hear a few minutes later after the bug was created from the dev across the room, “WHO WOULD DO THIS?!”
1
1
1
1
1
u/Stjerneklar May 16 '20
really more of a scope of information thing. depending on the use case both examples of solution might be the right approach.
if we want brevity and clarity, just use simple math and only allow inputs from 0 to 150.
if we want to catch all sorts of outliers, compare birth dates ect ect. the stuff about adoption or space travel i'd chop up to unreliable data.
1
1
u/Pixelmod May 16 '20
I wish we had a QA instead of recycling the tech support crew as testers on their down times.
I try to test myself but I can only think of so many weak points before my boss tells me "eh that's never gonna happen keep coding"
1
1
1
1
1
1
1
1
2.6k
u/RufusMcCoot May 16 '20
The tester is right though. A programmer should think of these scenarios.