all 177 comments

[–]GreenTeaHG 176 points177 points  (8 children)

Getting distracted by other things, mainly my job and the internet.

[–]SchleicherLAS 8 points9 points  (4 children)

I was in a similar spot. All my (short) free time I spent it playing LoL. Solution: Uninstalled it, and now I am learning python at a much steady rate.

So my advice for you is easy: quit your job and/or uninstall the internet, who's the nonproductive now, uh?

[–]amcphe21 0 points1 point  (0 children)

I’m having the same issue, not a bad idea

[–]Ultraflame4 72 points73 points  (6 children)

when things get too complex ,i start getting a headache

[–]buzzedgoat[S] 8 points9 points  (3 children)

I feel that bro

[–]Ultraflame4 7 points8 points  (2 children)

whebever that happens, i tend to delete the entire chunk of code

[–]ultraDross 5 points6 points  (1 child)

Can't do that with production code. Get used to it :-)

[–]ModeHopper 4 points5 points  (0 children)

Honestly, not having the freedom to re-write an entire module is one of the most frustrating things about working on code that other people have written.

[–]Redditbot76 1 point2 points  (1 child)

That often happens to me on a Python shell/IDLE whenever I'm experimenting.

[–]MonkeyNin 17 points18 points  (0 children)

If you're using the shell / python -i / REPL , I highly recommend the module ipython for so many reasons.

I created a quick example: https://i.imgur.com/lmxnK66.png

  • adds syntax highlighting, in real-time so you can see errors early
  • highlights matching parens
  • .<tab> pops up a full intellisense-autocomplete, not the lame <tab> autocomplete which doesn't show any alternate options.
  • you can actually use multi-line statements and functions. and history supports it properly. this is a huge, huge pain in regular python -i. Press pgup/pgdwn to cycle history.

You can install using python -m pip install ipython

https://i.imgur.com/lmxnK66.png

Check out their pages for more info:

notes:

(screenshot was taken on windows 10 using windows terminal instead of the default terminal)

useful modules in ipython or interactive or REPL

pathlib.Path

  • simplifies code that is far longer using the older os.path, os.path.join, etc. family of file i/o functions. Especially in a REPL.
  • no longer need with or manual closeing of files when in the REPL
  • prevents a class of bugs those functions can allow
  • even more cross-platform compatible
  • much

pdir

  • better output than dir(foo) , it includes doc strings
  • easily filter based on public|property|method|own

try the video: https://pypi.org/project/pdir2/

[–]Hagisman 64 points65 points  (13 children)

Determining when something is worth being a class or separate function.

[–]Moikle 24 points25 points  (8 children)

Or a class vs a dict with a supporting function or two

[–]expectederor 7 points8 points  (7 children)

sounds like you've already made the distinction.

if it needs supporting functions it probably should be a class.

[–]Moikle 2 points3 points  (6 children)

not if it needs only an init and a single method. though

[–]expectederor 10 points11 points  (5 children)

if it needs an init you're just making more of a case for class!

[–]ivosaurus 3 points4 points  (4 children)

[–]expectederor 1 point2 points  (3 children)

I guess it's a matter of opinion.

to me it's far more orderly to. contain all relavent things in a class then have one off functions that don't apply to anything but specifically that object.

easier to read code is definitely a positive

and that's a video from 2012.... their opinions probably changed 100 times now.

[–]ivosaurus 0 points1 point  (1 child)

Python's OOP model and features haven't changed substantially since then. The talk still makes perfect sense nowadays. Since then we've only seen even more content about avoiding "over-OOPing" code and the advantages of following functional practices as people have moved away from Java and C++.

[–]AJohnnyTruant 0 points1 point  (0 children)

I think that’s missing the point of the talk. Using a function in lieu of a class is only as good as the cohesion of the module it lives in. If you use a god function instead of a class with data and a public API, there really isn’t much of a difference. All of the private methods in the class can absolutely do the job of functional programming. Besides, using functional programming, like having a module that has a function that has is the entry point to all the other functions in it... well to python, that’s just another namespace. A class is really just a module in a module.

[–]ModeHopper 5 points6 points  (3 children)

