deepanchor
The only thing CQRS dictates is that a system's read models are separate from its write models.
Sanpaku Eyes
Ask HN: How do you debug your JavaScript?
I’m getting tired of using console.log all the time, so I’ve finally decided to learn how to debug frontend code the proper way.What are your favourite javascript debugging tips and tricks?
Microsoft made an approach to buy Pinterest
My ideal CSS solution which doesn't seem to exist yet:
- Be able to write plain old CSS in JS/TS directly within a React component's tags, with a JS object literal
- Automatically generate atomic classes for each CSS rule (or block of rules) and have the system reuse those rules when the same styles are used elsewhere (no rule duplication means smaller bundle sizes for SSR, plus you get the semantic clarity of using plain CSS rules)
- Compiled, with zero or near-zero runtime overhead and critical path extraction, all cacheable by the browser. I don't want a huge runtime just so that I can dynamically apply a background colour.
The thing that comes closest to this is probably something like Linaria [1], but it relies on tagged template literals instead of object literals which means I can't use autocompletion. Their API for dynamic styling also relies on HTML data attributes, which is a little clunky.
Stiches [2] is another interesting project, however adoption doesn't seem very high and it seems to create superfluous wrapper nodes which can cause performance degradation in large VDOM trees. There's also no mechanism to colocate styles within a component's tags.
CSS Blocks [3] looks very promising also, but it doesn't allow co-location of styles with React components (you need to make a separate CSS file for each component).
[1] https://github.com/callstack/linaria
Compiled – A build-time atomic CSS-in-JS library by Atlassian
Stitches – A fully-featured styling library with near-zero runtime
SiriDB: A highly-scalable, robust and super fast time series database
Morpher: Trade anything with zero fees and infinite liquidity
This is probably just a matter of opinion/preference, but I feel like an editor should simply be an editor -and IMO there is no better editor for turning thoughts into code with minimal friction than VIM/Neovim. The OS functions perfectly fine as an IDE for everything else.
https://www.viki.com/explore?country=china
It has a huge database of modern Chinese TV shows (ranging from ancient dramas to modern CSI-esque crime).
But the greatest part about it is that it has a "learn mode" that provides instant translations when you hover over characters you don't know, and pauses the show automatically [1].
[1]https://support.viki.com/hc/en-us/articles/231829048
Highly recommended.
Not sure if you meant for this to be funny, but I laughed out loud at this because i do the exact same thing. I too can fall asleep within two minutes anytime, anywhere, while "working" on my "novel".
The trick is to never go to sleep with the actual intent of going to sleep. You go to sleep with the mentality of finally, some time for myself to just lie here and work on this project in my head. I work on fleshing out my little fantasy/sci-fi world or solving problems related to my pet programming project. I drift off seamlessly within minutes.
Attempting too hard to sleep is self-defeating; ironically, the stress of actively trying to sleep will prevent you from doing just that.
Nakama: Distributed server for social and realtime games and apps
97...98...99...00
I tried looking into other distros (mint, fedora, ubuntu) but always found myself missing the awesome power of the Aur. So Antergos is the perfect compromise. It's easy to install (no manual configuration required) and gives me access to the Aur.
Announcing RethinkDB 2.3.6: the first release under community governance
I'd really like to see more examples of these types of codebases but can't seem to find examples anywhere.