this post was submitted on 25 Mar 2024
33 points (97.1% liked)

Learn Programming

1547 readers
9 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

Hi everyone,

TL;DR Completely new to coding and programming, but I want to learn enough to be able to run a home server, my own website and tinker a bit with Arduino. Is there any programming language or path that you could recommend?

I don't know if those things are related or not. I've been looking at books a bout Arduino, but it's just following instructions to do xyz, but not explanation of the basics.

About the server and website, I've wanted to try it out since I stumbled upon the Low tech magazine. Many of the projects there and the philosophy behind it speak to me, so I would like to be more knowledgeable about it and be able to do some stuff myself.

EDIT. You guys are awesome! Thank you so much for the replies. It’s so cool to see Lemmy populated with cool people willing to chat and put knowledge in common :) I might be updating this post when I get to do something about… well all the resources you gave me!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 3 months ago (1 children)

Excellent - that site is nice and basic. A good first project.

Seek out some resources on HTML, CSS, basic Linux command line and nginx and start playing around. If you’re on a Mac you can do all this locally then rent a small VPS from digital ocean or the like for about $5/mo to host everything on the web when you’re ready. I can’t speak to options on windows.

On your last comment it looks scary but if we break it down it’s not bad at all.

while true ; do Programs are (super) basically made up of if “this” then do “this stuff”, and while “this thing” do “some stuff”. While true means run this next bit of code (until done) forever.

nc -l -p 80 -c

nc is a program (netcat) that reads/writes data to a network. - in Linux denote options for the program. These are saying listen, listen on port 80, and run a command.

‘echo -e “HTTP/1.1 200 OK\n\n $(date)”’;

The command netcat will run. This is HTTP protocol magicness and $(date) is a Linux command that prints the date.

done Ends the loop

Ez pz.

If you have a Mac you can probably run this in terminal and check out what it does (do take care in running commands from the internet tho).

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

Thanks for the explanation! Once you give everything a meaning it's just another language I guess lol

I'm not on a Mac, but I do have a PC running Ubuntu so maybe that works too (?)

I'll be looking for those resources you listed this week since we have some days off and see what I can come up with. With that and all the other suggestions I think I'm ready to do some stuff, build some break some and see how it goes haha

Thanks again!

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

Oh yes! Even better. People having Linux machines just hanging around is rare so I didn’t even consider it.

I did a little looking and found instructions for hosting a matrix server here:

https://element-hq.github.io/synapse/latest/setup/installation.html

Once you get a bit comfortable on the command line give this a try!

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

When I was a kid I was really into computers, so I met Linux back then. Nowadays, I just use it when I'm fed up with Windows or if I need to get work done since it's distraction free and workspaces and hot corners make my life so much easier when working with multiple documents :)

Saved the website for later on!