this post was submitted on 07 Sep 2024
109 points (99.1% liked)

Programming

17493 readers
52 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 1 year ago
MODERATORS
 

A little background: Through my teens in the 90's I did a lot of the things you may expect. I was a script kiddie on mIRC, made a tank game in Unreal Engine, and did some Quake modding. From 2002-2004 I landed a job doing Java web dev, SQL, and overall database administration because my father's friend needed someone that could do that. I was ok at the job, but not great. Being young, my hobby that turned into a 9-5 made me want to stab my eyes out and I quit.

With that said, I can understand a lot of what's going on, but it doesn't "click" anymore. I spent 20 years as a career machinist, but I physically can't do that anymore. Here's the rub - my twin brother is a brittle diabetic and can't work (lots of other stuff going on as well), and our mother is getting old (father passed this year). The only reasonable way forward that I can see in order to be able to support my brother is trying to get back into development.

When I stopped, subversion was what we used. I'm trying to understand Git, but it's a giant conceptual leap. I guess, what I'd like to hear from you all is a way to jump back in as quickly as possible in such a way that it may be a career.

Thanks

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 30 points 2 months ago (1 children)

For getting a grip in current web development, I would recommend fullstackopen.com - it's a free online course by the University of Helsinki and starts from basically zero, and gives you a lot of insights into web dev.

It may take some time, but it's really worth it and an overall great course.

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

This is great. I'm going to try it out.

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

FSO is good, but it does assume some JS knowledge to start. I would argue that App Academy's is more comprehensive (over 200hrs of material).

https://www.appacademy.io/course/app-academy-open

[–] ericjmorey 6 points 2 months ago

Or The Odin Project if you don't want to cover Python in the curriculum and just stick to JavaScript.

https://www.theodinproject.com/

(The Odin Project also has an option for Ruby along with JavaScript)

[–] RonSijm 21 points 2 months ago* (last edited 2 months ago)

When I stopped, subversion was what we used. I’m trying to understand Git, but it’s a giant conceptual leap.

It's probably not 'that much of a leap' as you imagine. If you're looking at Git tutorials, they're usually covering all kinda complex scenarios of how to 'properly use Git'. But a lot of people barely care about 'properly using Git' and they just kinda use it as a substitute for SVN... You create branches, you merge them back and forth, and that's about it.

Like if you want to contribute to an open source project, all you have to do is create a fork (your own branch in SVN terms) - commit some stuff to it, and create a pull request (request to have your changes merged) back to the original branch. git pull is just svn update - getting someone elses commits

Not saying there aren't more complex features in git, or that learning git properly isn't worth it, just saying, I don't think you have to see it as a 'giant conceptual leap' that's preventing you from jumping back into programming. Easiest approach just to get started would be probably to just download a GUI like Sourcetree or Fork, and you just kinda pretend you're still using SVN - approach wise

[–] [email protected] 17 points 2 months ago (4 children)

Someone will probably shoot me down for this but I actually find ChatGPT good for explaining concepts to me. Especially when I just want a high level understanding of a concept as I try to understand another one without getting too bogged down. A lot of Google results go into way too much detail.

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

It’s also great for solving issues when you’re stuck. Not because of its superior reasoning skills but it can solve beginner issues and write you a list of things to try when it doesn’t know the answer right away. It’s like a rubber duck that will talk back.

[–] iLove 3 points 2 months ago

A few months back I would have said the same. Lately, however, ChatGPT very often returned very incorrect information on very basic topics. Each wrong answer erodes my trust a little bit more. Lately to a point where I consider googling first instead of asking ChatGPT

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago)

It's great for explaining entry level information on a wide variety of topics. More advanced / obscure topics are more prone to hallucinations. I used it to learn React and it was a great introduction.

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

I’m doing this now as I learn Unity and come back to C# after a couple decades away. It’s great for helping with syntax and reminding you of libraries, also with debugging steps as you mention. I haven’t had it full on hallucinate, but it has given me suggestions that fail to do the thing I specifically asked it for. I also went down a couple rabbit holes following its suggestions to later realize there was a much simpler answer that it didn’t tell me about. All in all, I’d still highly recommend it for my situation and OPs. If you’re able to follow the logic and point out the flaws, it’s a hell of a lot faster than googling or following tutorials.

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

Just remember: imposter syndrome is real. Everything you learn exposes you to ten things you don't yet know. Successful devs are comfortable with this reality - the job is one of constant learning. Best of luck!

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

You said it. I spent the first six months at a FAANG convinced that everyone could look at me and instantly tell that I didn't belong there. Glad I was able to flip my thinking on that one.

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

First of all, you can totally do it! The field is massive, but also full of very bad programmers, and seeing how you were able to write a coherent text of three paragraphs, that already puts you ahead of the curve. Determination and perseverance is key.

I would suggest to play to your strengths. Java is still Java. Most of the progress since the 1990s was in the libraries and tooling, which only recently have become passable. The language itself also evolved somewhat, but there's nothing that you won't pick up in a couple of days of working with it.

Start with [1], work through all the boxes that are unfamiliar to you, practice a little on a pet project, or an open source project, and you'll land a job in no time.

[1] https://roadmap.sh/java

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

Also, if you remember enjoying hacking, maybe pick that up again? There's a massive shortage of security engineers at all times.

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

Best of luck to you!

I’m trying to understand Git, but it’s a giant conceptual leap.

Git is not that different from svn (I mean, the biggest hurdle is going from a shared folder to any version control system)... I'd say the main difference is that branches live in a different namespace than files (ie. you don't have trunk/src/whatever but just src/whatever in the main branch). On top of that there's that commit and push are two different things (and the same with fetch and checkout) and that merges are way easier than in svn (where you had to merge stuff manually).

If you create a repo locally and clone it twice in two different directories, you can easily simulate what would happen when you and a coworker collaborate via a centralized repo (say, github) - do a few experiments and you'll see it's not as complicated as it seems (I'd recommend using the CLI instead of some GUI client: it's way easier to figure things out without the overhead of learning to differentiate between git concepts and how the GUI tries to help).

load more comments (3 replies)
[–] [email protected] 7 points 2 months ago

Just use a good GUI tool for git and Google how to do stuff with command line when needed, you'll eventually pick it up. Chatgpt and it's ilk can also be helpful with figuring out things when Google fails.

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

My personal recommendation:

  • Pick up Python, it's easy to learn and highly productive. If you also learn fastAPI, you can benefit from highly validated, declarative models to build REST APIs in the backend, well fast. It will yield quick results, you won't become demotivated and you can pick up a paid project soon.

  • Pick up Rust. It's "in" right now and I get requests from marketing people that know nothing about programming, asking if their project could be implemented in Rust

  • Go with memorizing the shell commands first, try to understand git later. Get productive, try to get where you were with e. g. svn or cvs. If you are comfortable, look at something in depth if you have a problem that you can't solve with the knowledge you have.

  • Fuck Java, seriously.

  • You have commercial interests, so it is probably wise to look into becoming a fullstack dev to maximize the kind of projects you can do. Look into React, vue.js, svelte. React is probably still the most widely used framework, you'll quickly do a project with vue.js and svelte is a super interesting look into things to come.

[–] [email protected] 20 points 2 months ago (4 children)

Fuck Java, seriously

Toxic...

You can find a lot of good work doing Java.

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

I was going to say this. I hate Java as much as the next dev, but everything runs on Java. If it’s web -> Spring, DevOps -> Jenkins, Event Streams -> Kafka, Big Data -> Spark, Logging & SRE -> Flink. All of these are built on JVM based languages. I am fortunate enough to program Rust daily at my job, but my options for getting another Rust job are severely limited. Everybody always wants Java or Go. They always ask for C++ , but I’m convinced that day 1 they would have you switch to Java.

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

Java have had very bad press lately (since the log4j fiasco I guess? maybe since before).

IDK why people blame Java for any issues with any library/project written in it... it's as dumb as blaming C/C++ for all the windows fuckups, and nobody blames php for the various cpanel vulnerabilities or python for all the shit people write in it.

load more comments (2 replies)
[–] [email protected] 6 points 2 months ago* (last edited 2 months ago)

I'm trying to understand Git, but it's a giant conceptual leap.

To start with, start with just using git locally. Don't worry about GitHub or similar. Then git and SVN will work very similarly. The main difference is that you need to git add files with changes inside before you commit them.

