• 0 Posts
  • 29 Comments
Joined 2 years ago
cake
Cake day: May 31st, 2023

help-circle
  • Await is usually there either because the performance doesn’t matter and the legibility is much higher with it, and/or because there are a series of asynchronous actions that depend on each other and await lets you write them as if they are sync because related to each other they are.







  • It’s more language dependent than ide. Go for instance makes unused variables a compiler error (I believe) which means ides mark it as red immediately.

    Ts/js can have eslint rules against unused variables but they will still usually compile or just run directly anyway.

    Java doesnt error but can be set to warn you on them.

    Abap doesn’t care and won’t tell you.

    Your mileage will vary.








  • Luvon@beehaw.orgtoProgrammer Humor@lemmy.ml***
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    React is miles ahead of a bunch of much older frameworks businesses still use. I have projects being built new right now that use ui5 from sap. We have projects with spring boot with the templates in jsp.

    I would much prefer a react project to ui5 or jsp. And businesses with long running projects tend not to like using frameworks that don’t have at least ten years of usage and thus some proven surviveability unfortunately.



  • I have the complete opposite feeling. The more I have to use windows the more irritated I am at it. It’s bloody irritating.

    It has window snapping; sure that’s nice, but the default window snapping isn’t that useful for a power user and gets in the way of better window snapping from power toys. On the Mac I also have a third party (better touch tools) app to get custom snap zones that is better than even power toys fancy zones.

    But the basic window snapping ends up irritating me more often than it’s useful. I’ll have a window that is on the left side and not half screen. I use window left, and instead of snapping to half it “helpfully” switches monitors.

    Also I use multiple desktops. Windows couples all monitor desktops together. I can’t switch just one desktop. On a Mac I can swipe between individual desktops on each screen. This is way more useful to me.

    Windows also has a better clipboard manager. But it’s to basic to be useful for me. Only saves 10 things. I install a manager that saves 1000s.

    Windows power shell is awful. And worse is googling for how to do anything with a “command line” on Windows because you have to not only figure out what command line they mean but also what damn version.

    I’ve had very little trouble switching between Linux and Mac with home brew installed.

    Also Windows has a wierd file system. If I use the keyboard command to make a link to a folder it makes a bloody shortcut which a lot of programs ignore.

    So instead I get to google what the windows equivalent is of a hard link and how to make one. It’s a junction link and you use the command line. Yay. The command line isnt nearly as helpful. It’s very different from Linux. So very little transfers.

    And it doesn’t have history between sessions. “Power” doesn’t have history between sessions.

    Mac at least has the decency to use a decent shell in zsh. Zsh is fantastic.

    Also on the file system. When you get a select file for upload dialog, if you drag a file you already found in a file window to the dialog, it MOVES the file! Why! No instead you should apparently find the file again in the dialog or copy and paste the path which is way more steps.

    On Mac I just drag a file to the select dialog and it auto switches to the location and selects the file. The thing I wanted to do.


  • I already tend to have the code generator for various other abilities it offers. Things like annotations for logging, Val, and builders are just very practical and Java doesn’t otherwise have a way to get rid of that boilerplate.

    If I can use a record I will now (especially since we are now on Java 17) but like I said, I haven’t been able to make spring and hibernate play nice with records so far so I’m stuck with classes for some @data things


  • What major Java supporting ide doesn’t support Lombok? Even vs code with Java extensions supports it.

    And the third party dependency is a weak argument. You will have dependencies in any major application. Lombok is a well tested dependency at least.

    Nothing against records, working on using them more but they don’t always play nice with hibernate.

    But I guess that’s another terrible third party dependency we should all avoid.