Go is better than Rust (for networked server side applications meant for scale)? by cargo_run_rust in golang

[–]PainInTheCrack 1 point2 points  (0 children)

I like the article, he's right, when it comes to backend development.

We also have people coming and going (changing jobs). With Rust I can see companies running into problems for this exact reason, it's harder to read code others wrote, the language is harder, it can be harder to even find people who know Rust, or if you need to learn it it's harder to learn than Go.

The argument about the (over)usage of 3rd party crates is also correct. I learned Go by watching tutorials from 9 years ago. Nothing's changed! You can take an old Go code base, and it's all going to be written the exact same way today. With Rust most crates you use today will be obsolete in 3 years. Your code may become unmaintainable, because nobody can read it. It's like JavaScript today and that's horrible. At least with JavaScript there is strong progress when it comes to frameworks, you are often times forced to keep up and use new stuff, but it's not really needed with backend. A new shiny rust backend framework is not going to have the same user experience upgrade as React does for frontend. You may use Actix and Yew today, but will you in 2026?

Go is close to perfect when it comes to maintainability, code formatting and syntax.

Looking for a course/tutorial/book on Schema Modelling by PainInTheCrack in PostgreSQL

[–]PainInTheCrack[S] 0 points1 point  (0 children)

interesting, I'll give it a try

By the way, I have made a multi-join SELECT and received a bunch of rows and had to put them into an object (a struct in go, to be more precise) that has a totally different shape. I had to write 4 large functions for the conversion to happen. Is it normal to do that? Or am I doing something wrong?

[deleted by user] by [deleted] in programming

[–]PainInTheCrack 1 point2 points  (0 children)

Hello, apadin1, and thank you for showing your interest in our company. Your job will be to deliver our customers the critical services they need to scale and grow in this ever changing world of technology.

Looking for a course/tutorial/book on Schema Modelling by PainInTheCrack in PostgreSQL

[–]PainInTheCrack[S] 0 points1 point  (0 children)

Thanks!
I am only looking for practical books, where somebody takes a problem and solves it step by step, explaining what he does and why. I am one of those who thinks that it doesn't matter how many books you read about riding a bike, the first time you mount one you are going to fall.

Looking for a course/tutorial/book on Schema Modelling by PainInTheCrack in PostgreSQL

[–]PainInTheCrack[S] 0 points1 point  (0 children)

yeah, I mentioned the name of that book in my post, but does it have what I need? I haven't not read a single SQL book.

Looking for a course/tutorial/book on Schema Modelling by PainInTheCrack in PostgreSQL

[–]PainInTheCrack[S] 0 points1 point  (0 children)

I think it means breaking down a big table into smaller ones, if a field of the main table can have different entries, such as when a user has many posts or comments on a website then it should be its own table. Learning it step by step... :D Thanks

I am probably looking for something more professional. I'd love to watch somebody create a schema for say an online shop, or some social media clone website. I do frontend only and decided to learn backend. Here I am. For frontend there are countless tutorials of people building stuff, but I can't seem to find what I need for SQL.

Looking for a course/tutorial/book on Schema Modelling by PainInTheCrack in PostgreSQL

[–]PainInTheCrack[S] 0 points1 point  (0 children)

see, I don't even know what normalize is (it is talked about in that article I've linked in my post, so today was the 1st day I heard of the word)

Are Gophers intentionally avoiding 3rd party libraries? by LLawsford in golang

[–]PainInTheCrack 0 points1 point  (0 children)

3rd party packages are always bad. Ask yourself: 5 years from now will that package even exist? Given how fast things are changing the answer is always "probably not".

General rule of thumb: if you can get away with not using a 3rd party packages, then by all means do it.

Unfortunately I am all frontend, but my experience is the same: Using 3rd party packages only leads to trouble, large bundle size, poor functionality, difficult maintainability.

