Daniel Broder πŸ‡¦πŸ‡· (@dabroder) profile picture

Husband, father and JS software developer. πŸ§‰

Argentina
Joined March 2016
Photo by Daniel Broder πŸ‡¦πŸ‡· (@dabroder)
Daniel Broder πŸ‡¦πŸ‡· retweeted
Este artΓ­culo permite que cualquiera, con conocimientos tΓ©cnicos o no, entienda cΓ³mo funcionan las redes. QuΓ© pasa exactamente cuando hacΓ©is clic en un enlace. Tiene un currazo impresionante. fazamhd.com/mental-models/ne…
3
20
1
172
9,149
Do you remember when you joined X? I do! #MyXAnniversary
17
Daniel Broder πŸ‡¦πŸ‡· retweeted
40 Functional Programming concepts to learn. Bookmark for later. 1. Algebraic Data Types (ADTs) 2. Pattern-matching 3. Higher-Order Functions (HOFs) 4. Closures 5. Immutability 6. Totality 7. Streams 8. Lazy streams 9. Stream fusion 10. Deforestation 11. Functor 12. Applicative 13. Monad 14. Parser Combinators 15. Applicative Validation 16. Semigroup 17. Monoid 18. Parametric Polymorphism vs Ad-hoc Polymorphism 19. Type Inference 20. Endomorphism 21. Isomorphism 22. Contravariant 23. Profunctor 24. Lens 25. Prism 26. fold 27. traverse 28. Recursion Schemes 29. Tagless Final 30. Recursion 31. Free Monad 32. Hash-Consing 33. Lambda Calculus 34. De Bruijn index 35. Expression problem 36. Functional Core, Imperative Shell 37. Smart Constructor 38. Make Illegal States Unrepresentative 39. Errors as values 40. Parse, Don't Validate
50
189
10
1,589
179,904
Daniel Broder πŸ‡¦πŸ‡· retweeted
27
149
36
1,342
245,454
Daniel Broder πŸ‡¦πŸ‡· retweeted
On this day in 2004, the first version of Ubuntu was released.
52
208
31
1,565
49,979
Bun, bun, bun.
Bun v1.2.3 - Fixes 128 bugs (addressing 349 πŸ‘) - Incredibly fast frontend dev server with hot reloading - Builtin routes in Bun.serve - Many Bun.SQL fixes - Wasm gets faster - Node compatibility improvements for napi & Buffer Thanks to 23 contributors! bun.sh/blog/release-notes/bu…
1
81
Daniel Broder πŸ‡¦πŸ‡· retweeted
In the next version of Bun Bun.serve() gets a simple builtin router. It supports params.
65
47
20
1,220
91,625
Daniel Broder πŸ‡¦πŸ‡· retweeted
Replying to @EffectTS_
@EffectTS_ Beginners Complete Getting Started course is out now πŸš€ From zero to building complete apps with effect Type-safe, maintainable, testable apps, and it's just typescript πŸ’― Here is what you'll learn πŸ‘‡πŸ§΅ typeonce.dev/course/effect-b…
7
40
6
206
24,450
Daniel Broder πŸ‡¦πŸ‡· retweeted
🏁 BEGIN EXCLUSIVE appreciation thread 🏁 SQLite transactions are lazy by default -- they only take a write lock when necessary. If your transactions start readonly and then upgrade to writes: ``` BEGIN SELECT ... INSERT ... COMMIT ``` , it may be better to just declare it a write transaction from the start: ``` BEGIN EXCLUSIVE SELECT ... INSERT ... COMMIT ``` Otherwise you risk the following: 1. Transaction A takes a read lock 2. Transaction B takes a read lock 3. Transaction A tries to upgrade to a write lock, but can't, B holds a read lock 4. Transaction B tries to upgrade to a write lock, but can't, A holds a read lock 5. Both transactions time out. No profit If you expect the contention to be high -- lots of transactions trying to write at the same time -- BEGIN EXCLUSIVE is your friend. With BEGIN EXCLUSIVE, the flow is: 1. Transaction A takes a write lock first 2. Transaction A commits, transaction B takes its write lock 3. Transaction B commits What about WAL mode (write-ahead log journaling)? Well, it gets subtly worse. WAL journaling mode gives you a great concurrency boost, because instead of allowing one writer or N readers, it allows one writer and N readers to execute concurrently. There's a consistency price here though. WAL guarantees you snapshot isolation, which means that each transaction will see some consistent state of the database, and will only commit if there isn't going to be any conflict. In particular, if we were to run transactions A and B in WAL mode, it can end as follows: 1. Transaction A takes a read lock 2. Transaction B takes a read lock 3. Transaction A upgrades to write lock 4. Transaction A writes some data 5. Transaction A releases the write lock 6. Transaction B upgrades to write lock 7. Transaction B tries to write data and gets a SQLITE_BUSY_SNAPSHOT error, because transaction A already changed the database, so there's a potential conflict. That's optimistic concurrency -- we assume everything is going to be alright and proceed, and worst case we get an error and need to roll back. Again, BEGIN EXCLUSIVE lets you opt-out of optimistic concurrency, if you know your workload has high contention. There's also another flavor of transactions in SQLite - BEGIN IMMEDIATE, almost identical to EXCLUSIVE, and in fact totally identical in WAL mode. More details in official docs: sqlite.org/lang_transaction.…
4
1
31
4,766
Daniel Broder πŸ‡¦πŸ‡· retweeted
Reading is faster than listening. Doing is faster than watching.
57
3,117
161
20,458
Daniel Broder πŸ‡¦πŸ‡· retweeted
can you fix my printer?
Kill a developer in 5 words or less πŸ”ͺ
13
5
126
11,197
Daniel Broder πŸ‡¦πŸ‡· retweeted
If you go to chrome://settings/adPrivacy you can turn off the spyware that got inserted into the latest version of Chrome.
358
2,592
231
16,022
3,002,560
Daniel Broder πŸ‡¦πŸ‡· retweeted
Introducing Bun v1.0 - a fast, all-in-one toolkit for running, building, and testing JavaScript and TypeScript bun.sh/blog/bun-v1.0
174
1,146
307
5,891
969,973
Daniel Broder πŸ‡¦πŸ‡· retweeted
β–“β–“β–“β–“β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 33%
53
1,236
220
5,730
581,387
Daniel Broder πŸ‡¦πŸ‡· retweeted
The birth of JavaScript in 4 slides:
6
317
34
649