Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 3y ago · link · parent

Or in Emacs for 40 years.

comment 3y ago · link · parent

> "or it could push the task of precondition checking to its caller, and enforce via types"

Or the enforcement could be done via a design-by-contract discipline. Either using classical assertions, or something like reusable specifications in Clojure's spec library.

comment 3y ago · link · parent

This doesn't sound like a simple solution from your fellow devs. It appears to have been an easy solution. If the distinction isn't familiar to you, there is a great talk of Rich Hickey [0], that explains that distinction and some more. The talk is definitely not only applicable to Clojure.

YAGNI is a great slogan, but must not be a dogma. If you already know, that you are going to need custom rules. Then prepare for it. But, if --- for example --- the current rules are almost trivial, and you don't know yet, which rule engine will be the right fit later on. Then it might be a good idea to postpone the decision about the rule engine, until you know more. In the meantime a hard-coded solution could be enough.

[0]: https://www.youtube.com/watch?v=LKtk3HCgTa8

comment 3y ago · link · parent

I use the commit history every time a I open file I haven't worked on for a while. Just seeing the output of git annotate in the border of Intellij gives me a sense how old code is, what changed together with what and whom to ask in case of questions.

comment 3y ago · link · parent

This web page cheat.sh manages to minimize contrast even in a terminal. Well done, you've brought the accessibility nightmares of the modern web to the terminals of the world.

comment 3y ago · link · parent

There is also git annex for large binary files and other things.

comment 3y ago · link · parent

submodule and subtree are difficult concepts that look easy at a first glance. That is not the fault of the implementation.

comment 3y ago · link · parent

Git's UI is not meant as an abstraction at all. It is a set of tools to work on the underlying model. And the underlying model is actually quite elegant and understandable. I'd take that anytime over a leaky abstraction like subversion.

comment 3y ago · link · parent

> Nobody here is talking about collecting personal information except you either. The goal is simply to track the amount of sharing various pages experience.

That is personal information.

comment 3y ago · link · parent

> This is how insurance is supposed to work. It should reflect your actual risk levels.

This assumes the relation correlation between genes and adverse health outcomes are actually known. By definition that ignores personal behavior and epigenetics.

If an insurance becomes to specific to the individuals it stops spreading the risk.

comment 3y ago · link · parent

> This seems pretty far fetched.

At the begin of Hitler's reign, the Nazis started to ask people at many occasions for so-called "Ariernachweis" papers. Those were collections of documents to show that someones ancestors were pure according to their race theory. Many people didn't question this at the beginning. Later that data was used to round up minorities, i.e. to commit the wellknown atrocities.

Once data is centrally collected, you cannot know for which future purposes it'll be used. So, the question with regards to companies like 23andme should be: Do you trust the current owners, all future owners, and current and future business partners to not misuse and safeguard your DNA data?

> Monetarily the genetic data is marginally valuable at best Tell that to big pharma, health insurers, adoption agencies, dating sites, and companies that produce addictive products for consumers.

> Do you really think braindead landlords and HR people would make decisions based on Promethease They have shown to make decisions based on DEI declarations. I rest my case.

comment 3y ago · link · parent

Yes, I am referring to exchanging sets of patches with or without tools like quilt. But I don't see a confusion. These stacked diffs seem to be a recreation of the advantages of patchsets on top of the limitting PR model of GitHub.

comment 3y ago · link · parent

This seems like a fancy name for an ages old practice. Isn't that what Linux was doing even before git was developed?

comment 3y ago · link · parent

And yet modern UIs fail miserably at basic accessibility. Often, they even manage to fall below the baseline of static HTML.

comment 3y ago · link · parent

> And anything less than a week ago (but more than 24 hours ago) should just say the day of the week.

Why is it so hard to understand that the importance of the precision does not depend on the date or the event, the date is attached to, but on the activity of the reader. Therefore no rule a programmer can implement will be good in all cases. That leaves the developer with two choices: Let the user choose or display a complete date and time.

