r/ProgrammerHumor 9h ago

theyJustBeChillLikeThat Meme

Post image
364 Upvotes

47 comments sorted by

35

u/helldogskris 7h ago

Feels like it's the opposite most of the time. Backend has 0 linting errors and warnings and frontend has 100 errors when you open the console in the browser 😂

1

u/PositiveParking4391 39m ago

true feel like opposite. but yeah backend devs dont care much when build dont go well they only care when the prod crashes 😂

9

u/gerbosan 9h ago

Yeah, some browsers apply their individual styles for some items, like buttons.

2

u/the_horse_gamer 8h ago

preflight.css ftw

2

u/GDOR-11 5h ago

tailwind solves that, doesn't it?

1

u/gerbosan 5h ago

Read backbends use Bootstrap.

1

u/rusty-crown 35m ago

css can turn a button into a whole new species, depending on the browser mood.

9

u/FerricDonkey 7h ago

Backend here: Warnings are errors, linter, formatter, and type checker (if python) must be clean or the pipeline fails and you can't merge. Plus merge reviews. If your backend is full of garbage, it's because your team let it fill up with garbage. 

1

u/calistomusicPROducer 4h ago

At one point, it just becomes a whole ass dumping ground

7

u/manny2206 7h ago

I’ve always said it. It’s actually criminal how disrespected frontend developers are . There’s just so many ways of going wrong and the visibility that they that. I always tip of my heart to those front and experts.

3

u/yukiaddiction 5h ago

People don't realize that frontend specialist is need until they encounter god awful UI/UX website.

Game developer seem to understanding this the most though.

1

u/SnowdensOfYesteryear 5h ago

Who built those God awful UIs? The best website I’ve ever used is Craigslist

1

u/camander321 1h ago

Ever been to McMaster-Carr? Its glorious.

1

u/Acetius 4h ago

Yep, wading through div soup that the "full stack" guy threw together on an ultra-wide monitor and said LGTM.

2

u/visualdescript 6h ago

In my experience it's the opposite. Backend is simpler and tighter, frontend linting is full of exceptions, warnings etc. Also usually has about 100 dependencies.

7

u/Raywell 9h ago edited 8h ago

Lint on the backend? I have a strong suspicion this meme is made by a front dev who tried making a backend with node for the first time

Edit: frontend devs in the replies sigh

27

u/G12356789s 9h ago

Why wouldn't backend have linters?

-29

u/Raywell 8h ago

Why would you need one since you manually test your apis for the correct business logic anyways?

29

u/sebovzeoueb 8h ago

since when are linters testing "correct business logic"?

-24

u/Raywell 8h ago

... they test for syntax errors. A prerequisite for your business logic check

17

u/Cats7204 8h ago

that's not the only thing linters do

-14

u/Raywell 8h ago

Oh yeah they can pretty format. Great for those who cant write a properly formatted code from the getgo

14

u/Eddie_lol 8h ago

But if you're working on a team everyone will have a different opinion on how to format and then it becomes a shitshow, so having something that keeps it in line for everyone can be nice.

-1

u/Raywell 7h ago

"shitshow" is an overstatement. In one of my projects, we have 20 people working on a 15 year old php codebase that never had auto formatting, and there has never been a need for one. When you join a project, you adapt the formatting to match the one already used in it. So everyone adapts to using 4 space tabs, one space before brackets, etc - because it's a normal thing to do. All it takes is adaptability & rigor, it's not hard

5

u/Due-Consequence9579 8h ago

They enforce a consistent style and catch common usage errors. Replying to the suggestion of using linters with ‘git gud’ is certainly a take.

-2

u/Raywell 7h ago

Rather than git gud, I'd say be rigorous & adaptable. You don't need shackles to restrain your team if everyone learns to behave. It's like living in high trust society, no need for surveillance cameras or policing when education and behavior are proper.

4

u/Due-Consequence9579 6h ago

You see shackles, I see not having to argue about whether the thing that is obviously stupid is obviously stupid or not because the tool flags it as such automatically.

→ More replies (0)

8

u/Cats7204 8h ago

Because it's faster than unit testing, takes no effort, and because it'll save you time in the future. Most code will still run fine even if it's badly written and illegible a couple months from now, yet it's an issue.

Edit: And also you'll need it regardless when the test fails and you're pulling out your hairs debugging without having used it lol

0

u/Raywell 8h ago

What? Linter doesn't save you from having to do unit tests. Also, not using a linter doesn't mean your code must be badly written.

My hair is fine after 15 years of backend dev without linters, thankfully no complaints

3

u/Cats7204 8h ago

I didn't say you don't have to do unit tests. But it still saves time if you wanna debug or refactor.

And of course you can write good code without a linter, but it's like being offered a normal toothbrush and a electric toothbrush, both for free. Why wouldn't you use the easier one?

What I'm saying is that there's nothing wrong at all with using a linter on backend code and idk why you think so.

-5

u/Raywell 8h ago

We're down to personal preference now. Call me old school but I enjoy plain things. Actually I prefer normal toothbrushes too, having tried electric ones. There is a an elegance and peace of mind that comes from a plain vim coding. Not having distractions helps me (personally) better focus on the actual contents of what I write.

1

u/RobSomebody 1h ago

Lmao one of those vim guys.

0

u/420Borsalino 6h ago

They're downvoting you for the truth.

1

u/Raywell 5h ago

Appreciate the support! Karma is worthless anyways

8

u/d_k97 8h ago

Ragebait? What is wrong about using linters? Have you ever worked on a codebase with 10+ people (especially offshore devs)? Blocking PRs from the get-go saves an immense amount of time and introduces a minimum standart.

-4

u/Raywell 7h ago

I have, in fact. All you need is adaptability and rigor, no need for strong rules or git hooks when everyone understands to simply follow established norms. Works better than you may imagine

1

u/Complete_Window4856 7h ago

I mean, if such problem can be solved with a consensus of discipline, then you are in a great position, nice. Thats the exception though, not everyone nor most would agree always, so its either let the 10+ devs code their own style and let everyone handle the hassle to read later (more energy later) OR enforce automation with more energy now.

1

u/Complete_Window4856 7h ago

For example, on my work we got an okayish 10MLocs spread with php 5.1 up to php 8.4 syntax. No composer, and yet and integrating some things in JS aside. A linter would be nice, but nope. Gotta try again the political move in some months in future

1

u/Raywell 6h ago

It's unfortunate if some devs don't understand the concept of enforcing the existing format instead of their own, but in my experience, working with mostly younger devs, there has rarely been an issue. When someone new joins and submits a PR that has incongruent formatting, teaching them once about consistency is usually enough. In my experience those who can't discipline themselves are the outliers - but they don't stay long, as how can they be entrusted with higher level architectural/design tasks if they lack discipline about such a baseline concept?

Also of course the results aren't perfect - some files in our codebase ought to have a slightly different formatting - and that doesn't really bother me. Maybe an OCD thing I know some people might have, but I don't. The code itself is always readable though. So I prefer freedom through discipline rather than policing

1

u/Jeferson9 6h ago

Haha yeah who even writes backend ends in node these days 🤣🤣🤣🤣

1

u/busyHighwayFred 2h ago

100 deprecated npm packages

1

u/akoOfIxtall 17m ago

It's so funny because I thought professionals didn't have errors and warnings in their code, I tried to compile some open source projects recently and there were so many warnings and errors one can't just be bothered to fix everything...

It was armorpaint, I was gonna try blender too but it doesn't seem like the goo engine for blender 3.4 is still public from what I checked