DailyJS
medium.com/dailyjs · Group blog · on HN since 2017
DailyJS is a Medium publication with JavaScript tutorials and explainers on language quirks, Node.js, V8 internals, and front-end frameworks.
What HN saysHN commenters link it for explainers such as the one on JavaScript's odd type system and for its RealWorld front-end framework comparison.
62HN people shared it
16linked it in comments
69stories submitted
937story points
1 year agolast shared
2017people per year2026
Most-shared posts
- 1A RealWorld Comparison of Front-End Frameworks 20207 people · 12 points · first shared 2020 · 1 comments on HN
- 2What people in tech had to say about JavaScript when it debuted in 1995 (2017)6 people · 153 points · first shared 2017 · 235 comments on HN
- 3Put your Electron app on a diet with Electrino6 people · 36 points · first shared 2017 · 12 comments on HN
- 4An explanation of JavaScript’s weird type system4 people · 11 points · first shared 2018 · discussion on HN
- 5Finally we have Threads in Node 10.5.0: a practical intro3 people · 9 points · first shared 2018 · 1 comments on HN
- 6I never understood JavaScript closures3 people · 4 points · first shared 2017 · discussion on HN
- 7Understanding V8’s Bytecode2 people · 116 points · first shared 2017 · 24 comments on HN
- 8Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript2 people · 114 points · first shared 2019 · 150 comments on HN
- 9Gentle introduction into compilers. Part 1: Lexical analysis and Scanner2 people · 8 points · first shared 2017 · discussion on HN
- 10Refactoring an old and broken library to using async/await with TDD2 people · 7 points · first shared 2017 · discussion on HN
- 11Analyzing React’s Source Code for Type Mismatch Operations2 people · 7 points · first shared 2017 · discussion on HN
- 1211 mistakes I’ve made during React Native / Redux app development2 people · 3 points · first shared 2017 · discussion on HN
- 13Optimizing React Apps in Practice2 people · 3 points · first shared 2017 · discussion on HN
- 14React’s new Context API2 people · 3 points · first shared 2018 · discussion on HN
- 15The how and why on React’s usage of linked list in Fiber2 people · 3 points · first shared 2018 · discussion on HN
What HN people wrote when they linked it
KronisLV · 2024-08-12
I enjoyed slightly more fine grained comparisons, like: https://youmightnotneedjquery.com/ (this hasn't been updated in a little bit, it seems)
Either way, I think you're right, just use whatever works for you.
I'd admittedly love to see a larger scale comparison of going vanilla JS vs recreating the same functionality in jQuery/Vue/Angular/React, for a real world apps and what the takeaways are from that, say, 50'000 SLoC instead of 100, that'd probably be more useful, but also is way more unlikely. Nobody will put in that much effort just for the sake of a comparison and so a lot will be up to opinion and comparing vaguely similar projects.
Closest I've seen was https://medium.com/dailyjs/a-realworld-comparison-of-front-end-framewo… but still a fairly simplistic example, given the large amount of options that were compared. Still very cool, less about opinions and more about giving you metrics that you can weigh in yourself! Here's the repo: https://github.com/gothinkster/realworld
achikin · 2021-05-09
> I can't memorize all thousands of functions to manipulate lists and hashs in clojure (get-in, map-vals, conj, dissoc, select-keys, sorted-map-by, do you know what all those do?) which do a lot, I felt clojure was dense, the opposite of little cognitive load
In fact you need to memorize 10-20 functions to be productive in Clojure. Many of them are common across the other FP languages and some FP libraries for imperative languages and most of them cover common patterns for vector/map manipulation. Yes, the names could be confusing at first but there is good reasoning and logic behind them so it’s easy to learn.
> because in fact I love how productive I am with Elm
This is interesting because according to Real World App benchmarks Elm implementation has ~4x more lines of code then Clojurescript one [1]. How could it be more productive to write 4x code for the same result?
[1] https://medium.com/dailyjs/a-realworld-comparison-of-front-end-framewo…
ljm · 2019-05-19
I love how many people there are in this thread that somehow avoided the jQuery hell a lot of us battled against.
I was involved in that, mostly from when my paycheque involved throwing together websites in Drupal 6. Holding that architecture together was trouble enough without having to also care about the frontend, we were only scripting it. The idea of the HTML being considered an 'app' was utterly alien to me and my colleagues at that time.
I fondly remember the short period of time where we had post after post attempting to explain what a closure is, because for most of the authors back then the concept of a function pulling outside variables into its scope was utterly alien to us. Even now this practical meme persists[0].
Ten years later and I find closures more intuitive than half the stuff we've concocted in OOP land.
More than that, jQuery was a means to an end and to shove low-effort animation and UI into an app to make it look snazzy and 'Web 2.0' like (glass effect banners, drop shadows and all). If it wasn't jQuery it was script.aculo.us.
Then we got Backbone and Coffeescript at around the same time, by which time I was a Ruby dev. Backbone contributed to a fundamental shift in how we build a frontend, and we had Knockout, Sencha, ExtJS, etc. following along. And then the concept of 'comet' (keeping an HTTP connection alive for long polling) and MeteorJS.
The impact of React and its concept of the VDOM has been phenomenal. It may be overhead as the Svelte…
glkindlmann · 2025-05-28
This was an informative (for me) explainer for what's happening in that video https://medium.com/dailyjs/the-why-behind-the-wat-an-explanation-of-ja…
beefman · 2023-09-15
Do you have a RealWorld implementation?
https://codebase.show/projects/realworld
https://medium.com/dailyjs/a-realworld-comparison-of-front-end-framewo…
pier25 · 2022-09-20
> The two-way data binding in Svelte saves ~4 lines of reusable hook function
Based on the RealWorld projects, Svelte saves you around 50% in loc vs React.
https://medium.com/dailyjs/a-realworld-comparison-of-front-end-framewo…
galaxyLogic · 2020-12-10
Right. Also each Electron app "comes with a copy of two large software frameworks, Node.js and Chromium"
( https://medium.com/dailyjs/put-your-electron-app-on-a-diet-with-electr… )
Whereas if you build starting from Node.js (or Deno I assume) you can skip the Chromium part. Instead of packaging Chromium with your app you assume that users have a browser and can use that to talk to your app.
The benefit of using Node.js is you don't have to use a different language for the backend. It helps.
BTW. "Electrino" in the linked-to article seems interesting too.
carlmungz · 2018-12-21
Study the React source code and implement your own mini-version. It's a great way to deepen framework specific knowledge (if that's what you are after) and also learning more about the language used to create the framework.
Start with these articles:
https://medium.com/react-in-depth/inside-fiber-in-depth-overview-of-th…
https://medium.com/dailyjs/the-how-and-why-on-reacts-usage-of-linked-l…
https://github.com/acdlite/react-fiber-architecture
https://www.youtube.com/watch?v=ZCuYPiUIONs
https://github.com/facebook/react/issues/7942#issue-182373497
WrtCdEvrydy · 2018-05-02
Consider Electrino (https://medium.com/dailyjs/put-your-electron-app-on-a-diet-with-electr…
pavlov · 2018-04-16
Yes, that's essentially what happens. And it's a huge waste if you have 20 Electron apps running. Each ships with its own copy of Chromium which is as large as an operating system.
I created a proof-of-concept called Electrino that uses the platform native libraries to cut down on app size:
https://medium.com/dailyjs/put-your-electron-app-on-a-diet-with-electr…
Unfortunately I haven't had the time to work on Electrino due to family, etc. — I wish I did because the need is clearly there.
EGreg · 2018-02-26
I get your point about precompilers. LESS, SASS, JSX and so on. But that's only one thing, my main point was "don't put executable code into your HTML".
I would say, btw, that a Template Engine is what you need, such as Handlebars. They compile stuff too. What is wrong with escaping? That is what you do when you dynamically interpolate stuff.
Of course interpolating stuff where it doesn't belong can lead to this:
https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactj…
onion2k · 2018-01-09
Link goes to the wrong article. Should be https://medium.com/dailyjs/how-to-implement-material-design-motion-wit…
finchisko · 2017-12-07
I'm using only Vysor and Postman Chrome Apps. So I can probably switch to their Electron variants.
But have mixed feeling about Chrome Apps discontinued.
On one hand it's good as Chrome Apps were tied just to Chrome/ChromeOS, while web apps should be platform agnostic. On other hand, Chrome apps were much smaller than Electron apps, as Election runtime has not to be included with every app (Chrome was the shared runtime). There is about 2 orders of magnitude size difference (megabytes vs. hundreds of MBs).
Wish we have system level support for Electron apps, so not every single one has to bundle Electron libraries separately.
Edit: There is already project that is targeting that. https://medium.com/dailyjs/put-your-electron-app-on-a-diet-with-electr…
fzaninotto · 2017-04-19
Unfortunately, this package hasn't been updated for a long time, which makes is almost useless today. For instance, it doesn't know how to track functional components - that's really a pity.
For alternative re-rendering troubleshooting, read https://medium.com/dailyjs/react-is-slow-react-is-fast-optimizing-reac…
Kuinox · 2020-08-25
""On mobile, using menu to search in browser menus" -> This is not a sentence. " -> Sorry, I meant using the browser search feature by invoking it from the contextual menu of your browser, which is the only way to spawn the search toolbar on mobile.
" but the reality is that i HAVE to implement search because it is hitting on 730000 per year records;" -> True, there should be a search feature with a backend API.
"Again, you are too happy about your opinion that you spite it out like truth without even understanding specs."
Yes I want too far, your use case does require extra logic, because it's not good to send that much data to the user.
I'm not pushing a workflow, im not a front end dev, but i do maintain frontend apps sometimes, i'm simply angry at React, because it cause pain to me as an user.
It's noticably slower (https://medium.com/dailyjs/a-realworld-comparison-of-front-end-framewo…
The virtual list may be required for your use case, but as a user, I often met virtual list:
- Used for less than 100 elements
- ctrl f is not hooked on the 'webapp search feature'
- the 'webapp search feature' is noticably slower than the browser.
Also, here some reading, from a framework I don't use, about the virtual dom:
https://svelte.dev/blog/virtual-dom-is-pure-overhead
Now, not as an user, but as a software engineer, my soul cry when I see the architecture principle of such a framework fixed with a workaround.
willow_sp · 2018-03-20
Shameless Plug :)
I wrote recently a series of articles comparing most of those providers and explaining how to use them with JavaScript:
- Amazon S3: https://medium.com/@javidgon/amazon-s3-pros-cons-and-how-to-use-it-wit…
- Google Cloud Storage: https://medium.com/@javidgon/google-cloud-storage-pros-cons-and-how-to…
- Microsoft Azure Blob Storage: https://medium.com/@javidgon/microsoft-azure-blob-storage-pros-cons-an…
- Backblaze B2: https://itnext.io/backblaze-b2-pros-cons-and-how-to-use-it-with-javasc…
- DigitalOcean Spaces: https://medium.com/dailyjs/digital-ocean-spaces-pros-cons-and-how-to-u…
- Wasabi Hot Storage: https://medium.com/@javidgon/wasabi-pros-cons-and-how-to-use-with-java…