comment 3y ago · link · parent

It doesn't increase ad revenue. It increases scores in A/B tests which is believed to predict ad revenue. Should be an entry in "Falsehoods project managers believe about A/B tests".

comment 3y ago · link · parent

So instead of preferring actually locale-aware date formatting you would prefer fuzziness?

comment 3y ago · link · parent

Does this also work in a screenshot?

comment 3y ago · link · parent

You know, you can dumb down stuff too much.

But if I am travelling it is even more error prone for my computer to compute the correct difference.

comment 3y ago · link · parent

> Google wants users to make clicks and track them, i.e., collect behavioural data. Thus it makes sense that a user would be forced to "open" a video to see its actual upload date.

You don't need malice to explain that --- just A/B testing. Making information, that a user wants or needs, less accessible increases engagement, since the user is clearly clicking more.

comment 3y ago · link · parent

So it could also take the preferred datetime format from the locale.

comment 3y ago · link · parent

There exist non-breaking spaces for that exact reason.

comment 3y ago · link · parent

> Isn’t it nice to see people deduct in real time why many sites use relative timestamps?

But that is throwing out the baby with the bath water. The existence of multiple locally used data formats is no reason replace information with this oversimplified nonsense. Browser can and used to provide the locale with every request. That is enough information to format a data such that it is readable to the user.

comment 3y ago · link · parent

Yes, in Internet Explorer you could show and hide all those toolbars as you liked. So, you could adapt the application to your needs.

If my former self, that was forced to use Internet Explorer, would defend its UI in the future, it would rotate in the grave.

comment 3y ago · link · parent

> But to ask "why even have it" is to fall into a discussion more about backwards compatibility than design.

No, it is a question about design. Window environments like Windows 11, macOS, Gnome or lots of other Linux window managers are designed for desktop PCs, not tablets. I would include Laptops under desktop PCs for this discussion, since most people -- that are working the whole day on their laptop -- add one or more screens to it. And on those large modern displays, it is more effective than ever to use overlapping non-fullscreened windows. Then it is absolutely necessary to have good standardized UI components to manage those windows. But those customized title bars break that standardization and customization. On modern Gnome I often have to search for the window that is in focus. It used to be clearly visible with a significant color difference in the titlebar. Today, there is slight difference in gray shading. That is ridiculous. And half of modern programs redefine the colors of their title bars, so you have to know for earch application which shade of gray stands for focus and which stands for not in focus. This is fucking stupid.

comment 3y ago · link · parent

No, democracies have to have limits what they tolerate. Killing civilians just because they have a certain religion is incompatible with western values. The limit should be too not be tolerant with people that are not willing to provide the same tolerance. By that standard celebrating the killing of civilians we shouldn't tolerate.

comment 3y ago · link · parent

Weight and volume were defined based on the meter. Volume is just expressed in m³ or litre, which is just 1/1000 of 1 m³. Mass was originally defined such that 1 kg of water is the mass of one litre of pure water at sea level.

comment 3y ago · link · parent

Then don't use Doom Emacs. As a more than twenty year emacs user, I've been using Doom Emacs the last two or three years. Since, I have better things to do than to update every Doom Emacs to the latest unstable version of a few hundred Emacs packages, I've two or three months between updates. This broke regularly the doom script and or straight.el builds. I've debugged it once and found out that that starting with the default Doom configuration works. And then you can add module by module. Whereas installing all modules I wanted, at once, failed.

Therefore, I dropped Doom Emacs and am very happy with my new clean Emacs config.

comment 3y ago · link · parent

No "metric" units means they are derived from the meter. Originally, most units in the SI systems were derived from the meter.

comment 3y ago · link · parent

Then enable a spell checker in the editor / ide in which you write your SQL. Not being a native speaker should never be used as an argument against proper naming and wording of code and or documentation. I am not a native English speaker as well.

As pointed out by other replies to your comment. Abbreviations can lead to similar problems even with native speakers.

1
101112
29