Ranter
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
Comments
-
@homo-lorens Yeah he did :)
I think he was more irritated by my response than by the flaws in the code. They hired me directly off university and I later learned they had pretty low expectations on my software development skills. So they prepared only a basic example for me, which - not to sound too arrogant - was a joke. -
Only “most likely” ? Is it like array access where the index is random so out of bounds sometimes but not sometimes and it segfaults ?
Or did you perhaps mean segfault with certainty ?
Or did you most likely mean the first one ? -
pipe3274y@r20408e122449d Index could be inputed by the user, so it would most likely segfault but not always.
-
@pipe
Redundant. When you say most likely, it already implies not always because if it didn’t, then you might as well have said most definitely.
Also, user input is random. If it weren’t, you wouldn’t need a user input. -
pipe3274y@r20408e122449d About randomness, I didn't understand your first comment like this but it does make sense.
About redundancy, it was on purpose to emphasize the fact that segfault wasn't definitely going to happen. Kinda like "I saw it with my own eyes". But you seem to love splitting hair. -
@pipe Yeah. Sorry about that. 😅 Can’t help it. (OCD smiling at me from above).
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Guy: *hands me sheet of paper* What does this code do?
Me: *looks through code written on the paper* Well, most likely segfault.
*awkward silence*
rant
c++
wk256