Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mikojan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
mikojan
5y ago
> Java and C# had object factories Object factories were competing models (plural) for creating any object. A total replacement for classes and the like, not an augmentation. Here's one such model: function createCar(spec) {
242.
▲
by
mikojan
5y ago
That's precisely the problem. It makes the enum invisible to JavaScript users.
243.
▲
by
mikojan
5y ago
As long as you are not using "const enums" JavaScript/TypeScript interop is not a real problem at all. The private keyword is obviously preferable to "#" in environments in which you are targeting older ES versions.
244.
▲
by
mikojan
5y ago
The Java crowd indeed gave us god awful classes. But before that there were countless competing models for creating objects or object factories. Obviously, JavaScript is an object oriented language, too. You cannot escape that fact if you a
245.
▲
by
mikojan
5y ago
I don't believe that'd help. Editing in Kakoune encourages and enforces a different editing style (one based on visual selection). You'd have to still learn Vim. Personally, I played https://vim-adventures.com/
246.
▲
by
mikojan
5y ago
Have been using this instead of vim for a month now. It's incredible. No messing with plugins and archaic config files. All works out of the box, including LSP integration. Highly customizable still. Extremely fast, too. I love "s
247.
▲
by
mikojan
5y ago
I have never felt the need to visually confirm something as obvious as "delete 1 word". On the other hand, you cannot do something like "delete 3 words" in kakoune. "3wd" just takes you to the third word and de
248.
▲
by
mikojan
5y ago
This is breathtakingly wrong. Performance bottlenecks are notoriously hard to fix in ReactJS. Once you've exhausted memoization, hoisting, even propagating state via message passing, you have to fight tooth and nail to rip a hot path o
249.
▲
by
mikojan
5y ago
Not OP, but in my opinion: When I am reading through the source code of somebodies personal project, it's absolutely amazing to: - see how to do X in discernible, concise, modern JavaScript - follow along significant architectural deci
250.
▲
by
mikojan
5y ago
I don't see no extra in either of these situations. I am living in an apartment complex and I wouldn't mind if someone noticed my keys in my front door, opened that door, took a look and called out for me. This cannot possibly reg
251.
▲
by
mikojan
5y ago
> ...there is a reason why React has blown Angular out of the water. - The ensuing paragraph suggests you are conflating Angular with AngularJS. Angular is build on top of proper, standard FRP and stream processing primitives. It is &quo
252.
▲
by
mikojan
5y ago
I understand modern JavaScript development is a giant leap forwards compared to JavaScript development 10 years ago. Nobody is arguing with that. Your last statement is completely wrong, though. ReactJS/hooks are not zero-cost abstract
253.
▲
by
mikojan
5y ago
You mean to tell me they reverse engineered the bluetooth communication of some obscure device when they could've just used a ballpoint pen to draw another line on that piece of paper?
254.
▲
by
mikojan
5y ago
The ReactJS community is not simplifying annoying problems. The JavaScript community did that. The ReactJS community is quite literally re(!)-implementing promises here to make them work with a purported library(!). This is insane. You shou
255.
▲
by
mikojan
5y ago
It's a glitch.
256.
▲
by
mikojan
5y ago
Components using hooks are not pure functions. The necessity(!) to wrap each and every basic JavaScript API (useEffect v. setTimeout, useLayoutEffect v. queueMicrotask, useInterval and usePromise v. using Intervals and Promises) does not at
257.
▲
by
mikojan
5y ago
Make sense. Fight filling the boredom and lack of productivity with words to complain about by filling the boredom and lack of productivity with complains about words to complain about.
258.
▲
by
mikojan
5y ago
You press Ctrl and + but okay? E: Even simpler method for more comedic effect?
259.
▲
Foot: A fast and minimalistic Wayland terminal emulator
(codeberg.org)
100 points
by
mikojan
5y ago
|
40 comments
260.
▲
by
mikojan
5y ago
Craazzyyyyy - ty!
261.
▲
by
mikojan
5y ago
99.999% of what Electron does may be achieved bundling your content into a single HTML file on your desktop. For the remaining .001% you are paying a ridiculous prize in terms of performance and space utilization. Electron does not solve a
262.
▲
by
mikojan
5y ago
> If you have four files starting with "A", one of which ends in .gz, typing "gunzip A" will suggest the .gz file. Bash does this for me as well.
263.
▲
by
mikojan
5y ago
Natural human language is taken to be the most legible at 9 - 12 words per line (in non-justified running text). Which is pretty much what you're seeing there. Plus, you're most likely not going to check this conversation in into
264.
▲
by
mikojan
5y ago
Of course you could always just do ctrl+r and cycle through and refine suggestions in bash
265.
▲
by
mikojan
5y ago
Never forget, Gates actually went to Munich in a luxurious mobile office disguised as a delivery truck to cajole that mayor.[0] [0]: https://www.golem.de/news/von-microsoft-zu-linux-und-zurueck...
266.
▲
by
mikojan
5y ago
protobuf may very well be total overkill. What you wanted to do was strongly type your configuration. What you get is a complete RPC layer. This might not even be warranted when inter-process communication is a primary concern. After all, t
267.
▲
by
mikojan
5y ago
You cannot even import native javascript functions. Looking at you, useInterval and useJoinString
268.
▲
by
mikojan
5y ago
Certainly not killing people. Which is good or bad depending on whether or not you're in possession of functioning moral capacities
269.
▲
by
mikojan
5y ago
What is the effect of rising sea levels on land masses afflicted by soil erosion in your mind?
270.
▲
by
mikojan
5y ago
Why wouldn't it work? You simply subscribe to a publisher you are valuing.
More ›