Recent submissions

Comment · 5 years ago
I'm not familiar with MobX, but I am a big fan of Jotai (https://jotai.pmnd.rs/). It is a spiritual offshoot of Facebook's experimental(?) Recoil library.

It is a bottom up approach to state. Everything is modeled as atoms. Atoms can be defined in any module and are accessed by simply exporting/importing from/to the module. Simply call the useAtom hook and you're now using that state atom.

Under the covers it is scoped via a top-level React context, I believe.

Atom derivation, read/write, async, it's all there. It also hooks into a lot of other popular state libs like redux, XState, Zustand and many others.

I much prefer it to Redux because there is zero boilerplate and extremely flexible. It can be easy to hang yourself with all the extra rope it gives you if you aren't careful though.

Comment · 5 years ago
It looks nice and I can see why someone used to VS Code's GitLens would like to bring this over, it seems really seamless.

Personally, as a long-time magit user, I'm not sure I see any reason to make the switch. Can anyone more familiar with GitLens (possibly the author) provide any commentary on its differences with magit's blame functionality?

AFAICT, the only difference seems to be that the commits simply show on line selection instead of all at once, but there may be more going on here than I am noticing at first glance.

Comment · 5 years ago
Personally, I agree that base Emacs is not ideal for most users. Ultra-customizers will feel out home, but the typical dev will not.

On the other hand, I am a huge proponent of Spacemacs. It's technically just a custom Emacs config, but it is a significant enough departure from the base functionality that it is managed as its own project.

It brings Vim keybindings (as well as an improved package management system and a bunch of other stuff) to Emacs in a very intuitive and seamless way. That way you get access to the very rich Emacs ecosystem, as well as the endless potential for customization, all with the, IMO, superior text editing experience of Vim.

I've tried VSCode, and it doesn't hold a candle to Spacemacs IMO.

I do occasionally envy some of the goodies the VSCode ecosystem benefits from, however. In particular the new Github Codespaces, for example. Still not enough to make me leave Spacemacs though.

Comment · 5 years ago
I agree that TypeScript leaves something to be desired, but it is far and away a better alternative to pure JS. TS may not be total, but it comes close enough to get the job done for the dynamic environment it's meant to target assuming operators competent enough to lean on what it offers.

I should also note, I've attempted OOP in TS and it wasn't pretty. It is much more suited to a functional style IME, although I will concede I have seen some open source projects that use it in a Java-esque OOP style presumably to good effect. Personally it wasn't my cup of tea.

Comment · 5 years ago
In practice, the latter scenario seems rampant, at least IME.
Comment · 5 years ago
Curious to know what kind of marketing efforts you took for these if any? Any marketing budget to speak of?

They look like really well done apps, congrats on (kind of) exiting the rat race!

Comment · 5 years ago
I've used that kind of information throughout my life as a marker to help me determine when it's time for me to move on to the next "stage" of development of my skill. It is similar in spirit to the quote (paraphrasing), "If you're the smartest person in the room, find another room", except substitute "smartest" with "highest skilled" perhaps.

Essentially, I see it as a meta-indicator, a way of making decisions in situations where I don't have all of the information.

Another way to look at it would be through the lens of game theory. Game theory is absolutely a field of some consequence, and it's all about relative positioning of agents in a system and their likely intentions after factoring in the likely intentions of their peers.

In a word, you might describe this type of analysis as simply, "wisdom." I find it to be of particular value in entrepreneurship.

Comment · 6 years ago
I've always enjoyed the oatmeal's comics. What is your reason for referring to him as an idiot?
Comment · 6 years ago
I hadn't considered the transparent moderation logs before but that's a great idea, so props to lobste.rs for that. Not sure that I've seen Aether before either, I'll have to check it out sometime.
Comment · 6 years ago
Well that would be a start but I think it's pretty obvious you would want to base subscribers' voting power on duration of subscription, community involvement/contribution, their standing in the community and so on. This way you would avoid other communities subbing solely to influence the outcome of an election.

I think it would be pretty neat to include metadata in the calculation of the voting power metric as well. Such as how each subscriber votes in relation to other subscribers and assign a higher score to those who vote inline with the community. The goal being to optimize for those subscribers who embody the spirit of the community. Of course that brings up issues of echo chambers but other kinds of metadata could be factored in to offset that too. I would have to think on it for a while to come up with something I felt was as meritocratic as possible.

Comment · 6 years ago
I have long held the position that the role of subreddit moderator should be elected by their respective communities rather than handed over to the first person to grab the namespace. There's no reason this position couldn't be determined in real time either. If a moderator does something against the wishes of the majority of the subreddit members it should be possible for the community to immediately replace the moderator. Blockchain's propensity for governance makes all of this feasible but I highly doubt reddit will ever implement anything of the sort. Political and monetary incentives are already too deeply entrenched from the top down to ever allow the power balances to shift to something truly meritocratic.
Comment · 6 years ago
Would highly recommend Tailwind if you don't like the boxed-in nature of most frameworks. Tailwind is more of a design system than a CSS framework. It simply gives you guidance on establishing proper constraints of your design system and then a nice set of utilities to get started with. There is no "can't be handled" scenario in Tailwind.

EDIT: And the book by the same author, Refactoring UI, is also a fantastic primer on the philosophy behind Tailwind.

Comment · 6 years ago
With maxed out overclocking on all cores, I only needed six.
Comment · 6 years ago
I can attest to this method. Similarly to the GP, at some point in my early teens while swimming at a small lake, I decided to try swimming across the lake (more of a cove) and back. I was never a great swimmer but I was confident I could make it because I knew I could just flip over and leisurely kick if I got tired. Sure enough, my arms started to burn about halfway across, so I just flipped over and eased the rest of the way.

It's not nearly as fast as "proper" swimming but I'm sure I could keep it up approximately as long as I could walk. Maybe even longer. It makes for a great option in dangerous situations, and is likely a good fundamental technique to teach anyone just learning.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton