Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

1,291 karma · joined Mar 27, 2019 (7y ago) · 867 submissions

Submissions

comment 2y ago · link · parent

> Those who want consistency will need to provide it themselves, in the form of tools like tree-sitter.

Or in the form of radical simplicity. For the purpose of the parents discussion Lisp is the ultimate minimal language. Since, the syntax is its own AST. Other aspects of most Lisp are certainly not so simple.

comment 2y ago · link · parent

> A lot of great software ideas died quietly because there wasn't a sanctioned route to scale the learning curve.

A lot of great software is dismissed because people pretend there should be no such thing as a learning phase.

comment 2y ago · link · parent

There is no reason why a better shell couldn't show tool tips over command names or flags, assuming there is support for it in a terminal emulator. Even without support from the tooltip it would be possible to show some info about the thing below the text or mouse cursor in a designated area of the cli.

comment 2y ago · link · parent

> Even if the GUI is completely unfamiliar, and you have to learn it, you can still see the different buttons, menus etc.

Unless the GUI uses some material style nonsense. Then you have to guess where buttons are. Menus are so uncool. Every modern emacs distro starts with disabling them. Mobile apps have replaced the menubar with the hamburger button by necessity. Modern desktop GUIs have copied that despite it clearly being worse on a desktop than a menubar.

comment 2y ago · link · parent

> #1 it does fine on

By default, I'd say no. But with a few config settings and one or to aliases it is excellent.

> #2 fails because it uses jargon that's internal Git state, staging, index, etc.

Yes, it uses it's on jargon. But before Git there were no generally known terms for those concepts. And Git's concept do exist in the real world, previous vc systems simply tried to abstract them away and failed miserably at that.

> #3 mostly does ok but doesn't provide useful undos for stuff like shallow copying

The reflog is a very comprehensive undo mechanism, but it is hard to discover and certainly not as easy to use an undo button. Considering the target demographics of Git, I'd say it is acceptable.

> #4

This has and still is Git's weakest point.

> #8 No. It's CLI is huge and byzantine.