Once you're comfortable with using it by yourself, then I suggest running something like forgejo locally to be your own code server. Then you can play and learn how the two parts work together.

Generally, you need to give yourself a little time. You need to do the work. Be efficient...sure, but don't try to force it to be quicker than the time you need to learn.

[–] [email protected] 6 points 2 months ago* (last edited 2 months ago)

One of the best tutorials on really "grokking" git concepts, and it's online and interactive: https://learngitbranching.js.org

For programming, start with buildings things for yourself. Be practical, start small, and iterate, regardless if you consider the previous iteration was a success or failure. I've heard good things about https://automatetheboringstuff.com/ (in Python) in this regard.

[–] [email protected] 6 points 2 months ago* (last edited 2 months ago) (1 children)

Best advice I have:

https://www.youtube.com/watch?v=0FPO4fm4nxc

Keep at it. Do actual projects. Actually use the tools for a while. It will eventually make sense.

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

I want you to understand how surreal this particular link is for me. Video edits are my hobby, and I've just recently started yet another play-through of Morrowind. I get the whole "do actual projects" thing and that's valid, but I've no clue where to start here. Should I finally learn C#? Is Rust the only way forward? Should I just try to catch back up on Java? I guess what I'm asking here is should I just try to find a FLOSS/OSS project and try to contribute or think of something new?

[–] [email protected] 5 points 2 months ago* (last edited 2 months ago)

You can either decide by what is currently in demand in the industry and then pick a project that you can exercise that language with or you can think of a project you'd like to do and then go by what the best language is for a given project.

In the end, languages are just like different wrenches. First you have to learn how to use a wrench, size or features don't matter much at this point (unless you already know that you want to become an expert with one particular wrench).

I think starting a new project is way easier than contributing to an existing one.

[–] [email protected] 5 points 2 months ago* (last edited 2 months ago) (3 children)

All the cool kids right now are mostly on JavaScript/type script. It’s probably a good place to get started since you’ll need it on the front end.

I’m guessing most work on the U.S. side is react. You can probably pick up a bit of node/react native as you go for the backend and for native dev.

Java is the new COBOL. Big corps luuuuuuuuurve it. It’s not what I would expect a single dev to use. C# is similar but smaller, if you forget unity game dev. And you should forget unity game dev.

Rust is basically a less bad C. If you do things you used to do in C, learn rust. If not, don’t.

Python is also still a thing. If you like it you can probably use it for most things, but if not there are other options.

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

If you do decide to go the web route, I recommend Build Responsive Real-World Websites with HTML and CSS and The Complete JavaScript Course 2024: From Zero to Expert! as a good starting point. Being Udemy, you don't have to pay full price. If they don't have a sale on now, they will fairly soon. The courses are worth full price though!

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

My heart belongs to Vue.js

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

I like Vue better than react tbh.

My latest project is alpine.js. It’s not bad, it stays out of the way.

That said, I don’t do front end often enough to keep up.

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

Mixing js and template like react does with jsx has always rubbed me wrong. I like how Vue separates everything.

{!found && <p>Not Found</p>} 😕

<p v-if=“!found”>Not Found</p> 🙂

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

Yes!

But I’ve learned that there are A LOT of people that are incredibly pritective of react, so I generally don’t wade out into that particular debate.

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

I think for me it is because my background is in the web first, as opposed to having gone to school for general computer science and then entered web apps second. The idea of returning blocks of HTML with JSX makes more sense to them.

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

Get a book on Spring Boot and jump back inro Java web development.

With git, you don't need to master it, just find some subversion to git howto and start using it. It's half a page of text. Once you learn the basics you can learn more as you go. There are many otherwise competent programmers who don't know git too well, I know because I support them from time to time.

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

I guess, what I’d like to hear from you all is a way to jump back in as quickly as possible in such a way that it may be a career.

You might check job listings in your region/country to figure out what languages and technology stacks are in high demand, as where you are seems to matter a lot.

[–] lowleveldata 4 points 2 months ago (2 children)

Did you use Spring back then? It would be a useful thing to learn. Might as well see if you like to do frontend things such as React / Vue

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

