THE NEW Miscellaneous Talk That Doesn't Deserve A New Thread Thread Thread (Part 2)

There’s two layers to the problem, I’d say. One is the general code architecture where good code practices are related to programming patterns and techniques used to encapsulate logic so that you can focus on one part of the problem at once. For example some terms related to this are OOP, common code patters (proxy, factory, singleton, plain record models), and concepts like SOLID or KISS, data model design. Those are things that apply to most languages and can be used to make sure you aren’t writing super tangled together spaghetti, instead writing really neat small code modules (in OOP that is classes and interfaces) that interact with each other in a well defined way that is documented with comments. If you don’t do that you end up with such a huge mess that trying to reason about the program all at once overloads your brain and you can’t work on the program effectively anymore.

The second layer is writing idiomatic code in the language you picked. Each language has its own set of best practices, like how you should structure, indent, name things in your code. This ensures that when other people read your code they aren’t surprised by your style choices but can actually focus on the meat of the problem: does your code have bugs, algorithmic mistakes, bad big O scaling algorithms that are trivial to rewrite.

I’ll point out that for Thrive, we have a style guide document detailing most of our styling requirements, but also some Godot usage requirements that we’ve found avoid bugs or just result in much more consistent and less confusing code for existing Thrive developers to read:

The rest of the style is enforced with automatic type checks, which are awesome in saving review time as a human doesn’t need to look at your weirdly spaced out code and instead the automatic tool tells you to fix the problems before a human reviewer can then focus on the actual logic of your changes as their eyes won’t get caught on every single style difference.

So it didn’t? Or it could be that only geo location information is removed as I think that’s the only really personally compromising info if someone accidentally uploads an image with that.

What have i done…
I didnt mean for it to derail so much…

Some people enjoy yelling in the void.

I like to see everyone talking about programming, coding, and here I am literally physically unable to program in any program other than Scratch.

…Yes.

When that stupid thing is your first contact with programming, you get used to it and then learning plain text languages ​​becomes extremely difficult to learn.

Wait, but I was told that EXIF data registers the location where the picture was taken!

Too bad there is no such thing for Squirrel. The best I can do is to use the conventions for Lua since it is Squirrel’s closest relative, but I don’t know… I just feel like using my own conventions since Squirrel has more proper OOP than Lua. Metatables are so confusing!

The only good code practice that I use is the never nesting (never nesting more than three times in a row, except if I have no other option).

Once you’ve learned one programming language, you get the basics for most programming languages. Every language (except HTML and CSS) have at least conditional statements (if, if…else, else if, nested), loops (while, for, nested), variables (int, float, string, array or equivalent(s)) and functions. Once you’ve mastered these elements, you’ve mastered the basics of nearly every language. Then again, some languages have their own features. C#, Java, Python and C++ have OOP; Lua has do…until loops and tables instead of arrays, which can have some weird dark magic OOP features; etc.

I know that some people wouldn’t agree, but HTML and CSS aren’t true programming languages like every other. They are only useful for making webpages. HTML is kind of like for structuring the page like a newspaper article. You have the title, then the text. You can also insert images, videos, etc. CSS is more for making the styleart of the page, but I’ve never touched it, so I can’t say anything more about it.

Well a camera without a GPS literally cannot know where it is taking pictures so it obviously can’t add the info. It’s a bit more of a problem nowadays with phones being the primary cameras of people as they do know where they are.

Most of the Lua specific style stuff I’ve seen is actually centered on how to use metatables. So instead if Squirrel has actual classes, using something like C#, JavaScript or C++ style might be much better fit.

That’s because these aren’t programming languages, they are markup languages which are slightly more advanced than something like YAML or JSON. And I see you mentioned that in a later paragraph.

1 Like

Yeah, we only allow high-effort necroposting here. (Joking)

You just did it yourself… I’ll move our posts to the misc thread.

But i was joking! :frowning:

It was still a necropost as a joke does not count as a constructive new post. There’s probably dozens of threads where you could make the same joke…

1 Like

How do I make those thingies with the
[something v]
that if you click it will show some text

When writing a post, click on the cogwheel, and choose “Hide details”:

Summary

details

Example

Like this?

Like[1]


  1. This? ↩︎

Thanks⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

9 posts were merged into an existing topic: Underwater Civilizations Take 3

Seriously folks. No thread on these forums allows talking about underwater civs. I was going to allow that one meme, but people just had to resume the actual underwater talk so I had to take care of all the posts.

As reminder there’s a subreddit where you can take all of your underwater talk, it’s linked here: r/ThriveU8PCivsPipeline for those of culture | Subreddit needs members to underwater/plant civ talk

Just to highlight how ridiculous this whole thing is that recently the community Discord got a bot that keeps track of when people last mentioned underwater civs, and so far it has never been more than 48 hours since the last mention while the bot has been in operation (though some of those mentions are purely trolling).

please do not do low effort necroposts

2 Likes

Agreed. @Lipovomit necroposting is fine only if you are contributing something to the discussion. Making a simple observation that adds no new points to the discussion does not count.

1 Like

Who wants to play chess?