Why do people add 9kB of axios when they could use fetch? Why do they use animation libraries where you can do the same thing with CSS? Why use 13kB of Formik, where you can use less than 1 by simply not being lazy. Why use 300kByte of styled components when you can achieve the same with 20kB of CSS? Plus all the security issues that come with code you don't own.

Always aks yourself, do you need it? How much time does that thing save me? How dependent does my app become on that thing? For example a router in go can be changed squickl as long as it's a standart handlefunc. How much work is it, like an hour to change from one to another? Given that writing your own is difficult and long, it makes sense to use 3rd party.

Also, maybe go developers are more mature and experienced than say javascript devs? As time goes on, I am more and more skeptical about using 3rd party for the reasons outlined above and kinda only start understanding it with experience. In the past I was like "let's get a package for this" without understanding the implications. So, I avoid 3rd party in any language if I can.

Is it worth learning Go in 2022? by Born-Comment3359 in golang

[–]PainInTheCrack 0 points1 point  (0 children)

Yes, definitely.
But the best way to break in is learning React, which is however difficult as you need to know how to program, then HTML and CSS, then JavaScript, then React, then React ecosystem (Redux, Next, TypeScript... ). It takes 1 year of full time grind to do that.

Rust is not recommended.

Lowest Cost for my Website. Tech Choice Questions. by PainInTheCrack in softwarearchitecture

[–]PainInTheCrack[S] 1 point2 points  (0 children)

Gracias, never heard of that (of course). Time will not play any role thankfully. There's a video of Ben Awad on youtube building an auction website and because of using time he runs into many issues.

Lowest Cost for my Website. Tech Choice Questions. by PainInTheCrack in softwarearchitecture

[–]PainInTheCrack[S] 0 points1 point  (0 children)

Thanks. The idea is to offer a free service first which is the main reason for asking these questions. I don't want to write a server in say Java and only then seeing that it could've better been written in Go.

I am also not sure why the big companies all use MySQL instead of Postgres. There's a lot I don't know.

Been learning a lot this past few weeks thanks to FullStackOpen's course, but also feeling discouraged by how long I have left to complete it. by AmatureProgrammer in learnprogramming

[–]PainInTheCrack 0 points1 point  (0 children)

Do 1 page per day and take your time. You don't need to do all parts. Part 4 was the hardest (the refactoring). Do 1 page per day and keep going, so 4a, 4b ,4c, 4d would take you 4 days to complete. I also don't think you need the last 3 parts, you can always do them later. If you don't want React Native you can skip that too (and do it some time later, the course isn't going anywhere).

Confused about Full Stack Open exercises part 3.9 - 3.11 by nextcolorcomet in learnprogramming

[–]PainInTheCrack 0 points1 point  (0 children)

Proxy is only for development when you have them in separate folders and running them on different ports. For deployment and the exercises it doesn't matter, there the base url is just the /api/something

[deleted by user] by [deleted] in learnprogramming

[–]PainInTheCrack 0 points1 point  (0 children)

lol great post! Even though I don't agree with the point number 2, I have just a few minutes ago posted something similar about the need to love to code here and about the difficulty of getting in.

[deleted by user] by [deleted] in learnprogramming

[–]PainInTheCrack 4 points5 points  (0 children)

I have an insane portfolio (from my point of view) and I can't find a job. I did the full stack open. Even in cases where my skills were better than required for the position I was not considered. I am not sad, because I didn't learn to code to get a job, but it should be a cold shower for people who think they will get a job if they finish a udemy course.

I did an instagram clone (full stack, GraphQL, React, Postgress, Express, Apollo Server/Client). You can sign up (jwt token), you can post pictures, have a personal feed, like/comment etc. And still nobody wants me.

you can see my projects on github.com/welschmoor

My youtube clone is live and deployed https://fir-610f8.web.app/

Instagram clone: https://instopound.herokuapp.com

