Twitter | Pretraživanje | |
Henrik Joreteg
PWA developer, consultant, author, and immigrant. Architected Starbucks' PWA. Owner: My latest book:
21.047
Tweetovi
467
Pratim
18.307
Osobe koje vas prate
Tweetovi
Henrik Joreteg 3. velj
Odgovor korisniku/ci @samccone @elektronik2k5
Also, I've recently started thinking reducers, at least in some cases, may be better implemented with the help of simple finite state machines.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 3. velj
Odgovor korisniku/ci @samccone @elektronik2k5
It's basically too low level for most out of the box.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 3. velj
Odgovor korisniku/ci @samccone @elektronik2k5
And... I mean... I've done some quite complex things with it. The big gap is there isn't a built in, efficient way to read specific information from it. In addition, manual state twiddling gets a bit laborious unless you're very diligent (or build helpers).
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 3. velj
Odgovor korisniku/ci @samccone @elektronik2k5
It's all in how you use it, I think. I've had a fair bit of experience with it... my summations are all here (it's not just a blog post, though):
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg proslijedio/la je tweet
John Arundel 20. sij
Junior dev: My code is simple and easy to understand. Mid-level dev: My code is subtle, clever, innovative, expressive, hyper-optimized, and ingenious. Senior dev: My code is simple and easy to understand.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 29. sij
Odgovor korisniku/ci @jscheel
I'm just going to leave this here:
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 29. sij
Odgovor korisniku/ci @HenrikJoreteg
The "const" in the first case is not scoped to just that case statement. So the first const is already available in the second case. Solutions: 1. Add curly statements to case to create a block scope (lint rules exist for this). 2. Don't use switch (aka, the Python solution 😅)
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 29. sij
For the curious, this was in part to provide data for a conversation on a project about switch statements versus multiple "if" statements. Turns out variable scoping in case statements is not generally well understood. Only half saw an error. IMO "switch" is a trap.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 29. sij
Odgovor korisniku/ci @mvindahl
Always spaces... always 😁
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 28. sij
I'm trying not to reply yet so that people immediately see the reply and therefore the answer... 😅
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 28. sij
Odgovor korisniku/ci @remko
It's quite possible this was addressed in redux-bundler already. I seem to recall making this change, but can look later. The book may well need to be updated.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 28. sij
The following code is... switch (type) { case SELECTED: const current = 'a' // ... other code then return case UN_SELECTED: const current = 'b' // ... other code then return }
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 24. sij
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 24. sij
Odgovor korisniku/ci @davidbrunelle @ZackArgyle
Speaking of Starbucks technology... Can we get long sessions on the PWA yet 😅 The password only thing is ok but kind of annoying.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 22. sij
Odgovor korisniku/ci @kentcdodds
Hmm... yeah
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 22. sij
I liked the Twitter PWA better without all these promoted tweets 😅
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg proslijedio/la je tweet
Sean Grove 21. sij
Using node/babel/webpack/ts/react is like playing chess: Within 13 steps, you're debugging a unique error no one else in the universe has ever encounteed.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg proslijedio/la je tweet
Eric Lawrence 🎻 19. sij
Odgovor korisniku/ci @JackMarchetti
Until around eight years ago I did, which was around the time y'all shoulda stopped using it.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg proslijedio/la je tweet
Eric Lawrence 🎻 19. sij
I don't know who needs to hear this, but... don't use Internet Explorer to browse the web.
Reply Retweet Označi sa "sviđa mi se"
Henrik Joreteg 19. sij
Odgovor korisniku/ci @mhamann @TweetsOfSumit i 2 ostali
What are you guys using this for, if you don't mind me asking?
Reply Retweet Označi sa "sviđa mi se"