HN user

professor_v

126 karma
Posts0
Comments27
View on HN
No posts found.

Mail is dropping features left and right, like gmailify. I'm pretty sure they're trying to limit the maintenance costs as much as possible.

This whole article is terribly confusing. Take this paragraph for example:

Now, your process might depend on other system resources like input and output; as this event is also a process, it also has a file descriptor, which will be attached to your process in the file descriptor table.

What event? Are input and output an event? Why is this event its own process? Input and output are not a process are they?

Also, does a process have its own file descriptor table? That was never mentioned before and this reads like it is already known.

This sort of stuff goes on in my head throughout the entire article...

It's also still unclear to me what happens if multiple processes try to access the same file. Do file descriptors help to lock files during writing?

I think this desire for understanding ultimately drives the resistance to systemd and the Linux/BSD divide, and I think for good reason. There will always be friction between features and inherent simplicity/ability to understand the system.

I definitely think it's a mistake that IKEA stopped printing their catalogues last year. The offline experience is totally different from online. Online I tend to do direct searches for things I already decided I want, but the IKEA catalog is perfect for casual browsing and getting new ideas for stuff I would've never bought otherwise.

It might come off as a cost saving short term, but I doubt in the end the catalogues did not bring in enough money anymore.

I'm a heavy touchpad user and the sole reason I will not use Linux for the foreseeable future is because touchpad usage is absolutely terrible on Linux. Depending if you use the libinput or synaptics drivers it's either completely inconsistent between applications or all-around terrible.

I use Windows + WSL even though I practically never do anything Windows related.

I remember about 5 years ago I tried to deploy it on CoreOS using the available documentation and literally couldn't get it working.

I haven't done a manual deployment since. I hope it got significantly better and I may be an idiot but the reputation isn't fully undeserved.

The problem back then was also that this was usually the first thing you had to do to try it out. Doing a complicated deployment without knowing much about it doesn't make it any easier.

I can't think of a single benefit of a function over a comment for a piece of code that's only used once. The downsides of the function:

- Unless the function is extremely clear like max() or min(), you will have to read the function and jump around the code. I feel people underestimate the cognitive overhead required for this. This gets worse the more arguments are required to pass around. Linear code is much easier to read.

- More lines of code, a comment adds 1 line while a function or method adds at least 4. Also, code that has to be separated over multiple functions is practically always longer than linear code. Doing this to the extreme can have quite an effect.

- Naming issues, it can be hard to think of a good name for a function and it almost never describes it perfectly. Misnaming things leads to bad assumptions and leaky abstractions. Comments have the luxury of potentially conveying more information and are also less important to get right.

If you use a lot of vertical scrollbars then by all means go ahead and abstract it, but I'd generally pick the comment.

Within docker-compose.yml I use

  services:
    foo:
      image: foo/bar:6.9
      user: ${UID:-1000}:${UID:-1000}
On Linux with Bash it runs with your current user and most other platforms it runs with id 1000, which is setup as the default user in the Dockerfile. This is no problem on MacOS or Windows because of the way Docker-Desktop uses VM's.

ZSH or other shells don't necessarily set $UID, so if you're running Linux, not id 1000 and not running Bash you might need a little .env file with `UID=1001` in it to make it work. And then the user is still nameless in the container. This is kind of rare and I only use it for dev containers where most relevant files (and permissions) are bind-mounted from the host, so it hasn't really been a problem in practice.

Remaps would be cleaner but I find it too much work to explain for normal developers just wanting to use a dev container.

Surface Laptop 4 5 years ago

I love the fact that the Thinkpad X1 has dedicated physical home/end/pgup/pgdown keys. I wouldn't consider buying a laptop without them anymore.

They don't explicitly state that the rewrite is better? They just mention that they reduced the amount of code from 160,000 to 85,000 lines.

Using competing teams for this purpose seems like a waste of money to me.

Women / men of this age tend to be attracted to people who are interesting rather than wealthy.

I seriously doubt this. Looking at myself I care a lot less about 'interesting' people than I did in my twenties. Maybe interesting is a euphemism for social capital, but social capital is greatly linked to wealth anyway.