HN user

LogicHound

44 karma
Posts0
Comments46
View on HN
No posts found.

They updated the graphic to include HPV style vehicles that are more aerodynamic than bicycles (usually just a bicycle with an aero-shell). I am not sure why this has come up now because I have an old bicycle book my Grandmother bought for me back in the late 90s that discusses these vehicles and it was known then they were more efficient.

This article is putting a metric of efficiency, while ignoring the reasons why things like a dog may have less efficent locomotion over perfectly flat terrain, because there are very few natural landmarks that have perfectly flat terrain.

You can't control for this stuff and measure it really.

I'd love to see a deeper comparison, how does efficiency of locomotion compare between animals within different types of environments, obstacles, etc.

Again this is difficult to control for. Other than particular areas where bicycle won't work (and there are very few places where that would apply), the bicycle is still likely to win out. Even if you have to get off occasionally to navigate over/under/around an obstacle you get all the benefits of efficiency for the majority of the time.

`var` doesn't have weird scoping issues, it just different than other languages. `var` is function scoped, thus all var declarations are hoisted to the top of the function during execution.

This is why the single var pattern used to be recommended.

Arguments about whether the is and switch operators should exist is missing the forest for the trees. I am sure there are circumstances where it very useful.

It isn't any one language feature it is the mentality of both the developer community and Microsoft.

I agree that they should not add new stuff lightly

It seems though kinda do though. I am not the first person to complain that they add syntactic sugar that doesn't really benefit anything.

e.g. https://devclass.com/2024/04/26/new-c-12-feature-proves-cont...

I have a raft of other complaints outside of language features. Some of these are to do with the community itself which only recognise something existing when Microsoft has officially blessed it, it is like everyone has received the official permission to talk about a feature. Hot Reload was disabled in .NET 6 IIRC for dubious reasons.

Pure efficiency in locomotion is a terrible measure, is a person on a bicycle more efficient traversing a forest?

Quite possibly. I would imagine it depends on the forest. I've been in forested areas on the mountain bike and you can cycle through these areas fine.

It's the classic physics issue - you are ignoring air resistance, but in this case you are ignoring everything other than a perfectly paved road.

Rolling resistance is mainly down to the types of tyres used, how wide they are and how much they are inflated. Surface doesn't make that much of a difference IMO unless it is on a really lose surface e.g. loose gravel, mud or ice.

The biggest improvements to cycling efficiency is usually either being in a recumbent bicycle (less air resistance as you are led down) or by being in a more more Aero position with lycra on. But air resistance only becomes a big thing past 20mph or if you are wearing clothing that is really baggy.

Bicycles are the most efficient forms of transport in energy per mile. They are often the fastest in built up areas as well.

The issue is that I dislike the overall mentality of just adding a bunch of language features. Things just seem to be dumped in each release and I think to myself "When I am going to use that?".

Would you say that these samples show no benefit to using the "is" operator?

I didn't say no benefit. I said dubious benefit.

I didn't really want to get into discussing specific operators, but lets just use your date example:

   if (date is { Month: 10, Day: <=7, DayOfWeek: DayOfWeek.Friday }) { ... }
This following would do the same thing before the is operator:
    static bool IsFirstFridayOfOctober(DateTime date)
    {
        return date.Month == 10
            && date.Day <= 7
            && date.DayOfWeek == DayOfWeek.Friday;
    }
And then:
    if IsFirstFridayOfOctober(date) {
       ...
    }
I understand it is more verbose. But do we really need a new operator for this? I was getting on fine without it.

Each release there seems to be more of these language features and half the time I have a hard time remembering that they even exist.

Each time I meet with other .NET developers either virtually or in Person they all seem to be salivating over this stuff and I feel like I've walked in on some sort of cult meeting.

Claude outage 9 months ago

I use it to generate me example code e.g. how do I do <thing> in <programming language> using <library>.

I've also had it suggest solutions e.g. "This C++/OpenGL code doesn't run in wayland can you suggest some solutions".

Other stuff like generating tests is hit and miss.

I find there are some environments where you have a positive feedback loop while working in them. PHP is one of them, Go is another at least for me.

I find many of languages I am constantly fighting with dependency managers, upgrades and all sorts of other things.

There is a huge amount of syntactic sugar that has been added over the years that doesn't do whole lot IMO. It is often imported from other languages (usually JavaScript and/or Python).

e.g. Just a very simple example to illustrate the point

    if (customer != null)
    {
        customer.Order = GetCurrentOrder();
    }
vs
    if (customer is not null)
    {
        customer.Order = GetCurrentOrder();
    }
