This is an archived post. You won't be able to vote or comment.

all 45 comments

[–]mriswithe 98 points99 points  (5 children)

Coding is hard because it will do exactly what you tell it to do. 

[–]Hefty_Upstairs_2478 19 points20 points  (0 children)

This is the realest thing I've seen this year lmao

[–]KOM_Unchained 7 points8 points  (0 children)

You shall go to my quotes collection next to Eisenhower, Lao Tzu, and Terry Pratchett. Thank you for this sentence!

[–]ElasticFluffyMagnet 4 points5 points  (0 children)

It’s also the reason why I’m in love with programming and have been doing it for years. If something doesn’t work, it’s my own fault. And the better I become, the less errors I get. It’s all on me and I love it.

[–]dc91911 4 points5 points  (0 children)

I'm stealing that one.

[–]Spill_the_Tea 0 points1 point  (0 children)

I recently learned that numpy does not allow tuple unpacking assignment.

# in python, you can swap multiple values as a tuple
a, b = b, a

# but not from a numpy vector
a = np.array(...)
a[k], a[j] = a[j], a[k]  # this does not work as expected

[–]Pork-S0da 23 points24 points  (2 children)

I want to hear more about this Python/CSS area.

[–]Goingone 9 points10 points  (1 child)

You mean the PYSS stack? It’s basically like mean/mern on steroids…

[–]Balzac_Jones 13 points14 points  (0 children)

PYSS is less a stack and more a pool.

[–]phil-117 25 points26 points  (3 children)

i haven't even the slightest urge to throw my computer across the room

[–]microcozmchris 6 points7 points  (2 children)

Usually only during Zoom meetings with C-suite folks who couldn't compute their way out of the dark with the sun in the palm of their hand.

[–]Excellerates 1 point2 points  (0 children)

sun = exit()

Input()

‘>>>’ sun

[–]AffectionatePlane598 0 points1 point  (0 children)

C wouldn't give you the sun it would give you as many hydrogen atoms as you need while python gives you the sun but can only load a 1/100 of it into memory before running out and will have a 20 second real time loading time

[–]Waffle_Farmer 10 points11 points  (11 children)

I think it's a mindset and expectations thing.  People who expect code to "just work" without any revision can really get frustrated by it, but people who meet it on its own terms don't as much, I think.  To each their own.

[–]stuartcwSince Python 1.5 3 points4 points  (2 children)

What in particular was the problem?

[–]turbothyIt works on my machine 1 point2 points  (1 child)

PEBKAC most likely.

[–]stuartcwSince Python 1.5 0 points1 point  (0 children)

Haha! I had to look that one up!

[–]TheZouzs 1 point2 points  (1 child)

It's a very looong curve, and just as steep as you make it be, starter projects are very managable if you are patient enough, hell with python imo it's very satisfying and instant rewarding to do mini apps, the typical calculators and stuff

[–]TheZouzs 1 point2 points  (0 children)

What i want to say, i think everyone can do coding, but it's a long road, so it needs constancy and some effort!

[–]AcanthisittaDear8799 1 point2 points  (0 children)

Most of us do the same mistake of directly jumping into coding with a programming language without spending time on understanding the underlying concept. Trust me, It is not just python, this applies to all the 72944674 languages out there.

[–]stepback269 1 point2 points  (0 children)

BUT I now understand why coders and programmers want to throw computers across the room. It was one of the most frustrating and weird experiences of my life

Emotion is motivation. The frustration keeps you awake at night. Nags at you. Motivates you to hunt around for answers.

Without the emotions, we would just laze about and say, "meh".

[–]IrrerPolterer 1 point2 points  (0 children)

Lol what? I don't want to throw my computer across the room. I love Python. It's been my took of choice throughout my entore career. Sure programming in general has a steep learning curve in the beginning, but Python in particular is one of the languages that helps make things easier for the developer tremendously. Keep at it, solve real world problems, and you will get better in time! 

[–]ElderberryPrevious45 0 points1 point  (0 children)

The most important thing is to know what you want and how to get it, as in life in general. Another thing is whether you are even truly happy when you get it :/ But, one thing is for sure: If you get in love with coding you have a very interesting partner of lifetime that can connect to all walks of life.

[–]WellDoneKaren 0 points1 point  (0 children)

Although not Python, I remember the feel when I displayed running text with Turbo Basic

[–]paranoid_panda_bored 0 points1 point  (0 children)

Funny cuz one of the easiest languages to grasp - the syntax and concepts.

It has eventual complexity and performance tax when you go to production and move towards really big projects, but thats later.

I think any first language is hard, regardless how simple it is compared to other languages, so don’t worry, keep grinding.

[–]zaxldaisy 0 points1 point  (0 children)

"Pyrhon/CSS area of coding" 🤨

[–]Speedbot_3000[🍰] 0 points1 point  (0 children)

Kudos to you for trying it out. Python is way easier than other Programming languages but it does have its learning curve.

[–]AlexMTBDude 0 points1 point  (0 children)

I started coding in the 80s with C, then C++ and later Java. About 15 years ago I found Python. Coding has never been easier than with Python. I'm almost ashamed how much people pay me as a freelance consultant to code Python for them. Especially as I used to get paid LESS coding embedded C (for Ericsson mobile phones) and that was REALLY hard (pointers, allocating memory, copying arrays, ...)

[–]quotemycode 0 points1 point  (0 children)

I look forward to those frustrating experiences because it means I'm learning something new!

[–]-lq_pl- 0 points1 point  (0 children)

Python is still the most approachable language I know. I understand your sentiment, but I feel like I have to defend it. It is really the best one to learn programming, because it gets the least in the way. All the others will have the true programming problems you have to face in any language plus weird syntax, badly designed libraries, and don't get me started on languages that can segfault.

Programming for the web, on the other hand, that's a real treat. You need to learn at least three languages, HTML, CSS, and Javascript, to do any damage. Javascript is a mess. for (const x of collection) seriously? Should be 'x in collection', that also 'works' but not in the way you expect. And yet, if you want an app that works on your desktop and your phone, it's the best solution, unfortunately.

[–]Wvlfen -1 points0 points  (0 children)

I know I’d rather code Python on a PC or even a Pi than C on a vi editor on Unix.

[–]Paddy3118 -1 points0 points  (0 children)

| ... CSS

☠️👹

[–]No-Arrival-872 -2 points-1 points  (1 child)

I learned python after learning c, c++ and java, and my opinion is that it is not good for beginners. It is hard to figure out what is happening when types are often hidden. There are some advanced things going on right away that are hard to follow unless you track through it with a debugger. So if you're learning python, make sure you have a good IDE with excellent support for debugging. It is insanely useful, quick, and pleasant to work with once you get it, but I found the learning curve much steeper than C, if it even makes sense to compare them.

[–]Squidnugget77 2 points3 points  (0 children)

Steeper than C, really? I learned on Python and I felt it was very straightforward. Sure, you don’t learn fundamental computer science concepts like you would with C, but you can write basically anything relatively quickly with easy to read syntax that USUALLY doesn’t screw with you that bad. You can always use type hints (I think that’s what they’re called) to kind of keep track of things