We have a Steam curator now. You should be following it. https://store.steampowered.com/curator/44994899-RPGHQ/

Programming General

I'm sorry Dave, I'm afraid I can't do that
Ignore Topic
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Programming General

Post by Nooneatall »

Hello and welcome to my programming topic and blog

Do you want to learn to code?
Here are some resources I suggest:

Very Easy and Modern:
https://htdp.org/

Very Easy and Old:
https://www.cs.cmu.edu/~dst/LispBook/book.pdf

Moderate and Math Heavy:
https://mitp-content-server.mit.edu/boo ... index.html

That's really all you need to go from zero knowledge to basic knowledge.

Then there's the problem of learning concepts like object oriented programming and a more modern language like Python. Also, all the tooling that goes along with it like Git, Docker, etc.
Focus on the fundamentals first and don't worry about programming language trends or what language you should learn. If you learn racket/lisp/pseudo code and get the fundamentals down you should be able to learn C#/Java/Python with little difficulty.

Eventually you will want to get into the bytes and bits. I recommend looking around places like Linkedin learning for lower level stuff and then browsing github.
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
Vergil
Posts: 16275
Joined: Sep 6, '23

Geolocation

Post by Vergil »

Sir this isn't a transgender friendly forum.
I'm just stating the facts.
Question is are you going to gargle the truth or swallow?
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by Nooneatall »

Blog 1:
I have been working on a game and that's all I can say about it from a creative level.
From a technical level, I can say I'm using C# and in creating a game with an engine it's made me think a lot more than usual.
I have to learn a new pattern where I'm not relying on the language runtime garbage collector, but rather the engine's. This leads to interesting situations where I have to be careful not to indulge in too much OOP stuff and concentrate on abstracting in ways that compliment the engine.
Another thing I did was fully embrace functional programming (which is my default so no problem there) and not worry about resource allocation too much for the following reasons:
1. It's more important in the beginning for my code to be readable, correct, and easy to follow than performative.
2. Without knowing what the hot paths of the program will be it's useless to prematurely optimize. So I don't care if I'm doing a linear pass on every collection every time. I also don't care if I'm allocating a new collection. The runtime GC can clean that up and the engine can free up any other resources I set.
3. Side effects and mutation, even when encapsulated, can cause a lot of headaches as my program gets bigger.

Overall the transition to this style has already saved me a lot of time and I should have just did that to start with. Also, getting away from inheritance will also save me a lot of trouble and the engine enforces that by not respecting things like constructors.
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
Unhelpful Contrarian
Posts: 3289
Joined: Aug 24, '24

Geolocation

Post by Unhelpful Contrarian »

Good to know unfortunately I not great with math. Nevertheless still an interesting read.
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by Nooneatall »

Unhelpful Contrarian wrote: ↑ September 30th, 2024, 21:17
Good to know unfortunately I not great with math. Nevertheless still an interesting read.
I'm literally ******** so if I can do it you can too
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
Stack of Turtles
Posts: 9030
Joined: May 7, '24
Location: Soon-to-be Cuba

Geolocation

Post by Stack of Turtles »

I really don't want more people to learn programming. Seeing more bad programming in the world would make me cry. :sad:
VAE VICTIS
User avatar
Xenich
Posts: 5270
Joined: Feb 24, '24

Geolocation

Post by Xenich »

What style of development cycle are you applying and what stage are you in?
User avatar
Nemesis
Director of Synchronous Communication Channels
Posts: 1531
Joined: Feb 2, '23

Geolocation

Adventurer's Guild

Post by Nemesis »

The best way to learn programming: Do you have a problem that can be solved by a program that doesn't exist? Build it.
User avatar
GhostCow
Turtle
Turtle
Posts: 3802
Joined: Feb 3, '23
Gender: Dinosaur

Geolocation

Post by GhostCow »

You don't need to be good at math to be able to program. I don't know what you need though because I'm literally a member of mensa and I'm too ******** to figure it out
☆HQ Defense Force☆
asf
Turtle
Turtle
Posts: 3252
Joined: Feb 2, '23
Gender: Helicopter

Geolocation

Post by asf »

