Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 2y ago · link · parent

You bring up valid points. I am not at all arguing we should strive for minimalism and reduce features that are actually used. If we are already using html emails for everything, why can't we embed the little build status widgets, plugins, tags -- whatever they are called -- that you find in many readme file on Github into html emails?

Or it is great idea to have a plugin for your mail program showing the build status of your ci plugin next to the email about the pull/merge request?

comment 2y ago · link · parent

> Source code sharing is a separate protocol bolted onto email, and the fact that you have to use a specific email client (which I should mention, is largely unheard of outside of a small circle) is indeed an admittance of email being bad.

No, email is better suited for meaningful communication than most forums and code review web interfaces. And that is a direct consequence of the fact that it was designed to facilitate communication between humans. Github is simply missing a way to see easily and intuitively which message responded which other. I am thinking of something like the classic threading tree of an email client. That information makes it much easier to follow a discussion between more than two people.

That same tree is also great at showing what I have already read and what is new. How do you do that in GitHub? As far as I know there is no way to do that. I can even label certain messages just for me. In order to keep the overview. I can move emails between folders virtual or not to organize all the communication threads that I am participating in. Neither of which is possible with pull requests in GitHub or almost every other forge.

comment 2y ago · link · parent

> Building a more complicated system akin to the forges on top of emails will likely require modifications to the original email workflow, e.g. to add metadata.

Emails do have header, there is no problem storing metadata in those.

comment 2y ago · link · parent

But email does not have an UI, only mail reader application do have a UI. And many modern default mail reader applications have an awful UI, but that is not a sign of email being somehow bad.

comment 2y ago · link · parent

There is e.g. https://pgtap.org/ as a testing library for Postgres.

comment 2y ago · link · parent

The difference is, I can customize my mail reader to my preferences. I can use macros to streamline my repetitive work with it. Neither is easily done with forges.

comment 2y ago · link · parent

> And what better tooling could it be if not a tool explicitly designed for software development, like GitHub/GitLab/Gitea?

It would be better if the user could actually select his tool instead of being forced upon a tool by a project or company. The former used to be the standard with email. Today, I have the impression half of my colleagues never used a mail program that wasn't called Outlook or Gmail. Spoiler alert: Both are abysmal mail readers for the purpose of following and participating in technical discussions. To fix that, they should at least support proper threading and encourage selective inline replies.

Making the tools a user choice over an established protocol/data model creates lots of possibilities to innovate. As long as Outlook-ordering decisions are made at the C* level it will never support software developers properly.

comment 2y ago · link · parent

> It then goes beyond what most people do and validates that the hashes matche.

It might go above and beyond what most people are doing, but not what most tools are doing. Old school package managers are still a step ahead in this area, because they use GPG to check the authenticity of the data files, independent of the transportation channel. A website to download files and checksums is one such channel. This enables supporting multiple transportation channels, then it was a mirror of ftp mirrors. Today, it might be bittorent or ipfs or a CDN. And GPG supports revoking the trust. Checksums that are hardcoded into a tool cannot be revoked.

As soon as we start to codify practices into tools, they become easier to game and attack. Therefore tools should be held to higher security standards than humans.

comment 2y ago · link · parent

But by using GPG to check the authenticity of the actual files that are downloaded, we can remove the web site -- whether https is sufficienctly secure or not -- from the trust chain all together. The shorter the trust chain, the better.

comment 2y ago · link · parent

> Staying indoor is only logical solution!

Kids need to go outdoors on their own to grow up. They need to extend the radius in which they be active on their own. You can't lock kids until they go to college or university. Otherwise they become young adults unfit to live an independent live.

comment 2y ago · link · parent

We are talking about data processing, not a publicly available service. When is 13 min/month of downtime for processing of data a problem?

comment 2y ago · link · parent

Babashka is built using GraalVM. It allows you to write script-like programs in Clojure while having instant startup time.

comment 2y ago · link · parent

> You want to split it in multiple commits? Then it probably should have been split in multiple PRs.

No, I disagree. A PR/MR/feature branch should correspond to one unit of work/ticket/issue/story/bug that you use for project management. That simplifies coordinating work with project managers, stake holders, etc. But, sometimes there are other reasons why you would want to split the resulting changes into multiple commits: In order to simplify code reviews.

E.g. consider a larger code base. In order to implement a new feature, I have to move some functionality from one module to some other, so that it can be reused between some old usage and the new feature. Such a change might be conceptually trivial, but it might touch many files, because lot's of imports do change. Separating this into a separate commit allows the reviewer to look at the commit message "moved foo from a to b" have a short glance at the diff, run the tests, and be done. When those same changes are mixed into many other changes, it easily becomes a mess that is much harder to decipher.

In general, I would say most text book refactorings that touch more than one or two files should be moved into a separate commit for that reason. Why is that? Because, those refactoring should not break any tests. In order to be able to check that, I need them as separate changes during the review.

Additionally, in a non-ideal code base -- everything with significant history or that is not the hobby of a perfectionist -- you will come across stuff that could or should be cleaned up while you are working on that file anyway. Again, mixing those changes with the changes implementing a new feature is a bad idea. It complicates code review. It makes it only possible to revert the new feature together with the code cleanup.

But how do we get a feature branch/MR/PR that is clean in such a way? Neither by rebasing the branch as it is on top of master, nor by squashing the whole branch into one commit. Instead you can rebase your branch as you go. When you realize you should have down a refactoring first, you can interactively rebase your branch to insert a new commit earlier. If I realize I would like to change these two lines in order to cleanup the code, I stage them and use magit to commit them directly into a preexisting commit that I can select interactively. That feature is called "instant fixup" [1] it is really useful. I haven't seen that in any other git frontend so far.

