O
17

Warning: I picked Python over JavaScript for my first real project

My friend said 'just use JavaScript, it's everywhere,' but I spent 3 days stuck on async functions. Anyone have a better first project idea for Python?
3 comments

Log in to join the discussion

Log In
3 Comments
benlewis
benlewis1mo ago
Three days on async sounds like my own personal hell, I've been there. JavaScript's event loop is a weird beast to wrestle with when you're starting out. For a first Python project, maybe try building a simple script that renames a bunch of files in a folder or fetches the weather from a public API. Those tasks are straightforward and teach you how to work with your computer and the internet without the callback chaos.
0
rosed32
rosed321mo ago
Totally agree, start with file renaming.
10
logan632
logan6327d ago
Three days on async is brutal, I nearly threw my laptop out the window when I first tackled it. Did you find that wrapping your head around await/async made Python's asyncio easier or did it just swap one kind of confusion for another? I'm curious if the mental model actually clicks better for file I/O stuff compared to JS callbacks.
5