• 20 Posts
  • 289 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle




  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlJava Bros
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 days ago

    Well, on the JVM side of things there’s Scala and Kotlin. Scala supports all the object-oriented paradigms + the functional paradigms. Kotlin supports about the same number of features as Scala, although it puts more restrictions on them. On the Microsoft side of things, I’ve never tried it, but I’m guessing F# has to cover a similar object-oriented + functional feature set. Well, and from what I’ve heard about C++, it’s presumably the language with the most features across all languages.


  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlJava Bros
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 days ago

    Eh, I’d argue that Java and C# are in the niche of having few features. While I don’t like this niche, Java having even less features makes it stand out more in this niche. If you’re looking for a language with more features than that, then there’s so many more feature-rich choices than C# that I just don’t feel like you’d choose C#, unless you want Java with integration into the Microsoft ecosystem.


  • Ephera@lemmy.mltoLinux@lemmy.mlHow I use Kate Editor
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    10 days ago

    renaming symbols, presenting documentation, formatting files,

    Yes, these are supported via the Language Server Protocol (LSP). I’ve mostly been using it with the Rust LSP server (rust-analyzer) and well, it typically works, but sometimes you have to tell it to restart the LSP server and stuff (which isn’t a huge ordeal, but don’t expect everything to always work as well as in a full-fledged IDE).
    I believe, for formatting, there’s also some non-LSP support.

    showing code diagnostics beyond syntax errors (for example code smells or so),

    This is supported in principle via LSP, too, but it depends on the specific LSP server, how much info it provides. The Rust compiler gives out relatively much on its own, which is passed on by the LSP server, but you can apparently also configure it to use the linter on save.

    have AI integration (explain this, rewrite this, replace this with prompt output, …),

    Not out of the box. There’s a way to define “External Tools”, which basically allows you to run commands and pass arguments to them and then use their output. For example, you should be able to define an External Tool, where you can select some text, then press your keyboard shortcut for that tool, so it sends the selected text to that tool and then it takes the command output and inserts it instead of the selected text.
    While this is a powerful concept, I don’t know, if you hit limitations at some point.

    specific framework integrations (reactjs, django, actix, …),

    Nope, except where this might be covered by LSP. But there’s no obvious way to just install additional plugins, for example. You get about thirty built-in plugins and that’s it.

    and stuff like expanding macros in C/C++ and Rust?

    Well, expanding macros is also possible with the Rust LSP server. Don’t know about other languages.









  • Yeah, leaving moral reservations aside, it’s especially annoying to me, because it’s being pushed with complete disregard whether it actually helps me.

    I’ve been working in a programming language for the past two years, in which I’m well-trained. Better than the statistical average that LLMs blurt out, at the very least. So, I’ll often end up correcting whatever it generates, rather than just typing out the same directly. In particular, I also find it much easier to think while typing, rather than while reviewing code, so I need pauses to think anyways. And I also just find it disrupts my concentration when the autocompletion-style LLMs keep flickering their suggestions at me.

    Similarly, flavor images. So much of management is fucking excited about generative AI, because they can type shit like “wombat hanging off of a line of code” and then it slops out an image, which they can slap into their presentation and pretend it has meaning.
    I don’t like those images. The AI-generated ones look terrible to me, but I did not either like them before they were AI-generated. It’s just pointless imagery, why are you showing me this?
    Obviously, management can disagree with my stance, many people do, but if they want me to present shit, they need to respect that my presentation style just does not include flavor images, no matter what flavor image generator we pay for.


  • Ephera@lemmy.mltoMemes@lemmy.mlBig F'N TV
    link
    fedilink
    English
    arrow-up
    5
    ·
    28 days ago

    I mean, yes, but I was rather wondering, if that extra space was maybe why it couldn’t find it. Maybe you had to manually enter the SSID and accidentally put in that extra space? Then again, I don’t even know, if you took that photo…




  • Ephera@lemmy.mltoScience Memes@mander.xyzIt's the law!
    link
    fedilink
    English
    arrow-up
    4
    ·
    29 days ago

    I work as a software engineer and honestly, it’s ridiculous how often I’m asked to or tempted to violate the laws of physics.

    There’s classics like measuring how long it takes to send a network packet from one device to another – you can’t, because the two devices might have wildly different understandings of what time it currently is. The only way to get an accurate measurement is by measuring how long it takes to send it there + back (a.k.a. the round-trip time).
    And then you divide that by 2 and pretend there’s no asymmetry in transmission speed, nor delay between the other device receiving it and sending it back. 👍

    In our previous project, we were recording audio chunks of one second each and then feeding it into a detector. At some point, we got asked, if we could reduce the delay until the user gets feedback from the detector. Also, we can’t make the detector detect things more often, because it might make more mistakes. Alright, I guess, I’ll just break up the time continuum then and give the user feedback before it has finished recording. 👍

    And now in our current project, we’re supposed to send network packages across the globe and also we basically can’t have any latency. Yeah, so there’s this thing called the speed of light/causality at about 300000 km/s. Halfway around the globe is about 20000 km. That leaves us with 66.7 ms of latency, at its theoretical minimum. Guess I’ll just quickly invent a way to create worm holes, no problem. 👍



  • Ah, right, because of google.com and google.co.uk and such. The search engines I use, don’t have the money for so many domain names, so it’s just a UI selection. 🫠
    With the address bar rework, you could register both of them as a search engine and then simply select the other one to change language/region.

    Copying the URL could be problematic, yeah. I don’t have the update yet, so I wouldn’t know, if it’s something real simple like just right-clicking the address bar. If you really do need it, then it should still be possible to browse to the search engine’s webpage directly and issue your query via the search box on the webpage.