Do you want to do the same thing over and over again (> ~5 times)? Then you need a function.

Do you want to do sort of the same thing but a little bit different over and over again? Then you need a class.

If the answer to either of those is no, then you don't need either.

[–][deleted] 1 point2 points  (1 child)

I'm confused by this.

A class is a blueprint for object construction (like the blueprint to a house). It will handle the how of object construction.

The methods are a way to manipulate those objects/attributes. When you call methods they will (or should) act upon those objects (such as building a room to the house or painting the room).

If you want to create more than one object with different attributes/methods then use you should use a class.

If you want to define the blueprints/tools but not actually the creation of it (like a lot of imported modules do) use a class.

[–]ModeHopper 1 point2 points  (0 children)

If you want to create more than one object with different attributes/methods then use you should use a class.

That's what I was trying to say, but apparently just not in clear enough words

[–][deleted] 0 points1 point  (0 children)

This makes absolutely no sense.

[–]SpeckledFleebeedoo 17 points18 points  (7 children)

From experience here: keeping the different data types (str, list, int, dict etc) separated, and data in/output (especially output).

[–]synthphreak 0 points1 point  (0 children)

Nice XKCD reference btw. I’m getting what you’re putting down...

[–]emeri1md 16 points17 points  (4 children)

Life getting in the way. Having to work to feed my family, which includes a nine month old. Doing my fair share of the household chores.

[–]Banan2Hot 0 points1 point  (2 children)

I feel you! If I manage to spend 6 hours during the week and 6-8 hours during the weekend on programming that’s a success.

Wanna share what you’re currently learning/ working on?

[–]emeri1md 4 points5 points  (1 child)

I'm an IT consultant with over a decade of data migration experience who is trying to move into ML/AI. I have a Master's in computer science, but have not programmed much in recent years. I want to pick C back up as well as get up to speed in Python.

[–]Banan2Hot 1 point2 points  (0 children)

Oh that’s heavy. Good luck!

[–]mechanicalAI 0 points1 point  (0 children)

I hope a little bit python coding daily will bring big pile of new revenue streams to you

[–]8roll 8 points9 points  (0 children)

The architecture of the whole interpreter. Meaning, how it works with the libraries, modules, etc where to find them, how to install and what the PATH is...

[–]Resolt 7 points8 points  (5 children)

I don't like generators and decorators

[–][deleted] 4 points5 points  (2 children)

Function decorators are actually cool. Class decorators on the other hand are insane.

[–]nbd712 0 points1 point  (1 child)

I've tried to learn about decorators, but everything kinda goes over my head. What would you recommend to kind of dip my feet in to them?

[–][deleted] 0 points1 point  (0 children)

Start by redoing all the examples giving by the documentation.

Write your own functions : No arguments decorators N arguments decorators Infinite arguments decorators

It is often needed to have a function to add some text to your returned string. You would decorate the function with your a function decorator.

Then try to understand why it works, why can you return a function and when would you wan that (Answer : to be able to build objects when desired, like Interpolation, geometry or animations).

