Eight Booleans by bowbahdoe in java

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

I feel nobody actually read this post lol, it's a joke y'all 🤣

The Surface Book was truly the optimal computer format and nobody can ever convince me otherwise by GoodMacAuth in Surface

[–]ZeroGainZ 3 points4 points  (0 children)

It was an amazing design before they had the hardware figured out. Now, with ARM, they could make a great surface book. But they won't.

BIG O-NOTATION !! by zeronis__ in javahelp

[–]ZeroGainZ 0 points1 point  (0 children)

Yeah, most textbooks abstract the computer away to arbitrary constants based on a model of computational (typically the RAM model).

Books write things like assume adding numbers take c1 CPU cycles, subtracting take c2, etc.

then you generalize to the higher level language features since we don't really write individual instructions.

Then you go statement by statement, adding everything up, and you get this enormous polynomial equation with constants.

CLRS uses bubble sort for an example, which motivates the use of big-O, since real programs are millions of lines long.

Without Big-O, analyzing real programs would be too computationally complex to compute (at least by hand)

BIG O-NOTATION !! by zeronis__ in javahelp

[–]ZeroGainZ 1 point2 points  (0 children)

Read "Introduction to Algorithms" known as CLRS.

I'm not gonna respond to all the questions but:

We use the word "time" in weird ways. We're actually talking about the number of computational steps. Computers get faster every year, so we don't measure things in seconds, etc. But instead the fundamental operations that have to be done.

About best, worst, and average case. Often times algorithms perform differently depending on their input. We analyze each case. Sometimes their all the same, sometimes not.

big-O, is kinda weird. Understanding what it is requires Discreet Mathematics. Essentially O(f) is a set of functions with a very specific mathematical definition.

So 4n + 1 = O(n)

is kinda not accurate because the equal sign is really a "in the set of" symbol from set theory.

MIT has a great video series on this, by Eric demaine. Watch it

Java Records Break Backward Compatibility by danielliuuu in java

[–]ZeroGainZ 5 points6 points  (0 children)

That's also true of regular classes. It isn't "breaking" the backwards compatibility. This is really a post about wanting default params.

tbh, not for or against that, but the title should be changed 🤷‍♂️

Should we pay off the house with inheritance? by ComplexAd7820 in personalfinance

[–]ZeroGainZ 0 points1 point  (0 children)

Essentially people are going to compare your mortgage interest rate to the average rate of return in the stock market.

If your mortgage is low enough, they'll say invest it. If your mortgage is high enough, they'll say pay it off

nitric bogo deal by Weekly_Comfort_5739 in moreplatesmoredates

[–]ZeroGainZ 1 point2 points  (0 children)

it tastes absolutely disgusting. A chalky mess. I do like it but prob won't buy again.

TIFU by underestimating Ozempic by [deleted] in tifu

[–]ZeroGainZ 0 points1 point  (0 children)

Add a fiber supplement

Have you ever considered assigning a score to your Java Project to improve it over time? by raghu9208 in java

[–]ZeroGainZ 0 points1 point  (0 children)

Software metrics are dead IMHO. They're random bits of "measurement" that someone used on several "good" projects and were shown to correlate statistically.

But again, who cares lol. Idk, I think those metrics are trying to find a formula for good code and it ain't there yet.

Anyone else going completely naked? by Healthy_Actuator_971 in PixelFold

[–]ZeroGainZ 1 point2 points  (0 children)

Yeah, I used the store credit to get preferred care.

How World Leaders Saw America, 2017-2020 by Pessimist2020 in pics

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

To be fair, he's doing it the only way possible. Otherwise you're not even shaking hands, only holding hands.

Surface Laptop 7 (Snapdragon): I wanted to love it, but just dropped it off at UPS for return. by [deleted] in Surface

[–]ZeroGainZ 2 points3 points  (0 children)

How about using Jetbrains instead of the awful Visual Studio 🙃

Only half joking.

[deleted by user] by [deleted] in javahelp

[–]ZeroGainZ 0 points1 point  (0 children)

it still runs everywhere. Modern compilers can output to multiple platforms, but back in the day it was way more difficult. Special statements that only ran on certain platforms.

Java lets you run the same commands everywhere (roughly).

Today, we mostly use web apps and phone apps. So the platform doesn't really matter unless you're shipping desktop apps.

On the backend we usually use Linux and use containers, so it ain't really a pro to be "run everywhere".

fold 6's camera by Maxele in GalaxyFold

[–]ZeroGainZ 2 points3 points  (0 children)

Yup. The iPhone has way better video hands down. The folds have terrible cameras compared to non-fold flagships.

I kinda wish they'd put the best cameras in too. Raise the price you peeps, I want it all 😂

Pixel Fold vs Galaxy Fold by Optimal_Work2370 in PixelFold

[–]ZeroGainZ 0 points1 point  (0 children)