Is there really any benefit in adding "is/is not"? I would argue no. So I categorise that as being of "dubious benefit" and there are many similar small features, keywords etc. that get added each release where they might save a few lines of code somewhere but I've never seem them used that often.
Keep Android Open 9 months ago

Sure, there are a lot of people that use Linux indirectly e.g. deploy to a Linux box, use Docker or a VM. But if someone isn't running Windows, 9 times out of 10 they are running a Mac.

That was my original comment. It is pretty easy to that to assume that when someone says "none" in a subsequent comment they mean "almost none" following that statement.

It's funny how functional programming is slowly becoming the best practice for modern code (pure functions, no side-effects),

I once mentioned both these concepts to a room of C# developers. Two of them were senior to me and it was a blank expression from pretty much everyone.

yet functional programming languages are still considered fringe tech for some reason.

You can use the same concepts in non-functional programming languages without having to buy into all the other gumpf around functional programming languages. Also other programming languages have imported functional concepts either into the language itself or into the standard libraries.

Past that. It is very rare to be able to get a job using them. The number of F# jobs I've seen advertised over the last decade, I could count on one hand.

Keep Android Open 9 months ago

I never said that nobody uses Linux. I said that it was extremely uncommon even amongst developers.

The way you are using irresponsible is perverse. e.g. Being Irresponsible in this context would be remortgaging your house, while unemployed and using all the money to buy gadgets.

Forgetting that you have a small amount deducted for a service you are no longer using, isn't. It is minor oversight.

The way that language is abused by people when it comes to these sorts of subjects is bordering on semantic manipulation. Which in itself is a form of deceit.

Keep Android Open 9 months ago

You are the minority but you can believe whatever you like.

The vast majority of developers I have worked with (and I've contracted a lot of places) know next to next to nothing about Linux. They can barely use a terminal (Powershell, CMD, Bash/Zsh) and often can't do anything outside of the IDE.

If they do use Linux. It be on a Raspberry PI that gets stuck in a drawer after a few months.

To those that keep voting me down on this. The teams and environments you work in are the outliers. I've had to accept that I am in the minority as a Linux user even amongst software professionals.

It is easy to miss a subscription for something on a bill when it is less than £30. I had a match.com subscription I had forgotten about for about 7 years.

That business model is what a lot of tech companies actually bank on that why they require a credit card on a free sign up.

I think what you want is for software developers not to write bloated code, instead of computers not getting faster. The bloated code is a result of undisciplined programming and not paying attention to users' devices.

I am so fed up of hearing this. I would love to optimise my code, but management will always prioritise features over optimisations because that is what drives sales. This happens at almost every company I've worked at.

Also more often than not, I have a huge problem even getting stuff working and having to wrangle co-workers who I have to suffer with that cannot do basic jobs, do not write test and in some cases I've found don't even run the code before submitting PRs. That code then get merged because "it looks good" when there is obvious problems that I can spot in some cases from literally the other side of the room.

It's incredible interesting,

You don't think that.

if anything else, that I feel the same about you and could have written exactly the same thing as you seem to lack real-world experience, and probably are a bit younger than me, judging by what you wrote.

IME, those who start claiming the other person lacks real world experience as an argument (like you did), is normally making up for the fact that they don't.

But instead, probably better to stop here and acknowledge we won't get to anything interesting after all, so thank you for your time, and maybe see you around :)

We can't get to anything interesting because you ignore what you don't want to engage with. There were a huge number of presumptions you make without even realising it in your statements.

I also want to know why you think that developers are more rational? You never gave a rationale other than what boils down to "I think other people are dumb, and developers are smart". That was your entire argument.

Being frugal, thinking about what you need and similar ways of thinking is not common in the real world, it's a small selection of any population that acts and reasons like that.

It often is. Often out of necessity.

You are making the mistake a lot software developers and other professionals often make. Is that they think rationally and others do not. This is because in one area they are forced to think about things rationally because otherwise something simply doesn't work. This translates poorly often to outside of their field because they are often making incorrect assumptions.

I have seen little evidence that professional in software are any more or less rational, frugal than any other group of people and often they will spend their money on absolute garbage. This is so prevalent there are memes about it online.

Moreover I've seen many Software Developers and people that surround them in tech (e.g. BA, Testers, Project Managers) fall for some of the most obvious bullshit.

I'm not sure what to tell except go out more in the world and interact with people outside your bubble, if this isn't obviously clear to you already.

So, I could say the exact same thing to you. TBH, I actually think this is projection. The way you are talking is like the way I used to talk when I was younger and had less real world experience. It should give you pause that another person has a radically different opinion, is arguing against their own group (I am a dev) and I can back that up with a decent rationale as to why I believe it.

Your argument throughout this boils down to "I think this is true, because I think other people are dumb". Which is pure hubris.

I don't think there is anything wrong with liking popular things and tbh this attitude that somehow you are better because you like more niche things is very close to snobbery. I am not saying that is your intention, but it can come off that way.

There are plenty of popular franchises that I've liked in the past. There are plenty of "slop" movies that I enjoy, I really like Mission Impossible movies, Fast and Furious movies. I've also liked some of the Call of Duty games. There is room for both.

It isn't that much of an issue gaming on Windows. Yes, I had to do a one time workaround for a local account and run a de-crapifier. But it wasn't that difficult. If it becomes too difficult I will probably drop Windows entirely.

I run into more problems with Linux than I do typically with Windows. I've been using Linux on and off since 2002. I don't particularly mind it, but I also don't pretend it is for everyone.

On Linux, the really old games just work, as do virtually all new games with the exception of those very few big budget new releases.

It really seems like you aren't reading what I said. I accept that old games will often work fine, provided they are on a store like GoG or Steam. Big budget releases are often what people want to play.

If those are the games you really want to play then Windows is the answer, have fun ponying up your drivers license to Microsoft for the privilege of getting root kitted by those games.

It isn't about what I want. It is about what is the reality for the vast majority of people. I would rather everyone play games that work on Linux. Unfortunately many of the people I play games like playing new titles, often they only work well on Windows. There is a social aspect of this that many people on here ignore.

Literally everything else just works on Linux, one click install and play through steam, no bullshit fiddling around.

They don't though. There are always odd issues with games e.g. borderless window doesn't work in a lot of games, because the mouse will get lost. Having that happen mid-match sucks, having fullscreen window has it own draw backs. I won't get into performance and sound issues as I've already explained the issues there.

I had the following problems. Note my hardware was ageing at the time and was about 5 years old. I know a quality apple specialist that did the work.

- Glue'd in batteries on Laptops. I had a Mac Pro with a glue'd in battery. I could have done it myself, however I ended up opting to get someone who knows what they are doing to replace it. Labour and battery replacement cost me about £250.

- Official charger made the power lines toast. Another £250 to get it repaired.

- iOS Safari browser sometimes stops videos / audio when the screen locks or you switch apps. It is really annoying. Doesn't happen on Graphene OS or Android.

- iCloud is kinda required if you use an iPhone even though I don't use it for backups.

- Upgrades just aren't possible. Every single on of my laptops I have, I have upgraded ram, disk and even processor on some of the older models I have. I changed an intel Mac Mini drive to an SSD, it was a fiddly to say the least. On other SFF machines it is often a 5 minute job.

- MacOS is kinda just weird. While it is a Unix, it does everything it can to hide it. As someone that used both Linux/BSD. MacOS feels like running a weird Linux distro. Brew was kinda weird after coming from Linux world. I would have just preferred to run Linux.

- The online account stuff with Apple is somehow worse than Microsoft.

These days I buy refurb Business Laptop from Dell or Lenovo. Literally 10% of the price, Linux almost always works and if breaks, I can buy another one cheap for the same price as repairing an Apple machine. I get it, they are not as nice but for me they work fine and are much cheaper.

The big budget games are often the ones that people are playing. Sure there have been a few big flops as of late, but a huge number of people are playing that require kernel level anti-cheat and DRM that does not work on Linux.

There are also other issues around how well those games work. Some games will work perfectly fine. I am not disputing that. It is a bit of a lottery though e.g. I had annoying sound issues with Hell Divers 2 that was only fixed with an update to pipewire. Performance issues were solved by upgrading to Kernel 6.16.

On Windows I had to do literally nothing for the game to work perfectly (also don't believe some of YouTubers that are complaining HD2, their PCs were actually broken!).

Generally on Windows I have to do very little to get a game to work, outside of extremely old games from the late 90s/early 2000s.

The 90% of games running on Linux does not say how well and what games. Sure I can play the Batman: Arkham Knight perfectly on Linux. However the game is a decade old now. Try playing some titles that came out this year and it going to be very variable, multiplayer titles are often a no go at all due to anti-cheat. You can argue to you are blue in the face about kernel level anti-cheat but at the end of the day if all your mates are playing X, you are just going to suck it up and play X.

There is enough issues running games on Linux that there are specific distros created for running games because everything from the kernel version, X/Wayland, Compositor and the pipewire version can affect immensely how well the game runs.

Keep Android Open 9 months ago

Unfortunately in the past people have taken obvious hyperbole literally.

I realised a few years ago when one of my friends didn't know what the browser was on her phone, that any notion of people caring about the OS outside of branding is pretty much non-existent.