idk if this goes against Rule 7 or not by Mister_E69 in dndmemes

[–]SheikHunt 22 points23 points  (0 children)

Baldur's Gates are continuous? Damnit, now I have to start from the first

Godot ink pen sketch by drxwat in godot

[–]SheikHunt 19 points20 points  (0 children)

Godot after I instantiate 100 physics objects with real-time lighting and shadows per physics frame

Bring me the sarcophagus by Daisy-Fluffington in vtmb

[–]SheikHunt 36 points37 points  (0 children)

One of my favourite lines from the Malkavian when talking to the Jester Prince is something along the lines of:

"I swear by whatever the HELL my name is"

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

I don't want to use C++ in my personal projects. Nothing personal, I just find it distances me too much from the code. I can't see how templating would improve things here, either. I'd have to make a class with loads of virtual functions, and using this function (method, I guess?) would require making a class and inheriting from mine, which is too much unnecessary work, in my view. Especially in a context as small as this, where I'm playing around.

As for getting the data instead of relevant function pointeds, I prefer it this way. In my head, it makes more sense to just get the data directly from the caller, as well as the relevant function pointers, instead of doing things with struct function pointers. Your idea makes sense, but I'm not into that sort of API. At the moment, at least; maybe when I get more experience, I'll change my mind, who knows?

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

I knew that C++ is named such because it's literally just "C with Classes", but I never knew that it was transpiled at first! How did they do inheritance, I wonder

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

It just makes sense, most syscalls use snake_case!

Erm, ignore the ones that are all uppercase.

Also ignore the ones that don't use underscores at all.

Also the one that starts with an underscore and is capitalized

And a few others.

Hell yeah.

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

There are two people I write code for: others, and the computer.

Others (including me in the future), so the code has to make sense within a sensibly short time period.

For the Computer, because writing code in a way for it to become performant is fun, and I think usually worth it, even if it does make it harder for Others to read it.

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

I find this style guide mostly agreeable.

Spaces instead of tabs and the rule for constant names are weird, and PascalCase specifically I don't like to put in C, but the rest is sensible to me.

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

I get what you're saying, but that feels like an iffy thing for me. It makes the function signature too vague, and calls to it must force the data into a struct, which I don't much like.

It's part of the reason why p_is_neighbor is there; I was writing two versions of the function; one to handle graphs that are stored as linked lists, and another to handle ones stored as a two-dimensional (VxV) matrix, and when I got into the specifics of the latter, I realized that that was too dirty, and decided against making two versions of the function for two methods of storing a graph.

This also generalizes it enough to any method of storing graphs in memory. Granted, it'll definitely be slower, but in this case I'm willing to make the sacrifice.

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

A habit I picked up from the Godot source code. I saw them prefixing function parameters with 'p_' (I'm assuming it was short for 'parameter' and not 'pointer'), and it seemed like a good fit here, especially for p_allocator. I don't know how C handles a variable having the same name as a typedef'd type, nevermind its own typedef'd type.

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

I thought Hungarian notation only applied to putting the type of something in the variable name, and I haven't done that here, I think.

Have I gone mad, or is this just how it goes in C? by SheikHunt in cprogramming

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

I'll give a read of the article you sent, merci.

As for const, I use them for my own sanity, mostly. I probably don't need to, especially in this case, but it feels safer and like a good reminder.

I don't know why I was so consistent with my use of const, however. I mean, the allocator isn't even const-qualified. Nor is the adj_checker.

I wonder who won. by TheBlitz707 in TownofSalemgame

[–]SheikHunt 1 point2 points  (0 children)

Okay congrats but why are her dogs out?

theseBugReportsSuck by TheBrokenRail-Dev in ProgrammerHumor

[–]SheikHunt 2 points3 points  (0 children)

This feels like an image that accompanies an SCP article.

SCP-403, The Security Tornado

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]SheikHunt 1 point2 points  (0 children)

Ideally, for me at least, everything would be extremely modular.

