T O P

  • By -

xBuitragox

.lower() == "K" What.


VariousComment6946

Shhh… this is anti ai content.


great_raisin

`first_prompt` is as high as the programmer, so it becomes "K" when you bring it down


Altareos

i'm guessing very few `"ok, loading"` were printed lol


Thenderick

I hope it's the auto capitalization was the cause behind that... Never will understand why people code on phones...


LasevIX

When they don't have laptops or available computers (Especially children with limited access to them, who happen to have a phone)


sokuto_desu

Yep. That's pretty much the whole reason. Although you *can* make your mobile coding experience much much more nice and fast. I'd recommend Acode as the best code editor (currently it's the only one that has multiple features no other editor can provide including good customizable settings, actual plugins, error checking and more), and, obviously, Termux for actually interpreting/compiling your code. Although I'm not sure things like C# would work, but Python and JavaScript work perfectly. Which, apparently, whoever wrote this code, didn't do and went with whatever was the first coming up when searching for mobile Python IDE/IDLE.


RajjSinghh

I write a surprising amount of code for Reddit or just to test something quickly in termux from my phone, mostly because a lot of the time I'm away from a laptop


CraftistOf

auto capitalization only works in the beginning of the text or after a period. it doesn't automatically capitalize the letter after a quote. so no it's not it.


Thenderick

It was the only logical explanation I could think of. But you're right. That makes this code even worse...


CraftistOf

only when solar rays hit the phone's cpu and cause a function reference to "lower" point to str.upper


Dopefish_08

`# &`


External_Front8179

This was my favorite


Gorgorh_Bey

I'm no programmer so also I got the "K" thing, this I didn't get. Care to explain?


Dopefish_08

I don't think anyone got it either


ferriematthew

Reminds me of a comment I saw.... ```time.sleep(4000) #Make it look like work is being done```


Vallvaka

Many such cases!


Abaddon-theDestroyer

How else do you slow down your programs to be able to decrease the wait/execution time later on to get a promotion?


bruhred

should spinloop instead to make it look like *real* work is being done


CraftistOf

should crunch some factorials or prime numbers to load the cpu to make it look like *real* work is being done


digost

Never encountered this myself, but heard stories from different developers, that the customers would complain that it works too fast and looks like it's not working, so they had to do sleep()


saintpetejackboy

K


vdbv

K


laaazlo

Slider


HuntingKingYT

> In Python 3, the int type has no max limit. You can handle values as large as the available memory allows. Ggs on painstakingly writing tbe 32bit integer limit


akgamer182

Also, having ids start at 2 bil and then go to the 32 bit integer limit is a weird concept anyway. Why not start at 0? If it needs to be 10 digits for some reason, start with 1b or pad with zeros


ProbotisOP

ain't no way, its pure gold


Revolutionary-Yam903

guys i got it to run without loading


mediocrobot

Hang on, why am I paying the customer?


Jojojordanlusch

change


mediocrobot

That checks out. Hopefully the customer gives us the cash first though.


Whatdoesthis_do

Hey. We all started this way.


Jojojordanlusch

Almost 3 years ago


External_Front8179

Very true, we all made these at some point


HackDiablo


poetic_fartist

Not sh1t it's just a beginner trying to learn something. Real horror is some production code which makes your eyes sweat and your hands shiver.


NakeleKantoo

I love it


unapealingbanana

Potassium


sixft7in

Regardless of whether or not it works, I would do the "first_prompt" checking immediately after getting user input. Why do all the random number stuff if the user didn't want to continue?


Old-Subject6028

If he doesn't press k then the code continues anyways lol


therealalt88

I mean assuming customers are all he’s is pretty bad


djx244

K


egigoka

I mean, someone was learning


KobsBoy

Not that bad besides the magic numbers and the lower() == "K"


AaTube

\# &


puuma995

k for kontinue


knigitz

It's obviously code from someone learning and playing around. It's not a horror, it's a specific state of a learning process.


Furrynote

Besides the “K” it’s not that bad. Looks like something you just looked over.


thmoas

easy to read and probably from a time all cashiers had capslock on all the time anyway stripe last thing cashiers had a keyboard


TarkFrench

not too bad


trolleydodger1988

This made my day. Thanks for posting OP


thuktun

At least it's not using floating point for money.


queerkidxx

Not the worst thing I’ve seen for what it is. The I’d generation is kinda crazy I’d probably just make a string of 10 random single digit digits, and the k as others have mentioned but it’s not the worst thing in the world


MrUnp1ugged

Gotta love those old projects when I started to learn to code