448
you are viewing a single comment's thread
view the rest of the comments
[-] Honytawk@lemmy.zip 11 points 1 month ago

If that were true, you'd have more front end devs being able to do backend instead of the other way around.

[-] yogthos@lemmy.ml 21 points 1 month ago

These are completely different types of skills. Front end is complex because there's an explosion of different states driven by how the user interacts with the UI. On the other hand, backend workflows tend to be a lot more structured. You get a request, do some processing, fetch some data, and return a response.

[-] CanadaPlus@lemmy.sdf.org 5 points 1 month ago

From where I sit, it seems like frontend is closer to being a graphic designer than on backend.

[-] yogthos@lemmy.ml 4 points 1 month ago

Then you haven't developed a non-trivial user interface before.

[-] CanadaPlus@lemmy.sdf.org 5 points 1 month ago

I've made UIs, and at least one I'd say was complex, but it was also really ugly. What am I missing?

This wasn't a put-down, BTW. I couldn't be a graphic designer either.

[-] yogthos@lemmy.ml 4 points 1 month ago

The complexity of dealing with different states a UI can be in. The user can navigate the interface of an app in many different ways. The US has to be able to handle all the different combinations of actions the users takes. This means maintaining a consistent state, loading data that's needed, keeping track of navigation, etc. The logic in an interface of an app like an email client is far more complex than most backend workflows.

[-] CanadaPlus@lemmy.sdf.org 1 points 1 month ago

Yeah, that could be reasonably complex I guess. I've never dealt with more than one navigation structure in a UI, like that would have. All the memes are about clients wanting it to look different.

[-] xmunk@sh.itjust.works 0 points 1 month ago

I mean... the browser can do all that shit itself, just give it some HTML and stylesheets. It's incredibly important to realize that nearly all this complexity is optional - it may make sense for Facebook to invest this much in a UI but most companies could get away with plain ol' html with a bit of styling.

As a front end developer you should know when things like infinite loading dynamic tables with a search bar add significant value and when <table> is good enough. Maintaining complex systems costs money and developers should always advocate for the simplest most sustainable solution to a problem. I think we have a real issue with pursuing shiny new technologies.

[-] yogthos@lemmy.ml 5 points 1 month ago

I mean... the database does all the shit itself, just give it some SQL queries. It’s incredibly important to realize that nearly all this complexity is optional - it may make sense for Facebook to invest this much in their backend infrastructure but most companies could get away with plain ol’ script that on top of Postgres.

As a backend developer you should know when things like load balancing and and complex db schemas add little value, a single table is good enough. Maintaining complex systems costs money and developers should always advocate for the simplest most sustainable solution to a problem. I think we have a real issue with pursuing shiny new technologies.

[-] xmunk@sh.itjust.works 1 points 1 month ago

Absolutely, it's why at our company I laid the groundwork to eventually adopt a read replica based database approach but didn't push to actually set up such an environment until about six years later when we had a compelling reason to switch. I work in PHP and the language itself is pretty irrelevant because most pages are just some validation and then shuffling the request off to the database - it doesn't make sense to over engineer since you'll end up paying to maintain things that don't benefit you.

Using a single table is almost always a bad idea though - for prototyping it can make sense but strong typing ends off paying off quickly in not having to write defensive code.

People on all sides are guilty of over complicating things and it's not helpful for building an agile product. I'd say that there's a generally accepted assumption that "modern web" means react or some other flavor of SPA - these are amazing tools but aren't always necessary. Tools are powerful, but you should understand what you're using and have a justification as to why (or at least make it obvious that decisions were made arbitrarily since sometimes you've just got to choose one).

[-] yogthos@lemmy.ml 2 points 1 month ago

Nobody is arguing for overcomplicating things, and it's true that a lot of projects out there are in fact overdesigned. However, there are also non-trivial applications out there, and front-end can in fact be complex in such apps. For example, I worked at a hospital at one point, and my team built an application that allowed multiple users to work collaboratively on shared documents seeing each other's changes in real time. That's a kind of app that is non-trivial, and where there's plenty of legitimate complexity to be found both on the frontedn and the backend.

[-] pingveno@lemmy.ml 3 points 1 month ago

A simple web app will be okay with some HTML forms, sure. But something like a multi step wizard will lead you down the path of storing a huge amount of state on the server side, which turns into a mess. We have a wizard that uses Django's forms and django-formtools's wizard. You have to put the state and complexity somewhere. We put it in the backend and I can't say I like how it turned out. The code is spaghetti and we get a stream of errors from people not acting how they're expected to act.

[-] firelizzard@programming.dev 4 points 1 month ago

Making good UX is fucking hard. I say UX because making it good is really about the user’s experience, not graphic design. An ugly front end can be good if it’s intuitive and easy to use. But a visually gorgeous front end will still be garbage if it’s clunky and confusing.

It’s really something you have to experience to fully understand. Ultimately it comes down to this: front ends have to deal with people, backends only have to deal with computers. So backends can be cleanly organized and well structured. Applying backend design principles to a front end will get you a CRUD interface - something that’s usable but no one really wants to use.

[-] hglman@lemmy.ml 1 points 1 month ago

You need to be able to do layout design to do good ux. The visual presentation is a critical aspect of usability. Also backend code needs to be consumable future readers (including the author). That's something that is very often lost and you get terrible unorganized backed code.

[-] CanadaPlus@lemmy.sdf.org 1 points 1 month ago* (last edited 1 month ago)

This is kind of what I meant. Appearance isn't just colours and alignment, but also things like flow, organisation and layout. I can make the data theoretically accessible, but with all that stuff I'm completely out of my depth.

Write-only code can be an issue for either, while on the other hand complexity theory, big data structures and high math make me think backend.

[-] Grandwolf319@sh.itjust.works 4 points 1 month ago* (last edited 1 month ago)

How about UIs that are essentially web apps. I’m talking about needing to handle drag and drop, graphs and the like.

There is also the mess that is responsive design, multi browser support and proper accessibility.

[-] avidamoeba@lemmy.ca 7 points 1 month ago
[-] PrettyFlyForAFatGuy@feddit.uk 26 points 1 month ago* (last edited 1 month ago)
<!DOCTYPE html>
<html>
  <body>
    <p>Hello World</p>
  </body>
</html>

here i wrote you a frontend

[-] imgcat@lemmy.ml 5 points 1 month ago* (last edited 1 month ago)

And yet it still works better than a MB of JS

[-] NigelFrobisher@aussie.zone 2 points 1 month ago

How are you managing the state?

[-] uis@lemm.ee 2 points 1 month ago

Join the dark side. We have cookies.

[-] frezik@midwest.social 8 points 1 month ago

Yes. It'll look like a Geocities page, but yes.

[-] xmunk@sh.itjust.works 4 points 1 month ago

Pah, as if Geocities had the good taste to use courier new.

Also, more seriously, if all the client needs is a geocities page is it reasonable for a front end developer to build it in react?

[-] CanadaPlus@lemmy.sdf.org 5 points 1 month ago* (last edited 1 month ago)

As a backend person, lol no. I mean I can make a thing that works, but it will require eye bleach afterwards, and I'll hate every moment of building it.

They think they can.

[-] Honytawk@lemmy.zip 2 points 1 month ago

Not all, but more than front enders being able to do backend is my point.

[-] JoYo@lemmy.ml 1 points 1 month ago

yes, according to every project manager i’ve worked with.

this post was submitted on 26 Apr 2024
448 points (96.7% liked)

Programmer Humor

30940 readers
168 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS