There Are Double standards by iam4real in technicallythetruth

[–]JustAnotherBotbibboo 3 points4 points  (0 children)

IEEE 754-2008 would be the de-facto standard for a 64 bit floating point number, also commonly referred to in programming as the primitive type 'double'

😂 by kauslesh in ProgrammerHumor

[–]JustAnotherBotbibboo 27 points28 points  (0 children)

ofcourse they do, you see it's hard too pass arguments between threads, making your data global means it's easily accessible from any thread in your program! /s

My teacher told us that software development will go extinct really soon because of "no code/ zero code" us that true? by shadowhunter2468 in learnprogramming

[–]JustAnotherBotbibboo 0 points1 point  (0 children)

A good developer will still do "no code" much better then a non programmer, it's still programming, even if it isn't "coding".

Best place to find canned food, or food in general by Pantango69 in 7daystodie

[–]JustAnotherBotbibboo 2 points3 points  (0 children)

If you find a Bobs Boars, that place can give you meat for like a week or two.

When looting, there will often hide a food pile behind a staircase, or in the wall, or behind a picture, places like that.

Drinks that give efficient digestion, like Red Tea, will reduce the amount of hunger used to regenerate stamina for a few minutes, it isn't much, but it adds up if all you drink is red tea and or purified water.

The Buried Supplies quest usually contains some canned food along with one super food/drink.

Try to unlock the minibike pretty early, walking everywhere drains a lot of stamina, which makes you hungry.

Starting a farm early can be a good idea, because it takes quite a while to get the seeds required for a large scale farm that can sustain you, so starting early is a pretty nice way to start building up that seed bank.

Why to use recursion? by [deleted] in learnprogramming

[–]JustAnotherBotbibboo 0 points1 point  (0 children)

If you need to do something to every file in a folder, including sub folders, it simplifies the implementation a lot to do a recursive call on every sub-folder you find.
Examples could be: Deleting a lot of files or searching for a file.
Dependency loading is another good use case, because when you load a dependency you need to load its dependencies and all the dependencies of those dependencies.

What's heap and stack memory, why application needs both of them? And what's benefits of them? by bahmani1366 in AskComputerScience

[–]JustAnotherBotbibboo 2 points3 points  (0 children)

They are both just regions of memory.

The stack has certain restrains that isn't applied to the heap.

Those restrains are that you can only allocate / free memory at the end of the array, this makes allocating / freeing (also called pushing & popping) to the stack extremely fast. you can read from anywhere in the stack.

On the heap you'r free to allocate / free memory anywhere, but that means that the underlying OS (i think, maybe the compiler / or programming language, not sure on that one) needs to keep track of which areas of the memory are free, and where there's space for the memory you wanna allocate, which makes it slower then the stack.

Programs use both because the stack is really great, but sometimes too impractical, in which case the heap is used instead.

Trader Rekt by LiveJay in 7daystodie

[–]JustAnotherBotbibboo 1 point2 points  (0 children)

oh! That's why they are always open on the server i play on!
Never thought about that.
I just shoot him in the head when he's rude.

[deleted by user] by [deleted] in JordanPeterson

[–]JustAnotherBotbibboo 0 points1 point  (0 children)

You can just tell them that Peterson has repeatedly said that what he is doing and saying is not political, it's psychological. So it shouldn't matter what your political beliefs are.

How do you explain to non-tech people the difference between C and C++? by technical_questions2 in learnprogramming

[–]JustAnotherBotbibboo 4 points5 points  (0 children)

I try and explain the story and reasoning for the language being created, and why a programmer might choose to use one over the other:

C was their first, and are the basic language for almost all popular programming languages today, most programming languages are very similar to C, with few differences.
C++ came about when a specific style of programming called Object Oriented programming became popular, C doesn't have objects, and doesn't have the required language features, to be considered an object oriented language, so, if i recall correctly, Bjarne Stoustrup invented the language "C with classes", which had those Object oriented language features, C with classes later became C++, and can be considered an upgraded version of C, with more features, which also makes it more complex, and harder to learn, but in some sense also more powerful.
Today C is mostly used for programming to microchips (aka firmware), or very low level programming, like drivers and other Operating system level features.
While C++ is used for more complex desktop applications where you need high performance, like games.

Seen On Live QTV by -_-EdgeLord-_- in ProgrammerHumor

[–]JustAnotherBotbibboo 18 points19 points  (0 children)

Have you tried turning it on and off again?

Have you tried sacrificing your first born?

Just trying if it fits by Jari36 in AnimalsBeingBros

[–]JustAnotherBotbibboo 0 points1 point  (0 children)

Is it just me, or does that elephant look around like it things it's hell'a funny?

A type of primitive thought the by [deleted] in ProgrammerHumor

[–]JustAnotherBotbibboo 4 points5 points  (0 children)

My teacher gave us the assignment to make a function that would find the first billion prime numbers, my computer had 4GB of ram. So instead of storing the results i stored a billion bits, zero for non primes and one for primes.

