-
23 votes
-
You don't need Anubis
33 votes -
Playing tricks with web browser tabs
32 votes -
The phases of Observable so far, up to Observable Notebooks 2.0
3 votes -
Datastar: web framework for the future?
14 votes -
Visualizing Packrat Parsing
7 votes -
Framework-mania is running wild!
9 votes -
Never have outdated footer dates again
57 votes -
Float Self-Tagging
5 votes -
Building a robust frontend using progressive enhancement
9 votes -
The monospace web
41 votes -
Crafting a 13KB Game: The Story of Space Huggers
29 votes -
Plain Vanilla — An explainer for doing web development without tools or frameworks — just HTML, CSS, and JavaScript
35 votes -
Cables — interactive visuals, made from cable salad
11 votes -
PWA Notifications
Building my first Progressive Web App, it's new territory for me but I've made it installable already. I'm trying to cover a fairly simple use case, which is displaying a badge count based on the...
Building my first Progressive Web App, it's new territory for me but I've made it installable already.
I'm trying to cover a fairly simple use case, which is displaying a badge count based on the number of unread notifications. Intuition tells me that I'd just ping an endpoint on the server at a 5 minute interval, but I'm in new territory so I thought I'd open up the conversation to see if there's any gotchas to be aware of.
I'd like to see if there's anyone out there on Tildes who has experience in this domain - is the service-worker always on, or is it only active once the app has been open and then backgrounded? How do I know if the app is currently open? I would like the app to query for notifications more frequently when it's opened, and only intermittently when it's closed. Any tips?
8 votes -
City In A Bottle – A 256 Byte Raycasting System
27 votes -
Flying planes with JavaScript
8 votes -
The await event horizon in Javascript
10 votes -
React: Some comments from a beginner
New job. I've been wanting to learn something new for a while, so I took a project where a lot of React is done. I'm learning it from scratch while I work with React. I have some comments about...
New job. I've been wanting to learn something new for a while, so I took a project where a lot of React is done. I'm learning it from scratch while I work with React.
I have some comments about it.
- React makes front end work a lot more like programming -- I like that!
- Javascript has changed a lot, and for the better, since I last used it over a decade ago.
- The React-Redux tool kit is the bomb. It should be integrated/absorbed into React. I can't see any reason not to use it, even for small applications as it is less wordy wherever you use it.
- The updating of state values should be more automatic, especially for flag variables not tied to GUI components. It is the major source of hassles with React
- Udemy React videos. My company makes them available free of charge to employees. I've sampled videos from a number of courses. I'm not a fan of the instructors showing you how to do things in older, less efficient ways first in a learning/demo project, the ERASING that code to do it a better way. The should include copies of the project at each stage if they do that. I finally figured out that the best way to take notes I can use later is to comment out the old code and put the new more efficient next stage stuff on top.
- React tests really need to improve. They are often more time consuming than the code itself. The tests have forced me to change my code or do needless testing to get the tests to pass. I had one situation where no matter what I did React test said I didn't cover the code until I broke an else clause off into it's one if clause. Blech.
All in all I've been enjoying learning React. It is neat new ( to me ) thing.
I feel sad that I will likely forget it all when I go back to my specialty language.
16 votes -
Fine-grained reactive performance
2 votes -
Interesting ideas in Observable Framework
6 votes