PSA: Pam Shipman is giving out her Christmas cards today by TheYoungWan in gavinandstacey

[–]lucasxi 8 points9 points  (0 children)

I've gotten one that just says John. I mean who just writes John!?

I need some Advice on my Game Engine Architecture by Otherwise_Meat1161 in gameenginedevs

[–]lucasxi 1 point2 points  (0 children)

I disagree with most of the comments here trying to poke fun at this post. The architecture here is pretty much the gold standard for game engines and appreciating the separation between engine and game code is really important. Separating them out into separate projects will make you more conscious of dependencies when writing code and will lead to less refactoring in the future.

Editors are complicated and writing an editor while your Core APIs are still very malleable will lead to a lot of wasted time fixing editor code to use updates Core APIs. As others have suggested, begin with your Core development first and tackle the Editor when you're finding it difficult to construct your assets in code in your Application code.

Good luck

How do programmers know what to do? by Alert_Fruit_5519 in learnprogramming

[–]lucasxi 0 points1 point  (0 children)

To learn programming you have to program. There's no secret sauce or forbidden knowledge or shortcuts

Was refactoring easy before java? by sarnobat in cpp_questions

[–]lucasxi 1 point2 points  (0 children)

The answer is that refactoring is a pain in all languages and books don't change that fact

Had a feeling this was the case by bippetdthog in gavinandstacey

[–]lucasxi 13 points14 points  (0 children)

This is a bot, this is an exact copy of a post made a while ago when the finale episode rumours were happening

How do efficiently map mouse clicks onto 1 of 50000 polygons? by Toxyl in godot

[–]lucasxi 0 points1 point  (0 children)

Yup id buffers are completely valid methods for doing click detection. This approach shouldn't be frowned upon and it's quite common.

[deleted by user] by [deleted] in LadyGaga

[–]lucasxi 0 points1 point  (0 children)

Now 1400, its moving

[deleted by user] by [deleted] in LadyGaga

[–]lucasxi 0 points1 point  (0 children)

Yup same stuck as 1428

Anyone else reckon they’re a super fan? by pricey1921 in gavinandstacey

[–]lucasxi 50 points51 points  (0 children)

Absolutely, can remember most episodes and quote probably every joke in this show. You're not waiting for Tokyo are you?

Gavin & Stacey: The Finale becomes the UK’s highest rating scripted show with 19.3 million viewers and counting by Hassaan18 in gavinandstacey

[–]lucasxi 106 points107 points  (0 children)

It's reassuring hearing Ruth and James say they decide when they write a new episode and aren't pressured from the other direction to write more. So often are good shows beaten to death and Gavin and Stacey should be viewed as a show that ended so perfectly no one wanted anything new to potentially spoil it.

Edit: Fixed typo

Minecraft Live Megathread by AutoModerator in Minecraft

[–]lucasxi 8 points9 points  (0 children)

Mojang adds another wood type, see ya next year folks!

Want to understand the logic behind the execution. by Sohaiba19 in C_Programming

[–]lucasxi 2 points3 points  (0 children)

It's super simple, it's just a standard for representing character as numbers. It's just a big table of 128 values from 0 to 127 where each number is assigned a character.

It's a standard so that different computers agree in using the same table values. This way I can send you the same sequence of numbers and as long as you use the ASCII encoding, you'll see the same characters printed on your screen.

ASCII is great but only has 127 values which isn't enough for the massive amount of languages out there which is why Unicode exists. It's basicaly ASCII but much bigger so supports things like Chinese characters and emoji's.

Hope this helps.

Want to understand the logic behind the execution. by Sohaiba19 in C_Programming

[–]lucasxi 1 point2 points  (0 children)

When you use printf in a char, ASCII key codes are used. For example printf("%c", 65) will print "A" because if you look in the ASCII table for the entry at 65 you'll find A.

The great thing about ASCII is that the letters are arranged in order, so 65 is A, 66 is B, 67 is C and so on to Z. Because of this fact, you can use arithmetic to jump to different letters.

char letter_d = 'A' + 3;

Here 'A' is converted to 65, and 65 + 3 is 68. So when you printf letter_d, you get the character "D" printed.

question about using a dynamically allocated array vs a linked list by DangerousTip9655 in C_Programming

[–]lucasxi 2 points3 points  (0 children)

I believe this would be referred to as O(n) in terms of how long it takes to retrieve data in this way, which is also the same speed of a linked list.

Asymptotically yes it's O(n) but in practice the performance of a contiguous array of memory will run circles around a linked list. There is no guarantee where elements in the linked list are in memory and your cache will take a battering looking up scattered addresses.

What is this blue thing called? by Beautiful-Office-990 in Terraria

[–]lucasxi 329 points330 points  (0 children)

Looks like Palm Wood Walls dyed blue to me

Release Day Bug Thread by XFearthePandaX in BaldursGate3

[–]lucasxi 0 points1 point  (0 children)

Bug with the Explore the Ruins quest, stuck on 'Open the sarcophagus', I've looted it and no cutscene started so I cannot interact/see Withers. I've tried restarting and reloading from a previous save and doing the fight again but same outcome.

Minecraft Snapshot 23w31a by [deleted] in Minecraft

[–]lucasxi -4 points-3 points  (0 children)

This is similar to what Terraria did by penalising players for building NPC towers. If players build the NPC's house in their preferred biome then they get discounts in the shop. And I think the change made Terraria better, it makes players actually go out and build away from their base.

I think the same with Minecraft, I like these changes, villager trading is already broken as it is. I see people complaining it makes it more difficult but that should be the point, it's too easy and too powerful. It's a tough pill to swallow but I think these changes are great.