Yeah Spring wasn’t 1.0 until 2004. We had XML files upon XML files just to describe one single Java “Bean”. I did java programming from 2001-2002 and the again from 2011-today. Things dramatically changed (framework-wise) in that short decade I was away from it.

I would agree, Spring Boot and Spring are very useful to learn. React, despite having its origins in Facebook and still with Meta’s hands on it, is a good web framework especially if you use it with Typescript.

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

No, we didn't use that. I did both front end and back end in a sense. I developed the web UI for the customers and managed the PHP and SQL back end since it was purely a web interface. Yeah, yeah, I know that's not true back end but that's where we were at that point.

[–] anzo 4 points 2 months ago

As for git, many basic concepts (e.g. staging area) clicked for me after reading some articles that Atlassian (people behind BitBucket) wrote. Other than that, I'd recommend adamj.eu 's book "Git DX" which is on gumroad. Haven't read it, tho. But I read his Django DX and like 90% of it was stuff I had to learn on my own, and thought: oh, how come I didn't find this book earlier...

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

So the big important part of git is that it's a collection of commits. A branch is just a labeled commit and each commit is a list of what changed from the parent. Rebasing (the most confusing one for people) is when you fiddle with a commit from underneath yourself. Or in even more simple terms editing a parent commit. Rebasing is extremely powerful but most useful for when you notice a bug you wrote a couple commits ago. Fixing such issues via rebase (or !fixup commits you auto squash at the end) keeps your history clean. It's as though you never wrote the bug. The other thing you do a lot with rebasing is moving your branch up in the history cause somebody updated the remote.

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

I mean, this could be useful, but I need a much higher level of understanding. When I was a dev, all we used was basically version control. There was no concept of commit, pulls, etc. I'm having to understand this from a standpoint of no understanding whatsoever. For most devs, they've done this for at least a decade with Git. Git is so much more complicated than a simple version control. I understand why it's necessary for large teams, but I still see it lke this:

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

You likely have a mental model of Subversion, so what I would suggest is to try to forget as much of it as possible first, as Git is very different.

Take a tutorial that is aimed at Git beginners, e.g. [1]. This will help you start building a new mental model as well as get first practical experience.

After that, read the official docs starting wtih the object model[2]. The reason why many people struggle to get into git, especially after using other VCS, is that it was built from the ground up, without much regard of the established conventions and terminology. Linus Torvalds once mentioned that he used his experience designing file systems when developing git.

So the object model of git is very simple, but also not intuitive. However, once you understand it, everything will start making sense, including the xkcd you've linked.

[1] https://gitimmersion.com/ [2] https://git-scm.com/book/en/v2/Git-Internals-Git-Objects

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

You've linked into it, but I was just going to point at the Git book: https://git-scm.com/book/en/v2

It's an afternoon's reading; it does an excellent job of giving you the right mental model - and a crib aheet of commands to navigate it.

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

If it's a motivation issue, you will need to figure it out on your own. I could give you some advice but motivation depends on a specific use case. If you want I can share what motivates me but there's no guarantee it will work for you.

As for getting back on a tech horse, there's a trick I've been using every time I was learning a new thing and it worked every single time. I start with a project idea. I write down the major goals I want to achieve and start working on it. At first I do the "quick start" adjusted to fit my project. It usually ends up with a working proof of concept and a list of things I don't know/understand. Next, I learn about the those unknowns and update the project with what I have learned. This raises more unknowns which leads to more things to learn about. After few iterations, when I'm happy about the project, I start a new, more complex project. And so on.

[–] GetOffMyLan 3 points 2 months ago* (last edited 2 months ago)

Start with a git GUI application. I use git extensions on windows.

You'll be able to get a feel for how it all works and it actually shows you the commands it's running.

I also use bingai a lot when learning. The more specific your question the more likely you are to run into hallucinations and that. But for explaining basic concepts or query things that are well documented it's really good.

It also sources it's answers so you can follow the link for further reading if needed.

Just don't trust it to generate large amounts of code.

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

It sounds like you already have a foundation to build on. If suggest using chatgpt or something similar to explore concepts you struggle with. "explain git to me as if I knew SVN 10 years ago but have forgotten a bit"

load more comments
view more: next ›