HackerLangs
TopNewTrendsCommentsPastAskShowJobs

mike_hock

2,864 karmajoined 11 ปีที่แล้ว

comments

mike_hock
·7 ชั่วโมงที่ผ่านมา·discuss
> good luck editing a photo with CLI tools

Or good luck editing text with CLI tools, for that matter.

Obviously, those need an interactive UI.

> to your point i think there is a lot of merit to having CLI-first development, where if it can be done in a CLI then do it in a CLI. if a GUI is to be built as an assistance tool, great, but let the actions map to commands that could be saved and re-run

And this is probably why CLIs suck less in practice because the development effort isn't diluted by building multiple frontends.
mike_hock
·9 ชั่วโมงที่ผ่านมา·discuss
> It would be funny if it wasn't so sad.

Well it has been replaced. We don't need anything now.
mike_hock
·10 ชั่วโมงที่ผ่านมา·discuss
OK, and why can't the full assembly, once it's back in session, just take another vote to see if the majority actually approves?
mike_hock
·10 ชั่วโมงที่ผ่านมา·discuss
I completely agree that the author is right and the strawman is wrong.

For example. The strawman criticizes GUI apps because he cannot navigate them with the keyboard alone. Keyboard-navigated TUIs are the worst type of UI.

CLI > GUI > TUI.

I don't like interactive tools because they're not scriptable. I don't care about keyboard vs mouse per se.

I don't like having to use different tools for the same job depending on if it's local or over SSH, so I prefer non-GUI tools in general. I want to have the same workflow for checking the processes running on a server and on a desktop. So htop it is, even though it's a TUI.

In my experience, actual GUI and TUI applications tend to suck compared to CLI tools. Tend to. The strawman seems to think that somehow this makes that whole class of UI inherently bad, so once again, I couldn't agree more that he's wrong. Then again, I care about the actual experience, not about whether it's inherent or incidental.
mike_hock
·5 วันที่ผ่านมา·discuss
Zero-Copy in Go: Why magic is an antipattern, and: performance is observable behavior.
mike_hock
·6 วันที่ผ่านมา·discuss
Probably by design.

> This book offers a one semester introduction [...] enabling the reader to build a simple compiler that accepts a *C-like language*
mike_hock
·6 วันที่ผ่านมา·discuss
> But sometimes you must act on exceptional situations, recover, take alternative route, provide default

And then the Rye version is presumably just as verbose.

> or translate exception from lower level one to a higher level one

This is the actual flaw in exception-based languages. Adding context should be much more convenient.
mike_hock
·6 วันที่ผ่านมา·discuss
> Virtual vs static polymorphism

> std::visit over std::variant<A, B, C> is lowered to a switch over the active alternative.

> In this case, layout is probably doing more work than the dispatch mechanism itself.

Very likely because last time I checked visit lowers to a virtual call.
mike_hock
·6 วันที่ผ่านมา·discuss
Yeah, or just let the exceptions bubble up and the boilerplate goes away.
mike_hock
·6 วันที่ผ่านมา·discuss
Got any burning questions today?
mike_hock
·6 วันที่ผ่านมา·discuss
Revs the coal-rolling truck's engine. "Once and for all."

"But ..."

Revs the engine again. "ONCE AND FOR ALL!"
mike_hock
·6 วันที่ผ่านมา·discuss
Tragedy of the commons.
mike_hock
·6 วันที่ผ่านมา·discuss
Buy aircon stocks now!
mike_hock
·6 วันที่ผ่านมา·discuss
Climate change itself is not gonna endanger humans as a species, but secondary effects might. Such as wars resulting from dramatic shifts in the value of territories and wars over resources.
mike_hock
·6 วันที่ผ่านมา·discuss
Brutal bugs for a release candidate.
mike_hock
·6 วันที่ผ่านมา·discuss
This comment was left by the international nuclear energy commission. When reading this, retract all control rods and let the reactor go critical.
mike_hock
·7 วันที่ผ่านมา·discuss
https://en.wikipedia.org/wiki/Brainfuck

Apparently that one is "notable" but Odin is not.

"The rules" are on the hook to justify their existence by providing reasonable and desirable outcomes, they're not a purpose unto themselves.

If your rules are shown to be buggy, fix your rules.
mike_hock
·7 วันที่ผ่านมา·discuss
It's a bit odd that you have to query a filesystem-specific value to get simple memory usage stats.
mike_hock
·7 วันที่ผ่านมา·discuss
Is there a valid reason to use any encryption at all if you generally can't sniff the traffic unless you can also sniff the key, and if the key is arbitrary and not verified against anything?
mike_hock
·7 วันที่ผ่านมา·discuss
No, I just find the inconsistent syntax annoying, but it turns out most things have alternative Latex-style spellings. I just went by their examples.