57
65
u/Novel_Top2980 20d ago
Python isn’t that hard. It’s probably the easiest actual (as in, not scratch) programming language.
28
u/smstewart1 20d ago
Programming in Python is easy, writing good code in Python is hard
8
u/Gabriel_Science 20d ago
Not like it’s much easier on other languages.
3
u/smstewart1 20d ago
Not having to give types in Python is great, not having to call my functions before I define them is wonderful. I found C to be a hard language, though learning type casting and better code structure in Python I’m find C more approachable.
3
u/Gabriel_Science 20d ago
Yeah, Python is easy, but writing good code is (relatively) hard is every languages.
1
u/Constant_Baseball470 17d ago
Im still a noob but i feel like languages like python are easy to write but suck for debugging, reviewing or generally understanding what i wrote a week ago?
1
u/smstewart1 17d ago
For me that’s the difference programming and coding; after I learned how to program in Python I focused on writing better code. I’m much better about commenting my code, using a regular structure to make it more intuitive where things are, using better variable names, minding types, freeing memory, buttressing code against edge cases, and really documenting my code. For example, instead of just using short names in functions for variables, I started naming them what they are and the intended type, eg “datatable: pd” verses “dt” so I at least know what the variable is. Same for function names, “convert_table_to_list” instead of “t_to_l”
2
1
29
u/Shygar 21d ago
Why would C and C++ have the smallest knife?
15
0
20d ago
[deleted]
2
2
u/IntelligentTune 20d ago
But you do recognize that objectively Python is easier due to multiple modern conveniences? That all you'd need to learn is syntax VS if you did Python mainly you'd need to learn to be more methodical (e.g. Garbage collection)
1
u/halfjmp 19d ago
No, Python is not *easier*. It depends on a lot on the task. Having learned assembly, then C, then Python, I assure you Python is not *easier*. I would say C is easiest of the three: small language, fits in the head almost entirely, barely anything breaks ever in the language.
What I learned in Python, I had to relearn several times, because the language changes, the libraries change an lot, the way you are supposed to work with it changes... And the core Python language has a lot of dynamic features that make it operate in subtle ways. Plus not typing (now botched typing), slow, etc. (which means some things get more difficult as well). Not an easy language, unless you are just lazy and accept code that breaks randomly at runtime.
1
u/NotaValgrinder 20d ago
As someone who learned programming in the world of modern conveniences, I found C easier than Python. I think it depends on how your brain works.
0
20d ago
[deleted]
1
u/CommunityBrave822 20d ago
So handling memory is easier than not handling it?
1
u/Quote_Revolutionary 19d ago
depends on how you think about software: as someone who wrote c++ for years and then tried rust, choosing to care about memory is a spectrum. let's just say that the only difficult thing I find myself doing is managing memory for someone else (so decoupled from the logic), languages became really good at operating on memory through your structure, so in general it's not THAT bad
0
1
1
u/Additional-Dot-3154 18d ago
Same.
Somehow i get along better with low level and small instruction set langauges then with languages like python.
22
16
9
9
6
u/Schiavox 20d ago
Helloworld("Print")🔥
3
u/zippybenji-man 20d ago
def Helloworld(function:str) -> None: exec(f"{function}(\"Hello, world!\")")1
u/Infinite_Rub3674 17d ago
print has to be lower case tho
2
u/zippybenji-man 17d ago
I know, but it wouldn't make much sense to have a .lower(), considering you have functions that include uppercase characters
1
6
10
u/Heretek-ai 20d ago
JavaScript be like, €π×¢×|=€×§¢{|°|=¢}}¢{|=|°€{¢}¢{€°•={%×€{®[©{×¢=€°€=€}€{[¥[¥[{™}✓}™{=€=€}}™}}=|°|÷|§€{|°|°π€√•©=¢]
9
u/Lodgik 20d ago
A while ago, I visited my friend Java's house. I knocked on his door and I could tell immediately that he was mad at me. He let me know in no uncertain terms exactly what I did wrong. We worked down the list and afterwards, we got along great.
The next day I went to my friend JavaScript's house. He opened the door and we started talking, but I could tell something was off. He would sometimes respond to my questions weird or not at all. Finally, I had to ask him "Did I do something wrong?"
"Well, if you don't know, I'm not going to tell you!"
6
u/javascript 20d ago
Thanks for swinging by, but you should know what you did
1
u/Heretek-ai 20d ago
How on God's flat Earth did you become the backbone of every AI project, desktop applications, and websites????? I mean respect honestly.
1
2
u/meinkr0phtR2 20d ago
Python is pretty easy; it’s C and C++ you have to watch out for—mainly because of memory allocation.
I think maybe it was a mistake to learn C and then switch immediately to Java. You just get used to the garbage collector, and you get dropped back into C and suddenly start leaking memory everywhere.
2
u/According-Relation-4 20d ago
Jesus fucking Christ, I wish writing the code was the actual hard part
4
u/StormblessedFool 20d ago
Should've put Assembly
-3
u/ilnarildarovuch 20d ago
Assmebly is easier than python. It can have even one mnemonic, lol (on OISC)
4
u/exophades 20d ago
There are more assembly languages than all the other programming languages combined.
And no, assembly is much harder than python because you need to manage memory manually.
-1
u/ilnarildarovuch 20d ago
>> There are more assembly languages than all the other programming languages combined.
Thank you, cap.
>> And no, assembly is much harder than python because you need to manage memory manually.
Assembly is just mnemonics. If you don't want to control memory than you can even create simple programs on syscalls.
UPD: (1) no, it's not. With LLVM and other codegens it's not true anymore
2
u/exophades 20d ago
Get back to me when you finish a web scraping app in assembly. Let's see how much easier you'll find it compared to python.
2
u/ilnarildarovuch 20d ago
Idk, i wrote http server on x86 asm for tests of my network stack and driver + custom compiler last month. Can share screenshot, if you want this really much.
-1
u/EconomistFair4403 20d ago
Yeah, but you're not actually making a web scraping app in Python; others made it, and you call it from the "web-scraper-app" pip library of choice with a bit of scripting.
1
u/ilnarildarovuch 20d ago
Well, same for asm. If it's was exported with symtabs as objects then code on it can be linked with professional libs, like curl, libressl, something like libc itself
2
1
u/CowBoyDanIndie 20d ago
The c c++ knife should be stuck in their foot, the html css one should he misaligned, and the java python one should be replaced by a garbage bin.
1
u/Lloyd_garmado 20d ago
Programming is easy, getting to make the program work, now thats the hard part
1
1
1
1
1
u/LG-WashingMachine 20d ago
programmin is not ez, but tbh the examples ya provided are the ones that are the easiest to get the hang of
1
1
1
1
1
1
1
1
u/AndrewOfC 10d ago
If it were rust, he'd be facing a bazooka.
Python is like your kindergarten teacher.
Rust is like your drill sergeant(the mean one).
3




271
u/exophades 21d ago
Html and css can drop that knife, respectfully.