Dirk,
@Dirk@lemmy.ml avatar

To start this static single page project you first need to pull two dozen of JavaScript modules and configure them in 5-10 different files and learn the currently most hyped framework before even writing a single line of code.

agressivelyPassive,

And if you’re done, you’ll have to learn how your CI/CD stuff works, and kubernetes, and Helm. And somehow you’re also required to know the arcane and inconsistent rules that Ops put in place a few months ago without anyone telling the devs about it.

csm10495,
@csm10495@sh.itjust.works avatar

Then when you’re done, you find out one of the core modules you use is considered a ‘security risk’ by your infosec team. So you have to start over.

Hazzia, (edited )

Man, this is why I’m a backend dev, how ya’ll keep up with this shit…

Edit: Y’all responding with shit I’ve never even heard of before continues to disincentivise me from touching frontend

boomzilla,

I’m have done both, Spring Boot and Laravel on BE and Vue, Svelte and React on FE.

Don’t believe the FUD. Vue and Svelte are fun if you have a moderate understanding of HTML, JS/TS and CSS in your sleeve and those reactive frameworks are indefinitely better than vanilla JS or jQuery. React is another beast and I really didn’t like working with it.

Both Vue and Svelte have nice setup tools for NPM/PNMP (I’d recommend the latter) that create template applications in a few minutes which immediately run inside a local dev-server. Change some code and changes are immediately reflected inside the browser. It’s really a nice DX. And both frameworks have very nice ecosystems and GUI frameworks, e.g. VueUse or shadcn-svelte.

naught,

React is fine too with the right tooling. Next.js, create-t3-app, vite etc. are all nice. I think svelte has fewer unfamiliar mental models and hurdles to initial development though. I tried vue years ago and found react made far more sense to me for some reason.

dependencyinjection,

It’s really not that bad if your SE sets good standards.

We use C#, Entity Framework, and GraphQL for the BE.

Then TypeScript React for the FE. Now using Vite where we used to use CRA.

scrubbles,
@scrubbles@poptalk.scrubbles.tech avatar

Oh you’re using react? I heard it’s not great for security. Just swap it out for angular and we’ll give our approval

rolaulten,

As an ops person I disagree! Our arbitrary changes are documented in a jira ticket in the ops project. If you can’t view the ops project fill free to open a ticket in ops and we will triage it when we feel like it.

velox_vulnus,
@velox_vulnus@lemmy.ml avatar

Yes, I’m that idiot. Learnt basic Nix flakes and Svelte. Should’ve stuck with React.

tsonfeir,

Found the Brit.

neshura, (edited )
@neshura@bookwormstory.social avatar

Honest question: What is/are your problem(s) with Svelte? So far it seems a lot easier to use than react to me but I wouldn’t consider myself experienced so there might be unwelcome surprises waiting.

boomzilla,

It is day and night. Svelte is nearly vanilla JS/TS. No quirks and surprising side-effects like in React. No shadow DOM. With the new rune system in the next version it will even be better. For me it had the best DX of all frameworks I tried.

I suppose OP is frustrated because the business world hasn’t catched up and most of them still only search for React devs, which is in my opinion very stupid, because React can be so frustrating for devs. The reddit sub for svelte has ever so often posts by them praising the sanity of Svelte.

But it would be a valid point by OP if that is their reason when their income depends on it. We can only hope Svelte catches up in that regard.

Luvon,

React is miles ahead of a bunch of much older frameworks businesses still use. I have projects being built new right now that use ui5 from sap. We have projects with spring boot with the templates in jsp.

I would much prefer a react project to ui5 or jsp. And businesses with long running projects tend not to like using frameworks that don’t have at least ten years of usage and thus some proven surviveability unfortunately.

gornius,

Framework has multiple config files, allowing you to customize almost every aspect of it.

Nooo, this is too much config files, they take up too much space in my project tree.

Framework is a monolith with a single file to configure it.

Nooo, the file is unreadable and developing extensions for it is annoying.

Framework is minimal

Nooo, it doesn’t have any useful built-in features.

Framework is a complete solution without too many things to configure.

Nooo, it doesn’t allow me to do what I want.

wizzor,

I feel personally attacked.

I have tried making a framework once, and was annoyed with myself for more than one of those reasons.

TrickDacy,