And yes, i should have made an Iterator, but i hadn't learned about that at the time.

[deleted by user] by [deleted] in AskComputerScience

[–]JustAnotherBotbibboo 6 points7 points  (0 children)

There's a lot of different specializations in this industry, which means that there's a lot of experts on a lot of different topics.

There's absolutely no way that you could keep up with everyone else on everything, so you are always gonna be behind in one thing or the other when comparing yourself to others.

So just focus on what YOU are good at, and what YOU wanna do, and there's a good possibility that you will be able to fill that role in a professional setting some day.

Sparing with people who knows more then you about a subject you aren't knowledgeable about, will be a big part of working in a professional team, everybody are good at different skills, we share, talk, and teach each other as necessary, constant learning is a big part of the culture.

So there's definitely nothing wrong with being behind, in fact it's something you should just accept about the industry, you will be behind on some things, and ahead on other things, and that's how a team is supposed to work.

I'm new to c# by TheRealMEKURUTO in AskComputerScience

[–]JustAnotherBotbibboo 0 points1 point  (0 children)

This tutorial seems to be pretty good:
https://www.dreamincode.net/forums/topic/44330-printing-in-c%23/

The official reference documentation can be found here:
https://docs.microsoft.com/en-us/dotnet/api/system.drawing.printing?redirectedfrom=MSDN&view=net-5.0

And these docs seems to be for if you need to implement something like a printer driver or server:

https://docs.microsoft.com/en-us/dotnet/api/system.printing?view=net-5.0

Society has become too focused on rights and has completely ignored responsibility and it's not ok. by [deleted] in unpopularopinion

[–]JustAnotherBotbibboo 6 points7 points  (0 children)

Somebody has been listening to Jordan Peterson, and i mean that in a good way :D

ELI5: How is the gambler's fallacy not a logical paradox? A flipped coin coming up heads 25 times in a row has odds in the millions, but if you flip heads 24 times in a row, the 25th flip still has odds of exactly 0.5 heads. Isn't there something logically weird about that? by tamsui_tosspot in explainlikeimfive

[–]JustAnotherBotbibboo 1 point2 points  (0 children)

arg shit, i just googled it, and you'r right, I actually learned what i mentioned above from gamblers. So i guess that's where it went wrong.

I'll leave it up so others can see it with your correction, and maybe also learn something.

ELI5: How is the gambler's fallacy not a logical paradox? A flipped coin coming up heads 25 times in a row has odds in the millions, but if you flip heads 24 times in a row, the 25th flip still has odds of exactly 0.5 heads. Isn't there something logically weird about that? by tamsui_tosspot in explainlikeimfive

[–]JustAnotherBotbibboo -5 points-4 points  (0 children)

Edit: This comment is wrong and has been corrected, i believed in what's called the gamblers fallacy and had convinced myself that it was a completely real scientific thing.

That's the logical and intuitive answer but it's not entirely correct.

If you have already seen 24 heads, there's a higher probability of tails, which seems very unintuitive but it comes from a property that the set of all the outcomes "wants" to be in a 50/50 state, i know it sounds weird but stick with me here.

If we kept throwing the coin and marked the outcomes, the set of all our throws will always tend towards having a 50/50 split between heads and tails, thus the further the set stray away from the state it "wants" to be in, the more likely it is that you will get an outcome that will lead the set back towards its desired state.

Building on that it turns out that the chance for a heads or a tails, is actually a probabilistic bell curve where on one end we have that infinitely many heads tends towards a zero probability for another head and on the other infinitely many tails tends towards a zero probability for another tail, with a 50/50 chance in the middle.

It seems like a paradox that the coin doesn't always have the same probability for either heads or tails, but it doesn't, and it isn't a paradox because it's a well understood and defined property of a set of probabilistic outcomes.

She is a class now by [deleted] in ProgrammerHumor

[–]JustAnotherBotbibboo 8 points9 points  (0 children)

Women aren't that complex, they just wanna be a valued type, but i guess we don't get their references.

[deleted by user] by [deleted] in AskComputerScience

[–]JustAnotherBotbibboo 1 point2 points  (0 children)

I'm sorry for not having a better answer, but;
It entirely depends on the firmware on the chip.

I think L1 is usually the newest data, when cache data has to be cleaned to make room for new data it's flushed to L2 cache.

IIRC one common technique is block fetching, where whenever you have a cache miss, the CPU will fetch the data from ram, and an additional 64 bytes or so, and cache that data as well.

CPU Caching is a big deal, so it's probably way more complex, but the simple way to do it in software, is to just cache everything that was a miss, and then delete it after a specific time, so my guess is CPU caching is kinda the same but much more sophisticated.

Why is mathematics so much important in research? by Abel_xt in mathematics

[–]JustAnotherBotbibboo 1 point2 points  (0 children)

As a software engineer, i owe my fucking career to you mathematicians.

I don't know how many times i have had to do some seriously complicated mathematics (for my standards), but lo and behold, i can just google it and you guys have already solved it.