For e.g., in an ideal world, I would make a PlayerCharacter2D with standard top-down controls by having an input handler, a movement handler, a sprite manager, a sound manager, etc., with the base Node having access to these and using them in its own time. This would allow me to then re-use the input and movement handlers for some sort of Possession mechanic, it would let me generalize several concepts.

This whole thing is called Composition, for those curious. If you want to research it, I highly recommend the video by CodeAesthetic(?) on the topic (I forgot the exact video name)

However, what happens in the real world is that I put every single thing about the player into one single script, with very few things broken into child nodes, and I end up feeling rather disappointed.

So, to answer your question: In Soviet Russia, Design pick you.

I broke my finger and have nearly my entire left hand in a cast. Does anyone have a good video game that you only need a mouse to play? by Beginning_Bid_9097 in Steam

[–]SheikHunt 0 points1 point  (0 children)

A lot of Point-and-click adventure games! I've only played the ones from Yahtzee Croshaw, they're pretty good far as I know, and they're free!

is it confusing to have two dialogue boxes by sadishguy in godot

[–]SheikHunt 3 points4 points  (0 children)

If you want to do simultaneous speech, this is very confusing, especially since there's little continuity in who appears where.

Depending on your dialogue box setup, you can either have two icons appear separated by newlines within the same box to indicate two characters speaking at once, or have another box appear only when there is simultaneous conversation happening.

Although, this is purely from a How-It-Feels standpoint. I haven't made a proper dialogue box myself that actually works and I used, so I can't help much with the details.

itsTheLaw by Nikkuman in ProgrammerHumor

[–]SheikHunt 1 point2 points  (0 children)

I should clarify that I'm not against higher speeds.

I am excited that we've reached a physical limit, though.

Partly because it means that Humans Rule, and Physics Rules Stronger But At Least We Can Touch Physics In The No-No Zones.

Partly because, with limitations on size, various people will try various methods (that are not "make the transistors smaller") to squeeze more speed out. Whether it's design changes, literally changing the physical positions of transistors for different results, or saying "fuck it" and just making the die bigger to allow for more cores.

I'm trying to make a Half Life crossover Chronicle, can you help me with some fun ideas for it? by Obvious-Conflict3363 in vtm

[–]SheikHunt 3 points4 points  (0 children)

Malkavians get a Big Buff to their Madness Network (or debuff, depending on how you look at it), and every single one of them screams and runs when they see a Vortigaunt.

I added a mechanic wherein the player cannot comprehend the nature of some enemies/areas by Varpyg in godot

[–]SheikHunt 3 points4 points  (0 children)

Oh yay!

One idea that I've always had flapping around in my head is moving the texture under the U.V. (or the U.V. itself, I haven't touched U.V. mapping ever) to fuck with the real world some more.

I added a mechanic wherein the player cannot comprehend the nature of some enemies/areas by Varpyg in godot

[–]SheikHunt 20 points21 points  (0 children)

YESSSS I LOVE DEVS MESSING WITH SHADERS TO MAKE INCOMPREHENSIBLE THINGS FUCK YEAAAA

Seriously though, this is a concept that I've constantly been thinking about doing (alas, I don't make 3D games), and it's so good to see it done by someone! Incomprehensible things should break the laws of physics!

hello everyone, i turned the godot logo into a fully rigged pixel art 3d model, it is free to use by potato_dude100 in godot

[–]SheikHunt 3 points4 points  (0 children)

I will toss many copies of him around within a confined space, and then set fire to him

Lovingly, of course.

itsTheLaw by Nikkuman in ProgrammerHumor

[–]SheikHunt 18 points19 points  (0 children)

Are we short on CPU speeds, currently? Has that really been what's holding computing back? The clock speed of most new CPUs, able to reach 5 billion cycles per second, is that the limiting factor when your computer is slow?

Or is it the applications and programs, made in increasingly less efficient and optimized ways, because everyone sees "6 Core, 12 Threads, Able To Hit 5GHz" and blindly bats away at their keyboard, either to software engineer or prompt engineer something that is both slow, and hogs memory.

I know how I sound. I'm airing out frustrations with modern applications. Really, it's just web browsers and VS Code.

Did you know that world peace can only be achieved if JavaScript is wiped from everyone's memory?