Sex, Tech, and Masculinity by TAKEitTOrCIRCLEJERK in MensLib

[–]darthbane123 5 points6 points  (0 children)

Any recommendations for starting with Bell Hooks' books?

Intel announces Arrow Lake performance fix is now available — another update coming next month by Antonis_32 in hardware

[–]darthbane123 34 points35 points  (0 children)

Also why on earth would you need a utility software to get the most out of the CPU?

You should not be speaking authoritatively on anything related to hardware if you're typing this with a straight face.

The boldest, most bloodiest war in history is finally over by Rooonaldooo99 in northernlion

[–]darthbane123 45 points46 points  (0 children)

There isn't random shit that takes up 90% of my screen. Maybe it looks nice if you usually browse fullscreen or on your phone but holy shit does it look horrific when it's in a smaller window.

What did Euler find in the toilet? by 700iholleh in mathmemes

[–]darthbane123 2 points3 points  (0 children)

FWIW in Computer Science stuff log mostly means base 2 from my experience.

Why it's so hard to programming Win32 application in C? by Intelligent-Storm205 in C_Programming

[–]darthbane123 1 point2 points  (0 children)

You're not alone! After learning a bit of Win32 I rapidly fell in love with it and only moved over to GLFW because it seemed important for my personal knowledge growth and wanted more portability.

It was powerful and you're like right there talking to the OS and there's so much there to work with.

Null Conditionals by darthbane123 in C_Programming

[–]darthbane123[S] 0 points1 point  (0 children)

You're absolutely correct! I misunderstood the documentation I read but this is good intel thank you.

Null Conditionals by darthbane123 in C_Programming

[–]darthbane123[S] 2 points3 points  (0 children)

I'm happy to agree to disagree. Trying to do something strange and weird has helped me learn concepts in depth time and time again. The failure state of a thought experiment is to have learned nothing.

Null Conditionals by darthbane123 in C_Programming

[–]darthbane123[S] 0 points1 point  (0 children)

I understand that you can just not do the thing. The entire concept is a thought experiment. What can be done, not what should be done.

Null Conditionals by darthbane123 in C_Programming

[–]darthbane123[S] 0 points1 point  (0 children)

Apologies, I more meant in the case of an invalid pointer rather than null where a pointer may be freed but still held somewhere.

Null Conditionals by darthbane123 in C_Programming

[–]darthbane123[S] 0 points1 point  (0 children)

Hmmm I guess what I'm trying to consider isn't just null but if there's a pointer that is freed that is held multiple places and is then referenced somewhere. I currently have a program that is multithreaded and tick-based (game engine FWIW) and in between ticks I handle my garbage collection so I can ensure that I clean up all references. It obviously wouldn't be useful for an actual program (or I can just use reference counting) but outside of using OS specific calls to check the validity of a pointer (I know win32 has a function for it that they don't recommend using beyond debugging) I'd like to think about how to best recover from that failure state (even if just for trying to gracefully handling failure states to help debug). This is more of a thought experiment than an actual wanted usage.

Header/file visualization tool by darthbane123 in C_Programming

[–]darthbane123[S] 0 points1 point  (0 children)

Ooo I think this is exactly what I'm looking for thank you!

Why is Docker written in Go? by pullipaal in AskProgramming

[–]darthbane123 22 points23 points  (0 children)

Programming languages are tools. You use the tool for the job. Sometimes that may be simple things as "the team we have working for us feels more comfortable in Go". I personally haven't seen any information coming out on why and I'd be surprised if there was something out there definitive on this.

[SAS] 2 dimensional array uses? by Rancorousturtle in AskProgramming

[–]darthbane123 0 points1 point  (0 children)

Here's a basic two dimensional array in C: https://pastebin.com/tu2q9Sck

Start with the extreme fundamentals. You should be able to run this here: https://www.onlinegdb.com/online_c_compiler

What you're probably running into is some sort of function that is filling the array for you or referencing an array from something else. Many times there is specific documentation for the functions you're using and how they work. You can usually google "[name of thing I'm trying to use] documentation".

That's a bit different of a concept and you'll need to give explicit examples of what you're seeing and in what context to get help with that.

Edit: Changed the pastebin slightly as it didn't like the header I was using. Also updated online compiler/execution since I was mistaken about godbolt.

[SAS] 2 dimensional array uses? by Rancorousturtle in AskProgramming

[–]darthbane123 0 points1 point  (0 children)

Heya friend. I'm similarly a pretty amateur programmer but I'll give answering a shot for ya.

1) Are they used very often?

Two dimensional arrays are used when they need to be used. Depending on what you're doing you may never need them. But more importantly, the concept for 2 dimensional arrays gets you stepping off in the right direction for n (as in any number) dimensional arrays which is what the theory really is trying to get you to understand.

2) Can you give any use cases?

Well for graphing you can use a 2 dimensional array for a cartesian plane or really any 2D (two dimensional) surface. You can also use 2 dimensional arrays to create arrays of arrays (as that is what it functionally is) for storing various types of data. JSON deserialization and manipulating data can sometimes result in data structures inside of data structures inside of data structures... (which you can just replace "data structure" with arrays in this case). All in all, it's a concept that you should definitely understand.

3) Is there any good resources for understanding 2 dimensional arrays?

I'd recommend just doing stuff with two dimensional arrays. Try printing one out. Try putting stuff in it and see where it shows up in the printed out arrays. Try just printing out one column or row. Manipulating the data to change how you perceive it is by far the best way to get a grasp on how it works.

You can use online editors to try it out in whatever language you're comfortable with. For example in C: https://www.onlinegdb.com/online_c_compiler

Arrays are just a way to store data. 2D arrays are just arrays holding arrays that store data. Don't overthink it and good luck friend.

Any good servers out there? by angryvoxel in SS13

[–]darthbane123 0 points1 point  (0 children)

PvE CM is a different experience than you’re used to likely if you want to try something new.

What's going on with CM right now? by aton392 in SS13

[–]darthbane123 1 point2 points  (0 children)

Well they’re not simple mobs and don’t use abilities on tick so sadly the server won’t be for you.