how do i hack the government
User avatar
WhiteShark
Site Moderator
Posts: 5057
Joined: Feb 2, '23

Geolocation

Adventurer's Guild

Post by WhiteShark »

Nemesis wrote: ↑ October 1st, 2024, 00:53
The best way to learn programming: Do you have a problem that can be solved by a program that doesn't exist? Build it.
Very true! I recently learned how to read hexadecimal, among other things, while writing a tiny Lua library for FFXI to reencode Shift JIS text to UTF-8 so that it could be displayed properly in imgui frames from other addons. Feels great to write something that solves a real problem and isn't just an exercise.
User avatar
Element
Posts: 1186
Joined: Jul 23, '23

Geolocation

Adventurer's Guild

Post by Element »

My only book rec is Computer Systems: Programmer's Perspective. It covers a lot of low level stuff - representation of information, memory hierarchy, processor architecture, assembly etc. Does require you to at least be familiar with C though, and the math notation can be tough for non math people. Haven't finished it yet, but so far it's been an illuminating read.

SICP has also been on my list for a long time.

I find programming quite hard. Getting the hang of a language is easy, but making stuff with it is daunting to put it mildly. Graduate level mathematics is easier to get a handle on.
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by Nooneatall »

Blog 2:
I have added "managers" that know certain things about some of the game pieces so that it can listen for anything that happens from them but then those pieces don't have to know about each other. This is great for modularity, separation of concerns, and testing.
I've also started to add a rudimentary form of automated testing so I don't have to physically manipulate the game world to see if stuff works.
I got some of the UI working as well with more feedback to the user and a better graphical representation of a model changing depending on state updating. I plan on changing how I implemented that because it's a little hacky. (Implement a state machine)
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
Ranselknulf
Turtle
Turtle
Posts: 2089
Joined: Feb 3, '23

Geolocation

Post by Ranselknulf »

Nooneatall wrote: ↑ September 30th, 2024, 21:11
Hello and welcome to my programming topic and blog

Do you want to learn to code?
Here are some resources I suggest:

https://chatgpt.com/
Fixed
User avatar
Magick
Posts: 4200
Joined: Jan 29, '24
Location: USA
Gender: Potato

Geolocation

Adventurer's Guild

Post by Magick »

Unhelpful Contrarian wrote: ↑ September 30th, 2024, 21:17
Good to know unfortunately I not great with math. Nevertheless still an interesting read.
Not necessary to be good at the "numbers" side of math. That's only useful at certain times, and you're already using a giant calculator and any algorithm or formula is easy enough to look up.

What you do need to be good in, is logic. Do not write spaghetti. Your process should be an orderly and sensible set of commands.
People always think programming is about code. You should be able to "program" on paper or in your head. The code is just what makes it work.
User avatar
J1M
Turtle
Turtle
Posts: 6282
Joined: Feb 3, '23

Geolocation

Adventurer's Guild

Post by J1M »

Advice for newbies: don't get fixated on design patterns or object oriented programming.
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by Nooneatall »

J1M wrote: ↑ October 5th, 2024, 15:44
Advice for newbies: don't get fixated on design patterns or object oriented programming.
Yeah I highly recommend people do not try to learn that first.
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
rusty_shackleford
Site Admin
Posts: 52868
Joined: Feb 2, '23
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by rusty_shackleford »

never worked on a project using dependency injection that I thought was improved by using it
one of those overly fancy terms for something that is conceptually simple and has built a cult around somehow
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
User avatar
Magick
Posts: 4200
Joined: Jan 29, '24
Location: USA
Gender: Potato

Geolocation

Adventurer's Guild

Post by Magick »

rusty_shackleford wrote: ↑ October 10th, 2024, 01:46
never worked on a project using dependency injection that I thought was improved by using it
one of those overly fancy terms for something that is conceptually simple and has built a cult around somehow
These cults are pissing me off. From design patterns to dependency injection / IoC to frameworks to the worst of the worst, Agile..

They seem to be highly favoured by contractors / consultancies who sit wanking themselves off over the fancy patterns they've implemented, and completely lose sight of what they're actually meant to be doing, and always leave something far more complex than it needs to be.
User avatar
NotAI
Posts: 490
Joined: Mar 3, '23