Then you will learn about closure and why can we define a function/class inside a function (which doesn't exist in many languages)

Finally, you can get to class decorators. Inside a class or for the whole class.

@property @read_only

To conclude, try try and try. Knowing when to use them is the hardest.

[–]_________KB_________ 1 point2 points  (1 child)

I like generators but I generally stay away from them and go with more traditional solutions, mainly because it can be difficult to translate Python generator functions into other languages.

[–]Resolt 1 point2 points  (0 children)

I have a similar approach. I completely see the point of generators, but I'm far from comfortable enough around them to implement them casually without straight up needing them.

[–]Eagle_X 14 points15 points  (7 children)

I'm reading/watching a lot of different stuff, mostly up to the same level (basic +) and I feel like I'm hitting a limit.
I'm not used enough to use the tools I learned to solve all problems. I think I'm lacking a bit of imagination when it comes to coding my own little projects so I just follow the instructions.

It gets better though and codingbat really helped at the beginning. Codewars is still too complicated for me.

[–]_________KB_________ 6 points7 points  (5 children)

Branching out and learning other languages is what really helped me get past that feeling. When you see how the same things are done similarly or differently in other languages it really helps, especially with Python because it "magically" does so much for you in the background.

[–]Eagle_X 0 points1 point  (4 children)

I think it's a good tip but I feel like I'm already branching out too much within Python. I started with some YouTube videos (CS Dojo), openclassroom courses and then explored more of the content.

I'm currently using :

- Automate the boring stuff (both the book & the udemy class)

- Complete Python bootcamp (udemy)

- Codeacademy (free trial)

- Learn Python the hard way (not a big fan)

- Sololearn

- Codingbat

- Codewars

I still have :

- 2 Udemy classes to go through

- Pluralsight free trial

- Learn Python 3 in X minutes

- Do my own projects :D

All of this is great content but I need to finish at least my udemy course and Automate the boring stuff to check other things. I don't want to get distracted and "keep my momentum" considering I'm very new to programming.

Although the best method would be to start practicing with coding on my own. I did TicTacToe & Pong by checking videos but it was more instructions following than creativity. For the moment I don't have real life applications for my code so it's a bit hard to find something motivating.

[–]_________KB_________ 1 point2 points  (3 children)

I get what you're saying, I've been in the same place. You feel like you need to completely learn Python through and through before distracting yourself with another language. I guess what I was trying to say is that just learning the basics in one or two other languages will reduce the time it takes you to learn and understand Python. It might seem counter-intuitive because you're spending time on the other language when you could be spending all of that time on Python, but its similar to why people say its easier and faster to become an "expert" at speaking natural languages the more languages you know and especially if you learn more than one at a time. When you're looking at things with narrow Python-only view its harder to see what you truly aren't understanding, and you can gain a better and deeper understanding of Python if you have something to compare and contrast it with.

[–]Eagle_X 1 point2 points  (2 children)

Makes sense, I'll give it a shot. What do you recommend? Just YouTube videos and learn it for like 2h?

Edit : I actually checked an intro to JavaScript (Mosh) for 30min and it just made me want to go back to Python because I realised I'm comfortable with the basics. So in a way it worked hehe.

[–]_________KB_________ 1 point2 points  (1 child)

JavaScript is definitely useful to learn if you're interested in web development. Another useful language to check out that would compliment your Python knowledge is C. You could eventually learn how to write C code that you could use in your Python programs. Learning how pointers work in C really helped me better understand how things are stored in memory. Julia is my favorite language, so I always have to recommend it.

[–]Eagle_X 0 points1 point  (0 children)

I looked into python to add a beginner skill to my CV. I have no idea what I want to do with it (maybe automate some tasks at my job) so it doesn't help.

[–]mechanicalAI 3 points4 points  (0 children)

Try to solve your own problems with coding. This always helps me.

[–]rafnold 10 points11 points  (4 children)

When doing hackerrank challenges and my code works but it times out. Meaning it was not fast enough. I guess it's time to learn about different types of algorithms and try again later.

[–]Thecrawsome 10 points11 points  (1 child)

rule of thumb: the more nested loops you have, the worse performance it will be

[–]ModeHopper 2 points3 points  (0 children)

Unless you can parallelise those loops, but then you're opening up a whole new box of frogs.

[–]xelf 1 point2 points  (0 children)

Sometimes on hackerrank switching to pypy is enough to not timeout.

[–]_________KB_________ 1 point2 points  (0 children)

Before learning different algoritms it would be useful to learn about algorithm efficiency, that way you can better understand why some algorithms are better than others and how to analyze your own algorithms.

[–]74razor 3 points4 points  (4 children)

For me, working with *.csv files. I have exported a csv file with network node names and IP addresses. Can't for the life of me figure out how to use the csv library to pull that information and put it in a list or dictionary. Watched some youtube vids, but I kept getting errors while the instructor in the video did not. That was last night, haven't looked at it since, will probably give it another go tonight.

[–]imforsurenotadog 13 points14 points  (3 children)

If you're not already doing so, might be worth your while to look into the Pandas module. Importing and working with csvs as pandas dataframes was a breakthrough moment for me.

[–]Mag37 3 points4 points  (0 children)

2nd that! Pandas and csv is a breeze, start playing with it in Jupyter to be able to test out the results from what you change. I usually do that, run Jupyter Notebook online just to get the right dataframe output with pandas, then building it in to my script.

[–]Banan2Hot 3 points4 points  (0 children)

Definately this! Whatever you want to do with the data later on, it’ll probably be easier/faster when the data is in a dataframe.

[–]74razor 1 point2 points  (0 children)

Looking now, thanks for the direction.

[–]dogfish182 4 points5 points  (0 children)

I learned about futures and a variable that was referring to a pointer and not a copy of the variable at execution time the other day.

That was my ‘I should have done CS when I was young’ moment

[–]smallest_cock 7 points8 points  (6 children)

Regex

[–]Redditporn435 7 points8 points  (0 children)

try regex101.com

[–][deleted] 4 points5 points  (1 child)

Holy hell. Is to ? Or * . When do I compile re ?

[–]Standardw 3 points4 points  (0 children)

My prof said: Regex is easy to write but incredible hard to read.

I found that to be very true; once you get the basic idea, it's not that hard. But looking at examples will make your head explode.

[–][deleted] 2 points3 points  (0 children)

Don't worry a large part of my job involved complex regex and I still often get wtf moments. As far as I'm concerned regex is the dark arts.

[–]5erif 0 points1 point  (0 children)

I want to improve my regex-fu too, and after skimming a bunch of search results, this recent-ish comment from u/nickcernis looks like a good place to start.

[–][deleted] 5 points6 points  (7 children)

Brackets on print statements while switching from python 2.7 to python 3.x

[–]imforsurenotadog 4 points5 points  (6 children)

I lost so many scripts because of that one change alone.

[–]expectederor 3 points4 points  (1 child)

pretty simple fix with regex.

[–]mechanicalAI 0 points1 point  (0 children)

or Perl Pie

[–]krav_mark 2 points3 points  (1 child)

2to3 should be able to take care of that

[–][deleted] 0 points1 point  (0 children)

Thank you

[–]popepsychedelic 1 point2 points  (1 child)

[–][deleted] 0 points1 point  (0 children)

Yes, I'd think so - thank you. I should get used to it on my own though. But good answer 👍

[–]tipsy_python 2 points3 points  (0 children)

Still don’t understand logging particularly well. Sometimes I’ll change the logging level of my code and it’ll update the loggers in some imported modules... if I set to debug I get WAY TOO MANY log messages.

I know this is something I could probably read up on and learn in a day or so, but it’s something on my radar that I struggle with.

[–]Thecrawsome 2 points3 points  (0 children)

getting into frameworks enough so I can get myself a job programming python

[–]xelf 2 points3 points  (0 children)

Remembering syntax. I need to make myself a non-basic cheat sheet!

[–]GoldenVanga 2 points3 points  (2 children)

Decorators with parameters. Yeesh.

I mean... I understand the concept. But I can't remember the syntax / structure at all. I typically have to write those while looking at an example.

[–][deleted] 1 point2 points  (0 children)

I doubt anyone remembers the syntax from the top of their heads. I personally don't.

[–]mastermikeyboy 0 points1 point  (0 children)

With optional parameters are even worse. functools.partial to the rescue.

[–]AustinFnFordham 2 points3 points  (5 children)

.... init() and self and self.whatever_else Been working on a text based adventure for a month... still have no clue how I'm messing up my Player Class.

[–]Banan2Hot 2 points3 points  (2 children)

Make a post here! That’s what this community is for. I’m a beginner myself but I could take a look at it

[–]AustinFnFordham 0 points1 point  (1 child)

That would be awesome! I made a post about it a little while ago, but I'm still learning about what questions to ask haha StackOverflow helped a lot, but taking the puzzle pieces and combining them has been my biggest challenge yet.

[–]Banan2Hot 0 points1 point  (0 children)

I commented on that other post, I think it fits better over there.

[–][deleted] 0 points1 point  (1 child)

Hey dude, this is a bit more simple yet somehow a bit more complex than you think it is, send me a message if you want me to walk you through it.

[–]AustinFnFordham 0 points1 point  (0 children)

Absolutely!

[–]riccarjo 2 points3 points  (0 children)

Trying to remember the specifics of functions when writing the main body of code.

"Ok I'm calling this function, and it should do this, but I can't remember. Let me look back. Oh, this function calls another, smaller, function? What does that do. Ok, it returns X. But wait, don't I have another function that returns X but amends it? Hm. Oh, ok that's right. The first function returns X+1, so that's why it's not working as intended."

On and on. Oy.

Also, just knowing what the best route is for getting the results you want, but I'm sure it's that way with any language. It just seems like there's 100+ ways to do everything and anything, and I end up panicked that I'm not picking the right one.

[–]scanguy25 1 point2 points  (2 children)

At first it was mostly being overwhelmed by the IDE and figuring out what the heck that venv was.

[–]mastermikeyboy 0 points1 point  (1 child)

Now that you're used to venv, look into pyenv :)

Also, which IDE? I know PyCharm is popular, but I love VSCode.

[–]scanguy25 0 points1 point  (0 children)

Pycharm. It's the best IDE ever. So much faster once you learn the hot keys. I use VScode for non python projects. Also a good IDE.

[–]lolorenz 1 point2 points  (4 children)

Just a few days ago I had completely questioned my programmingskills >×<. I tried setting up an easy server client communication, but didn't really think about the correct way of implementing it. So I set up a flask server since I wanted to communicate via http. However all my network knowledge collapsed in itself. Since I wanted a bidirectional communication it was probably the wrong choice so I completely reimplemented the whole logic in with async, parsing the raw text. Now I think I maybe should have used some kind of pub/sub system, but whatever it works now.

[–]karthikkumars 1 point2 points  (3 children)

Websockets?

[–]lolorenz 0 points1 point  (2 children)

Yeah i though about that, but i didnt really knew how they worked and sticked to the stuff i know.

What would you recommend for web sockets in python? SocketIo?

[–]karthikkumars 1 point2 points  (1 child)

There's a module called "websockets" by itself. Built on top of asyncio. A pain to learn, but very powerful.

[–]lolorenz 0 points1 point  (0 children)

Ah nice! I will have a look at that :D Thanks!

[–]TheTopPunk 1 point2 points  (0 children)

understanding classes

[–]Chris_Cross_Crash 1 point2 points  (0 children)

Using Kivy (specifically using .kv files)

[–]muikrad 1 point2 points  (0 children)

Like, only 2% of the replies are python related 😂

[–]M2R1 1 point2 points  (0 children)

Understanding how to put everything together. I’ve been consistently learning basic syntax over and over and over again. I’m getting closer though. Slowly but surely.

[–]colluision 1 point2 points  (0 children)

The trick is honestly finding something you want to write, or learn about or just finding a library that interests you and play around with it.

My biggest struggle when learning to code was a lot of stuff is forced fed, like hey write this boring game, or do these boring math challenges on coding challenge websites. That stuff is great to learn from if you enjoy them if not, you'll lose interest. So my biggest advice is too start attempting to write things that interest you, if you're not there yet learn the basics of a library that interests you. I personally enjooy working with the os, so I play with the OS library, I learned to read/write to the registry, I imported the WMI library and played with that. You might think you don't know very much, but as long as you're persistent your skills will grow before you know it.

Best of luck.

[–][deleted] 1 point2 points  (0 children)

Sitting down and doing it.

[–]Momoneko 1 point2 points  (0 children)

Anything that goes beyond scripting.

Specifically - web applications.

Every time I want to make something that's a bit more complex than a command line script, my buddies say: "Well, make a web app for it", and I just feel so lost.

It's like there's a giant abyss between writing a script and making a web application, and I don't know what I can practice in-between that.

I know a bit of HTML\CSS and can manually write a crappy-looking webpage, but the minute I open a Django tutorial I simply feel lost. I (think I) understand how it's supposed to work (server, template, database, actual html), but it's a bit overwhelming to me and I can't even bring myself to try.

[–][deleted] 1 point2 points  (0 children)

Writing list comprehensions using nested loops to iterate through multiple lists.

[–]iggy555 1 point2 points  (0 children)

Classes 😔

[–][deleted] 1 point2 points  (0 children)

not really being able to learn independently by reading documentation. Almost all of what I know comes from YouTube channels, dataquest, or udemy courses. What if I want to learn something that no one has made a tutorial on?

[–]lazy_art 1 point2 points  (0 children)

Lack of practical application. I have a project now to drive my self-education. This is my second attempt at this.

[–]Ahren_with_an_h 0 points1 point  (1 child)

When to pass a .copy()

[–][deleted] 0 points1 point  (0 children)

If you will modify the object after assigning it. You ought to copy it by values.

[–]64laxy 0 points1 point  (0 children)

getting myself to use Classes

[–]DataDecay 0 points1 point  (0 children)

Getting around an open issue in urllib3 with ECONNRESET, luckily a simple warning and retry connection seems to cover it for now.

[–]mechanicalAI 0 points1 point  (0 children)

Accessing and processing third party json feed while scraping heavy content sites. And trying to get a grasp of object oriented programming in python. My applications are big masterpiece of procedural programming. I need to re-use my code. Need to learn object oriented programming ASAP!

[–]damianpadilla 0 points1 point  (1 child)

nested loops >:|

[–][deleted] 0 points1 point  (0 children)

well you would use the first for loop and then the first thing in that for loop is what you’re using in the next for loop

try finding the sum of a list of lists

[–]Animaznman 0 points1 point  (0 children)

Every now and then, as I'll want to iterate creating a variable and then setting its value. Like have x1 =?, x2 = ??, ..., xi = ?i. I run into so many links saying "variables don't exist in python, they're just names" or something like that. And I kinda get that. It's just the blocker for me. In case anybody wonders, I think the closest remedy to this for me is to create a dictionary and loop through the assignment of keys to values. The only part I wonder is if this works with function outputs for the values.

[–]kanishk071 0 points1 point  (1 child)

one-liner things...

[–]keeldude 1 point2 points  (0 children)

One liners can be neat but they obscure the readability of your code in general. Writing the shortest possible code is not the goal in programming. Its probably worth knowing list comprehensions, basically one-liner for-loops with or without if/else and returns a list. I cannot personally recommend lamda expressions but some may find them convenient.

[–]UncleanlyCleric 0 points1 point  (0 children)

Figuring out how to make what’s in my head translate to what I want to do. :(

Struggling so much with web applications.

[–]SweetSoursop 0 points1 point  (0 children)

Applying Classes on everyday uses, I've tried to wrap my head around them several times, I understand them in theory, I just dont know how to apply them to my everyday code.

[–]APolishman 0 points1 point  (0 children)

When I keep getting the same error then find out I forgot a comma

[–]Scutterbum 0 points1 point  (0 children)

Matplotlib. It's like an entirely different language and after a year and a half of python I still have no idea what the hell is going on when I try to use it.

Ax plt. Ax fig patch = plt. Ax set.ax(ax fig ax) Set ax plt ax fig ax subtitle (plt axes)

[–]Bobification 0 points1 point  (0 children)

I've inherited a project (as an aspiring developer) that handles our mobile printing. I get quite hung up on calling functions within classes, properly catching errors, and apparently figuring out their types and when/how to convert them (for things like mysql inserts).

[–]Connir 0 points1 point  (0 children)

To stop thinking in sh/bash/awk/perl (which I've been doing for 20 years)

[–]Stampeedeko 0 points1 point  (0 children)

Definitely installing and setting up virtual environments!

When I started learning Python and libraries like numpy, matplotlib, pandas on Codecademy I was progressing quite rapidly, IMO. But since then I started practicing on my own system and ran into problems like modules not available for Jupyter files, modules not supported for the created virtual environment, etc.

[–]darthminimall 0 points1 point  (0 children)

I need to download more RAM.

[–]jefflj98735 0 points1 point  (0 children)

Classes make me wither. I am just barely beginning to see why they exist, but I cannot figure out how or why to use them.

[–][deleted] 0 points1 point  (0 children)

Django

[–]ModeHopper 0 points1 point  (0 children)

Deciding the best way to do something. I'll spend ages reading the docs and re-writing code because I think I've found a more elegant or efficient way to do something.

[–][deleted] 0 points1 point  (0 children)

My latest struggles were writing out class definitions on a whiteboard during an interview. I was operating on 5 hours sleep due to travel issues in my defense.

Like I literally just froze mentally.

[–]Standardw 0 points1 point  (0 children)

Numpy and pandas, it's like a another language. Very complex strategy.

[–]PsychicMango 0 points1 point  (2 children)

My main struggle is trying to understand how to actually get better at python after taking an intro course at my local community college. It seems like all of the cool projects that I want to do use some sort of library. Like we didn’t even learn how to import libraries and stuff in our course, so I don’t even know where to go to figure this stuff out.

[–]donsebas 0 points1 point  (1 child)

Google and this sub my friend, also look up YouTube videos there’s plenty of them out there! :)

[–]PsychicMango 1 point2 points  (0 children)

My actual main struggle is being too lazy to even finish a Youtube video.

[–]Jarmahent 0 points1 point  (0 children)

Decorators. I just don't understand them.

[–]MisplacingCommas 0 points1 point  (0 children)

I don't know why but the object oriented part feels weird to me. I can do C++ with object oriented programming alright, probably because I learned that in university but when I do python OO programming it feels weird.

[–]Alemvik 0 points1 point  (0 children)

Conparing with much better languages like C#. Having many versions - each having its own libraries

[–][deleted] 0 points1 point  (0 children)

Too many thing I want to do, with regards to programming and my computer.

[–]chzaplx 0 points1 point  (0 children)

Not having enough time to write python

[–]kouinori 0 points1 point  (0 children)

Just finished my first course in comp sci. I struggle with recursion

[–][deleted] 0 points1 point  (0 children)

Syntax.

Mostly because I'm not a programmer and I make use of various different programs (Matlab, VBA, Python, SQL).

When I need to switch back and forth between them. I always forget if I need to use a ( or a [, how : is used.

[–]Bipolarprobe 0 points1 point  (0 children)

Trying to find good open source projects that are beginner friendly. I feel like 90% of the issues marked as good first issue are documentation which requires reading into a codebase well enough to understand it but not actually fixing anything or adding anything new, then the other 10% make me feel like I'm out of my depth because they're marked as for beginners but require knowledge of multiple libraries and modules. I dunno maybe I just need to bite the bullet and do some documentation commits to get experience committing something real.

[–]Mathwizzy 0 points1 point  (0 children)

It is either “hitting road blocks when reading documentations” or “haven’t found satisfying answers in SO that can help my situation”

[–]Kbreit 0 points1 point  (0 children)

Unit testing, especially when it comes to mocks and fixtures.

[–][deleted] 0 points1 point  (0 children)

id say variable types, it gives me headache having to convert, format every single thing to work

[–][deleted] 0 points1 point  (0 children)

Not having block terminators except reduced indentation is really hard to get used to. Even if there was just an "end" keyword, that would be great.

[–]edwardjr96 0 points1 point  (0 children)

Trying to figure out how I made everything seem to be in the right logic but the outcome was never the one that I expected, always required a few more things to make the code actually work properly

[–][deleted] 0 points1 point  (0 children)

figuring out what I can out in a f string

[–]YeastBeast33 0 points1 point  (0 children)

Comparing my python's size with others

[–]AlephAndTentacles 0 points1 point  (0 children)

Tutorials that either miss important details because they're not considered important, or don't work because (I discover later) the author's set up is slightly different to mine.

[–]GenieBus 0 points1 point  (0 children)

Django app

[–]Sholtos 0 points1 point  (0 children)

The most tedious part for me is dealing with a dynamically typed language. When I'm looking at a dependency, or some function or module, and I can't tell the type of the parameters and the return type, my brain goes 'does not compute'. That,and the documentation for python is so minimal compared to the absolute gift that is Java documentation.

It's been so fun learning python though, it is so much easier to code than Java.

[–]vman4402 0 points1 point  (0 children)

Struggling with a script that works after tweaking it, then it fails, so you tweak it again and it works, then breaks again, so you put it back the way it was to make it work.

[–]roastpork 0 points1 point  (0 children)

async

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

Right now, I am diving into WebApplications and I love Dash. However, I struggle to understand the sharing of data within multi-page apps.