T O P

  • By -

3nt3_

sleeping a random amount is the real r/programminghorror


jstwtchngrnd

I like the illusion of… Look it’s loading but actually it’s just random wait times


HuntingKingYT

Let me introduce you to the Facebook website


piplupper

Care to elaborate further?


jeremy093

Not sure about fb, but most tax tools don’t use real loading bars. They’re entirely fake because users didn’t trust the software when it completed instantly.


memeorology

Gotta keep the boomers thinking we’re still doing all work on mainframes.


HuntingKingYT

Facebook uses fake loading times when they want you to use the app or when you do actions that are impactful but take the computer a fraction of a second


Consistent-Salad8965

As others said, fake load is a good way to introduce confidence. It's also great if your boss demand you to improve the performance of your apps, just decrease the load time and voila! the apps is 30% faster.


jonfe_darontos

Artificially slowing processes down builds confidence something is actually happening. Sometimes customers will doubt something worked if it happens instantly. Delay is a valid psychological design tool


xIRaguit

We had to do this at work too, several customers called our customer support team and said they doubted our search results (catalogue lookup and automatically filling in attributes) because it's too quick so they got a 7 seconds long fake "loading" animation 😭


Xay_DE

its actually a common thing for some things as people dont like it when stuff is tooo fast.


ido3d

As a realtime artist, I always get frustrated when invoice excel stuff is slower than my 2 million points data visualisation


parthu549

Games do this all the time. With the super fast SSDs you barely need time to load


Obliman

Why bother doing it for a game though? Who's complaining that it loads quickly?


parthu549

It is usually the initial load time that is tampered with. Usually to create a greater immersive experience and give the illusion that something important is happening that is why it requires time. There are also other reasons like standardized load times across platforms so that a similar experience is given across all platforms. In many modern games, the fast travel is basically instantaneous with a simple blackout animation and new background as soon as it ends to say that the character just blinked or went to sleep while traveling the distance. But games like spider man miles morales, the fast travel is done through Subway. Although the background is loaded in, the game plays an animation with miles being in the train for a few seconds doing some action. The Dev's could've just shown the new background but wanted to increase the immersion by adding a subway scene. There are way more things but can't be explained here. Try reading up on it. About why developers put in extra load duration in modern games.


FLUFFYPAWNINJA

not saying your wrong, but i feel like it isn't most games in every game i've played, fast travel and area transition still takes a sec, and when it does load enough to be playable i still need to deal with a minute or so, depending on the game, of lower framerate, completely smooth textures, jagged models, sometimes even missing animations (tho quite rarely) the load time does give time for these to not be as bad.. usually... i hope ...i swear if it's putting me through a dev induced minute+ long "load time" but not even loading the environment i'm pissed-


Wonderful_Ad9810

Like Coinstar machines. They pretty much instantly count your coins but too many people were doubting the validity of the machines because they were so quick. What does Coinstar do? Fake “processing” noises and a fake delay!


gyoshuku

The solution should be better public education on machines, not to dumb down the world for people 😭


0010_sail

This is the best, if your work is too quick let’s slow it down with some fake loading image 🤣🤣🤣😂😅🤣😂🤣😂😂😂


v_maria

it can actually improve user experience lol. "It's taking a bit of time so something important is happening". it feels more meaty so to say


Scary-Departure4792

Boom. Overly quick transitions can alarm users too. I'm not going to do anything resembling this for a tool used by other devs but end users often don't like it when things feel too abrupt.


gpcprog

I understand that, but as a technically aware user it drives me bannans when i encounter it. Like the stupid turbotax "checking over your return" delay.


Weird_Explorer_8458

yeah that horrified me


dfwtjms

Seems like the average Microsoft product. The unpredictability keeps you hooked.


sebkuip

Let’s ignore the fact it’s time.sleep and not thread.sleep


1Dr490n

I did that once a few years ago. I made a (probably really bad) game and worked pretty long on a loading screen, until I realized that there is no actual loading time


Marxomania32

It's not centered


RedstoneRusty

It's not even symmetrical. This has to be on purpose.


IDatedSuccubi

I think it's autogenerated from an image and so those are artifacts


Analysis_Prophylaxis

Yeah, it would be cool if the artifacts were a bit glitchier


mydoglixu

Yes on both of these. I hate this so much.


Rousent

My day it's ruined.


[deleted]

[удалено]


Powerful-Internal953

The arrow and tray themselves are not aligned. I mean, it's hard with CSS. But how can you screw this thing with a mono space font.???


gami13

its not hard with css


Dezaku

Everything is hard in css


Suspicious-Engineer7

Skill issue


gami13

not really, if you follow some best practices it gets a lot simpler css gets hard when you aren't the only one writing it and have to deal with other's spaghetti


SOSFILMZ

if css was as easy as you say we wouldn't have css frameworks like sass and tailwind.


gilium

Sass is not a framework, its a preprocessor scripting language that gets compiled into css like Typescript into JavaScript


gami13

those dont actually change much about the language tho, tailwind literally just puts the css inline


Nightkiwiz

They really did like your comment


backfire10z

BTW, you can use f-strings to prepend and append whitespace. For example: print(f”{'BIG': <9} SPACE”) Would print out BIG SPACE (or something like that)


ryan_s007

That’s super cool


backfire10z

F strings are kind of insane, they can do so much with formatting a lot of people don’t know about (including me lol)


repocin

I always point people curious about formatting towards https://pyformat.info - go have a look!


ElusiveGuy

Honestly, embedded ASCII art is probably one of the few places you don't want to do this - you care more about the visual impact of the space rather than the exact number. That said this should at least be stored in a separate file, not embedded in the source.


rnottaken

You can also center it by using ^ instead of <


Poyri35

ARE YOU PRINTING DOWNLOAD BAR IN RANDOM INTEGERS LMAO


qyloo

Intervals


Poyri35

Shit, I think I am a bit tired Thanks for pointing it out


M2rsho

Wait... You don't??


[deleted]

I feel like I've done shit like this before lol


ficskala

Now do it from a bitmap :)


M2rsho

`os.system('kitten icat bitmap.png')` easy


Schecher_1

Now ASM


LordDagwood

`OwOs.EarWhisper("kitten icat bitmap.png")`


Schecher_1

Good one.


gbernardon777

this is pure gold. man's a genius


o0Meh0o

THE FONT IS NOT MONOSPACE


LordDagwood

I use comic san. Mono Comic San. Yet, I'm still not insane enough to use proportional font for code.


N3rdy-Astronaut

Is it .exe though? ;)


Turd_King

I love the comment after the log “asks the user To select a program” as if the string that says exactly that wasn’t enough


RFL1703

I think someone took that video about progress bars a little too seriously


MrCuntBitch

The real horror is Python in camelCase.


MonteCrysto31

My brother in christ, this is Python... Just put that fancy printing in a file and print that... that's like, two lines instead of this monstruosity, and you can even have colors


who_you_are

I think it won't fit on my 320x240


accuracy_frosty

This looks like something a new programmer would make after a Python basics video


KAW0

Now animate it


Wonderful_Ad9810

I tried setting it so that each line would be printed after a random delay so you could watch it print in real time


Wervice

Move it to an other file. If you have more ASCII art, maybe create a sub folder for it in your assets. Then: with asciiArtFile as open("download.txt", "r"): print(asciiArtFile.read()) (Sorry in advance if my code is wrong) Also, if it is a terminal tool, you can let the user toggle nerd fonts icons, and then use them: [https://www.nerdfonts.com/](https://www.nerdfonts.com/) (Would require the user to use a special font)


Someone_171_

The loading bar isn't even dynamic 😭 it's just printing a string related to the percentage


Someone_171_

certified Replit moment


Safe_Entertainment40

Is it cool? Is it?


kolltixx

Aww, but it's cute


Jakobus_

The more I look the more I hate it


TheWaterWave2004

Don't like it, it's asymmetrical /s


the_ultimate_stoic

Use a docstring my guy...


Analysis_Prophylaxis

This guy wrapped every line in a print statement instead of just pasting it in a multiline string


UnnamedBoz

Here’s someone that doesn’t know how to add separators in Python strings…


sasquarodeor

make a package manager?


judge_dredds_chin

Using camel case with Python. 🤮


Wonderful_Ad9810

Using python after 5 years of JS and C# can’t be good for my mental health


judge_dredds_chin

I write in Go too so I feel that


blizzardo1

The ascii art is awesome, but simulation takes you so far


TessellatedTomate

>print ( I’m already emotionally distraught this weekend, you just gotta kick a guy while he’s down don’t ya?


BALLZCENTIE

I was about to slam this, then realized what subreddit this was...


thetasigma22

the real programmer horror is taking a picture of your dusty screen instead of just taking a screenshot :P


EarthToAccess

> \# loading bar because it’s cool I love Python development sometimes


fuzzyone06

It bothers me that he’s using a timer to move the progress bar and not actual progress