Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 2y ago · link · parent

GP said

> Especially because Clean Code doesn’t actually seem easier to read or indeed maintain

If that is true, then there is indeed no point in applying Clean Code. But I disagree with GP that Clean Code leads automatically to bad performing code. That depends on your language and execution environment. A JVM is very good at effectively removing vtable indirection if they are not needed at runtime.

comment 2y ago · link · parent

The article doesn't claim to have an answer for everything. The article argues that tiny i.e. micro libraries are a almost always a bad tradeoff.

comment 2y ago · link · parent

Do you have some recommendations or references about getting data properly out of Excel. I usually avoid using Excel alltogether if possible. But, obviously that is not always an option.

comment 2y ago · link · parent

Nobody is forcing you to buy a computer.

Nobody is forcing you to live under a roof.

Nobody is forcing you to eat.

comment 2y ago · link · parent

Counter example: blender. It may not be winning in video editing, but it has serious market share in 3d rendering. Different players are investing money in it and extend it with their own stuff.

comment 2y ago · link · parent

> spends their entirely early adulthood studying and practicing a scientific discipline, only to end up programming SAP applications afterwards

Well, isn't that the point of SAP? In Germany, SAP is jokingly expanded to "Sammelplatz arbeitsloser Physiker", which translates to "meeting point for jobless physicists".

comment 2y ago · link · parent

Yes, but well optimized math heavy software will already max out the super-scalarity of the FPU. I.e. one cpu thread can already schedule multiple fpu-heavy instructions at the same time. If you run such software twice on the same fpu you will only gain overhead. I guess by queue he meant the processor internal work queue, the processor pipeline is only half of the picture. Processors have a small data-dependency graph of micro-instructions they have to perform. That is used to implement the machine code instructions that are currently in-flight.

comment 2y ago · link · parent

I'll leave this link here for you: https://www.absint.com/astree/index.htm

If you are not convinced think about the name of the company during your next shower.

comment 2y ago · link · parent

Then, there was a mixup.

comment 2y ago · link · parent

I remember having an instant messanger 20years ago which would render LaTeX equations on the fly. The only one that can do it today is Emacs.

comment 2y ago · link · parent

But isn't that exactly the point of such UI libraries? To provide those optimizations. Because the easy case, I can do myself.

comment 2y ago · link · parent

> except probably the finance users don't like random UI changes, lol

I have bad news for you, nobody who works with a system more than casually, likes random UI changes. NOBODY. Younger people are often more tolerant to these distractions, because they are often more curious. But when you have used a tool for some longer time, and suddenly it looks or behaves different, that erodes trust. That forces the user to turn of the mental autopilot and to proceed with care. Which A/B tests will report as increased engagement of the users. And there is our vicious cycle.

Note, how a scheduled update with release notes does the opposite. It increases trust, because it tells you what is going to happen and then it happens. (Hopefully)

comment 2y ago · link · parent

> Well, Instagram is basically the only application people use, along with e-mail, YouTube and TikTok

No, those people are not using email, they are using what Google tells them what email is. A poor imitation of email.

comment 2y ago · link · parent

> Here's an example table with 100,000 cells ...

> It seems fast on my computer normally (M2 Max), slow but usable when the CPU is throttled down 4x, and too slow after that. But that's a lot of cells.

