M.Potomin retweeted
Being a software engineer is:
50% designing
40% debugging
8% documenting
2% coding
M.Potomin retweeted
In longer switch statements, I occasionally do:
switch (value) {
case 1: {
···
break;
}
case 2: {
···
break;
}
}
Benefit: each case can declare its own variables, without having to worry about name clashes.
M.Potomin retweeted
groupBy, but for plain objects in TypeScript
M.Potomin retweeted
Type predicates are just an annotation and aren't actually checked. Meaning you can do some pretty wacky and unsafe things. Is there an technical constraint preventing TS from checking these?
M.Potomin retweeted
At the rate I am now convinced I have been breathing all wrong teapawt.org/OoneyAbraymen/status/1…
M.Potomin retweeted
Software development productivity has little correlation to how fast you can produce code.
It's closer related to the total cost of ownership of that code.
Some code, you can write in one hour, and then proceed to waste days or months maintaining and troubleshooting.
M.Potomin retweeted
🤩Just published📜 CSS selectors cheatsheet & 🕹game.
Feel free to print it out and stick it on the wall 🎑.
Thanks, @iamryanyu for making the game. 🙏
👇&🕹: frontend30.com/css-selectors…
📖: medium.com/p/9593bc204e3f
👩🏻💻 Codepen
codepen.io/nana8/pen/aXQgoj?…
#css #cssselectors @CodePen – at Sydney, New South Wales
M.Potomin retweeted
I wish more people would appreciate the power of copy&paste. DRY too often leads to plenty of "reusable helpers". But software grows and what seemed reusable in the beginning ends up with lots of branches inside. Copy&paste until you find the proper abstraction is a good default. – at Ottobrunn, Deutschland
M.Potomin retweeted
Should I use SSR? What about Rehydration?
Where should we implement logic and rendering in our applications?
Answers:
developers.google.com/web/up…
M.Potomin retweeted
It's completely FINE to learn "fundamentals" as you go. Everyone that disagrees with me is just gatekeeping. – at Sunnyvale, CA
M.Potomin retweeted
A Reddit clone combining static frontend + serverless backend with MongoDB ✅
asperitas.now.sh/
github.com/d11z/asperitas
M.Potomin retweeted
I absolutely love pair programming.
Not because I learn what someone else is coding. I can do that from a review.
I learn their keyboard shortcuts and extensions.
You learn differ ways to troubleshoot and techniques on how they are efficient.
M.Potomin retweeted
You can tell so much about a dev by looking at what kind of music they code to 🕵️
M.Potomin retweeted
To simulate enums in JS, you can use an object. But I often prefer to use consts.
To me, consts read better, are easier to use, and I don't have to use hungarian notation to give the enum object a unique name.
Here's an example of both patterns.
#javascript
M.Potomin retweeted
окей, я настолько устала от лезущего из всех щелей стереотипа про «русское кино — говно», что здесь будет 📀тред📀
1 лайк — 1 крутой российский (и иногда снгшный) фильм (или сериал)
M.Potomin retweeted
Since y'all eagerly awaiting hooks anyway, here is a new blog as distraction:
"UI as an afterthought"
Or: how will React context and hooks change the game of state management?
michel.codes/blogs/ui-as-an-…
#reactjs #MobX
