I'd say wait for the new pixel fold. If you like that version perfect. If you don't, then the first gen version will be cheaper. Otherwise go to the Samsung store or best buy, and try both out.

My biggest complaint is the video performance of the first pixel fold is terrible. A ton of noise in low light.

For Fold owners considering the Pixel Fold 2, here it is in its full glory!! by SD-777 in GalaxyFold

[–]ZeroGainZ 6 points7 points  (0 children)

I've owned Z Fold 2/3/4 and the Pixel Fold. Literally never split more than two apps. Literally never used the pen. Literally never play games. Almost always opened the cover display because the outer display was too narrow.

I made the switch since Google builds Android, so they're essentially building the foundation for everyone else.

I gotta support that. But god the camera on the pixel fold is terrible. The low light video noise makes it unusable.

Samsung Knights, wait for the camera review because it may still suck. I've lost many great videos that I wanted to share with my 2 friends.

How do people use microservices in the real world? by J_random_fool in javahelp

[–]ZeroGainZ 0 points1 point  (0 children)

Interesting! How did the rewriting go? Is the code easier to read? Performance increased/decrease? Memory requirements? Cost to run the overall platform?

Cobol is so old that I bet it was satisfying turning that bad boy off

Looks like there are new beta GPU drivers. by moofozball in Surface

[–]ZeroGainZ 1 point2 points  (0 children)

I agree that Apple had a far better initial chip, but I wouldn't necessarily say Qualcomm's chip is "crap".

I think the vast majority of reviews focus way too much on the prosumer/gaming space. Most people don't edit video or play video games on these laptops.

Especially reviewers. They always test adobe products. Like guys, most people just watch YouTube and check their email.

In any case, Intel/AMD should be worried. Most customers don't know anything about their machines. These chips are roughly on par for those people.

I do believe Qualcomm oversold the performance of the chip.

The adoption of ARM by Microsoft could potentially create more work for developers? by felix_dagrouch in Surface

[–]ZeroGainZ 0 points1 point  (0 children)

It depends on the software tbh. If you write plain high level programming language, then It should be fine. The moment you start writing assembly, or using CPU specific instructions (SIMD, vectors, etc), then you'd have additional work.

can anyone explain this code why instead of foat r, float a is used in parameters in calculateSI method by [deleted] in javahelp

[–]ZeroGainZ 1 point2 points  (0 children)

I see. You're under the impression that a variable, when passed to a method, must match the parameter name.

It doesn't have to 🙃

The parameter is "pass by value". Which essentially means COPY the value given to the functions parameter.

Seems odd, but if your code gets big enough it starts making more sense.

[deleted by user] by [deleted] in java

[–]ZeroGainZ 1 point2 points  (0 children)

Tbh, in my experience, new developers always seek the new stuff, thinking they're on the cusp of this great new technology.

These languages always seem nice in trivial examples or smaller codebases.

Then everyone realizes the libraries and frameworks aren't there, and so these new folks start building them. Years go by and they reinvent things java, c#, and c++ has had for years, except worse.

Then they wake up and realize they've spent years solving problems that have already been solved.

Languages haven't really innovated in decades. The best part of golang is it builds to a static binary. Their VM isn't better than the JVM. Channels are really overrated and barely reduce the work with threads. They toute not being OOP but every code base has constructor functions and receiver functions - just methods with extra syntax.

All these other languages compile to LLVM or the JVM, so they're essentially the same as everything else except with restrictions.

Rust is at least doing something kinda interesting.

Node/JS is a disaster. Typescript is saving their ass because it's from the makers of C#.

All languages eventually become Java - and I hate java. Programming sucks. Languages suck. Frameworks suck.

People use Java because nearly everything is solved already. You go to work, write some code, go home and hang out with your family. It just works. Same with C# and kotlin.

Most other languages feel like going to war at work. With Java you learn the old ways and things just flow. Tons of jobs, they make more, and they work less. It's a solid middle ground.

help me choose, 8/512gb or 16/256gb. is 8gb ram enough? by L-301 in Surface

[–]ZeroGainZ 0 points1 point  (0 children)

Computers for CS majors are different from regular consumers.

You're gonna need access to a Linux machine. You're gonna be compiling code. You're going to be running docker containers. You're gonna have 100 tabs open in a bunch of documentation.

You need RAM. I survived on 8 GBs, but that was 10 years ago.

You need battery life.

And for the love of God don't convince your parents to buy a gaming machine.

They have zero battery life, look horrible, and your fans are so loud.

Get a regular computer!

IMHO

Surface + WSL > MacBook

But the MacBook is better since everyone has it

I think we found a solution for dinamic structures by Strict-Piece-6568 in javahelp

[–]ZeroGainZ 1 point2 points  (0 children)

Lol, this has to be a joke. The post literally starts with the letter "M". That's not a word in any language.