this post was submitted on 01 Jul 2024
16 points (78.6% liked)

Programming

17651 readers
406 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

I'm at work in a slow moment with only my phone and pydroid, I wanted to see if there was anything I could learn and mess around with while I'm here

top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 20 points 5 months ago (1 children)

Entirely depends on the project you want to build

[–] yokonzo 3 points 5 months ago* (last edited 5 months ago) (4 children)

That's assuming I want to build a project, right now I'm messing around with numpy building arrays in different dimensions and multiplying them.

I know, but this is the weird way I learn things

[–] [email protected] 8 points 5 months ago

Sounds like your project is building arrays in different dimensions and multiplying them.

Maybe give polars and pandas a try.

Definitely check out SciPy

[–] [email protected] 7 points 5 months ago (1 children)

In that case, maybe get a good textbook and follow the examples.

[–] yokonzo -1 points 5 months ago (1 children)

My man I think you missed the part about "I'm at work”

[–] [email protected] 7 points 5 months ago

You're in luck! The book I've generally heard recommended to beginners for Python is available for free online!

[–] [email protected] 5 points 5 months ago (1 children)

Perhaps BeautifulSoup for scraping data to fill your arrays...

[–] [email protected] 1 points 5 months ago

People keep telling me that scrapy is the best for scraping but I haven't had time to try it yet.

[–] [email protected] 3 points 5 months ago

I learned a lot about pandas (a library built mostly on top of numpy) by going to stackoverflow and trying to answer questions with the tag. Hopefully the questions have a minimal reproducible example and are isolated to one specific question

[–] Olap 10 points 5 months ago (1 children)

Pandas. Python's only killer library imo

[–] [email protected] 3 points 5 months ago

I personally also put Pydantic on the S tier.

Also, I use (geo)pandas on a regular basis and when it comes to geometric operations Shapely is an amazing library.

[–] flubba86 8 points 5 months ago (1 children)

That's like saying "what's the best ingredients to learn cooking with?", firstly it all depends on what your want to eat, secondly it doesn't really matter what the ingredients are to learn cooking skills.

[–] yokonzo 3 points 5 months ago (1 children)

Well I mean obviously the answer is eggs

[–] Knock_Knock_Lemmy_In 1 points 5 months ago

The ingredients I chose first are pandas.

[–] [email protected] 8 points 5 months ago* (last edited 5 months ago) (1 children)

Flask is a fun framework for making web apis.

Pika is a client for RabbitMQ, if you want to try message queue stuff.

Numpy and sklearn for numerical and machine learning stuff.

Matplotlib for making nice plots of your numerical stuff.

Pytorch for deep learning.

Pillow for image processing.

OpenCV for computer vision.

Pygame for 2D games (maybe a bit old, but I had lots it fun with it when I started learning programming years ago)

[–] yokonzo 5 points 5 months ago* (last edited 5 months ago)

I love math so I was messing around with matplotlib, it's very cool, I was able to make the Mandelbrot set! Mandelbrot set

[–] [email protected] 5 points 5 months ago

Standard library of course. And collections module too, among the others that come by default. What you need is assignments to solve. Like project euler or hacker rank.

[–] [email protected] 4 points 5 months ago (1 children)

If you want to do web requests/ use API's, use 'requests'

graphs/reporting, I've used 'bokeh' before, it was nice.

I've never used PyDroid, so I'm not sure how you'd install things, but these are both available via pypi, python's package repository.

[–] yokonzo 1 points 5 months ago

Pips pretty easy in pydroid, thanks! I'll have a look at requests, since I've been wanting to mess with apis

[–] Phegan 2 points 5 months ago (1 children)

Make a plan of what you want to build. Start with the standard library. Google things you don't know how to do, those libraries will show themselves to you.

[–] yokonzo 0 points 5 months ago* (last edited 5 months ago)

Thanks but Im just going to go ahead and do my own thing. Everyone's very insistent about doing things a certain way in this thread and honestly its unsolicited advice. Not everything is an XY problem :). I'm just going to install my different, unconnected libraries and tinker in peace

[–] [email protected] 2 points 5 months ago

I heard there are quantum computing libraries in Python if that interests you!

If I were you I'd browse PyPi for any packages that look cool.