Using Python, How can I create a bot/script that let’s me re-post a subreddit’s post to Lemmy?
Just wanted to do a simple little project to practice my programming skills.
I just need to know the outline/backbone of things I should know to do this project.
Why does everybody wants to use python 😔
It’s easy to learn, has many packages, one of the most well known languages
easy to learn yeah ig. But for anything more than a simple 1 file organized script is not (easily) doable. I dont even want to start with the indentations. Yeah many packages :) But why? Because like half of vanilla stuff from other languages cant be done without it. Most known? Most started to learn language. Those “script” kiddies count in there too. I have to work with it everyday and i dont know how such bs could ever been created from a sane person.
Most of it is personal opinion and will spark like html is not a programming language some heated discussions here.
A project that is seperated in different files is as difficult as in C(++), Java or Rust. Regarding the itendation I agree, but that’s personal preference. What ‘vanilla’ stuff can’t you do without libs?
Typing, Interfaces, enums, abstract classes ( i didnt meant 3rd party libs ). I dont statet those difficult but stable programming languages. Java is simple and is organized. the default JSON encoder is not good implemented too. As it is f*cked when there is not a build in type like date, dateTime etc. as date and datetimes are still build in types.
What can you do in C without including stdio.h? Almost nothing. Far less than with python. Ignoring built in libraries is no fair criticism imo. Also all that you listed can be done without importing anything, just with oop (yes, in a turing complete language you can already anything but I meant it is not even that complicated to implement these things with basic python)
I think it is an mediocre language if you’re into compiter science or dev, but for scientific programming and simple tasks it is great. So for some it is the best beginner programming language.
deleted by creator
yeah i meant internal libs.
Json encoder does shit with datetime objects.
I can’t speak for everybody, but I found python easier to understand than the other language I tried (C++).
Also, python has Pandas which was really good because my initial track was related to data scientist.
Yeah c++ is a bit difficult.
What language would you suggest for scripting like this?
Typescript (JS)
i started learning it bc i was told it was easy, and it was, but i switched to JS because I had no practical uses for python, but i can say it did help me understand JS better
Python is what is being taught in schools these days.