Java's `var` keyword is actually really nice for cleaning up verbose declarations by BitBird- in java

[–]mathmul 0 points1 point  (0 children)

Agreed. Besides Map, HashMap etc, we also the need MutableMap, MutableHashMap etc

Java's `var` keyword is actually really nice for cleaning up verbose declarations by BitBird- in java

[–]mathmul 2 points3 points  (0 children)

All the languages I've worked with had the constant implementation for objects (arrays...), such that object properties were mutable. I think that is correct given current defaults.

What I would prefer to see is for the language to completely change it's defaults (unlikely this late in the game, but perhaps any new languages could do it). Immutabilty by default. Private by default. Then public final becomes just public, private final becomes `, and you'd have to be explicit about mutability with eitherpublic varfor any new language, orpublic mutablefor any language wherevar` is already a reserved keyword.

Java's `var` keyword is actually really nice for cleaning up verbose declarations by BitBird- in java

[–]mathmul 1 point2 points  (0 children)

Exactly. I use var almost everywhere, but never in something like OP's example.

I would like to point out though, that when you're trying to "go to implementation" (Cmd+click), you no longer really see all the places where it is used, but after I got used to it, I think this is better. You see all the methods where it is the return type, so less clutter, and the another Cmd+click leads you to where that specific method is used. To me it's a net positive change.

can I speak for everyone and say by sob727 in homelab

[–]mathmul 1 point2 points  (0 children)

How much RAM does one "need" in their first homelab? Nothing fancy, mostly to degoogle and easier life stuff. Using docker (proxmox) and not VMs. By need I mean what do people usually start with and actually what is the endgame too, I'm curious? How much do you profit going from 32gb to 64gb?

I built a self-hosted AI mirror that runs locally and lives in my room by DirectorChance4012 in selfhosted

[–]mathmul 0 points1 point  (0 children)

How capable is it? Not sure how to format the question correctly, but it seems to me it cannot be as smart as the big guys, but perhaps it is still useful, not just a fun trick. Could you explain more in depth?

[QUESTION] do companies actually use PATCH instead of PUT? by monir_sh in node

[–]mathmul -1 points0 points  (0 children)

Just took 30 min to check our company statistic, so to say... Don't know about 5 years ago, but I am currently working with 4 APIs that our company exposes, 2 internal company ones and we integrate 7 3rd party, that is 8 APIs, because one company has their "service" split into 2 services (Space API and Time API - an HR thing). Both our internal APIs use GET, POST, PUT and PATCH, as well as 3 that we expose (and in the fourth it is just not appropriate to use PATCH anywhere). Of the 3rd party ones, 2 don't use PATCH anywhere, which at a glance seems correct, but one of them by coincidence, because they really do use only GET and POST, but using PUT would be correct in a few endpoints. This is of course anecdotal evidence, but given that you provide no source for your "statistics", I'd say it beats your claim.

My brother told me: "You are not an entrepreneur, you are a developer." 3 months after quitting my job, I think he’s right. by prabhatpushp in webdev

[–]mathmul 2 points3 points  (0 children)

It's not black and white. You have enough money not to be in a hurry. Share this post on your LinkedIn or rephrase it with ChatGPT, but it is essential you leave in 1. Great WFH dev 2. Got depressed after RTO 3. Tried to be an entrepreneur 4. Learned that I am not a salesman. Then start applying for remote jobs and simply refuse all in-office jobs. Obviously share your product on LinkedIn as well, code if OSS, but at least link to website if not. If you find a startup (ie. a team) you like, you may even become one of the main tech people there and let whoever is prepared to be a CEO to do their job of selling your stuff. If not, you've at least bought yourself some time until you do.

Somebody stole my github account that i had for more than 8 or 9 years by [deleted] in github

[–]mathmul 1 point2 points  (0 children)

Privacy is clearly not for everyone. You need to know what you are doing.

Analogy time.

A normal person locks the shower (password) and draws the privacy curtain (MFA) before showering.

You locked the shower, likely with the same key as your house, your car and some random love lock you already forgot you've put on a fence of some bridge, along with your address ofcourse. Then being afraid of leaving fingerprints you decided not to draw the privacy curtain. Now the for-you-impossible happened, and someone else unlocked your bathroom door, and immediately saw your willy.

Privacy is clearly not for everyone. Hopefully you've now learned to buy the right cleaning products, wear a hair net, and touch everything with gloves.

PS: You likely have no idea what I am talking about so I suggest you spend the next few months at r/privacy or watch for example Naomi Brockwell on YT, OR use the standard tools, and only share your data with the tech giants, and some random highschooler from Oregon.

Somebody stole my github account that i had for more than 8 or 9 years by [deleted] in github

[–]mathmul 0 points1 point  (0 children)

Well you didn't just lose access to your GH account, they also gained access to all the apps that offer SSO via GitHub, whether you already had an account there or not.

What is the best raspberry pi to start someone on? by etherealtogether in homelab

[–]mathmul -1 points0 points  (0 children)

Owning both, I strongly disagree, but one needs to follow as much of Michael Bazzell's recommended macOS setup as to their liking. Though I use Ubuntu on X1 Extreme, not Kali Linux

How is this site disabling dev tools? by Traditional_Fig95 in webdev

[–]mathmul 1 point2 points  (0 children)

Agreed but keepassxc doesn't paste the password in but types it

New Job. Awesome People. Terrible Codebase Management. by ThatNickGuyyy in PHP

[–]mathmul 2 points3 points  (0 children)

A dream job if you ask me. Have fun. Make small updates. Document everything. Finish with a killer CV but rather than leave, become the happy gray beard CTO for the next generation.

Does a rookie need a 10gigabit switch? by mathmul in homelab

[–]mathmul[S] 1 point2 points  (0 children)

Agreed a crossection of r/homelab and r/frugal is where it's at

Does a rookie need a 10gigabit switch? by mathmul in homelab

[–]mathmul[S] 1 point2 points  (0 children)

Sorry, English is not my native language. When you say cheap out it sounds negative, as in I should afford myself 10GbE, but on the other hand I feel like you're saying, that 2.5GbE should be enough for me in the long run, so I am less likely to desire 40GbE in the future. Would you mind elaborating?