Keeping the history of feature branch mostly clean while I am working on it [2], reduces the amount of spurious merge conflicts when I rebase the branch on top of the current master branch.

[1]: This is like git commit --amend where you are free to select interactively which commit you would like to amend.

[2]: I still use wip commits at the end of my work day or before an experiment. But I tend to clean them up immediately.

224.

An API of Ice and Fire(anapioficeandfire.com ↗)

1 points · by funcDropShadow · 2y ago · discuss

comment 2y ago · link · parent

Therefore, everything you already know is intuitive. Oh wait, does that mean that intuitive is not a property of this proposal but of the reader and the proposal? Ergo, it is almost useless to ask whether some programming language feature is intuitive or not.

comment 2y ago · link · parent

JavaCard is used in smartcards e.g. for banking cards. There you want to have more language guarantees to avoid losing money.

comment 2y ago · link · parent

I am sure there will never be the conclusion that AOT is always better or that JIT is always better. E.g. JIT has a large advantage in long running applications that run at different customers with very different configurations. The scenarios where AOT has an advantage are well known, so I won't iterate them.

comment 2y ago · link · parent

> Java ... found a small niche in server programming.

Lol, virtually all business server applications are running on th e JVM in the corner of the world that I see.

comment 2y ago · link · parent

That is OCaml. Not that I claim OCaml is extremely fast, but it has a very predictable performance. Which is imho even more important than being the fastest in certain benchmark problems.

comment 2y ago · link · parent

The Java ecosystems initially started with optimizing Java compilers. That setup could benefit from direct hardware support for Java bytecode. Later, it was discovered that it is more beneficial to remove the optimization from javac in order to provide more context to the JIT compiler. Which enables better optimizations from JIT compilers. By directly running Java bytecode, you would loose so many optimizations done by Hotspot, that it is hard to get on par just by interpreting bytecode in hardware. The story may be different for restricted JVMs that don't have a sophisticated JIT.

comment 2y ago · link · parent

That article also states that using a standard Git feature, shallow clones, you go from 20min to 90s. Most of the problems touched upon in the article are about state management for local environments, yes that can be tricky. And it can take time, but it has nothing to do with Git.

comment 2y ago · link · parent

True, that is one those interactions between users that I mentioned. But the amount of people having the code checked out and poking around its history is only limited by capacity to clone the repository. All other operations are just local.

Having hundreds of committers merging into one branch is problematic. Perhaps splitting the repository into smaller parts does have its advantages. Monorepos often have the architectural split of the software while throwing away the advantages of the split at the vcs level. But there is also other large software, developed by hundreds of people, that cannot meaningfully split into separate git repositories without messing about versioning and releasing. The Linux kernel is such a system. They use a loose network of repositories -- mostly a hierarchy -- to pre-aggregate merges. Git is well equipped to handle different approaches -- separation of mechanism and policy.

I am looking forward to learn how a central but cloud-native VCS will improve on that.

comment 2y ago · link · parent

> The biggest drawback of Git is its limited scalability - both in repository and file sizes, and the number of concurrent users.

How did you come to the conclusion Git isn't scalable in the number of users? There is no limit in the number of users with Git. There may be limits in the number of interaction between those users, i.e. pull/merge requests, clones, fetches etc. But they are mostly limited by humans.

A central system, even a cloud-native system, has far more contention points in operations that are not even interactions between users, i.e. status, commit, etc.

comment 2y ago · link · parent

They used --force which is usually the flag to say: Here there be dragon. Be careful.

comment 2y ago · link · parent

So, the answer is No.

comment 2y ago · link · parent

Did you try git-annex instead of git-lfs?

comment 2y ago · link · parent

Until the day, the company is target by a ransomware group and everything is switched off in panic. Or the day the network connection of a building goes down. Requiring a REST api in the cloud for every VCS is command bytes hard then. We had this before with SVN and it wasn't nice.

comment 2y ago · link · parent

Even a force push doesn't destroy the reflog or runs the GC server-side. I wonder how you can accidentally loose data with Git. I've seen lot's of people not being able to find it, but really destroying it is hard.

comment 2y ago · link · parent

> The option of doing away with the hardware keyboard and going touchscreen-only was always there and always up for discussion, but for the longest time not easy due to the power and performance envelope at the price point.

Not only the option was there, there were mobile phones with touch screens before the iPhone. Anyone remembers Windows Mobile? It resembled windows very much, including the start button. It was just ridiculous. One of the central innovations of the iPhone was making scrolling with touchpad as natural as flicking a piece of paper over a table. It seemed instantaneous. Most touchpads before the iPhone weren't capacitive. They required a lot of pressure. Using them for scrolling seemed ridiculous.

comment 2y ago · link · parent

What many people ignore from Ahrens description of Luhmann's Zettelkasten, is that it isn't an indexing system to find pre-existing knowledge/texts. It is the place where he stored his own insight, his own summaries, his own formulation of ideas he found somewhere. The book quotes Luhmann even before the table of contents with "One cannot think without writing." Strictly speaking, this is obviously not true. Metaphorically speaking it is something that many proficient authors have concluded as well. They need to write in order to make progress. And then Luhmann used this one space of notes, the Zettelkasten to work on all his publications. This allowed him to find shared ideas between different projects of him.

I've got the impression that many tried Zettelkasten as the one true note taking system just dumped stuff they found in blog articles into pages in their storage system for later retrieval. Nothing is wrong about that, but that is not Luhmanns idea of Zettelkasten.

1
789
29