[-] nous@programming.dev 29 points 3 months ago

Cron jobs are nice and simple to create. Until they go wrong then they are a pain in the ass. You need to manage logging yourself. If you forget you root mail will fill up your disk and crash the system. If you forget the mailto setting. If you remember it you justlose all logs and have no clue why something is not working. You need to redirect the output to a logfile yourself. And then risk filling up the disk with logs unless you remember to also set up logrotate. And you then still don't know when something last ran or if it ran successfully.

So many traps and that is just the logging side of things.

[-] nous@programming.dev 28 points 9 months ago* (last edited 9 months ago)

Coreutils has little commercial value to take can create a proprietary fork of. There is little value that can be added to it to make it worthwhile. The same is for sudo - which has had a permissive licence from the start. In all that time no one has cared enough to fork it for profit.

Not saying that is true of every project. But at the same time even GPL software has issues with large companies profiting off it and not contributing back. Since unless you are distributing binaries the GPL does not force you to do anything really. See mongodb and their move to even more restrictive licences.

The GPL is not the only thing that stops companies from taking open software. Nor does it fully protect against that.

Not does everything need to be GPL. It makes sense for some projects and less sense for others. Especially libraries as that basically forces no company from using them for anything. Which is also not what you want from a library.

[-] nous@programming.dev 29 points 1 year ago* (last edited 1 year ago)

There is in this case, and why Linus did accept the patch in the end. Previous cases less so though which is why Linus is so pissed at this one.

The reason for this new feature is to help fix data loss on users systems - which is a fine line between a bug and a new feature really. There is precedent for this type on thing in RC releases from other filesystems as well. So the issue in this instance is a lot less black and white.

That doesn't excuse previous behaviour though.

[-] nous@programming.dev 31 points 1 year ago

Nobody sane uses vim as an IDE

Huh? Many people do this. With the right plugins and config it is just as capable as any IDE.

[-] nous@programming.dev 31 points 2 years ago* (last edited 2 years ago)

Title is clickbait. They only talk about unsafe rust, which I can see zip being safer/easier than unsafe rust. But 99.9% of code I write is safe rust - which most people just call rust. Even the author calls out the vast difference to writing safe vs unsafe rust:

Overall, the experience was not great, especially compared to the joy of writing regular safe Rust.


Then I would re-write the project in Zig to see if would be easier/better.

Of course it will be. The second time you write any project it will be easier and faster as you learn a lot form the first time you write something. If zig is always the rewrite it will come off better. Almost all rewrites are better or faster, even if you are moving to a slower language - the language makes a difference to performance and ease of writing. But far more does how you write things and the data structures/algorithms you use.

Overall they seem to want to write as much unsafe as they can and are writing rust like it is C. This is not a good idea and why zig will be better suited. But you can write a VM without large amounts of unsafe if you want to and it can be performant. Unsafe can be used in small parts where performance matters and cannot be done without it (though this is not that common I find).

[-] nous@programming.dev 30 points 2 years ago

I don't think it was burning coal that started the industrial revolution. We had been burning coal and oil for far longer. If anything it was the steam engine. And the internal combustion engine was still part of the industrial revolution. Though the development of cars lead to the automotive era.

[-] nous@programming.dev 29 points 2 years ago

It is a digital signage display (ie in store ads, menus, displays etc) - not meant for desktop use.

[-] nous@programming.dev 28 points 2 years ago

Sockets are just streams of bytes - no defined structure to them at all. Dbus is about defining a common interface that everything can talk. That means when writing a program you don't need to learn how every program you want to talk to talks over its own socket - just can just use a dbus library and query what is available on the system.

At least that is the idea - IMO its implementation has a lot to be desired but a central event bus IMO is a good idea. Just needs to be easy to integrate with which I think is what dbus fails at.

A great example is music player software - rather than every music player software creating its own socket and each having its own API to basically all do the same operations. So anything that want to just play/pause some music would need to understand all the differences between all the various different music applications. Instead with a central event bus system each music app could integrate with that and each application that wants to talk to a music app would just need to talk to the event bus and not need to understand every single music app out there.

[-] nous@programming.dev 30 points 2 years ago

Chinese manufacturers are quite flexible on pricing and quality - all the stuff is not the cheapest lowest quality stuff. One big problem they have though is that a lot of companies that farm out manufacturing to china do it to lower costs - and so opt for the cheapest things they can, then wonder why what they get back is a pile of crap and sell it on anyway.

If you are willing to pay more then the quality can actually be very good. At lot of things things you think of as good quality are still made in china or at least parts of it are.

[-] nous@programming.dev 30 points 2 years ago

Huh? FSF counts the MIT license as free, though they call it the Expat license they list it as both Free and GPL compatible: https://www.gnu.org/licenses/license-list.html#Expat It is also listed as an opensource licence by the OSI.

Thus by definition MIT is a FOSS licence.

[-] nous@programming.dev 31 points 3 years ago

In unit testing, a "unit" does not have to be the smallest possible section of code. It can be a while class or module or even set of related classes/modules. Testing individual functions in isolation leads to brittle tests that easily break during refactoring. Testing overall system behaviour results in more robust tests that require fewer changes during refactoring which gives you more confidence then you have not introduced a regression.

[-] nous@programming.dev 29 points 3 years ago

Or some kid walks past it, bumps it slightly and gets gassed in the face.

view more: ‹ prev next ›

nous

0 post score
0 comment score
joined 3 years ago