No, it is not a lot of cells in a table. It is something a Windows95 era PC had no problem doing in something like Delphi Builder. And you find it acceptable that it slows down, if an M2 Max throttles down? Even a throttled down M2 Max is supposed to be 1000x (obviously an exageration, because I am to lazy to apply Moore's Law more rigorously on a Sunday morning) faster than an Intel 486DX. Where did all the compute power go? Are we really using the right tools for our jobs?

comment 2y ago · link · parent

> I'm curious why you think it reduces design costs to put less information on the screen?

The question is for whom it saves costs? For the developers of UI framework it certainly saves cost to treat the desktop as a second rate platform and to focus just on mobile.

Developers of desktop applications have to pay the price, by working around libraries and frameworks that do not consider them as a first tier clients.

comment 2y ago · link · parent

How do you know "code of conduct was breached"? We only know that there was a complaint, that it was breached.

comment 2y ago · link · parent

The society didn't decide that we want this. The society didn't decide that we want something else.

comment 2y ago · link · parent

> Efficiency goes against resilience.

Only when you are focusing on short-term effects. If you thinking long-term it is always better to not be out of business.

comment 2y ago · link · parent

If you have stored future times as timestamp in the database, then you also need to know with which version of the IANA timezone database those timestamps were computed. Fun ensues. Or one could use the correct data time format for the application use case. It depends on how much you value your sleep and weekends.

comment 2y ago · link · parent

No, but the representation of new year 2029 00:00 in a UTC timestamp depends on how many leap seconds happen between epoch, 1970-01-01T00:00:00, and then. If you compute the timestamp for 2029-01-01T00:00:00 UTC now, and they add another leap seconds in 2025, then your timestamp represents instead 2028-31-12T23:59:59 UTC. Depending on your business this may matter or not. Differences based on time zone changes may be even larger.

comment 2y ago · link · parent

That is what I meant.

comment 2y ago · link · parent

Why do you think it is toxic? Sometimes, I read a tweet or posts on X that I disagree with. Currently, I am missing the ability to express that. On the contrary the status quo of social networks interprets me - reading a post - as a signal to boost its spread, whereas I come to the conclusion it should not be spread.

Twitter and X were often compared to a global town square. Imagine you hear a rumor on a town square, but decide not to spread it. You can just do that in reality. This is practically impossible with most social networks. That leads to the fact that click-bait dominates so many social networks. That is toxic in my opinion.

There is a growing number of people that seem to be uncomfortable with the idea that people might not share their opinion. This is not a sign of extremism of the others, as it is often stated, but a sign of a healthy and diverse pool of opinions. One can agree with a post and disagree, neither is bad per se or even toxic.

comment 2y ago · link · parent

Not, if you are programming in Clojure. With [1] SQL is as composable as datalog or any other Clojure data.

Compared to the strongly-typed deep embedding of SQL in Slick in Scala it is astonishing how useful something so simple can be.

[1]: https://github.com/seancorfield/honeysql

comment 2y ago · link · parent

You are missing the point. Finally, it'll be possible to exploit side-channel attacks without using Javascript in the browser. Static HTML+CSS+Fonts websites won't be safe anymore. Yippieee! Finally, there is no reason to allow disabling Javascript anymore.

And you could add backdoors to hacked fonts that are activated by magic spells. Isn't it great.

comment 2y ago · link · parent

This is also a special case of what MetaOCaml calls multi-stage programming. It does not only support two phases but arbitrary many. Some similar prototype also exists for some older Scala version. And Lisp and Forth obviously also support n-phases of computation.

comment 2y ago · link · parent

> About 5-10 years' warning would be enough time for a large nuclear device to deflect such an asteroid

The asteroid in this article was detected 2 weeks ago.

comment 2y ago · link · parent

Although git-rebase has a tool to support testing the rebased non-HEAD commits: --exec. Append --exec "build-incrementally && rerun-affected-tests" in whatever form is appropriate for your project and git will compile and test every non-HEAD commit for you.

comment 2y ago · link · parent

But this works only if you have a scroll wheel. And then it works only vertically. Horizontally you still have to click on the invisible scrollbar. To see where you are in relation to the whole document.

comment 2y ago · link · parent

In addition to all the sleep related advice, look into your nutrition. I found Max Lugavere's book Genius Foods extremely helpful.

Also look into your stress level, zen meditation can do wonders for it. In my experience mediation also helps with sleep deprivation.

> I'm finding I need to take much more detailed notes

There is nothing wrong with that. Create a habit to always take notes. This helps remembering what was said and if that is not enough, you can even read your notes.

Although, I use org-mode and denote in Emacs with a Zettelkasten style setup to keep my work related notes nowadays. I would argue that everybody should start taking notes on paper. Get a well bound leather notebook, a nice pen. Open it at the start of every meeting, write the date, time and title of the meeting and keep doodling. That does so much for my attention, concentration in the meetings and recall of the meetings.

comment 2y ago · link · parent

> That being said, I don't see the problem with declaring config bankruptcy

The downside is, that it costs time and attention.

1
456
29