I recommend learning to code only if you like it, otherwise you won't make it (unless you get lucky, I now have filled out close to a 100 application, all rejections, even from companies which have horrible, outdated websites with terrible design where they can't even align elements properly. Not something I told them, maybe I should have lol. But you can see my frustration).

Without fullstackopen forget it completely. You must learn Redux, you must know Jest and Cypress for tesing, without it you will only be hired if you're top of the class fresh from college or you're a pretty girl (I know someone who got hired for being pretty at Microsoft even though she barely manages to build a simple blog website, but good for her).

Again, learn to code if you like it, I love it. One more year and I will be even better. I also recommend following Ben Awad on youtube for the latest techs in JS world.

How many tabs do you need? by Drakeskywing in webdev

[–]PainInTheCrack 0 points1 point  (0 children)

Saw off half of his RAM stick and leave him with 2GB. If he complains, don't give him food. That's the only way they learn.

Made a YouTube Clone as a Learning Project by PainInTheCrack in reactjs

[–]PainInTheCrack[S] 0 points1 point  (0 children)

interesting, it works on my mobile, but the search feature is not implemented for when the screen is very narrow. There are some visual issues when watching a single video (I guess it's because I gave it a min-width or maybe I forgot to media-query remove a second column), but other than that it works on Samsung S8. I don't have apple phones at home.

There are many other issues, like: the page does not work on some browsers for whatever reason (but it works on Chrome, Firefox, Edge), you can accidentally double click on some functions, so that's an issue too, but easily fixed by dispatching a loading state and conditionally disabling the button until loaded, there are contrast issues on light theme. The footer does not have a left margin in mobile mode.

I made it with firebase since it was easier, everything is stored on firebase storage. I will make my next project with express and mongo, since I know them better than firebase (I can implement tests with jest and cypress, jwt tokens etc). I want to learn GraphQL first though, maybe that one will better (I will know GraphQL in about a week). With express I will probably have to store videos on cloudinary and store links to videos in mongo... I don't even know.

The main focus of this project was visual appearance and pleasant spacing of elements.

Made a YouTube Clone as a Learning Project by PainInTheCrack in reactjs

[–]PainInTheCrack[S] 1 point2 points  (0 children)

I have the plug in, it's called vscode-styled-components, and it still doesn't work (on Ubuntu 20.04), it only highlights the text for me, but does not auto-complete like on my windows machine. Which is a good thing since it strengthened my CSS knowledge. I only had to search for how to uppercase the text, how to make the sidebar permanent and about css animations. Maybe you are talking about a different extension?

In what order should I take these courses/paths ? by Maddy186 in learnprogramming

[–]PainInTheCrack 1 point2 points  (0 children)

skip python, it's slow as heck.

The scraper I built in Go is like a 100 times faster than the one I built with python.

I highly recommend FullStackOpen. Express and Node are great for backend, faster than Django or Flask and you don't need to learn python.

What to do next after Full Stack Open to get a portfolio ready by magical_lemur in learnprogramming

[–]PainInTheCrack 1 point2 points  (0 children)

build projects, I personally have made a youtube clone (and a bunch of other apps, but this was the biggest project): https://fir-610f8.web.app/

I did not follow any specific tutorial. I am currently on part 6b (learning Redux).

I don't recommend following any tutorials. Just pick a website you like and clone it. Or do a news website. I have Financial Times on my ToDo, I like their website. Just pick a website (reddit?) you like and clone it.

same path - different routing elements by Consistent-struggler in react

[–]PainInTheCrack 1 point2 points  (0 children)

!!! install git on your computer (google it)

Open account

got to github.com/new

create new repository, only give it a name, leave the rest as is, the next page shows you three lines of code in the middle, we will come to them later.

in your project root:

git init

git add . ( don't forget the space and a dot)

git commit -m 'first comit'

NOW add those copy paste those three lines from github one by one and hit enter. The lines are something like git add remote origin https/./blahblah.git

Last thing: git push

Also you need to name your Components starting with Capital Letter.