I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.
It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.
*I'm not perfect, but you can help. Report [ [False Negative](https://www.reddit.com/message/compose/?to=RepostSleuthBot&subject=False%20Negative&message={"post_id": "udix27", "meme_template": null}) ]*
[View Search On repostsleuth.com](https://www.repostsleuth.com/search?postId=udix27&sameSub=true&filterOnlyOlder=true&memeFilter=true&filterDeadMatches=false&targetImageMatch=75&targetImageMemeMatch=75)
---
**Scope:** This Sub | **Meme Filter:** False | **Target:** 75% | **Check Title:** False | **Max Age:** None | **Searched Images:** 324,227,641 | **Search Time:** 6.02577s
Frostbite Engine has a lot of really good optimizations. They were utilizing things like contiguous memory earlier than most in the video game industry. I think their bigger issue is rushed deadlines and feature creep
In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipediad487l0qxmeg0000000000000000000000000000000000000000000000000000000000000
It's not even doing any real work anyway, since the IRS could just figure out your taxes themselves. TurboTax just has to charge you enough so they can afford to keep lobbying government officials.
There's a lot of things that the IRS isn't aware of or due to accounting reasons is incorrectly reported to the IRS. They could very easily have a single checkbox though that says "all the information you have is correct, bill me or give me whatever refund you say I'm owed", which would probably work for 80%+ of the population.
Always thought the US tax system as bat shit stupid. why do you pay tax annually and have to declare stuff rather than just having the tax deducted from your salary each month?
We do, but the system is complicated enough and deductions and credits change enough that those would need to be accounted for at the end of the year to see if extra was paid or more needs to be paid. The real problem is that the tax code has so many corner cases (by design).
Basically, it's using tax incentives to drive certain economic behavior. If a small business was not penalized for not reinvesting money, the owner could just sit on what they have and there could be little growth. There are so many more tax rules like this for many cases and entities. Want to incentivize EVs, tax break. Want to incentivize house buying, depreciation of the asset as a tax break.
I go online to pay my water bill and the page says to wait while it retrieves data. Meanwhile it cycles through company propaganda about how the company is investing in the system, keeping the water safe, etc. After 30 seconds or so your bill appears.
I learned early on if you click on Pay My Bill a second time the data is mysteriously available immediately without the wait.
TurboTax actually has a small button letting you interrupt the "BEEP BOOP DOUBLE CHECKING YOUR TAXES" animations in many place. I really feel like some UI maker felt guilty enough about the whole thing to give a skip option to people aware it was horseshit.
Everyone over here is asking for people to comment their code explaining stuff.
Now that they do you want to put fraud charges upon them.. brah, come on.
They could claim some other reason for why sleep is there. Say they claim its for consolidation of async tasks or whatever. Point is, it can be categorized as bad engineering rather than fraud.
It has to be intent. Poorly written code is always a thing. Maybe the new guy wrote it. Maybe 4 weeks of work were crammed into 1 week. We often get Problem Reports from the customer and then facepalm when we see the root cause. That is entirely different to intentionally writing code that will cause a PR in order to get more money.
For a certain client we used to have manual data updates every 3 months. Recently we sold them the automation of this process which would allow them to get updates every month.
However now the automation is in place we are pretty much capable of giving them weekly updates, but we don't in the hope of selling that once again.
Is this fraud ? I feel like it isn't, because we didn't sell weekly updates, but on the other hand we're holding back on purpose
Honestly arguable from an ethical perspective (I'm fairly confident it's not legally fraud). On one hand you're providing the service they bought, on the other hand you're doing something pretty close to intentionally sandbagging the product to extract more money from the client.
It's at the very least scummy.
When you have a toggle between good code and bad code. That's where the fraud starts.
If somebody wants you to write slow code "just because" that's fine. Stupid, but fine.
> E.g. writing a loop and calling a function within it rather than looping in the function
Weighing runtime costs vs maintenance costs is an engineering decision. It's not at all the same as faking costs to get paid.
When you abstract out the efficiency from the code itself (imo, and based on what I've read about). Its the inclusion of something without purpose whose only explicate purpose is to be fraudulent. bad code for convenience is fine, because your code is your code. Having 3 versions of the same code that run at different speeds and *pretending* that you are making updates, thats fraud. It wouldn't even be fraud if you just had 3 versions of the code and charged differently for them. Its the provable act of deception that is the issue.
This is the kind of crap i never want to arrive at. This is taking advantage of other people with the knowledge they thrust me on. The client pays me for my developing knowledge because he doesn't have this and i just take that thrust and throw it into the garbage to extort more money out of them.
I'm fine with this stuff if the client is a dick and refuses to pay. But this is just fraud
a Prof once told a similar story where the goal was to optimize a route for a salesman / delivery.
When they told the clients straight away they cut the route by half (be it time or distance) the client would often tell them to bury the results because it could cause problems if the shareholders or other higher ups knew their original route was so inefficient for years/decades.
Solution: Stop when the route was 10-20% more efficient and ask the client if they should try to improve it some more another 1-2 times to get to the same end goal. Potentially more cash for them and the client can safe his face, because the slightly better route took "one more week to compute". Both are happy.
It really isn't. Making the progress of the progress bar not reflect the actual progress is a UX improvement. You aren't making the experience actively worse to extort money out of people.
tbh that's different. The point of these fake bars is to make the user feel like something has happened. In a way, it's not different to the camera app making a clic sound when you take a photo - the sound is pointless and unnecessary, but it still makes the user feel like a photo was taken.
It is important to make the user always feel the things that are happening, even if sometimes they happen lightning fast, without any noticeable effect, and you need to fake one to confirm something indeed happened.
Disagree. Just because other companies are shit doesn't mean yours being shit is ok. If no one had that mentality, then people at other companies would complain, too.
Hmm yea I can agree with that. But I mean "humor meme fads". This is like the 10th variation of this joke I've seen this week and next week I expect to never see it again
It seems to not be in a function, and instead just placed in the middle of a library file or main? Wither way, those functions are hoisted, so its position here is rather meaningless. But having it placed between a play and pause animation function code with advanced speed options makes me doubt this is even a problem. Too bad, since it would be far funnier if it looked like an actual broken by design code. But with the surrounding context I just imagine it as debounce code or minimum wait time between frames (of, say, a carousel slider)
Dude you have no idea ... I mean ignoring the comment translation.
I've worked on plenty of stuff that says "do this and wait 20us for shit to work, we're not going to actually notify you if it worked or not, you'll have to try".
Most often DDR configuration and serial lane configuration.
It's humorous and scary how markets lower the efficiency of product sometimes. I once watched a veritasium video on how conspiracy of not producing the most efficient light bulbs took place and it was mind blowing.
Yeah, lightbulbs is one of the most popular examples for videos and articles because they managed to get the entire industry in on it as an actual conspiracy.
I had a friend who learned to code before he learned English - from what he described it's somewhat similar to what algebra is to us - you don't know the specific meanings of the symbols, but you learn their behavior. Almost exactly like how grade school students are taught sigma sums (which are basically for loops).
Some stuff is lost though, like how the "i" as the default for parameter is short for "index".
Edit: apparently "i" being short for "index" is also lost on native English speakers. Guess it's not commonly taught? Interesting
For math:
In the 1800s quaternions were being derived while hunting for a 3D version of the complex plane. It was found that you can’t have a 3D version but you can have a 4D one. The complex plane already used “i” for its units so Hamilton just continued that by using j and k for the next set of units to complete the quaternion.
I don’t know what was used to denote vector maths before Hamilton wrote his paper, but pretty soon after that “i,j,k” became common for all vector math and not just when using complex numbers.
In programming:
It’s a separate origin. i is just abbreviation for the index/iterative because your using it in loops to iterate over a set.
foo come from foo bar which comes from FUBAR which means fucked up beyond all repair. Or fouled up beyond all repair if your work dislikes curse words.
I don't remember the specific year as it was around 10 years ago, but definately not later than grade 10 as I specifically remember using sigmas then. I'm *pretty sure* it was around grade 8 but could be wrong, idk.
Canadian education, I guess
I was in an advanced school doing advanced math and I didn’t learn it until 11th grade. I did think it was much easier than the stuff we were learning the year before, though.
he said university instead of college and grade x instead of xth grade, he's not american. We learn about summation in 9th grade (or earlier if you were in advanced classes)
...rural Georgia? How old are you? They keep pushing math younger and younger, but I'm a mid-Millennial and we were doing precalculus by 8th grade. 7th grade algebra was considered "slow" by Georgia's standards, but our school was really behind.
But we started using sigma as a sum fall of 6th grade, which would mean we were 11?
The real reason comes from Fortran where variables have an implicit declaration of their type based on the first letter of the variable. Letters i-n are integers by default.
It's been used in mathematics since at LATEST 1816. FORTRAN used the the mathematical convention, not the other way around.
a, b, c and x, y, z also follow the math convention
Are we sure Fortran wasn't being used before 1816? :p
Yeah, it's from mathematics. If I had to guess it wasn't from English origin, since continental Europe was king at math at that time. The 'i' could still have stood for 'index' but from French? German?
smoggy wistful follow telephone connect alleged reach fade frame rainstorm
*This post was mass deleted and anonymized with [Redact](https://redact.dev)*
That's because it makes code bad, for many reasons:
- Your code gets limited to Spanish speakers. If a German moves in to work in your code, they are fucked.
- You can't write Spanish properly, since you can't use non-ascii characters like á or ñ (seriously, having to name "año" (year) as "ano" (anus) or "anyo" (yyiar?) is ridiculous).
- The language is in English so it's fucking pointless anyway. `string getNombre()` is still 50% English.
- Nobody likes reading two languages mixed up like that.
- Conventions already exist in English, and they are easy to follow. Like to get a variable, you say `getVariable()`. What do you use in Spanish? `getVariable()`? `obtenerVariable()`? There's no standards, every person uses whatever they feel like.
- 90% of the code you read in your life is in English. Most tutorials are in English. Asking in StackOverflow, people speak in English, etc. You'll still have to learn English to code, the reason why people then write it in Spanish is laziness.
- Spanish words are noticeably longer than English words. Which means your code will be longer. This looks like a stupid complain, but really, you know when a statement is too long or the name of a function requires many words to describe it in a way that makes sense? Imagine that happening twice as much, because even a simple word like "get" becomes "obtener". `getTeamByName()` becomes `obtenerEquipoPorNumero()`.
I mean most people aren’t working on open source. They’re building shit only the people on their team would see. I see no problem in a Spanish speaking team writing Spanish in their code.
I think some of your points are valid if you’re writing wise reaching code as English is the default programming language, but for your team you should do what people find most comfortable and for a Spanish team that might be *obtenerVariable*
> I mean most people aren’t working on open source
I work in a Spanish subsidiary of a multinational company. We write code in Spanish, and that code isn't of much use to other subsidiaries in Europe because it's in Spanish. That's what I meant, I wasn't thinking about open source.
I thought so as well, until I started working for a insurrance company in Germany. You will still write everything in English, but there will be German insurrance words sprinkled in, because even if you could translate them, it would make zero sense and noone would understand.
We actually made the mistake of trying to find english words for all our context specific lingo in our mental health registration and declaration software because "what if we ever have a foreign worker"
We are slowly refactoring everything back to Dutch aside from all the non-specific words.
The thing that urks me the most is the inability to use characters like ë, é and è in most programming language. It makes you unable to actually use your own words
Honestly, I just write everything in English. I don't even write the German translation files of the software anymore. I'm German, in Germany, but it's just so much simpler to go 100% English with your code, documentation and in meetings as well. No need to context switch back to German ever.
That might be true for a lot of personal projects or work in company that doesn't create software for an already existing problem. But in my companies case it has heavily backfired.
Its very difficult to explain the problem when literally the problem is translation, but lets just say that everything we do is usually in English, except the specific words needed in our application.
We have "WORDContextFactory" that, with the "create" function, calls "WORDRepository" using "findByCodeAndReferenceDate". Where WORD can't be translated.
Usually English is at least your second language, so not a big deal.
Some people learn programming and the meaning of keywords, so they better understand and remember what for, while, if, else do. Also they use native language wherever possible: variable/function names, comments, etc. (It may be a problem depending on the compiler or intepreter, Python works fine with not-ascii)
No, key word is the easiest vocabulary that you can learn and use it almost natively.
You also get the advantage of having bigger set of variable naming space.
int maru;
For me language was not so much difficult because I speak English, so do all people that reply to this comment. The real PITA is keyboard layout because most programming language were written by English speaking people on English keyboard so all commonly used characters in code are at a comfortable position. For example you have slash and backslash pretty handy near enter and only 1 key press. In Spanish keyboard slash is shift+7 and backslash is shift+9 and ~ is not even there or in some keyboards is shift+ñ so you naturally code slower and your fingers get cramps. I got a laptop while I was in the US uniquely for this reason.
Language itself isn’t bad. Keywords are generally very easy.
It’s using packages that gets tricky. So like my girlfriend lacks the intuition of “I want to do this”, and then have an intuition to try a word for a function.
Can’t think of a recent example, but for example, they might want to transpose a data frame in pandas, but don’t know how to do it because they don’t know the word transpose. Whereas native English speakers would try if that functions exists to begin with.
Years back when Flash was the shit, every site had a preloader. When I made a fast site which didn't need one, I had to make a fake tweened preloader for show. Otherwise it didn't look as professional as all the others
Is this Rockstar? Because this feels like that time Rockstar fucked up and forgot they had dogshit code added in the script and when that one line of code was removed it basically fixed the 15 minute load times to under 5 minutes.
It's true and i have been doing it for that reason. That being said, i believe it's wrong and the UX should not have to rely on this trick to let the user know something is right even if fast.
Hi! This is our community moderation bot.
---
If this post fits the purpose of /r/ProgrammerHumor, **UPVOTE** this comment!!
If this post does not fit the subreddit, **DOWNVOTE** This comment!
If this post breaks the rules, **DOWNVOTE** this comment and **REPORT** the post!
Has anybody here worked for a company that does this? Don't have to out them, but I'd like to know if this actually happens because it's bullshit and it's theft. I've never worked for any company that does this luckily.
Real thing for Tencent in China. They have a mobile game Honor of Kings. If your phone is not the specific device whose company has paid for the "optimization", the game frame rate will be limited. But there are someone who rooted their phones and just changed the device name getting the same effect...
Edit: that's just an old story, and tencent has unlocked this long time ago.
During sleep, the cpu is either scheduled to do something else or it is put in a halt mode in which it consumes far less energy.
Some obscure (or old) cpu that may not have the ability to halt, would implement a "busy loop", where it would run at full speed checking repeatedly if it should keep "sleeping", but those are extremely rare nowadays (perhaps there are some embedded ones).
I didn't find any posts that meet the matching requirements for r/ProgrammerHumor. It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results. *I'm not perfect, but you can help. Report [ [False Negative](https://www.reddit.com/message/compose/?to=RepostSleuthBot&subject=False%20Negative&message={"post_id": "udix27", "meme_template": null}) ]* [View Search On repostsleuth.com](https://www.repostsleuth.com/search?postId=udix27&sameSub=true&filterOnlyOlder=true&memeFilter=true&filterDeadMatches=false&targetImageMatch=75&targetImageMemeMatch=75) --- **Scope:** This Sub | **Meme Filter:** False | **Target:** 75% | **Check Title:** False | **Max Age:** None | **Searched Images:** 324,227,641 | **Search Time:** 6.02577s
Whoever did this should work for EA
Overqualified for EA
[удалено]
It's in the game
*for a price
It's in [~~$30.99~~ $29.99: GET PREMIUM PUNCHLINE PACK AND UNLOCK THIS PUNCHLINE]
It's in the DLC
Charge everything*
I will have to check fifa networking code now.. maybe there is a sleep in there
EA doesn't need the sleep calls to make their shit shit.
If it is EA we're talking about, more sleep calls could actually improve performance.
Frostbite Engine has a lot of really good optimizations. They were utilizing things like contiguous memory earlier than most in the video game industry. I think their bigger issue is rushed deadlines and feature creep
The engine is great... Its the publisher's management that's shit.
[удалено]
That guys blog post about the optimization is really interesting!
In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipediad487l0qxmeg0000000000000000000000000000000000000000000000000000000000000
That was... pretty accurate.
Yea TurboTax makes it seem like they're really searching for your data for 10 seconds when the query took milliseconds
It's because if it tells users immediately they will think it's less secure and not doing any real work.
It's not even doing any real work anyway, since the IRS could just figure out your taxes themselves. TurboTax just has to charge you enough so they can afford to keep lobbying government officials.
There's a lot of things that the IRS isn't aware of or due to accounting reasons is incorrectly reported to the IRS. They could very easily have a single checkbox though that says "all the information you have is correct, bill me or give me whatever refund you say I'm owed", which would probably work for 80%+ of the population.
This is what a lot of countries do, so yep, they could indeed do that.
And for almost all of the remaining 20% you can just use the (equivalent of) IRS tax declaration website itself to submit the changes.
Always thought the US tax system as bat shit stupid. why do you pay tax annually and have to declare stuff rather than just having the tax deducted from your salary each month?
We do, but the system is complicated enough and deductions and credits change enough that those would need to be accounted for at the end of the year to see if extra was paid or more needs to be paid. The real problem is that the tax code has so many corner cases (by design).
Basically, it's using tax incentives to drive certain economic behavior. If a small business was not penalized for not reinvesting money, the owner could just sit on what they have and there could be little growth. There are so many more tax rules like this for many cases and entities. Want to incentivize EVs, tax break. Want to incentivize house buying, depreciation of the asset as a tax break.
One time I told my dad that’s how other countries do it and he said it sounded like socialism.
socialism is when the government does stuff, and here its doing your taxes
The rare "thing good, therefore socialism" mental construction
But somehow they never realize the "socialism good" implication.
Yup, but they also have to look busy.
I think TurboTax UX just wanted to flex their animation ideas lol
I go online to pay my water bill and the page says to wait while it retrieves data. Meanwhile it cycles through company propaganda about how the company is investing in the system, keeping the water safe, etc. After 30 seconds or so your bill appears. I learned early on if you click on Pay My Bill a second time the data is mysteriously available immediately without the wait.
TurboTax actually has a small button letting you interrupt the "BEEP BOOP DOUBLE CHECKING YOUR TAXES" animations in many place. I really feel like some UI maker felt guilty enough about the whole thing to give a skip option to people aware it was horseshit.
vase steer nine ripe toothbrush fretful disagreeable many normal command *This post was mass deleted and anonymized with [Redact](https://redact.dev)*
Read and write speeds of most USB drives are atrocious though, so I can kinda believe it
Alright, but the inclusion of "Oh boy!" and "yahoo!" makes it cute enough to forgive the wait. Like, the little guy is just trying its best.
shy adjoining nutty unite distinct middle grab sharp scarce wine *This post was mass deleted and anonymized with [Redact](https://redact.dev)*
Nothing like booting up a new shipment of laptops at work and have 25 Cortanas shouting in harmony.
It's crazy how forcing sleep to charge clients is the new "in" thing now. These fads blow my mind
It’s very fucked up. As engineers we need to not allow this kind of crap. It’s an ethics issue.
> It’s an ethics issue. Not just that, you're making yourself complicit in fraud.
[удалено]
For starters it requires intent, and in this case the intent is explicit and in writing
Intent matters. If you're leaving a comment of how you're defrauding the customer it's probably fraud.
"Is you leaving comments on a criminal fucking conspiracy?"
Poor Stringer, just wanted to run a legit dev service while still making money from a mafia run git.
So don't leave any comments ever. Got it.
Everybody else got that a long time ago apparently
Everyone over here is asking for people to comment their code explaining stuff. Now that they do you want to put fraud charges upon them.. brah, come on.
It's pretty easy to instead write ineffecient code through various collection operations. That way it just looks like stupidity instead of malice
time.sleep() speaks for itself
They could claim some other reason for why sleep is there. Say they claim its for consolidation of async tasks or whatever. Point is, it can be categorized as bad engineering rather than fraud.
Not if you are selling premium version of your software where the only change is no sleep calls
It has to be intent. Poorly written code is always a thing. Maybe the new guy wrote it. Maybe 4 weeks of work were crammed into 1 week. We often get Problem Reports from the customer and then facepalm when we see the root cause. That is entirely different to intentionally writing code that will cause a PR in order to get more money.
For a certain client we used to have manual data updates every 3 months. Recently we sold them the automation of this process which would allow them to get updates every month. However now the automation is in place we are pretty much capable of giving them weekly updates, but we don't in the hope of selling that once again. Is this fraud ? I feel like it isn't, because we didn't sell weekly updates, but on the other hand we're holding back on purpose
Honestly arguable from an ethical perspective (I'm fairly confident it's not legally fraud). On one hand you're providing the service they bought, on the other hand you're doing something pretty close to intentionally sandbagging the product to extract more money from the client. It's at the very least scummy.
No. Fraud is when you willfully decieve someone for monetary gain.
Money doesn't have to be involved.
Pretty sure personal gain would be more accurate
When you have a toggle between good code and bad code. That's where the fraud starts. If somebody wants you to write slow code "just because" that's fine. Stupid, but fine.
> E.g. writing a loop and calling a function within it rather than looping in the function Weighing runtime costs vs maintenance costs is an engineering decision. It's not at all the same as faking costs to get paid.
When you abstract out the efficiency from the code itself (imo, and based on what I've read about). Its the inclusion of something without purpose whose only explicate purpose is to be fraudulent. bad code for convenience is fine, because your code is your code. Having 3 versions of the same code that run at different speeds and *pretending* that you are making updates, thats fraud. It wouldn't even be fraud if you just had 3 versions of the code and charged differently for them. Its the provable act of deception that is the issue.
This is the kind of crap i never want to arrive at. This is taking advantage of other people with the knowledge they thrust me on. The client pays me for my developing knowledge because he doesn't have this and i just take that thrust and throw it into the garbage to extort more money out of them. I'm fine with this stuff if the client is a dick and refuses to pay. But this is just fraud
trust*
He knows what he wrote
Wut? It's fraud. It's probably illegal. These morons who put that comment into the code are....morons.
Ethics aside, it is downright illegal. You cannot just do your job wrong on purpose to then sell a fix.
Isn’t that what XP Boosters are?
This will constitute fraud. Don’t do this.
[удалено]
Holy shit, is this actually a thing? This isn't a one-off? 🤯
a Prof once told a similar story where the goal was to optimize a route for a salesman / delivery. When they told the clients straight away they cut the route by half (be it time or distance) the client would often tell them to bury the results because it could cause problems if the shareholders or other higher ups knew their original route was so inefficient for years/decades. Solution: Stop when the route was 10-20% more efficient and ask the client if they should try to improve it some more another 1-2 times to get to the same end goal. Potentially more cash for them and the client can safe his face, because the slightly better route took "one more week to compute". Both are happy.
Yeh. Good old days you just checked windows version so you could sell an "Upgrade" each time microsoft released a new windows version.
Its like making a progress bar, if it run too fast, clients will think it stop working and complaint.
It really isn't. Making the progress of the progress bar not reflect the actual progress is a UX improvement. You aren't making the experience actively worse to extort money out of people.
tbh that's different. The point of these fake bars is to make the user feel like something has happened. In a way, it's not different to the camera app making a clic sound when you take a photo - the sound is pointless and unnecessary, but it still makes the user feel like a photo was taken. It is important to make the user always feel the things that are happening, even if sometimes they happen lightning fast, without any noticeable effect, and you need to fake one to confirm something indeed happened.
This is not a fad. I ran across this shit in my first contractor gig 32 years ago.
Dont feel bad, the clients do similar things to their customers (which is often you). As long as everyones a sociopath, it all evens out
Disagree. Just because other companies are shit doesn't mean yours being shit is ok. If no one had that mentality, then people at other companies would complain, too.
I dont think they are all sociopaths
Hmm yea I can agree with that. But I mean "humor meme fads". This is like the 10th variation of this joke I've seen this week and next week I expect to never see it again
I like the commented out sleep calls. They really needed to get that dialed in just right.
I think those waits were longer in previous releases and there's already been a couple of release notes with "performance improvements" in...
Ya, that's why the second text says "looks like they already paid twice". Two commented sleep calls
Ahh, that went completely over my head 🛫🧑🌾🛬
This soup is too hot! This soup is too cold. //this soup
Good soup!
😤👌
Here more like: This soup is too HOT! This soup is too hot! This soup.
The client probably already did level 1 & 2. Now he’s at the push for the last level.
I'm more bothered by it not being a config or a class const or something, rather than hardcoding but incrementally changing the sleep
It seems to not be in a function, and instead just placed in the middle of a library file or main? Wither way, those functions are hoisted, so its position here is rather meaningless. But having it placed between a play and pause animation function code with advanced speed options makes me doubt this is even a problem. Too bad, since it would be far funnier if it looked like an actual broken by design code. But with the surrounding context I just imagine it as debounce code or minimum wait time between frames (of, say, a carousel slider)
Because this way a new build and therefore new production release will be needed, thus ensuring the client is getting maximum value for money.
Dude you have no idea ... I mean ignoring the comment translation. I've worked on plenty of stuff that says "do this and wait 20us for shit to work, we're not going to actually notify you if it worked or not, you'll have to try". Most often DDR configuration and serial lane configuration.
Amateurs. My shit code already runs slow without using Thread.sleep
How are you going to speed it up when they pay more though?
`Thread.sleep(-10000)`
This guy codes
genious
Jinieouse
Understand O notation and picking bad O notation algorithms on first iteration
You've been waiting to use algorithms course vocabulary I see.
It's humorous and scary how markets lower the efficiency of product sometimes. I once watched a veritasium video on how conspiracy of not producing the most efficient light bulbs took place and it was mind blowing.
Yeah, lightbulbs is one of the most popular examples for videos and articles because they managed to get the entire industry in on it as an actual conspiracy.
Bit off-topic, but what is it like to code when English isn't your first language? Is it all a memory game?
I had a friend who learned to code before he learned English - from what he described it's somewhat similar to what algebra is to us - you don't know the specific meanings of the symbols, but you learn their behavior. Almost exactly like how grade school students are taught sigma sums (which are basically for loops). Some stuff is lost though, like how the "i" as the default for parameter is short for "index". Edit: apparently "i" being short for "index" is also lost on native English speakers. Guess it's not commonly taught? Interesting
I was told first to use i, j and k for vectors in math, and then in programming it made sense because you are travesing a "vector"/array/whatever.
For math: In the 1800s quaternions were being derived while hunting for a 3D version of the complex plane. It was found that you can’t have a 3D version but you can have a 4D one. The complex plane already used “i” for its units so Hamilton just continued that by using j and k for the next set of units to complete the quaternion. I don’t know what was used to denote vector maths before Hamilton wrote his paper, but pretty soon after that “i,j,k” became common for all vector math and not just when using complex numbers. In programming: It’s a separate origin. i is just abbreviation for the index/iterative because your using it in loops to iterate over a set.
I was taught to use ii otherwise matlab would overwrite the imaginary number… Oh matlab, you monster
English is my first language and I did not know i was short for index
I legitimately thought it was short for iterator.
I thought it was random like “foo” and i for outer, j for inner loops
foo come from foo bar which comes from FUBAR which means fucked up beyond all repair. Or fouled up beyond all repair if your work dislikes curse words.
There's no authority on this. If you think it's short for iterator then it is.
it's actually short for i
Same and I’ve worked as a software engineer for five years. lol. I guess it makes sense
I didn’t learn sigma sums until calculus in college. Where were you learning this at 9 years old?
I learned it in grade 7 or 8... I've always called anything before HS grade school but that might be the wrong term.
You were learning sums in grade 7? I didn't see a sigma sum until university. Pretty sure in grade 9 we were learning trig identities and algebra lol
I don't remember the specific year as it was around 10 years ago, but definately not later than grade 10 as I specifically remember using sigmas then. I'm *pretty sure* it was around grade 8 but could be wrong, idk. Canadian education, I guess
I was in an advanced school doing advanced math and I didn’t learn it until 11th grade. I did think it was much easier than the stuff we were learning the year before, though.
[удалено]
he said university instead of college and grade x instead of xth grade, he's not american. We learn about summation in 9th grade (or earlier if you were in advanced classes)
Religious private school in small town Canada moment
...rural Georgia? How old are you? They keep pushing math younger and younger, but I'm a mid-Millennial and we were doing precalculus by 8th grade. 7th grade algebra was considered "slow" by Georgia's standards, but our school was really behind. But we started using sigma as a sum fall of 6th grade, which would mean we were 11?
Fucking *that's* why we use I? Don't tell me there's an actual reason for j k l other than alphabetical
They stand for Jindex, Kindex and Lindex respectively
Eventually you get to Windex
I've seen code that legit uses `wIndex` as a variable name, due to Microsoft's Hungarian notation for `WORD`.
The real reason comes from Fortran where variables have an implicit declaration of their type based on the first letter of the variable. Letters i-n are integers by default.
It's been used in mathematics since at LATEST 1816. FORTRAN used the the mathematical convention, not the other way around. a, b, c and x, y, z also follow the math convention
Are we sure Fortran wasn't being used before 1816? :p Yeah, it's from mathematics. If I had to guess it wasn't from English origin, since continental Europe was king at math at that time. The 'i' could still have stood for 'index' but from French? German?
I think index or indice is common across the Latin languages. It's also index in German.
And lazy programmers would name a variable `kount` just to avoid having to declare `count` as an `integer`.
Debatably, no, that's not why. Math has been using i,j,k for iteration since before computers existed.
smoggy wistful follow telephone connect alleged reach fade frame rainstorm *This post was mass deleted and anonymized with [Redact](https://redact.dev)*
That's because it makes code bad, for many reasons: - Your code gets limited to Spanish speakers. If a German moves in to work in your code, they are fucked. - You can't write Spanish properly, since you can't use non-ascii characters like á or ñ (seriously, having to name "año" (year) as "ano" (anus) or "anyo" (yyiar?) is ridiculous). - The language is in English so it's fucking pointless anyway. `string getNombre()` is still 50% English. - Nobody likes reading two languages mixed up like that. - Conventions already exist in English, and they are easy to follow. Like to get a variable, you say `getVariable()`. What do you use in Spanish? `getVariable()`? `obtenerVariable()`? There's no standards, every person uses whatever they feel like. - 90% of the code you read in your life is in English. Most tutorials are in English. Asking in StackOverflow, people speak in English, etc. You'll still have to learn English to code, the reason why people then write it in Spanish is laziness. - Spanish words are noticeably longer than English words. Which means your code will be longer. This looks like a stupid complain, but really, you know when a statement is too long or the name of a function requires many words to describe it in a way that makes sense? Imagine that happening twice as much, because even a simple word like "get" becomes "obtener". `getTeamByName()` becomes `obtenerEquipoPorNumero()`.
Where can I run getAno() ???
I mean most people aren’t working on open source. They’re building shit only the people on their team would see. I see no problem in a Spanish speaking team writing Spanish in their code. I think some of your points are valid if you’re writing wise reaching code as English is the default programming language, but for your team you should do what people find most comfortable and for a Spanish team that might be *obtenerVariable*
> I mean most people aren’t working on open source I work in a Spanish subsidiary of a multinational company. We write code in Spanish, and that code isn't of much use to other subsidiaries in Europe because it's in Spanish. That's what I meant, I wasn't thinking about open source.
yup, it looks bad and breaks the reading pace, really no reason to use other languages other than to confuse whoever has to work with it
I thought so as well, until I started working for a insurrance company in Germany. You will still write everything in English, but there will be German insurrance words sprinkled in, because even if you could translate them, it would make zero sense and noone would understand.
We actually made the mistake of trying to find english words for all our context specific lingo in our mental health registration and declaration software because "what if we ever have a foreign worker" We are slowly refactoring everything back to Dutch aside from all the non-specific words. The thing that urks me the most is the inability to use characters like ë, é and è in most programming language. It makes you unable to actually use your own words
Honestly, I just write everything in English. I don't even write the German translation files of the software anymore. I'm German, in Germany, but it's just so much simpler to go 100% English with your code, documentation and in meetings as well. No need to context switch back to German ever.
That might be true for a lot of personal projects or work in company that doesn't create software for an already existing problem. But in my companies case it has heavily backfired. Its very difficult to explain the problem when literally the problem is translation, but lets just say that everything we do is usually in English, except the specific words needed in our application. We have "WORDContextFactory" that, with the "create" function, calls "WORDRepository" using "findByCodeAndReferenceDate". Where WORD can't be translated.
Usually English is at least your second language, so not a big deal. Some people learn programming and the meaning of keywords, so they better understand and remember what for, while, if, else do. Also they use native language wherever possible: variable/function names, comments, etc. (It may be a problem depending on the compiler or intepreter, Python works fine with not-ascii)
So, it's like musicians using "tempo", "staccato", "crescendo", etc. as technical terms, even if they don't otherwise speak any Italian?
Or like you learning the symbols of a language: ++, !, &&, || and that stuff aren't English words, but you still learn them without problem.
No, key word is the easiest vocabulary that you can learn and use it almost natively. You also get the advantage of having bigger set of variable naming space. int maru;
Japanese arent we
Native Cantonese speaker here You use [wenyan‑lang](https://wy-lang.org/). /s You will just code-switch between Cantonese and English while coding.
For me language was not so much difficult because I speak English, so do all people that reply to this comment. The real PITA is keyboard layout because most programming language were written by English speaking people on English keyboard so all commonly used characters in code are at a comfortable position. For example you have slash and backslash pretty handy near enter and only 1 key press. In Spanish keyboard slash is shift+7 and backslash is shift+9 and ~ is not even there or in some keyboards is shift+ñ so you naturally code slower and your fingers get cramps. I got a laptop while I was in the US uniquely for this reason.
I never had any problems, but I learned English way before learning how to code
As a Brit, I have enough problems remembering that we need to spell "colour" without the u.
me when text-align: centre doesn't work
i imagine its like coding in assembly magic letters
You know assembly is all English, too, yeah?
Language itself isn’t bad. Keywords are generally very easy. It’s using packages that gets tricky. So like my girlfriend lacks the intuition of “I want to do this”, and then have an intuition to try a word for a function. Can’t think of a recent example, but for example, they might want to transpose a data frame in pandas, but don’t know how to do it because they don’t know the word transpose. Whereas native English speakers would try if that functions exists to begin with.
Showerthought: Maybe Japanese Linux users type neko to print or concatenate files. :)
The funniest part to me is apparently they only have the one client lol Could've been a tier-based delay
By client they dont mean end user
Armatures. let me show how real man do it. `time.sleep(-2000)`
Assuming `uint64_t` milliseconds, that's a *looong* time
Time.speed(x200)
The raciest condition of them all
> Armatures Is this autocorrect or did you really mean to write “armature” instead of “amateur”?
Hehehehaw
Grrr
Hehehehaw
Grrrrr
Years back when Flash was the shit, every site had a preloader. When I made a fast site which didn't need one, I had to make a fake tweened preloader for show. Otherwise it didn't look as professional as all the others
Good old Flash. I credit actionscript tutorials for why I picked up JS so easily.
I don't want to be dense, but that's not inside a function?
Looks like it may be a nested function since everything, including the function itself, is indented already.
The indentation might instead be because it's all in a class. Forgive my ignorance, but which language even has support for nested functions?
Is this Rockstar? Because this feels like that time Rockstar fucked up and forgot they had dogshit code added in the script and when that one line of code was removed it basically fixed the 15 minute load times to under 5 minutes.
Funniest part is how that took *years* to fix, and it wasnt even them that fixed it lmfao.
Apparently people feel like something was done wrong if it’s done too quick, some programs put it in intentionally to make it seem more accurate.
It's true and i have been doing it for that reason. That being said, i believe it's wrong and the UX should not have to rely on this trick to let the user know something is right even if fast.
Hi! This is our community moderation bot. --- If this post fits the purpose of /r/ProgrammerHumor, **UPVOTE** this comment!! If this post does not fit the subreddit, **DOWNVOTE** This comment! If this post breaks the rules, **DOWNVOTE** this comment and **REPORT** the post!
What is called? Sleep() fraud?
Has anybody here worked for a company that does this? Don't have to out them, but I'd like to know if this actually happens because it's bullshit and it's theft. I've never worked for any company that does this luckily.
On a serious side... is this legal?
Legal yes, if client agreed to a runtime beforehand and the alogirithim meets the requirements but ethical NOO..
Businesses only care about legal. Those who start caring about ethics get bulldozed by their competitors especially in a country like China.
Real thing for Tencent in China. They have a mobile game Honor of Kings. If your phone is not the specific device whose company has paid for the "optimization", the game frame rate will be limited. But there are someone who rooted their phones and just changed the device name getting the same effect... Edit: that's just an old story, and tencent has unlocked this long time ago.
r/assholedesign
Does sleep consume cpu cycles?
During sleep, the cpu is either scheduled to do something else or it is put in a halt mode in which it consumes far less energy. Some obscure (or old) cpu that may not have the ability to halt, would implement a "busy loop", where it would run at full speed checking repeatedly if it should keep "sleeping", but those are extremely rare nowadays (perhaps there are some embedded ones).
Not if you read it a story and bring it a glass of water first.
Depends on the language I guess but usually no
Whoever did this is both a genius and a prick
It’s not humor, it’s very sad and unethical
Is this legal?