The default porcelain (Git's CLI) is inconsistent and very large, yes. But the underlying model is very elegant. To an expert user, this should matter more than consistent wording in the CLI and documentation. Although, I would still like to have that consistent wording. And because of the qualities of the underlying model it is possible to improve on the porcelain. Which has been happening for quite some time.

comment 2y ago · link · parent

Is there some writeup how to achieve that?

comment 2y ago · link · parent

> restic on the other hard is still incredibly slow

Restic's performance to scan the local disk depends on the target you are storing the backup at. I switched recently from a local NAS server to AWS. Before that change scaning 300 GiB of data took 1 min, now it takes more than an hour.

comment 2y ago · link · parent

Some chisels and Japanese saws. /s Honestly, what do you expect to get back from such a question? The answers are completely useless to anybody, unless they provide some context about the project. Is it a piece of software? Should it run locally on your laptop, on your smartphone, on your tv, on your refrigerator? Should it be a web application? Is it mostly static text? Does it store user data? Do users exchange information? Is it a piece of custom electronic hardware?

On the other hand, given some context and some reasoning why a technology was chosen, one could really something from the answers.

comment 2y ago · link · parent

But, if the subscription provider goes out of business or changes the product, I have to be prepared to spend more time to find an alternative. So, if I want to keep a project long term, I'd avoid subscriptions.

comment 2y ago · link · parent

> Considering the specific issues highlighted in the article, it's curious why there hasn't yet been the development of an accessible, user-friendly operating system featuring large buttons and straightforward menus

Because no app is using buttons provided by the operating system or even a widget library anymore. Since they want to be pixel perfect, low contrast, bla bla of the week.

comment 2y ago · link · parent

But, isn't the separation of the control-flow into chunks, either separated by async/await or by sepration between call and callback, a form of cooperative thread yielding on top of preemptive threads? If that isn't true for .NET, then I'd really interested to understand what else it is doing.

comment 2y ago · link · parent

Async programming is not an alternative to semaphores and mutexes. It is an alternative to having more threads. The substantial drawback of async programming in most implementations is that stack traces and debuggers become almost useless; at least very hard to use productively.

comment 2y ago · link · parent

In the last 15 to 20 years asynchronous programming --- as a form of cooperative multi-tasking [1] --- did gain lot's of popularity. That was mainly because of non-scalable threads implementations in most language runtimes, e.g. the JVM. At the same time the JS ecosystem needed to have some support for concurrency. Since threads weren't even an option the community settled first on callback-hell and then on async/await. The former reason to asynchronous programming alleged win is currently being reversed. The JVM has introduced light weight threads that have the low runtime cost of asynchronous programming and all the niceties of thread-based concurrency.

[1]: Asynchronous programming is not the only form of cooperative programming. Usually cooperative multi-tasking systems have a special system call yield() which gives up the processor in addition to io induced context-switches.

comment 2y ago · link · parent

Independent of the origins of the 80 character line lenght rule. Some say it originated on punch cards. It is a useful rule. Classical news papers also have narrow columns. Why? Because it helps reading.

comment 2y ago · link · parent

> tries to limit my commit messages to 50 or 55 characters

The tools try to limit the summary line of Git commit message to 50 characters. Not the whole message. That is a useful convention. The usual convention is described here: https://git-scm.com/docs/git-commit#_discussion

comment 2y ago · link · parent

What do you do for refactorings?

comment 2y ago · link · parent

> It's just super impractical. The work is discussed / documented in the project management systems

I agree, it is super impractical to have to read the whole discussion again instead of having a comprehensive description of the agreed upon result of that discussion. Therefore, writing good commit messages is really valuable.

comment 2y ago · link · parent

And it allows applications to display a PDF with an A4 page at 100% to have exactly the size of an A4 paper.

comment 2y ago · link · parent

For some users it is actually the "Do suck" setting. Allowing devices to control other devices over HDMI starts to get random horse shit if you have a tree of HDMI devices. E.g. two devices connected to a TV, one of which is an AV receiver that is connected to three other HDMI devices.

comment 2y ago · link · parent

And it introduces new failure modes. I often experience responsive web applications hiding UI elements in my Firefox windows. Those windows usually use either the left or right have of a 28" 4k display. Why the heck do the hide the sidebar to save space? It is fucking annoying.

comment 2y ago · link · parent

I'd be definitely interested.

comment 2y ago · link · parent

- Predictable memory layout of data structures.

- Static typing. System-level programming often has more complete requirements and more stable requirements than, business information applications. Languages for system-level programming should utilize that.

- Ability to run without heavy runtime-system.

comment 2y ago · link · parent

We could paraphrase Dijkstra --- with some liberty -- to say, "Formal verification of programs can only show the specification is fulfilled, not that the specification is adequate."

comment 2y ago · link · parent

A bold claim, which is obviously false. To see that compare Clojure's dynamic type system with C's static type system. So perhaps a more nuanced stance is needed.

comment 2y ago · link · parent

But it was all just racks in a data centre before the invention of the cloud.

comment 2y ago · link · parent

> I'm not in sales at all.

My fault.

> Thinking every engineer's job is "writing code" and anyone who thinks wider is wrong is what the pushback in this thread is all about.

Writing code is not the only activity of an engineer that requires focus and concentration. Most of my activities require that.

comment 2y ago · link · parent

Of course it is good, if the sales team succeeds. But it is bad if that means that the developers are unable to do their work.

comment 2y ago · link · parent

> Why send an email when they're thinking for themselves?

Because, the act of writing down a question --- with the necessary details to state the question precisely --- is often enough to find the answer yourself. Unless it is simple matter of a missing fact. But that is rarely the case in my line of work.

comment 2y ago · link · parent

Because, you bring up sales, I am assuming that is your area of expertise. If a big sale can be unblocked by asking some specific employee an important question now, do it. If that happens five times a day, those sales are neither big nor are these very specific questions. Developers are most productive when in deep working mode. A simple question like "What time is it?" can be answered in 5 s, but it may cost a developer 30 min when in deep working mode. Because of the lost focus. On the other hand, many questions (not onboarding questions) could be answered by the colleagues themselves, if they would spend a bit more time on them. Thereby, they would learn more than just by getting the answer.

comment 2y ago · link · parent

Of course there is a balance needed. But spending once 3 hours to search something might increase familiarity with the resources the intranet provides. So the next question could be answered way faster. Or it could be the occasion to improve the local intranet with some missing cross reference or some comment.
1
8910
29