Geolocation

Post by NotAI »

OOP is good but only for larger projects where easy reuse is a real thing and there is something systematic going on. Often there isn't.
It requires making overhead, conceptual and literal, that doesn't get used much in a tiny project. Things have to be used many many many many times.

Pretty easy to learn though. Doing it consistently just costs money and only pays off as the project scales.
User avatar
JauSeth
Posts: 21
Joined: May 22, '24

Geolocation

Post by JauSeth »

I know I'm kind of late to ask this since I've been out of the loop regarding this topic, but when did this programming/coding "craze" start?

It seems that nowadays, everyone has to learn a programming language for some reason, and learn to code whether in a scripting language (e.g. JavaScript), or object-oriented one (e.g. Java, Python, C++, C#). And not to mention learning things like design patterns, machine learning, recursion, pointers, frameworks, etc.

I recently saw a Reuters article on a Portuguese school apparently setting a Guinness World Record for the largest programming lesson ever held, and I'm still wondering why is this so trendy these days?

I remember back in 2000s when I was in high school learning Visual Basic, C#, and HTML + CSS just for the fun of it. At that time our CS class didn't teach any of this stuff, and I think it the concept of programming back then was viewed as "nerdy", so I just went ahead and looked up tutorials on how to create your own small apps, and whatnot, and in the meantime I learned a lot, and had fun doing it, but over time, the interest just phased out.

What's so different these days that learning to code is so widespread, and essential that it has to be taught worldwide? All I've heard are stories of people saying that it's a high paying job or something, but that can't be the sole reason for this massive popularity, could it?
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by Nooneatall »

JauSeth wrote: ↑ October 12th, 2024, 17:34
I know I'm kind of late to ask this since I've been out of the loop regarding this topic, but when did this programming/coding "craze" start?

It seems that nowadays, everyone has to learn a programming language for some reason, and learn to code whether in a scripting language (e.g. JavaScript), or object-oriented one (e.g. Java, Python, C++, C#). And not to mention learning things like design patterns, machine learning, recursion, pointers, frameworks, etc.

I recently saw a Reuters article on a Portuguese school apparently setting a Guinness World Record for the largest programming lesson ever held, and I'm still wondering why is this so trendy these days?

I remember back in 2000s when I was in high school learning Visual Basic, C#, and HTML + CSS just for the fun of it. At that time our CS class didn't teach any of this stuff, and I think it the concept of programming back then was viewed as "nerdy", so I just went ahead and looked up tutorials on how to create your own small apps, and whatnot, and in the meantime I learned a lot, and had fun doing it, but over time, the interest just phased out.

What's so different these days that learning to code is so widespread, and essential that it has to be taught worldwide? All I've heard are stories of people saying that it's a high paying job or something, but that can't be the sole reason for this massive popularity, could it?
I learned because I wanted to make video games. It turned out to be one of the only things I'm good at so I stuck with it. I think anyone who uses a computer should learn. It's not as required these days
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
Magick
Posts: 4200
Joined: Jan 29, '24
Location: USA
Gender: Potato

Geolocation

Adventurer's Guild

Post by Magick »

JauSeth wrote: ↑ October 12th, 2024, 17:34
I know I'm kind of late to ask this since I've been out of the loop regarding this topic, but when did this programming/coding "craze" start?

It seems that nowadays, everyone has to learn a programming language for some reason, and learn to code whether in a scripting language (e.g. JavaScript), or object-oriented one (e.g. Java, Python, C++, C#). And not to mention learning things like design patterns, machine learning, recursion, pointers, frameworks, etc.

I recently saw a Reuters article on a Portuguese school apparently setting a Guinness World Record for the largest programming lesson ever held, and I'm still wondering why is this so trendy these days?

I remember back in 2000s when I was in high school learning Visual Basic, C#, and HTML + CSS just for the fun of it. At that time our CS class didn't teach any of this stuff, and I think it the concept of programming back then was viewed as "nerdy", so I just went ahead and looked up tutorials on how to create your own small apps, and whatnot, and in the meantime I learned a lot, and had fun doing it, but over time, the interest just phased out.

What's so different these days that learning to code is so widespread, and essential that it has to be taught worldwide? All I've heard are stories of people saying that it's a high paying job or something, but that can't be the sole reason for this massive popularity, could it?
I don't know where the "push" came from, it's silly. It was best left to the nerds who were interested, rather than pushing in those who are not.

All I know that is along with "normies" came all the normie culture such as Open Plan offices, Agile, daily meetings, "social collaboration" and all the rest of the BS that just turns it into playday for extrovert soyboys and hairdressers, rather than letting coders lock themselves in cupboards and just work.
User avatar
NotAI
Posts: 490
Joined: Mar 3, '23

Geolocation

Post by NotAI »

JauSeth wrote: ↑ October 12th, 2024, 17:34
I know I'm kind of late to ask this since I've been out of the loop regarding this topic, but when did this programming/coding "craze" start?

It seems that nowadays, everyone has to learn a programming language for some reason, and learn to code whether in a scripting language (e.g. JavaScript), or object-oriented one (e.g. Java, Python, C++, C#). And not to mention learning things like design patterns, machine learning, recursion, pointers, frameworks, etc.

I recently saw a Reuters article on a Portuguese school apparently setting a Guinness World Record for the largest programming lesson ever held, and I'm still wondering why is this so trendy these days?

I remember back in 2000s when I was in high school learning Visual Basic, C#, and HTML + CSS just for the fun of it. At that time our CS class didn't teach any of this stuff, and I think it the concept of programming back then was viewed as "nerdy", so I just went ahead and looked up tutorials on how to create your own small apps, and whatnot, and in the meantime I learned a lot, and had fun doing it, but over time, the interest just phased out.

What's so different these days that learning to code is so widespread, and essential that it has to be taught worldwide? All I've heard are stories of people saying that it's a high paying job or something, but that can't be the sole reason for this massive popularity, could it?
Probably because programming has made the most amount of $$$ in the last thirty years. That changes perceptions. Whatever makes money is cool in most places.

There are also 3 reasons that people have figured out:

1. Everything physical runs on software, rather than custom hardware, so not being able to code limits options for making almost anything else...washing machines used to have mechanisms, now they are programmed.

2. Then also it's the only job many people can do, since it's least tied to location. Most jobs actually have a high pay-to-play ticket to entry: buying a house in the region.

Certainly in the USA, but especially in EU, where wages are lower but prices are just as high and can be 1M-3M for a previously normal "knowledge economy worker is owner" flat in one of the larger cities.

3. Finally, whoever "don't program" is basically right ****** these days. That popular impression is more or less correct.

Either you code or you can afford to pay somebody to code, or, better yet, both. Because either (a) you can't do much of anything. (b) Or you can't understand and evaluate much of anything.

("So hey, we are a company that makes halal pork. We have a robotic AI object-oriented purely functional rabbi in New Jersey bless our pork. We believe there is an enormous untapped market: look at this map. Nobody in these regions HAS EVER EATEN PORK. We feel it's money on the table. Our THESIS is: They've just never had REALLY GOOD pork. Here's a picture of Steve Jobs. We may look like a food company, but actually...actually...we're a software company. Our pork uses nanotachnology. It is SMART Pork. It is software pork. This saves us money on shipping. You subscribe to the pork when you eat it. If you unsubscribe too soon, it crawls back out of your mouth, or that is what we're working on. Anyway, we have three patents PENDING on that. We're based in Los Angeles. Really amazing employees from MIT program our SMART Pork.")

Case Study: Was/Is WeWork a software company or a real estate company?

(3.b.) is what causes coding to matter for professions where it doesn't seem like it should be relevant. Anything administrative more or less.
User avatar
Nemesis
Director of Synchronous Communication Channels
Posts: 1531
Joined: Feb 2, '23

Geolocation

Adventurer's Guild

Post by Nemesis »

JauSeth wrote: ↑ October 12th, 2024, 17:34
All I've heard are stories of people saying that it's a high paying job or something, but that can't be the sole reason for this massive popularity, could it?
It's not the sole reason, but it's the biggest draw: Normies want to add "Good with computers" to their resume to have an "edge," if that still exists, over others when competing for a job, even, when hired, they don't ever touch a keyboard.
User avatar
rusty_shackleford
Site Admin
Posts: 52868
Joined: Feb 2, '23
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by rusty_shackleford »

JauSeth wrote: ↑ October 12th, 2024, 17:34
I know I'm kind of late to ask this since I've been out of the loop regarding this topic, but when did this programming/coding "craze" start?
when companies wanted cheaper developers not realizing the work needed will expand to fill the number of developers
it ended when they thought they could outsource to pajeets and now everything has been pajeetified aka ****
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
User avatar
Boontaker
Posts: 991
Joined: Sep 5, '23

Geolocation

Adventurer's Guild

Post by Boontaker »

How do I add a command to a program so it doesn't automatically connect to the internet and search for updates?

Specifically asking for the CBloader program which is now dead and won't work if it connects to the internet
User avatar
rusty_shackleford
Site Admin
Posts: 52868
Joined: Feb 2, '23
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by rusty_shackleford »

Boontaker wrote: ↑ October 13th, 2024, 04:00
How do I add a command to a program so it doesn't automatically connect to the internet and search for updates?

Specifically asking for the CBloader program which is now dead and won't work if it connects to the internet
better off running it in a sandbox with internet access disabled
viewtopic.php?t=2587-sandboxie-plus-run ... k-of-virus
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
User avatar
Nooneatall
Posts: 2413
Joined: Dec 4, '23
Location: The Congo
Gender: Watermelon

Geolocation

Adventurer's Guild

Post by Nooneatall »

I switched to Unreal and it's much better than the other janky engines.
I absolutely despise C++, however, you don't have to interact with it at a high level to link things. There's a trick here: Connect everything and lay things out using blueprints, which is really good for high level game designer type stuff. However, it absolutely sucks to use it to write logic. Instead, write your C++ code for the logic (which is more a small subset then actual C++ with memory management and ****) and then connect those custom events you've written in C++ up with the blue prints. This allows you to shift into two different modes and think in a better game designer type way.
Phase 1: I'm writing some sort of modular reusable logic that is really just a function. (think of anything where you have to branch or use a foreach loop. This exists in blue prints but it starts to look awful)
Phase 2: I'm connecting the custom logic I wrote but I don't actually have to care about it other than what it takes and what it outputs. I'm in my game designer mode.

Unreal is the tits if you can handle the immense resource usage.
I made a mod for CK3:
DEI Remover

:knight-cross: donate to the HQ :knight-cross:

Volunteer Moderator
Professional Shitposter
Proud member of the woke right
User avatar
Xenich
Posts: 5270
Joined: Feb 24, '24

Geolocation

Post by Xenich »

Nooneatall wrote: ↑ October 22nd, 2024, 13:28
I switched to Unreal and it's much better than the other janky engines.
I absolutely despise C++, however, you don't have to interact with it at a high level to link things. There's a trick here: Connect everything and lay things out using blueprints, which is really good for high level game designer type stuff. However, it absolutely sucks to use it to write logic. Instead, write your C++ code for the logic (which is more a small subset then actual C++ with memory management and ****) and then connect those custom events you've written in C++ up with the blue prints. This allows you to shift into two different modes and think in a better game designer type way.
Phase 1: I'm writing some sort of modular reusable logic that is really just a function. (think of anything where you have to branch or use a foreach loop. This exists in blue prints but it starts to look awful)
Phase 2: I'm connecting the custom logic I wrote but I don't actually have to care about it other than what it takes and what it outputs. I'm in my game designer mode.

Unreal is the tits if you can handle the immense resource usage.
Concerning this, how difficult would it be to create a basic MUD style combat engine, then implement some objects for interaction within an area to simulate an EQ like engine and interaction? Nothing complex, no animations, etc... just basic objects that follow a simple interaction system for RNG based combat similar to how EQ functions at that interaction level?

I have mentioned this in the past, but have never bothered to really put effort to it.

Based on your experience with it, past programming experience with more modern engine systems, etc... will a lot of things have to be made from scratch, or does unreal have a lot of tools/libraries that would reduce workload on this sort of implementation?