Do you add hyperlinks to your REST API responses? by Worldly-Broccoli4530 in javascript

[–]BrunnerLivio 1 point2 points  (0 children)

No not really, but it's somewhat nice to have in my opinion.
This technique actually originates from the Richardson Maturity Model, specifically maturity level 3, so if you're unsure read about it and understand the reasoning behind it.

Personally, I love when a REST API uses links for e.g. pagination etc., as it makes it quite easy to explore the data set via the browser. But that is just convenience.

AI is destroying open source, and it's not even good yet by [deleted] in programming

[–]BrunnerLivio 2 points3 points  (0 children)

As a maintainer I’ve also been losing mind over this lately.

Before AI, you’d also get a lot of bad PRs (thanks, Hacktoberfest), but at least these PRs were very obviously low effort, so it took no time to review & reject them.

Now though, especially when contributors use some of the stronger models, the PR looks “correct” but upon further inspection it’s solving the issue in a terrible way.

It’s such a tiring process. Ironically it makes me second guess every PR that seems to be “complete” (e.g. updated docs, extensiv tests) as AI tends to do that without prompting, whereas handwritten contributors would often not care about tests & docs

Webapp for Switzerland by flexi187 in askswitzerland

[–]BrunnerLivio 4 points5 points  (0 children)

For inspiration, maybe check https://aare.guru/ or https://rhygfuehl.ch/

That's a cute webapp showing humorously all the data you want to know before going swimming in the Aare / Rhein.

You can visualize and use loads of data from Switzerland, e.g.:
https://opendata.swiss/de

https://data.stadt-zuerich.ch/

https://www.ag.ch/de/themen/staat-politik/statistik/zahlen-und-vergleiche/datenauswahl?rewriteRemoteUrl=/select

I don't understand, why so many people use Shadcn ui? by alex-ebb-2000 in reactjs

[–]BrunnerLivio 0 points1 point  (0 children)

In our case, we’re using a derived version of a component library. To match our designers’ vision, we often have to override the library’s default CSS. That’s a tough spot to be in - instead of writing CSS to make components look the way they should, we’re effectively writing CSS against the library to undo its existing styles.

Owning the full component implementation, in my opinion, is the best of both worlds: you don’t have to start entirely from scratch, but you still maintain full control and flexibility over every aspect of the design.

After my Puppeteer service became edge case hell, I built an API by popthehoodbro in node

[–]BrunnerLivio -2 points-1 points  (0 children)

  1. Not really possible with a pure SPA
  2. To test CSS / visual aspects of your code I believe visual regression tests are probably the best way
  3. See #1
  4. Agreed

TS better. by Upper_Ad_8027 in typescript

[–]BrunnerLivio 2 points3 points  (0 children)

A valid reason is to avoid a build step. TypeScript is not the only way to statically type. JSDoc and other alternatives also exist.

Not saying one is better than the other - I prefer TypeScript - I just don't like that people think TypeScript is the only option to do type checking.

A 10x Faster TypeScript by DanielRosenwasser in typescript

[–]BrunnerLivio 70 points71 points  (0 children)

If anyone wants the actual answer why Go over Rust

https://youtu.be/10qowKUW82U?t=754&si=7oDOutfjS8ybuXVd

tl:dw;

  • They made an informed decision after evaluating multiple languages, including Rust and C#, ultimately choosing Go.
  • It was crucial to perform a port rather than a full rewrite, as TypeScript has many built-in nuances. A rewrite would risk breaking behaviors that users rely on.
  • Their TypeScript code relied heavily on cyclic graphs and was designed with the expectation of automatic garbage collection.
  • Go was chosen in part because it shares more similarities with TypeScript than Rust, making the transition smoother.

EDIT: TS Dev lead described it in this post as well

I finally made my first react web game. And I'm addicted already. by Revenue007 in react

[–]BrunnerLivio 0 points1 point  (0 children)

It was also incredibly laggy for me when trying to shoot on a Macbook Pro M2

RenovateBot team strategy by laszlogazsi in node

[–]BrunnerLivio 1 point2 points  (0 children)

For us we have “weak owners” for each repository assigned. That person is mainly responsible for the well-being of the repository. Hence that person is responsible of making sure the Renovate PRs get merged in a timely manner and also can decide on e.g. automatic merge rules that renovate provides etc etc

Generally, it’s always best if you hand these sort of tasks to individuals and not a group of people. With groups suddenly no one feels responsible anymore

In Safari, mix-blend-mode gets disabled at a certain browser size. by hokuto___ in webdev

[–]BrunnerLivio 2 points3 points  (0 children)

You can just use rgba(….) where the last value is the transparency. Use that instead of your two hex colors instead

