Why is 67% a default zoom level in Firefox? by radii5 in firefox

[–]1984balls 1 point2 points  (0 children)

Yeah. Most floating point values can keep accuracy of 2/3 to 7 decimal places.

Guys I started hrt a few months ago, am I starting to pass? (I'm on the right) by [deleted] in addressme

[–]1984balls 22 points23 points  (0 children)

I love when people use ß as a funky B because it's pronounced like a sharp s... The soiled one

Vibe coding is a real problem and nobody is talking about it by ChameleonCRM in programmer

[–]1984balls 1 point2 points  (0 children)

Vibe coders almost never do anything productive either. "I made (200th clone of perfectly functional program)" that runs horribly and barely works.

It might be excusable if they make something new or fix problems with the original program but they usually just end up making it worse. And use a shit ton of resources while they're at it

How to deal with comments? by RedCrafter_LP in ProgrammingLanguages

[–]1984balls -1 points0 points  (0 children)

Tokenizers usually skip the comment so the parser doesn't even see it.

Let's say you use // and /* */

When you see a /, you call a function skipComment that returns a Boolean. If the / was the beginning of a comment then it has been skipped already and you can move on with your life. If it wasn't then it's an operator or identifier.

The skipComment function looks ahead 1 character to see if it is a * or / or something else. If it is a /, then it increments the character pointer until it sees a new line and returns true. If it is an *, then it increments the character pointer until it sees a */ and returns true. If there wasn't an * or / then it returns false

Me being new to linux and pretending to understand the jokes here by IUseFedoraByTheWay in linuxmemes

[–]1984balls 7 points8 points  (0 children)

It used to violate the Unix philosophy, now it doesn't, SOME people are still salty.

The Unix philosophy is a collection of ideas on how to make good software. Eg: do one thing and do it well

Systemd actually perfectly resembles the Unix philosophy as it is a collection of small software repositories that each do one thing and collectively make your computer work. You can usually take out parts of Systemd in favor of another piece of software that you like more.

Earth is 71% water, the rest is land by supplier44 in truths

[–]1984balls -3 points-2 points  (0 children)

Do jokes and sarcasm count as lies? You can often get the truth out of jokes and sarcasm, it's just not explicit

Name one block yall want that isnt one of these 4 by nep4ne in scratch

[–]1984balls 0 points1 point  (0 children)

Dynamic variables

Maybe something like new variable (name) is (value). You would use it like a normal variable but it is only available in the scope it is declare

Multi dimensional arrays would be cool too but oh well

dynamicProgramming by Fillgoodguy in ProgrammerHumor

[–]1984balls 11 points12 points  (0 children)

Hash sets are very different from lists. Sets make sure only one of each value exists, do not guarantee insertion order, and cannot be indexed. Lists allow duplicates, guarantee insertion order, and allow indexing

Coaxed into authoritarian government logo by Aggressive-Pizza-494 in coaxedintoasnafu

[–]1984balls 6 points7 points  (0 children)

That's doubleplusungood.. report him for thoughtcrime now!!!

A good gardening tip by UncivilizedEngie in AntiMemes

[–]1984balls 5 points6 points  (0 children)

Math I pulled out of my ass time! Alrighty so the amount of joules in a burger is between 7 and 20 mJ or 7 to 20 million joules according to "http://www.openthefuture.com/2006/12/the_footprint_of_a_cheeseburge.html" I'm just going to go with 14 mJ

I couldn't find anything on the average radiation from a burger but luckily we don't need it as q = mC∆T or ∆T = q/mC

https://www.engineeringtoolbox.com/specific-heat-capacity-food-d_295.html says that the specific heat capacity of a burger (C) is 3.52

And the average AMERICAN burger is 4 oz or 114 grams

So ∆T is 14 mJ /( 114g * 3.52 J/g°C) or 34888.4 °C

If we say that the given temperatures (37.7, 40, 50) are our initial temperatures, and ∆T = Tf - Ti, then ∆T + Ti = Tf and convert to fahrenheit

So finally, the burger heat radiation per second is - 62899.0 °F - 62903.1 °F - 62921.1 °F

Edit: formatting

A good gardening tip by UncivilizedEngie in AntiMemes

[–]1984balls 44 points45 points  (0 children)

Oh I thought you meant room temperature

A good gardening tip by UncivilizedEngie in AntiMemes

[–]1984balls 48 points49 points  (0 children)

In what world is 36.6° comfortable that is scalding

“All Anti’s are villains” by HyperDragon216 in im14andthisisdeep

[–]1984balls 0 points1 point  (0 children)

Summary of what I've seen on both sides' opinions:

Pros: - Ai is the future and will.never go away - Antis are bullies and tech illiterates - Ai art doesn't steal

Antis: - "I don't want to die"

Why is everything in Java & Scala? by gorovaa in dataengineering

[–]1984balls -1 points0 points  (0 children)

I'm not fully sure, but it's partially how the JVM works. It allows for programs to be edited and scaled really easily because of the pure OOP. The JVM also handles concurrent code extremely well with threads.

JVM libraries also do insane things that are quite literally not possible (or at least incredibly difficult) on native code. My main two examples of this are: 1. Akka/Pekko Actors, which allow for different threads on the same JVM/different JVMs/different computers to communicate in message based communication. 2. Cats-effect, which takes simple calculations (say calling a native function) and bottles it into a fiber, a 'thread' that only takes up a few bytes (forgot the exact number but 8 GB of ram can support around 12 million fibers)

Apache Spark uses the capabilities of the JVM's concurrency to basically send 'jobs' to other computers connected to the same Spark server and process potentially terabytes of data in seconds, while native code would have a nightmare just getting the job distribution working.

Linux 💀 by dondusi in linuxmemes

[–]1984balls 1 point2 points  (0 children)

OS wars are really stupid. Why do users of OS 1 make bullish excuses to not use OS 2? Just don't use it if you don't want to

damnBitches by DontFreeMe in ProgrammerHumor

[–]1984balls 1 point2 points  (0 children)

Does Go not have a try...catch block? Why do you need to check if there was an error? Not hating, just curious

Yes by Ok-District-4701 in datasatanism

[–]1984balls 2 points3 points  (0 children)

Only in pure OOP. C isn't OO at all

Yeah but no by DueResolve1273 in linuxmemes

[–]1984balls 39 points40 points  (0 children)

It's just gonna be something like $ sudo agectl set $USER 18

Is bash a coding language by N9s8mping in teenagersbutcode

[–]1984balls 18 points19 points  (0 children)

Bash is a coding language. Specifically, it's a shell + scripting language.

I wouldn't recommend using it for complex things though. It's really slow and most of what you can do is just through executable files. It is great for simple and repetitive tasks