Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "zustand"
-
I inherited a nextjs project from an unknown guy and am fangirling the codebase
But the deeper I familiarise myself with it, the more the cracks begin to appear:
1) The dude Is incapable of grasping the basics of DRY concept. He actually setup a ton of stuff I may have done poorly if I'd started working straight out of the docs, so I feel like I owe him a shower of praise. I guess being new to nextjs makes it look more impressive than it actually is. He was paid off, yet getting the credit seems unearned to me. I'm just afraid reaching out to him might turn around to bite me in the ass
***
I had the above in my drafts, contemplating sending him a token to show some appreciation for unknowingly showing me the ropes. I was going to find him on LinkedIn using his commit names. But after doing everything I've done, undergoing the anxiety and severe pressure I faced at the hands of the project owners, I'm not sharing a farthing with anybody
Yes, I may not have known about zustand and persist middleware. Yes, he did all the ui. Yes, he created the base components and fancy wrappers around form and button html elements. For those, I'm grateful
But the amount of refactoring I had to do to, for an opportunity to implement my own target features, I'd say I can lay as much claim to the project as he does.
Side note #1: I have some newfound respect for front end devs. We used to discriminate against them for doing just css but that was only relevant in the jquery days. Now, they have to use cryptic css frameworks (sass, less, tailwind), they have to learn esoteric syntax of some js framework and write controllers/components as the case may be. They have to (the worst part), bind this data to an API, which would never make sense to me coming from a php ssr-natural world
Back rewarding the guy, some of the challenges I came back from were:
1) Next server outages: I still don't know the workaround this. The app terminates, browser giving an error about using up memory. I have to wait for about 10 minutes before I can access the app again
2) spring Webflux authentication not hydrating: I was unexpectedly asked to work on the back end too, where I got tortured with this horrifying condition. The most poorly documented framework for the Web has no upto date guide on how to implement jwt security measures. I opened a question on stackoverflow. A day later, both my question and the helpful answer got downvoted
3) Zustand not retrieving any data from localstorage once page reloads, until I miraculously stumbled on a hack: there's a config callback for reading state after rehydration or thereabout. So I interact with the state there. That's the only way content clearly in localstorage can get transmuted into dynamic format accessible by the code
4) Mongo database suddenly disconnecting: for no apparent reason, this bailed. Accessible on compass. This was even when I realised it was responsible for front end requests not going through. Eventually created a new database and requests surprisingly began connecting again. Thankfully, my laravel background taught me about seeders so I had them on standby from the onset. Wasn't difficult to just port to a fresh database after confirming the first one was inaccessible to the app
After this painful odyssey and the time constraints, threats of moving forward with someone else, I deserve every dime they deem me worthy of and more3 -
I hate react-redux boilerplate code and NgRx boilerplate codes too. How to avoid boilerplate code or minimize it?
I've heard about zustand but it is quite new. Legacy apps mostly use react-redux with lots of boilerplate codes.5 -
The state of state management with react sucks ass. The boilerplate for a store with a type parameter is absurd.2
-
Juvenél Jewellery – Ihr Goldgeschäft in der Nähe und Schmuckreparatur in der Nähe der Schillerstraße in München
Willkommen bei Juvenél Jewellery • Goldankauf München! Wenn Sie auf der Suche nach einem Goldgeschäft in meiner Nähe sind oder eine Schmuckreparatur in der Nähe der Schillerstraße benötigen, sind Sie bei uns genau richtig. Unser Geschäft befindet sich in der Schillerstraße 9, 80336 München und bietet Ihnen sowohl erstklassige Dienstleistungen rund um den Goldankauf als auch professionelle Reparaturen für Ihren Schmuck.
Goldgeschäft in meiner Nähe – Ihr zuverlässiger Partner für den Goldankauf
Suchen Sie ein vertrauenswürdiges Goldgeschäft in meiner Nähe? Bei Juvenél Jewellery kaufen wir Gold, Silber, Platin und andere Edelmetalle in allen Formen – sei es als Schmuck, Münzen oder Barren. Unser erfahrenes Team bewertet Ihr Gold transparent und fair nach den aktuellen Marktpreisen. Nach der Bewertung erhalten Sie sofort Bargeld, ohne lange Wartezeiten oder komplizierte Prozesse.
Warum sollten Sie Ihr Gold bei Juvenél Jewellery verkaufen?
Faire Preise: Wir bieten Ihnen marktgerechte und transparente Preise für Ihr Gold.
Schnelle Auszahlung: Verkaufen Sie Ihr Gold und erhalten Sie sofort Bargeld – einfach und schnell.
Sicherheit und Vertrauen: Als etabliertes Goldgeschäft in München garantieren wir eine sichere und seriöse Abwicklung.
Schmuckreparatur in der Nähe der Schillerstraße – Fachkundige Reparaturen für Ihren Schmuck
Haben Sie Schmuck, der repariert werden muss? Bei Juvenél Jewellery bieten wir Ihnen eine professionelle Schmuckreparatur in der Nähe der Schillerstraße. Unsere erfahrenen Goldschmiede kümmern sich um alles – von der Ringgrößenänderung bis hin zur Reparatur von beschädigten Ketten oder Armbändern. Wir arbeiten mit höchster Präzision, um sicherzustellen, dass Ihr Schmuckstück wieder in bestem Zustand ist.
Unsere Schmuckreparatur-Dienstleistungen umfassen unter anderem:
Reparatur von Rissen, Absplitterungen und Beschädigungen
Größenänderung von Ringen und Armbändern
Austausch und Reparatur von Steinfassungen
Reparatur von Uhren und Schmuckverschlüssen
Polieren und Restaurieren von Schmuckstücken
Warum sollten Sie Ihre Schmuckreparatur bei Juvenél Jewellery durchführen lassen?
Erfahrene Goldschmiede: Unser Team verfügt über jahrelange Erfahrung in der Reparatur und Restaurierung von Schmuckstücken.
Präzision und Qualität: Wir verwenden hochwertige Materialien und führen Reparaturen mit größter Sorgfalt und Liebe zum Detail durch.
Schnell und zuverlässig: Wir kümmern uns um Ihre Reparatur schnell, damit Sie Ihren Schmuck in kürzester Zeit wieder tragen können.
Besuchen Sie uns in der Schillerstraße
Egal, ob Sie ein Goldgeschäft in meiner Nähe suchen oder eine Schmuckreparatur in der Nähe der Schillerstraße benötigen – bei Juvenél Jewellery sind Sie in besten Händen. Unser Team steht Ihnen mit fachkundiger Beratung und professionellen Dienstleistungen zur Seite.
Kontaktieren Sie uns!
Kommen Sie vorbei in der Schillerstraße 9, 80336 München, oder rufen Sie uns an unter +49 163 0000600, um mehr über unseren Goldankauf oder unsere Schmuckreparatur-Dienste zu erfahren. Wir freuen uns darauf, Ihnen zu helfen!
2