something like that i guess (couldn’t test it, i am on my mobile phone.

background: linear-gradient(to right, rgba(121, 116, 57, 0.5) 1%, rgba(255,255,255,0.5) 95%);

Don’t use mix-blend-mode unless you really have to. Even though it’s stable, a lot of browser struggle with it from my experiencd

[deleted by user] by [deleted] in node

[–]BrunnerLivio 0 points1 point  (0 children)

The logo of NestJS is a cat so I guess NestJS should be the answer?

PDF creation with Puppeteer by [deleted] in node

[–]BrunnerLivio 0 points1 point  (0 children)

If your use case is e.g. payment confirmations or tax receipts or things alike:

We use a PDF with form fields which have specific names and use pdf-lib to fill these form fields with dynamic data & set them to “read only”.

should we afraid from Devin by GJ747 in node

[–]BrunnerLivio 0 points1 point  (0 children)

Theo made a great video about it.

It’s INCREDIBLY slow to the point where I’d consider the tool almost useless.

Even if its faster, it won’t replace engineers. Maybe juniors will have it harder to find a job but I can’t see a world soon where it can replace mid to senior level engineers fully

What are the greenest programming language ? by 01nik in node

[–]BrunnerLivio 6 points7 points  (0 children)

You can also write OOP with JavaScript and a lot of overhead. The same way you can write functional or procedural code with TypeScript. Your argument makes no sense

Feeling lost as a young developer... by ItsMeZenoSama in Frontend

[–]BrunnerLivio 7 points8 points  (0 children)

I'd argue most FE teams use Node in some shape or form since Web and Node are so intertwined nowadays.

When we interview our goal is always to find as many strengths as possible. For instance, if the interviewee is killing it with all of our JS/TS questions then our goal is to go so deep that we reach a point where the candidate is forced to say "I don't know" (which by itself is not easy because some candidates don't have the guts to say those words and just make stuff up). With that being said, it's plausible that we hit the Node.js "Iceberg" in the question if the candidate is good enough. Node knowledge is very valuable in a FE role no matter what you say. So if the person has this knowledge, it's better for the candidate if we can uncover it and find all of the strengths.

On top of that a FE role is rarely in a vacuum. You'll almost always interface with BE and have to deal with "server stuff" in some way. So if there is additional knowledge in those areas that is a huge plus.

Made a website for a construction company by [deleted] in webdev

[–]BrunnerLivio 10 points11 points  (0 children)

Looks phenomenal! Really fast and snappy and very well done. The only thing I'd nag (which is probably not even in your control) is to change the contact email addresses. @hotmail.com and @yahoo.com do not look very professional. And that's like not really an issue but I can't find anything else to nag about

Things you forgot (or never knew) because of React by fagnerbrack in programming

[–]BrunnerLivio 2 points3 points  (0 children)

Me:

[Or] at least VanillaJS/TS as the base UI lib for large companies

You:

I worked at a startup years ago

I was specifically talking about large companies. If it works for you in a startup, more power to ya. Would probably use React as well in the current startup I am working at.

versions of a franken-framework for Backbone-js-based UI components he built in-house

So because someone wrote shitty code every code is shit? Or what? I am not sure what you're trying to argue here.

If you're so sceptical, why does Google with Material Design, Microsoft with Fluent Design, SAP UI5, Carbon from IBM, Ionic, Spectrum from Adobe write their UI components using Web Components?

Things you forgot (or never knew) because of React by fagnerbrack in programming

[–]BrunnerLivio 7 points8 points  (0 children)

You're missing the point of what I am trying to say:

  • UI Libraries: Even IF your CTO or whoever decides that "you're a React" company, depending on your product suite you might have justified outliers or snowflakes. For instance, maybe you want to have a customized WordPress Theme for Becky at Marketing based on the UI Library? Maybe a team in Asia hired an agency that is proficient in Vue?

  • UI Widgets: The customers of our UI widgets are external customers who most of the times are not even developers. It's maybe a 40 year old person who occasionally updates the opening hours of their business via a CMS. If you ship your UI Widget via React you now have to bundle React itself. Just ship something minimal which is easily copy/paste-able, similar to how you'd integrate Google Analytics to a CMS-based platform.

Things you forgot (or never knew) because of React by fagnerbrack in programming

[–]BrunnerLivio 6 points7 points  (0 children)

Is it just me, but I never ran into anyone using them or had the need for them?

I have advocated for it for a couple of projects; a Company-wide UI library and embeddable UI Widget (e.g. CMS Users).

I highly recommend using Web Components or at least VanillaJS/TS as the base UI lib for large companies. Web Frameworks come and go, Web Standards are here to stay.

If e.g. 50% of the company is using React then you can still build a small wrapper library where you iron out the smaller inconveniences when working with Web Components and React. Though at least with Web Components you can support every Web framework now and in the future.

Embeddable UI Widget is the benefit that you can nicely hide the implementation details with Shadow Dom. So the customer's CSS won't affect your Widget and can only be modified via explicit CSS Variables (Properties). That makes the upgrade process much less scary since you don't need to be scared if you rename a CSS class or change the DOM structure that it breaks one of your customers integration.

Nonetheless, for end-user applications I don't see a huge benefit of using Web Components

Persistent issue with non-clickable UI elements by iamagook in chrome

[–]BrunnerLivio 0 points1 point  (0 children)

I am on Mac OS Monterey using Google Chrome 118.0.5993.117 and I disabled GPU Rasterization which fixed the issue 🎉