• 7 Posts
  • 18 Comments
Joined 1Y ago
cake
Cake day: Jun 13, 2023

help-circle
rss

Tested to search for a stomp rust crate and got horrible results. So, I guess that you should test the different search engines with your use case and see which one fits that.


Except if all developers, who are also power users of the internet, switches to another browser which allow ad blockers, all web based apps and websites will shift to work better in Firefox then on Chrome. Then the regular user will also switch.





That depends on the job I want to do. But generally my selection is something like this.

  1. Is it a short simple script: Bash
  2. Longer script, then a more competent dynamic language like Perl/Python.
  3. Backend, a strong typed compiled language, with as few runtime errors as possible. If it depends on some particular API, the language with good enough bindings.

Preferred backend language, Rust, since that have the least runtime errors, thanks to its strong typing and the great error handling. But I also use Go if it have better libs for what I do, or Java for situations where that is more suitable.


No ads disguised as search results. Actually, no ads at all. Great search results. Lenses.

Also, there is a solution for incognito mode. And ad supported, in practice means tracked by advertisers, and hence you are the product.


They don’t require CLA, since it’s MIT license. So what they showcase is the benefit of copyleft.



When you compare “idea to deployment” speed, a dynamic language will always win. However, much of this win is due to a dynamic language will let you deploy with a lot of bugs. So, you will then have to spend lot of time fixing production issues. Rust will force you to fix most of these issues before you can deploy, hence it feels slower in this aspect. I previously worked for 10 years with a huge perl code base, and I trade the deployment speed for stability in production any time.


The implicit contract is to show an ad for a service, but they are actually violating the contract by attaching other things to the ads. They then use the ads to steal information that they then sell without my consent. So, if anything we are discussing honor amongst thieves.


I do not block ads. I however use Privacy Badger to block tracking cookies, which means that I don’t see ads. I will see all ads that are not tracking me, which seems to be none. Is protecting my privacy also piracy?


Traits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860


If you look at Rust for example, then you specify the Traits instead. So, you could define a trait that defines the properties for birth, another to define if the animal have a beak, and another one to define the number and type of legs. The each animal implement these traits, which then properly can define a duck, cat and a platypus.


But even there a TcpStream, a FileStream and a StringStream might have quite differen behaviour, since they all abstract very different things. So, even this simple example may fall apart very fast if you need to care about those. I’m not saying that Inheritance is always bad, but it is quite rigid and might cause problems in a large codebase if you suddenly run in to the corner cases where the assumptions the abstraction is based upon is no longer upheld.


The core problem I see with Inheritance is that the abstractions tend to fall apart and no longer be true. Lets use the Animal example. It is easy, when you have Animal -> Cat and Animal -> Dog. But as soon as we become more specific like Animal -> Mammal -> Cat, Animal -> Fish -> Hammerhead Shark, Animal -> Bird -> Bald eagle, we risk of getting in trouble. Because now for all purposes we assume things about the Fish, Birds and Mammals, like fish is in the sea and mammals are live on land. We know that this is not strictly true, but for everything we need it works. Later we need to handle a dolphin… should that be a fish, or do we need to restructure the whole program. If we treat it like a fish, then we might be even deeper in trouble later if we would need to handle birth. And even if we restructure our program to be correct to handle birth, we might stil forget that some mammals lay eggs like the Platypus, so then things break again if we need to handle that. We tend to see Inheritance as a rigid fact based structure, but the core problem is that it is just a bunch of assumptions we dictate in a very rigid way that is hard to change.

Composition have no problem with specifying the platypus as a mammal that lays eggs and have a beak.



That is pretty much the same policy I have for forcing adds on me.


Just to be clear, I’m not the author I just found it a quite interesting article and thought I’d share it here.



To be fair, he merged the original version and not his own… at least not yet until it have been properly tested.


Yes, who haven't had a glass of red wine, relaxing music and some inline assembly....
fedilink

I think you are getting things backwards… Learning to write rust might be hard, if you are not used to typed languages or languages with explicit memory management with stack/heap separation. However, writing rust is not hard. It might take slightly longer in the coding phase, since you are forced to do things correct, you need to handle errors and are not allowed to share data between threads in dangerous ways aso. But that makes the resulting software a lot better, which means that the testing and support is a lot less. So, if anything, the net result of writing software in rust is that it is easier, since you are not allowed to shoot your self in the foot over and over again.

And remember, that every time rust is making your life difficult, you might have introduced a subtle bug in another language.


PDF Slides - Rust for “modern” C++ devs
fjärrinlägg från: https://programming.dev/post/44365 > Came across this talk by Graydon Hoare from March 2022
fedilink

The 2023 Developer Survey results are out
fjärrinlägg från: https://beehaw.org/post/553116 > Rust is in the top when it comes to most loved languages. > I also note that they claim Windows is the most used OS, but when you summarize the different Linux distros, then Linux is more used professionally and almost as popular for Personal use.
fedilink