linux Linux best linux terminal emulator
Jump
  • snaggen snaggen 5 days ago 100%

    Are you saying that it is common that people use utf8 characters that you cannot easily type on a standard keyboard? I'm very skeptical of this claim.

    1
  • linux Linux best linux terminal emulator
    Jump
  • snaggen snaggen 5 days ago 100%

    Good to know that every time I feel the need to use ALGOL 68, I must remember to disable ligatures. Still not sure this is going to be a huge problem 😂

    2
  • linux Linux best linux terminal emulator
    Jump
  • snaggen snaggen 5 days ago 100%

    Well, that was something.... I have used ligatures in my code editor for quite a few years now, and I have NEVER been confused about the ambiguity this person is so upset about. Why? I have never ever seen the Unicode character for not equals in a code block, simply since it is not a valid character in any known language. In fact, I have never even seen it in a String where it actually would be legal, probably since nobody knows how to type that using a standard keyboard. This whole article felt like someone with a severe diagnose have locked in on some hypothetical correctness issue, that simply isn't a problem in the real world.

    But, if you for some reason find ligatures confusing, then you shouldn't use them. But, just to be clear, there is not a right of wrong like this blog post tries to argue, it is a matter of personal taste.

    2
  • linux Linux best linux terminal emulator
    Jump
  • snaggen snaggen 6 days ago 100%

    Splits, ligatures tabs and more

    1
  • linux Linux best linux terminal emulator
    Jump
  • snaggen snaggen 7 days ago 100%

    Cosmic term is nice. Still just alpha, so there are rough edges though.

    3
  • rust Rust Announcing Rust 1.81.0
    Jump
  • snaggen snaggen 2 weeks ago 100%

    fs::exists() was a nice little improvement that I didn't know about until I read this announcement.

    7
  • technology Technology How can we return to techno-optimism?
    Jump
  • snaggen snaggen 2 weeks ago 100%

    Producing products that the users wants, and that solves tje users real problems. And not trying to make products as addictive as possible, to harvest as much user data as possible to sell.

    18
  • linux Linux One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
    Jump
  • snaggen snaggen 3 weeks ago 100%

    The problem is that C is a prehistoric language and don't have any of the complex types for example. So, in a modern language you create a String. That string will have a length, and some well defined properties (like encoding and such). With C you have a char * , which is just a pointer to the memory that contains bytes, and hopefully is null terminated. The null termination is defined, but not enforced. Any encoding is whatever the developer had in mind. So the compiler just don't have the information to make any decisions. In rust you know exactly how long something lives, if something try to use it after that, the compiler can tell you. With C, all lifetimes lives in the developers head, and the compiler have no way of knowing. So, all these typing and properties of modern languages, are basically the implementation of your suggestion.

    16
  • technology Technology Firefox rolls out Total Cookie Protection by default to all desktop users worldwide | It is Firefox’s strongest privacy protection to date, confining cookies to the site where they were created
    Jump
  • snaggen snaggen 3 weeks ago 100%

    It is making the tracking protection part of containers obsolete, this is basically that functionality but built in and default. The containers still let you have multiple cookie jars for the same site, so they are still useful if you have multiple accounts on a site.

    3
  • technology Technology Firefox rolls out Total Cookie Protection by default to all desktop users worldwide | It is Firefox’s strongest privacy protection to date, confining cookies to the site where they were created
    Jump
  • snaggen snaggen 3 weeks ago 100%

    Container tabs are still useful, as they let you use multiple Cookie jars for the same site. So, it is very easy to have multiple accounts on s site.

    7
  • programming Programming How to learn Rust?
    Jump
  • snaggen snaggen 3 weeks ago 100%

    https://doc.rust-lang.org/book/ this is a great starting point. Then when you got the basics, and fiddled around a bit, then you can start looking for more specialized books (like Rust Atomics and Locks https://marabos.nl/atomics/ )

    23
  • world World News Biden introduces Zelenskiy as ‘President Putin’ at Nato summit
    Jump
  • snaggen snaggen 2 months ago 61%

    Have he said something even close to the stupidity of Trump? Like suggesting bleach against Covid? Why should all Trump opponents be measured with a different scale then Trump. Could you imagine the number of headlines required if Trump would get a headline every time he does anything on this scale?

    5
  • world World News Russia's war-driven economy is so hot that the World Bank upgraded it to a 'high-income country'
    Jump
  • snaggen snaggen 2 months ago 94%

    Well, not sure an inflation, twice the size of the GDP is positive for a country...

    17
  • programmer_humor Programmer Humor How programmers comment their code
    Jump
  • snaggen snaggen 2 months ago 100%

    Comment about image

    16
  • rust Rust Rust has a HUGE supply chain security problem | Sylvain Kerkour | July 2, 2024
    Jump
  • snaggen snaggen 3 months ago 100%

    Well.... it is true that it doen't have all these crates like Url included in the rust standard library, and hence it is not official. On the other hand Url was created by Mozilla to be used in Firefox, hence it is a quite competent crate that is very well maintained. And my guess is that the http crate may have the same kind of origins... but I'm not entirely sure about that.

    And even Java that includes quite a lot, still didn't get a good Http library until very recent, until then you had to rely on some obscure library created by the unknown organization Apache... so...

    As a developer you always have to think about what libraries you use, and if you trust them... that goes for pretty much any language.

    13
  • programming Programming Started learning Perl
    Jump
  • snaggen snaggen 3 months ago 100%

    Well, Perl is great for small scripts that works on large texts, that you process with regex. I still use Perl from time to time, for that kind of scripts. Also commandline, instead of awk/sed...

    4
  • programming Programming Started learning Perl
    Jump
  • snaggen snaggen 3 months ago 100%

    I learend it in the 90s, and was working on a large Perl codebase 2005 and a couple of years forward. And 20 years, it still started to feel dated, and 15 years ago it was just so out dated it hurt. So, starting to learn Perl 20 years ago would not have been great :) However, the things making Perl horrible, is pretty much threre in Python also with the addition of significant whitespace... so technically, going from Python to Perl might actually be a step in the right direction.... Now, if you excuse me, I will hide behinde this huge rock for a while to let the incoming projectiles settle.

    13
  • rust Rust JetBrains RustRover Is Released and Includes a Free Non-Commercial Option
    Jump
  • snaggen snaggen 3 months ago 100%

    I used to use IntelliJ Rust as my primary rust IDE, but when they switched to Rust Rover I stopped using it. Not sure why actually, possibly since I used Java with IntelliJ it was already my go to IDE, so using it for Rust was natural. I also guess, that I had nvim with rust-analyzer working, so that was available at my finger tips already. So, I might have switched over anyway... who knows.

    Anyway, it is good to see more options available, and I hope it is getting so good that it is worth the money.

    5
  • linux Linux COSMIC Alpha coming in July - System76 reveal branding, a big hardware sale with new merch
    Jump
  • snaggen snaggen 3 months ago 100%

    No, it is not based on Gnome. It is a full DE environment written in rust.

    29
  • rust
    Rust snaggen 3 months ago 100%
    Rust Container Cheat Sheet

    Found this on Mastodon https://fosstodon.org/@dpom/112681955888465502 , and it is a very nice overview of the containers and their layout.

    92
    4
    technology Technology America’s assassination attempt on Huawei is backfiring
    Jump
  • snaggen snaggen 3 months ago 80%

    The problem with assassin the Russian economy, is to do it faster then it commit suicide.

    3
  • linux Linux What was your latest improvement to your Linux setup?
    Jump
  • snaggen snaggen 3 months ago 100%

    Not the latest, but one of the biggest improvements was the Ultimate Hacking Keyboard. Now I have programmed the keyboard to have VIM navigation at the keyboard level. The latest was switching to neovim and setting it up properly.

    12
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 100%

    Of course cars would loose if you tried to use it to travel across the Atlantic...

    1
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 100%

    But per mile measurement for flying implies that every mile of a flight is equally dangerous, but the truth I'd that it is most dangerous to start or land, which is a per trip occurrence. The take off and landing is equally dangerous whether you travel a long or short distance in between.

    2
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 100%

    And the question is am I going to die on this trip? And there the real statistics are pretty clear, cars are safer.

    1
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 100%

    Well, what I want to know is "Am I going to die today?". The distance traveled is irrelevant to answer that question. The only reason to add that to the equation is to make air travel look safer.

    1
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 100%

    Per trip is more in line with how people think about danger. Like, am I going to die on this trip?

    2
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 50%
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 50%

    I think you underestimate the number of trips per car per day. Most people will take more trips by car per month than they will fly for their lifetime. In Sweden , a country of 10 million, we have about 150 people killed per year from car accidents, yet most adults travel by car daily. That is millions of trips per day, and only half a death.

    0
  • xkcd xkcd xkcd #2940: Modes of Transportation
    Jump
  • snaggen snaggen 4 months ago 18%

    The fact that airplane travel is safer than cars is a myth invented to promote airplane travel. Well, it is not fully a myth, but to get to that result they measure per mile, and that greatly favor airplane travel. If you instead measure how likely you are to die on your next trip, then the dangers of airplane travel will significantly exceed car travel and other means of transportation.

    -7
  • neovim Neovim NeoVim 0.10 Released!
    Jump
  • snaggen snaggen 4 months ago 100%

    One breaking change, that they doesn't list as breaking (I guess since I assume the old was always broken) is: Dynamic registration of LSP capabilities. An implication of this change is that checking a client's server_capabilities is no longer a sufficient indicator to see if a server supports a feature. Instead use client.supports_method(<method>). It considers both the dynamic capabilities and static server_capabilities.

    So if you had code like

    if client.server_capabilities.inlayHintProvider then
    ...
    end
    

    you now should use

    if client.supports_method("inlayHintProvider") then
    ...
    end
    

    So, not really a breaking change I guess, but something you should change any way.

    2
  • programmer_humor Programmer Humor What it's like to be a developer in 2024
    Jump
  • snaggen snaggen 4 months ago 95%

    You are confusing Google and Internet.... they are very different things.

    38
  • programmer_humor Programmer Humor What it's like to be a developer in 2024
    Jump
  • snaggen snaggen 4 months ago 92%

    Had to test with Kagi also, leads with official documentation, after that tutorials and unofficial things. Nothing obviously irrelevant. The only thing with the Kagi results, was that there were a few very simmilar official documentation links (for different postgresql versions) at top. But, still good search results. Not sure why anyone is still using google, when there are quite a few better alternatives availale

    11
  • rust Rust How can Rust be so fast in the TechEmpower Web Framework Benchmarks?
    Jump
  • snaggen snaggen 5 months ago 92%

    You don't have to understand everything, it is ok. And joining a language community for a language you hate just to rant about it, shows that you should try to focus on letting things go. It feels a bit obsessive.

    If you actually like to have a conversation about the language, I suggest you be a bit more specific and we will try to answer to the best of our ability.

    Have a nice day, and don't forget to breathe.

    11
  • worldnews World News Zelenskyy straight-up said Ukraine is going to lose if Congress doesn't send more aid
    Jump
  • snaggen snaggen 5 months ago 31%
    -6
  • worldnews World News Zelenskyy straight-up said Ukraine is going to lose if Congress doesn't send more aid
    Jump
  • snaggen snaggen 5 months ago 57%
    4
  • worldnews World News Zelenskyy straight-up said Ukraine is going to lose if Congress doesn't send more aid
    Jump
  • snaggen snaggen 5 months ago 67%
    13
  • worldnews World News Zelenskyy straight-up said Ukraine is going to lose if Congress doesn't send more aid
    Jump
  • snaggen snaggen 5 months ago 65%
    13
  • world World News The Shift: Biden says he’s ‘outraged’ over killing of aid workers . . . and moves to send Israel more weapons
    Jump
  • snaggen snaggen 6 months ago 100%
    1
  • world World News The Shift: Biden says he’s ‘outraged’ over killing of aid workers . . . and moves to send Israel more weapons
    Jump
  • snaggen snaggen 6 months ago 20%
    -14
  • rust Rust Have anyone tried Loco, a rusty attempt to be Rust on Rails
    Jump
  • snaggen snaggen 6 months ago 100%

    What I feel looks interesting with "on rails" is that you get things like database management built in, like setup, upgrades aso. Of course, this also means that it might be difficult to jump off the rails if you need that. And even if I feel like I'm not the target audience, since I prefer to pick and choose smaller libraries, I'm watching this with interest since Ruby on Rails seems to be quite popular.

    3
  • rust
    Rust snaggen 6 months ago 98%
    Have anyone tried Loco, a rusty attempt to be Rust on Rails loco.rs

    I think I saw this early on, but then forgot about it. Stumbled upon it today, and it actually looks like a cool project. Have anyone any experience of using it for a real or just a toy project?

    63
    12