So it’s hell for every tool to have a somewhat easy and similar way to customize it to your exact needs? Hard to imagine that working better imo. If there’s a problem here, it’s that you’re overusing tools.

If you think this is hell, you should try using terraform. Some of the most common basic cloud things will mean hundreds of weird, largely illegible files

meliaesc,

If they could all coesxist in one file, preferably json or yaml, it would be better.

kurwa,

If all configs could use the same format and be in the same place, that would be nice. Although I think eventually you’d want to split out that config file into multiple places, because having a config thousands of lines long would suck.

meliaesc,

If the picture in the OP is the only alternative, I wouldn’t mind, you can easily collapse json/yaml and only focus on the section you need. Maybe split into files based on functionality.

kurwa,

Aren’t these configs in the OP already split by functionality though? If each of these of config files were only going to be a few lines long, having it all in one file would be great.

meliaesc, (edited )

Well, for example, there’s no reason eslintrc and eslintignore need to be separate files in any scenario, i would group them and prettier into “formatting”. But, yes I agree, one big file is preferred in most scenarios.

TrickDacy,

I agree it would be nice to have that as an option

inspxtr,

or maybe most of them in a folder? and one file that defines their locations for environment variables

hansl,

Kind of what .env files are meant for. Not enough tools use them.

Gecko,
@Gecko@lemmy.world avatar

I wish something like .config would be a thing for storing configuration files in repositories. Instead we have a .vscode, .github, .gitlab, .idea, .vs, etc

zzz,

Yeah, code editors really missed the memo that the XDG tried sending out, that (… mostly) works so well on Desktop Linux

jflorez,

I know XML is very last century but if they could coexist in one file, a file that treats each config section as an object, so we can create a Project Object Model, call it pom for simplicity, and then if you are old store it in xml and the you could have only one file and call it pom.xml and then maybe one day someone can make this very useful file a bit more modern and turn it into json or yaml but for now a single pom.xml could save us from that config hell others speak of /s

QuaternionsRock,

You could probably do this pretty easily with a custom pre-build step.

I’m not confident a single 2000 line config file would be better, though. Sounds an awful lot like Makefile hell.

dotslashme,

Welcome to projects 101 where you are now in charge of coding, infrastructure, logging, metrics, secrets, linting and deployment.

danielquinn,
@danielquinn@lemmy.ca avatar

Yeah, the whole “you build it, you own it” thing sounds great until you’re neck deep in it.

bort,

my last super simple project with js:

  • index.html
  • main.js
  • main.css

and the initial stuff was done with chatgpt. From start to finish the project took me about an hour (including deploying it to my server)

incompetentboob,

But if you didn’t have 200 configs files did you even build a project?

bort,
QuazarOmega,

Solo development is great, isn’t it?

sndrtj,

I’m a backend dev. I needed basically a single js function for my personal website that called out to some NPM package. I thought: I’ll do this the proper modern way, typescript and everything. Result: under 10 lines of code, but 12 config files (and 1.5h of fiddling with ES Modules vs CommonJS).

peter,
@peter@feddit.uk avatar

The correct way is you download the npm package, copy and paste the function you need and paste it directly into your website

HurlingDurling,

Unless that function has so many dependencies it becomes a hassle just to try that.

negativenull,
@negativenull@startrek.website avatar
pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

<span style="color:#323232;">git rm -- .*
</span><span style="color:#323232;">git commit -m "be better"
</span><span style="color:#323232;">git push --force origin/main
</span><span style="color:#323232;">shutdown now  # take the rest of the week off - you've earned it
</span>
squaresinger,

Actual lines of meaningful code: 3

badcommandorfilename,

:3

Rin,

;3

velox_vulnus,
@velox_vulnus@lemmy.ml avatar

╎3

mactan,

:3

yetAnotherUser,
crispy_kilt,

I mean that’s not a programming problem that’s just a webdev is shit problem

merthyr1831,

stop using javascript i guess

Gabu,

Delete the whole thing

onlinepersona,

I see a flakes.nix

RIP

velox_vulnus, (edited )
@velox_vulnus@lemmy.ml avatar

You know what’s the most satisfying (and possibly the stupidest) reason about using a flakes?

percentage-of-language-used

The color. I like it. Lavender is my favorite. Worth the struggle.

Feathercrown,

Perfectly balanced

quackers,

I miss the simpler times of PHP and jQuery

Fades,

JavaScript 🤮

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines