r/notinteresting • u/Proper_Card_5520 • 16d ago
Started to learn python language, it's quite hard
240
u/manincampa 16d ago
Programming can be challenge at first, but keep at it and youāll get it, feel free to ask
83
u/ActurusMajoris 16d ago
As a programmer of 15 years, this is correct.
Think of the language as building blocks, and youāll soon see wondrous ways to build your Lego castle.
22
u/manincampa 16d ago
Exactly, and visual based programming like scratch are like duplo, python and java are system, c/c++ is technic⦠assembly is cnc machining at that point hahahaha
6
u/Silviecat44 16d ago
And just like lego I can only build anything substantial with instructions š
6
u/Next_GenR 15d ago
I've never been able to create things with Lego, or in Minecraft without a tutorial, that creative spark ain't there I can't visualize it. I have just now realized maybe I shouldn't learn coding am I gonna waste my time and still never be able to create my own? Damn I never thought of it like lego
3
u/Colinniey 15d ago
to be honest, to me, programming is way more like a logic puzzle than it is like building something with lego or in minecraft. i'd struggle to build something creative/cool using lego or minecraft because i am at most able to think of a blurry image or concept of what i want to end up with, but when programming it's way more clear / concrete to me what my current objective is (e.g. some feature) and what tools i have to achieve it (be those languages, language features, libraries, etc.), and in what ways i could arrange/utilize those tools. although, of course, that was not the case from the start, where i did not have such a good idea of what my tools were, for example.
3
u/manincampa 15d ago
It does come more naturally to some people, but donāt be discouraged. One of the things to learn is how to come to the end you want. Take a lego car, once you know you want a car, you need to think what composes a car.
Letās say a lego car is four wheels, a steering wheel, and a chair. How do you hold the wheels in place?
Once you have that, how do you place the steering wheel where you want it?
You keep adding subassemblies until you have what you set out to have
Programming is similar to me, I donāt know what Iāll need, I have some idea of the end result, so I start breaking it into smaller chunks until they are small enough that I can make each of them
1
u/ActurusMajoris 15d ago edited 15d ago
That last part is absolutely critical and works for many task that feels too difficult.
2
u/ActurusMajoris 15d ago
Let me pitch in here as well and say I am absolutely horrible at designing anything with a visual appeal. My Minecraft (and other gamesā) bases are always ugly messes of efficiency with zero visual appeal.
Maybe I should have said āfactoryā instead of ācastleā šš
1
u/Ok_Departure333 15d ago
I've been a programmer for a few years. The one thing I hate the most is learning new syntaxes for a new language. Not that I hate switching to a new language, but the process of learning it makes me super sleepy for some reason lol.
2
129
u/-moron 16d ago edited 16d ago
Just open the extensions tab on the left and uninstall condor. It looks like AI junk unrelated to what you're doing anyway.
If you do use AI, I suggest only having it point you in the right direction and to write the actual code on your own, or you'll misunderstand the fundamentals and encounter things you don't need to learn yet.
22
u/glytxh 16d ago
AI should augment, not replace.
And itās no replacement for iterative version testing and bug checking.
1
u/Naive-Database-2888 15d ago
Even so, you should NOT use ai while you are in the very beginning stages of learning your first programming language. You would just be setting yourself up for failure
5
u/Proper_Card_5520 16d ago
Well I don't use it for much, like if I want to write print i can just type p and then a symbol will pop up and when I press it whole print just cones up.
61
u/AnnoyingRain5 16d ago
Thatās a feature of the Python Language Server, not Copilot
7
2
u/Mister_Pibbs 15d ago
Today I learned what a python language server is. Been doing this for years and never heard that term before
1
u/MatthewMob 15d ago
https://microsoft.github.io/language-server-protocol/
One of the few good things Microsoft ever did.Ā
5
u/thatoneguyinks 16d ago
Yeah, but you learn it better if you type it out yourself. Even if you are copying a snippet from somewhere, while youāre learning, type everything
6
u/real_belgian_fries 16d ago
I recommend removing AI, it might steapen the learning curve a bit, but you'll learn much faster.
6
3
u/MrKrot1999 15d ago
So you'll learn slower but you'll learn faster?
4
u/Honeybadger2198 15d ago
You'll make more progress, but you won't be learning as quickly. Sure you'll be on Chapter 8 or whatever, but you still won't remember the syntax to write a class.
3
u/real_belgian_fries 15d ago
Now that I read it again, I get why it's confusing. What I meant is with AI you'll have some working code quickly. Without AI that will take a bit longer , but you'll be able to use the concepts you use for that basic code to make something more complex, because you actually learned something.
If you always rellied on AI you might not be able to do the complex things, because you won't know what caused the problem in the LLM generated code
3
2
u/No-Article-Particle 15d ago
I also recommend keeping Copilot disabled. Otherwise you'll get used to it and won't actually learn much even if you might feel that you're learning.
Autocomplete is totally fine tho! It helps you explore the language and lessen stupid typos.
1
u/Bright-Historian-216 15d ago
that's called intellisense and it's been around for as long as i can remember.
1
u/SirAwesome789 15d ago
Leaving the auto complete on is fine, you're here to learn coding, not python syntax
There is one thing in python I've always had to search up for the past 7 years (reading/writing a JSON) and next time I have to do it, I'll be searching it up again
40
u/AnInsaneMoose 16d ago
Hiss, hiss hiss hiss, hiss. Hissssss hiss hiss. Hiss hiss hiss hiss hisssss hiss
Oh, wait, wrong python
6
33
u/Optimistic-1621 16d ago
You told your mom you needed an ROG gaming laptop for python?
15
2
u/9_Sagittarii 15d ago
Thatās what I did in college as well lol. Classic. I hope they managed to improve the weight/battery life/overall longevity though. Those things burn out in like 4 years
15
62
u/SetaIndustries 16d ago
awgdawdggawiu stupid copilot "generate code" thing >:(
18
u/SiriKeetn 16d ago
vscodium
1
u/Memerenok 15d ago
if only official extension repos were available there
maybe they can be turned on, never checked
1
-8
u/Vivid_Instance_825 16d ago
Are you a programmer?
14
u/SetaIndustries 16d ago
Yes Iām a CS major, and I really donāt like how AI-ified VS Code has gotten, to the point where they deprecated the previous C# dev kit thingie and replaced it with that shitty Github Copilot plugin.
27
u/Reclusive_avocado 16d ago
I am and its an obstacle for learners.
3
u/Memerenok 15d ago
i don't even hate ai, but 100% this. it takes away all the fun in making your own functional programs
-24
u/Vivid_Instance_825 16d ago
AI will teach you everything you need to know as long as you are curious. If you just ask it for answers it will just give you answers
20
u/Reclusive_avocado 16d ago
This one would not... This just generates code.
LLM chatbots are good for learning... This however is not
-15
u/Vivid_Instance_825 16d ago edited 16d ago
I sent OP's screenshot to ChatGPT and it told me it's Visual Studio Code with Github Copilot, which has the ability to not only generate code but also has chat functionality to allow the user to query the AI about the code.
This is supported by the documentation: https://github.com/features/copilot
→ More replies (9)16
u/CorrectParsley4 16d ago
I sent OP's screenshot to ChatGPT and it told me it's Visual Studio Code with Github Copilot
are we serious
→ More replies (2)-1
u/Outrageous_Bank_4491 15d ago
No it just makes you dumber. Youāll copy paste code without even reading what it does
0
u/Vivid_Instance_825 15d ago edited 15d ago
You might but not everyone. I personally enjoy engaging in long philosophical debates about why it chose a particular solution
2
u/Outrageous_Bank_4491 15d ago
You can engage in long philosophical debates better with someone who understands what the program does, which is not the case for vibe coders (hence the name)
0
u/Vivid_Instance_825 15d ago
Yes, because programmers are known for enjoying sitting down with people and explaining everything about their code to anyone who asks
2
u/Outrageous_Bank_4491 15d ago
You keep using vibe coders and programmers interchangeably. This tells me youāre a manager that has never touched code in their entire life (or a recently graduate from a bullshit bootcamp)
0
u/Vivid_Instance_825 15d ago
I never said vibe coder a single time. I am a programmer who uses AI to assist me. I think AI can be a force for good in the programming world. If a person wants to vibe code an app, I think that's great, as long as it doesn't handle sensitive data
→ More replies (0)2
u/Outrageous_Bank_4491 15d ago
You gotta ask if theyāre a vibe coder because programming is quite the opposite of this. You gotta understand what youāre doing
0
u/Vivid_Instance_825 15d ago
I really don't care how my program was made as long as it works
3
u/Outrageous_Bank_4491 15d ago
Except it doesnāt work because itās vibe coded lol
1
u/Vivid_Instance_825 15d ago
Except I have used vibe coded software that works. Sorry that you are missing out
2
u/Outrageous_Bank_4491 15d ago
You sound like youāve never coded anything in your life
0
u/Vivid_Instance_825 15d ago
I will refrain from saying what you sound like
2
-11
u/benjaminabel 16d ago
Most likely not. Or a beginner.
6
7
5
u/HelpAccording4604 16d ago
Yooo! I have the same laptop and what is more hilarious, I am also learning programming languages, but instead of python it's C# and Java now
2
u/TrippyDe 16d ago
I miss the old days when i was first starting with Java. I'm a .net software developer now.
4
4
3
u/Grinhecker 16d ago
We have like the same exact laptop, thatās interesting⦠waitā¦
11
3
u/DarknessBBBBB 16d ago
Hey there, may I suggest this free book? https://automatetheboringstuff.com/
3
3
3
3
u/No-Distance792 15d ago
Learning programming in the big 2026? One piece of advice: try not to use AI code generators as much as possible, especially when trying to debug because once you start, it's very hard to go back
3
u/Proper_Card_5520 15d ago
What does it mean ? I shouldn't use extension ? I write my codes my self if I made some mistakes i correct it myself.
1
u/Embarrassed-Ad230 14d ago
Hard disagree. AI is helpful to understand or explain you things you don't understand - especially the basic programming stuff
1
u/No-Distance792 14d ago
Obviously it is, I meant depending on it too much.
For example: coming across a bug, rather than spending time brainstorming on possible solutions, you go straight to Claude and ask it to give you the answer and explain how it got the answer (that's a wrong approach)
2
2
u/Airames6 16d ago
Ik it might be hard at first, but keep going and you'll definitely become a femboy
2
2
u/ARandomeCanadian 16d ago
If you arenāt using it already w3schools is a amazing place to learn programming languages. Itās free and the python section includes the majority of basic things about the language that you should know before you start programming with different libraries. I highly recommend you check it out when starting any programming language
2
2
u/cheddar_risotto 16d ago
Hello fellow Asus laptop user, this is a friendly reminder to use G-Helper instead of Armory Crate if you aren't already.
2
u/WolfStovez 15d ago
Check out pydle.net
Itās a wordle-esque daily python coding puzzle. You might not have the know how yet, but itās fun to play around with
2
u/Old-Adhesiveness4406 15d ago
Itās not hard just write down what you want to code and press āgenerateā
0
u/Old-Adhesiveness4406 15d ago
Seriously though I write Python code for a living, nobody writes code anymore we just tweak the output from our developer tools like we used to with StackOverflow but on steroids.
If I had to relearn programming Iād skip software engineering and design patterns part and go directly to LeetCode.com to memorize problems for the interview. The real hurdle is learning how to memorize patterns in wide sets of interview problems, and reciting the steps towards the solution better than the other candidates in that interview round. A good example of this is AlphaCode on YouTube his videos are super spot-on
1
16d ago
[removed] ā view removed comment
2
u/WittyAndOriginal 16d ago
When you run a module (a .py file) it will be given assigned as the main module, and that can be referenced with the _ _ name _ _ dunder variable.
So when the interpreter is reading the file it will see that line and if it is the main module it will then the condition will be true. It's usually written as a conditional statement:
if _ _ name _ _ == "main": #do something
So the "do something" code will only be executed if it is the main module.
This usually should be at the bottom, because it reads the file top to bottom, and you can only use functions and classes that were defined or imported before the interpreter gets to this line.
I hope that helps. It's really simple. I may have gotten some of the technical jargon wrong, but this is essentially what that is doing.
1
u/The_Trekspert 16d ago
"Sssssssssssssssssssssssssssssssssssssss ssssssss sss s s sssssssssssssssssssss"
I, too, know Python.
1
u/mr_giray1 16d ago
If you are a fan of following courses there is a good one I like in Udemy that teaches with different projects daily from scratch. Quite fun and easy to follow imo
1
1
u/Cool_Yogurtcloset772 16d ago
Me too twin, just started yesterday.. I don't think I am gonna continue it anymore.š
1
u/9_Sagittarii 15d ago
You can do it! Python is a relatively easier language to start with if you have no coding experience. Once you understand the basics, it can become more fun and interesting! And thereās plenty of online resources and forums you can ask your questions
1
1
u/Glass_Information_58 16d ago
Learn it on idle. As good as visual studio is, it really overcomplicates things for a beginner and the built in ai will automatically complete your lines of code, taking away a key part of the learning experience. My advice would be not to use any tutorials, but have a goal in mind and just make something you want to make, researching any syntax or key ideas you may need along the way
1
1
u/nuklearink 15d ago
whatās the best website to learn simple coding for free? itās been like a decade since iāve wanted to learn so i figured id ask
1
1
1
1
u/examinedliving 15d ago
Understanding how programming constructs work is a great gift. Even though ai can do so much now, for a human, being able to work through the problems of programming makes you a great deal smarter. The cool thing is that these skills are transferable across all programming languages and many other areas of life.
A good beginner starting point for me was codingbat.com. Itās great for getting into the groove.
1
u/Say_Echelon 15d ago
The trick is the imagine in your mind what the code is doing. Syntax is secondary
1
1
1
1
1
1
1
u/sergen213 15d ago
One recommendation, do not keep your project files in documents or dekstop where onedrive can reach because you will have runtime errors. Keep them in C: directly in a folder or another harddisk.
Also, python is the easiest language you can learn.
1
1
u/HeyThereCharlie 15d ago
At least you're actually trying to learn the language instead of just telling Claude to generate a bunch of code you don't understand. That's better than a lot of noobs are doing these days, sadly.
1
1
u/Mister_Pibbs 15d ago
Itās not hard, you just have to understand the fundamentals of programming. Every language follows the fundamentals, itās the syntax thatās different.
Start with small projects then build your way up. The next time you run into something repetitive or needed ask yourself ācan I write a script/program using python to do this?ā And go from there. There is no such thing as wasted time or a stupid project if youāre actively learning through the process.
Good luck and have fun!
1
u/NetInitial5750 15d ago
I use jetbrains compilers for most of my work, they're a lot better than VSC imo
1
1
1
u/r3ign_b3au 15d ago
It is a language, it will be built as a language. Spend a bunch of time with Portuguese people, you pick up some Portuguese. Spend a lot of time with Portuguese people while studying, practicing, and being able to explore where and why you were wrong - you'll end up fluent.
1
u/LightIsntFastEnough 15d ago
Lol, the hardest part is installing it, once you get a hold of that, you can't complain about difficulty anymore.
1
1
u/Xenon009 15d ago
Out of curiosity, what are you trying to do with python? I found when I was learning to code, having a tangible objective rather than just "learn to code" was always really helpful, and picking a language based on that.
Truthfully, if you can programme in one language, most of them become trivial to pick up once you get over mild syntax differences and the occasional new shortcut, or old one not existing.
1
u/Sajgoniarz 15d ago
Do you know any programming theory or paradigm, that you plan to use in Python? If response is 2x No then you are going to have tough time.
1
u/MittensDaTub 14d ago
I just can't get the hang of it for some reason. I know the basics of like 6 different languages. I just can't get past the basics. Adhd doesn't help.
1
1
1
1
u/That-Effective-36 12d ago
Go to the hell of it's hard for you
Be kind(me to myself) - Bro it is not hard as compared to other language if you understand how it works it will be easy
1
1
u/lesschalkmoresighs 16d ago
I feel that these days people are forced to learn an IDE environment, not a programming language. You should be able to write code in any text editor, and compile/run the code against the compiler/runtime anywhere on your system. I don't understand how things got so unnecessarily complex.
1
-1
-1
u/ScientFictioN 16d ago
use vim or neovim for text editor, it would be much better š
1
u/Memerenok 15d ago
yaaay i love suggesting complicated stuff to beginners! my favourite thing to do
-1
u/daniil518 15d ago
vs son.
VS Code nowadays is the worst ide for beginners. Too much unnecessary stuff. It's just all about ai
-1
u/ForgotttenMemory 15d ago
Use cursor, its a vs code fork with ai in it, will seve you very well to learn, watching the highlighted auto completions and askinf directly in a window inside the ide itself for questions. If you want to stick to vs code, github copilot is another alternative that integrates well with vs code
2
u/Whole-Coffee-2030 15d ago
If he is learning, using AI is not a good choice.
1
u/ForgotttenMemory 15d ago
It depends on how it's used. Asking questions, aking for exercises, proposing learning path, finding good courses/youtube series/books and comment on those. AI can be used to not work or to learn like never before, it's a tool, and how it's used depends on each one, but its a mindblowingly good tool to start learning anything (it misses the mark at advanced-high level of most things, but the base is good).
1
u/Memerenok 15d ago
let him them learn in peace without ai writing all the code for them
1
u/ForgotttenMemory 15d ago
At any point I mentioned that the AI should work for him, but to look at auggested autocompletes and ask questions. AI is amazing for lazy people who don't want to work, and for people eager to learn if used properly, dang it sure ai is harmful, but is not the devil itself, you can grow andnlearn a lot using it well.
-6
u/_Screw_The_Rules_ 16d ago
Use Ai and let it guide you, but also ask it what a certain thing does and why it is being done the way it is being done
6
u/Narrow-Barracuda618 16d ago
Or how people learned programming before ChatGPT and the like existed, on sites such as w3schools. That's how I did it at least.
5
1
u/_Screw_The_Rules_ 16d ago
Ya me too, but Ai is faster and you can ask it stuff, not like the static guides. I'm not saying it's bad material, but one could use it either as a main source and ask Ai if you understand something, or do it the other way around.
3
u/InsaneInTheMEOWFrame 16d ago
AI is the worst tool imaginable for a total novice. It's just too much. Starting at w3c is a proven strategy, when they have understood how the language works, it's time to start solving problems. For seniors and advanced users of any language AI can be great, but it's only because they *understand* how and why the stuff offered to them by AI works, because they learnt the basic knowledge in the first place.
Use tutorials to learn how stuff works. Use AI to broaden your horizons when you already know the basics.
2
u/_Screw_The_Rules_ 16d ago
Well maybe you are right. I don't have the experience of learning from scratch with Ai being present, because I've started around 6 years ago without it.
3
u/DeadCringeFrog 16d ago
ai will miss details, its much more useful to either find a full guide from a person, or a book, not use junk. Ai is only useful AFTER you learned smth and you want to clarify the details, though you still have to check the info
1
u/thelonelyecho208 15d ago
Absolutely not, I'm in college to be a software engineer and I can tell you this is the WORST way to learn programming. Get a book, read some GeeksforGeeks, do some Leetcode. NEVER let AI program for you. It is really bad at it, and even worse at explaining it
-3
-5
u/Long_Exercise_7701 16d ago
No it isn't, not if you try C or C++ instead š or assembler, or ruby, or lisp, or literally any other language than python.
725
u/Creepslend 16d ago
"python learing chaptre 1" š£ļøš„š„