#⌨coders-cave
1 messages · Page 37 of 1

but this codebase is too big and i'm scared ill break sometthing 
We are hiring at SpeciesBox Limited
Salaries here are way better than AMP's
You should join us
pls 
If you're gonna use salaries as an argument, you'll need to beat my actual job and not AMP. 
how much do you get paid
I get paid 25€/hour (was a good bit lower when I first got employed, but I've said some raises in the year since), which is pretty fair imo when it's my first ever coding related job and I entered in with 0 finished education and 0 C++ experience.
That was a joke btw, I'm not instantly gonna ask money for random stuff I'd do here out of passion. xD
well i was joking too 
i was about to say $1 every 100 year
what country is this?
✨Austria!✨

I mean, better than nothing.
yessir and the amount increases with time
would recommend if you dont have a lot of bills to pay
Funnily enough, a big refactor is basically the second ever thing I did in AMP.
They used to have a solid 50% of commands and utils or something in a single tumorcog called "random_stuff.py".
When I joined the team, Jupe asked me if I could maybe try making it's structure less cancerous.
Can confirm amp got not very cool code base
I helped jupe fix a command years ago
That was very hard
Ok, do NOT compare old AMP to current AMP. xD
You should consider making a new AMP with something other than Python
The codebase is currently in a lot better state than how it used to be.
And use it to implement new commands then slowly transition
Basically the only meaningful caveat is the usage of Python.
Wat
Though it's honestly not even that bad.
*the, was talking about current code quality compared to old.
Nah, I don't hate Python enough to feel compelled towards trying to push for a complete AMP rewrite. xD
That’s why I said start writing new commands before transitioning the whole things
But tbh AMP will never become very huge since you can disable some commands in the future based on server events ig
So you don’t have to keep it all up to date and working forever
Its very good, in russia such salary is only for seniors or even team leads
How many hours you working per week?
Only 5 as of now, since I'm still a student.
Nah, I've still got a year to do before that.
As far as I know though, my contract won't change with full time (apart from the amount of hours I gotta work).
So still very good
Yeah, the only reduction will be from government taxes that I don't have to pay rn.
Yeah. My employer used to be my programming teacher, so I think he noticed my skills very quickly and wanted to "secure" me as fast as possible.
Just checked, currently median salary for lead position is 35 euros per hour in russia
That's definitely quite good. Not like what you'd expect in e.g. a good US company, but they need the extra money over there since the lack of social insurance and whatnot causes so many more living expenses.
@barren shale Fully working code; a once in a lifetime event! 
a code with no bugs
See, I’m a fraud; when I needed to release a “clean” graphic, I simply patched out every bug causing feature temporarily XD
For a second I was confused because $35/h here is not good at all then I realised this is euros so it’s actually $60 which makes more sense
Ngl, I had no idea there was a dollar that loses so much relative value compared to the euro. xD
AUD has consistently been around 1.6-1.7 EUR
Reguardless of eithers inflation it always settles around that exchange for some reason
Same with USD to AUD
Huh, interesting.
Tbh, my geographical knowledge probably sucks almost as much as the stereotypical average American one, so it checks out that I had no idea about that. xD
XD
What’s funny is that compared to America or most of Euro-using europe, the conversions aren’t that different on smaller purchases that we kinda stick to the same prices as other currencies
If a McDonald’s burger is $2 in America it’s still probably $2 in Australia, despite it really being an equivalent value of around $3
Depends on the country too, tech jobs in America pay way more
$100k+ salaries in the US are very common and not hard to get
Australia is slightly below average but its really easy to get into it compared to a lot of places
stupid gpu
radeon isnt too bad
AMD integrated packs a serious punch for integrated, have a look at the internal specs
obv still not good as dedicated but closer
yeah people tell that but i had an amd integrated gpu and it was nowhere near an rtx or whatever
graphics really isnt a priorty for me rn
or will it be much more glaring than it is now when all the other specs are super high end than it is now with all of my stuff beign average?
wait @polar isle i only just realised the newset macbook pros can boot windows
..no
didn't you say you are doing 3d modelling
that's gpu intensive
Are there any performance related updates coming down the pipe for Worldbox anytime soon? Burst compiler and things like that for a few of the more CPU intensive simulation stuff?
What is the gpu and how much is it in usd?
We don't know this, and we may speculate as much as you may do so as well. WorldBox might be getting performance updates, but nothing was announced about this.
Sorta, it’s voxel modeling so it’s a lot less intensive than you’d expect
$1.2k
You know what gpu it is?
Just a high end integrated Radeon
That’s subjective
But the cheapest laptop with these specs but with a dedicated gpu is almsot $1000 more aud
Wdym?
Eh for 32gb ram & an R9 it’s ok I think
Yeah depends on what you are using it for
If you’re gaming in it you’d be better off with something else
If it is work then it’s good
Graphics cards alone are like $700 here
Not for laptops
Well I’m going primarily for extreme multitasking & programming
Mhm
And some (light) gaming but that’s not the main reason I want the better laptop
Ok so I’ve found out that there is a beefed up version of this that can utilised dedicated gpus
.
Indian videos on yt better than books?
Depends on the book
sb2 development be like
Watch AMP devs consistently test in prod. 
with faith 
may the gods compile the code and run it with no sinful bugs 
i am the greatest amp bug finder and tester 🥱
where's my crown? that's my bling!
Of course! I mean, we're talking about Python here, the most type robust language in existence! If the static type checker doesn't flag any errors, we can be basically certain that the code is bug free! 
python does indeed run on the will of god
because holy (no pun intended) shit that language is unreal
i don't understand why did they make it 
For real.
does anyone get this reference...??
no...
i feel so bad for coders man
in the near future
a small percentage of coders will just become rich, make some great artifical intelligence company
why? because we stoopid?
well feel bad for everyone then
and the rest, what if a.i. just replaces coding all together
because coders are the last to lose their jobs 
and programming becomes repetitive labour to be done by humans
just like the industrial revolution
programming is not really repetitive
at the early beginnings, youd make a grand, then as time went on, everyone became a labourer
wages dropped
for now, what if a.i takes over?
that happens with every job ever to exist
jobs get replaced by jobs
well
only way to stay ahead is to keep getting better
honestly the way i see it
even within software engineering jobs there are people who don't make much money
because they know old things that are only used to maintain legacy code
these people will soon be replaced when there's no more legacy code they can maintain
think of AI as a tool just like every other tool
the only way to become a successful programmer in the future is to like make some artificial intelligence bot yourself 🤷
I mean, there's also a point where the code becomes so legacy that it's just even more profitable (e.g. COBOL at banks). 
read the next line >:(
that sounds interesting
yes but the issue is
what if were an indie programmer till now
and suddenly a.i appears
youre genuinely cooked
and even worse scenario
what if every programmer will just aspire to make a.i
to a point that the ai market becomes unprofitable and very hard to make a living out of
because this aint like starting a full on company
you dont require any capital at all
just code
you can use AI to do things
I mean, I don't really see a reality where banks would suddenly decide to replace all of their most basic systems with modern equivalents. It arguably seems like too much of a risk from their perspective, I'd assume. Somehow makes it more worthwhile to keep the 1970s code working for as long as humanly possible.
AI is far from being able to fully code
for now.
it is always for now
it has been for now for the last 100000 years
people figured it out and they will do again
computers were new at some point
they will once the gap between them and more modern banks is big enough
because at that point it would become worthwhile
and then the people maintaining that legacy code will become obsolute
im still worried about the programming market man
programming is not the only thing that's going to suffer from tthis
either it becomes unprofitable or just monopolised
and it is the one that will suffer last
yeah ofc
i wouldnt say last
probably around in the middle of the revolution
or 3rd quarter
socialism will find a new job for you dont worry 
Fair, my prediction is that that point will take an eternity to reach though and when it does come, the programmers who are affected will be able to smell it coming from a mile away.
its already happening
Tbh, I wouldn't be surprised if COBOL ends up dying from a lack of programmers instead of a lack of usages. I at least never ever hear of any sensible people still bothering to learn it. 
yeah also that
the amount of cobol programmers is getting smaller by the day
no bank will risk not finding people to maintain the code
they will throw it out before it dies
my greatest fear is that
every job
will get replaced by some monopoly a.i company....
Yeah, they'll effectively be forced to unless they want to crumble the second where anyone finds any security vulnerability.
literally not possible for every job to be gone
Even today, there's probably close to 0 cobol programmers with the required skill level and intelligence for being able to fix a hypothetical bug in an old banking system running on cobol.
last time i checked they dont want to crumble 
I sure hope so. 
You need to create a character first. Use _start
even if they have bugless software they can't keep up with modern banks
otherwise there will be no need to modernize in any thing in life
you can just stay on the good old things that work
but nobody does that because modernizing == more money
to be fair
from a business perspective
if it really caused that much of a problem for banks, eg. a major loss in revenue then they would switch from it
which most likely wont be easy but
banks have dozens of income streams
its not about problems itts more about competition
what phone do you have?
if it serves it purpose, then it really isnt that much of a problem
it only becomes a problem when the cost to maintain it gets higher
the software is not a problem
the fact that other banks have better software is the problem
only if it becomes harder for the bank to trade
people will go to the better banks
that is just natural path dependency
and the type of software or code doesnt play a major role in that
Yeahh, though established big banks can probably get away with falling behind in modernity at least for a few more years simply from being the ones who everyone old/rich would rather trust, meaning that being outdated effectively puts them where the money is at. xD
because not many people look up "what software does that bank use"
the larger and more "modernised" bank generate more income allowing for them to have lower interest rates
yeah but they shouldnt really
and can just provide more credit benefits
and etc
i wouldnt be surprised if there was a large bank using some old code
me personally, from a business perspective
Fair, everyone young just ends up alienated and they completely put themselves at the mercy of a few billionaires.
i just wouldnt see the point in switching unless it has real benefits
its more of if they lose their top spot it is not easy to get it back
its very worthwhile to keep modernizing to keep your top spot
but the problem with capitalism is that these banks are owned by people who own a lot of businesses
but yeah id have to look into this
so they just squeeze as much money as they can and then sell out of it and go to the next one
im just saying this blatantly
they dont care aboutt 10 years from now
plus minus true
What’s the best book for beginners in linux? 
oh that's the context
@coral gorge just so you know, all of the things you've said about AI taking over programming hinge upon the trend we saw about 2 years ago with AI becoming far better at creative tasks continuing for years more, but as the amounts of data required to make AI better are exponential and we can't really get more of it the only way for the trend to improve is more innovations, and there's only so many more of those people can come up with. I'm not scared for the futures of programmers yet, only programmers that use ChatGPT because ten programmers using ChatGPT are nearly equivalent to a single programmer using ChatGPT.
yeah definitely I agree
we'll just have to see in the future
yep, that's the main factor. There's just a lot of reasons to doubt it will reach a concerning point even within my lifetime.
it's very brittle to think about rn
People in the past never believed we could fly, then airships got invented
Of course, airships probably provided more job opportunities than took jobs
But it's just an example
No one thought of conveyor belts until they eventually became commonplace, and many people lost their jobs
People are always looking for more and more automation
Of course, conveyor belts and A.I is different
"eventually commonplace" is the phrase here. It took a long time for airships, planes and conveyor belts to become commonplace, and the same can be said about AI in a job setting. The foundations of something that could replace jobs is here, but it's not ready.
Comparing a purely mechanical instance to something requiring deep learning isn't perfectly analogous, but the main point is that they both ultimately lead to automation
We'll see we'll see
Well originally the computer referred to people manually calculating the math
Then computers went and made that job a whole lot easier.
Taking that job away entirely if could be automated or just using less people
Then there's all the other mundane tasks that were taken up by modern computing.
Though as it currently stands AI did generate a set of a mundane jobs where humans have to manually tag stuff en such
Edit: Wait now that i think about it, definitely alot of mundane jobs relating to interacting with computers before ai.
exactly, if you don't keep up you get left out, nothing really changed its just how life is
when code editors started auto completing like 20 years ago people thought coding was over 😂
Ok
no
I reckon I’ve done pretty well making these aesthetically pleasing considering I’m using matplotlib, any obvious things you reckon could be improved on @barren shale ?
looks good 👍
maybe the legend should be sorted
or i think they are called labels in matplotlib
Wdym sorted?
It is already sorted, in a way
By date of addition
Oldest is at the top of the legend, youngest at the bottom
Should I separate out the dead ones to the bottom?
shouldnt it be sorted by highest to lowest based on the graph
My father is still using Microsoft‘s notepad for code. He did not adapt
I use Notepad for anything I can't be bothered to get an IDE for. Not anything I'm certain I will use for a long time, just things I'm trying out like C#, batch files and the like
Anyway, I have a question on another topic (maybe it's a little too vague)
How do you get Discord to say you're doing some activity like "Playing Subnautica"? I'm less concerned about doing it in a particular scenario (as I don't have anything for it), and I'd rather hear of an example program environment and path for getting it to work
All I want is for it to say that I'm teleporting bread
Implement discord rich presence in your app
There’s probably an app that can do this for you
Learn how to set up a custom rich presence on Discord in 2024 with this step-by-step tutorial! Rich presence allows you to customize how your status appears to others, adding a personal touch to your Discord profile. Whether you're a gamer, developer, or just want to stand out, this guide will walk you through the process, showcasing the latest ...
really only options im seeing is using plugins
Is somebody have a nice "import" for do math tree or something like that, it could be really useful thank you
Which beginner language should I learn fir game dev
How much programming do you know right now? What game engine do you want to use? I can help you with a lack of knowledge on either question if you need
I'm starting from scratch
And I only know some python
"Some"
Okay, so you have a few programming fundamentals already (they're pretty basic). Now you need to choose a game engine, and there are three main options to choose from
Unity engine is great for beginners (2d or 3d), Godot is good for 2d stuff (but needs lots of specific learning) and Unreal Engine is more complex and uses 3d. I wouldn't pick Unreal Engine where you're at unless you have specific motivation to.
It's always ok to change engine later by the way
Thx man
But what exactly should I use as ax language if u don't mind me asking bcsI checked python it seems to be pretty basic
Language is engine-specific
Unity uses C#, Godot uses GDScript (its custom language, nearly never used anywhere else) and Unreal Engine uses C++
C# and GDScript are closer to Python than C++ is
No problem, from here I recommend once you've picked an engine that you use tutorials to install it and do a few things in it
Every engine has tutorials good enough to teach you, but there's less of a headache for beginners initially when you pick a simpler engine
Search phrases like "how to make a basic game in [engine of choice]" are really helpful
And one last thing, if you're getting an error you don't understand or have something you want to do in the engine that you can't do with what you already know, check the web. It takes a very, very long time to stop running into situations you don't know about in an engine.
I think I've said enough for now on the subject, I'll cease my yammering
Is there a reason that there’s all these C languages but they’re still very different what’s the origin
Yes, there is. C is the original language developed in the 70s, with C++ being a new version released by someone else a little later in the decade. The language is still being updated today and has lots of differences to the original. And then there's C#, which was made in the 2000s by Microsoft (and is a bit Microsoft-y as a result)
C# is the most beginner-friendly and is used in simpler applications (even though any language can be used in complex stuff), C++ is pretty much the opposite in those regards (complex and more difficult) and C is the backbone which looots of very efficient programs are built, as it's the language most higher-level languages compile into
Thanks for the tips man, appreciate it🙏🏿🙏🏿
Fuck my HTML code broke
Idk
I send it in dm
Thanks
can someone that has a bit of experience in modding help me i keep getting this error and i dont know how to fix it
Fix what
Im still waiting to find out his problem
Guys, what does my function do?
Function joeCool() {
If (JoeTraits == Doey) {
Print("Doey the Copycat)
} else {
Print("Uncool")
}
}
Runs into an error because none of the variables are defined
Smart man
Nice XD
Also you’ll get another error because one of your strings is missing it’s ending quote mark
Huh?
didn't realize what the further context behind your question was til you said it
How usefull are linked lists practically?
Very not
Never used them before
Some languages use them to implement some other useful data structures
im new to code and right now im learning java is it possible for me to create mod using java language?
what apps should i use?
Only in C# and #🔧modding-talk
I guess its possible on any language if you manage to make/find interpreter on c#
Python to C# interpreter when
not worth the hassle though
ive never found an interpreter that actually translates from language to a language that fully works
AI would be your best choice but even then it is not perfect
I mean, how would you even do stuff like interact with libraries native to the language you're transpiling into? It feels like it's not something you could realistically ever take further than some simple 50 line test of a basic console app tbh.
yeah only AI has enough understanding of both languages to be able to translate logic
using these normal translators will never be able to do any actual real logic
AI is still bad at programming to the degree that you'll need knowledge of the second language anyway unless you want to go back and forth debugging with it for hours
I do programming and the only use I have of this.
Is making programs in almost every imaginable language that can work these 3 formulas.
Do you want me to give you a harder difficulty
Sorry for bad handwriting
Thag looks fun.
Should I ditch C++ in favor of Python? I mean, from what I'm seeing Python is well, the future.
Depends on what your using it for tbh
If you’ve already learnt c++ then Python is an easy addition to what you already know
I'm going to make games n' programs n' allat IT stuff.
Hello
Pprt
Anyone have website portfolios your willing to share I need to make one for my school project
Yea I don’t know why you would want this anyway lol
If u want stuff in python just write libraries for python in another language
you should stop maining languages in general
each one has its purpose
So I should diversify?
I had never done anything in python before and at the start of this month I was randomly invited to start working on a trading bot
2 days later I already had commits
dont worry about the language so much
after the first you learn languages matter very little
choose whatever is best for the project
the only worry in new languages is technically not being able to write the cleanest/most optimized code but 🤷♂️
@orchid frigate you are back :o
No more slep
What's this channel even about
the cave of coders
It's for programmers talking about whatever programming stuff comes to mind!
I used to hate uefi but it's just mid now
It should definitely be better
Like it's literally missing basic features like audio and vsync
Hi
understandable have a nice day.
I use scratch
Poor chat, become so inactive
did it used to be active?
from what I know it just occasionally has times of higher activity
Less than usual i mean
I remember it being this inactive maybe a few months ago
W
Used to be okayly average a couple of years ago
But now sometimes there have been days with no messages
Time to randomly revive this place then
Eh I come look at this like once a week
I remember veeeery far back at this point
When we fought over....
C#?
And like C or something?
I can't remember
We fought over everything but Zi can't remember in the very start what the main beef was
Probably you being trash at coding smh my head
You are such an unbelievably kind person!
Ikr I’ve been thinking about tuning down the kindness because people hurt me too much when I’m too kind
But nah kindness is a lifestyle and I gotta own it
Me when I touch any old part of the AMP codebase:
yeah amp codebase needs some kindne ss to be able to work with it
or else youre gonna burn it down
go to github
burn down the server that is holding it
Yesterday, I had to try adding some basic new features to a 1y/o unused part of code.
I ended up rewriting that entire segment of code.
To make it bearable.
"Naps"
i do the same to old SB 2 code
i wasnt very good at designing big systems when i started working on it ~4 years ago
I can only imagine...
And in 4 more years, you'll be saying the game about your current skills! 
the cycle will repeat yes
i will always suck compared to future hamza
which is a good thing
True.
This is the most relatable thing I’ve seen all day
Be glad that you don't have to deal with the AMP codebase. 
The worst variant of this is always when you see something so horrid you assume it's by another dev.
Just to then realise.
Based on git blame.
That past you is the commit author.
Why did past me commit such atrocities & how the hell did the “solution” owrk at all?!?
This.
I've before genuinely had to fix some module after it had recently broken down.
And when I started gaining a grasp on the code.
I genuinely got confused about how that garbage ever worked.
now rewrite it in rust 🤓
Nope. :P
How to start coding?
first, learn code, watch videos on how if needed, then get a game engine
Are there any companies that train you how to code so you can work for them? I think my biggest issue with trying to learn code is idk what to learn or where i would use it to make money
Now that i say it, sounds unrealistic. If it was my company logically i’d be more likely to hire people that already knew what they were doing.
🗿
If you want to learn to program but don't know what for, I recommend learning some simple language you can make small projects with of your choice before sticking to something like web dev or game dev. I personally learnt Python first and built mathematical projects that did stuff like find prime numbers or multiply complex numbers, but you could start with anything I mentioned (as long as you try multiple things before sticking to one). Other people in this channel will have their own recommendations, too.
Za
@next mantle when are we getting the next clan graph
Once I make some updates, today
`// Interactive website script
document.addEventListener("DOMContentLoaded", () => {
const app = document.createElement("div");
app.id = "app";
document.body.appendChild(app);
app.innerHTML = `
<button id="magicBtn">Click Me</button>
<div id="counter">Count: 0</div>
<canvas id="drawingCanvas"></canvas>
`;
// Button interaction
let count = 0;
document.getElementById("magicBtn").addEventListener("click", () => {
count++;
document.getElementById("counter").textContent = "Count: " + count;
});
// Smooth animation loop
const canvas = document.getElementById("drawingCanvas");
const ctx = canvas.getContext("2d");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let particles = Array.from({ length: 100 }, () => ({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
radius: Math.random() * 5 + 2,
dx: (Math.random() - 0.5) * 4,
dy: (Math.random() - 0.5) * 4
}));
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach(p => {
p.x += p.dx;
p.y += p.dy;
if (p.x < 0 || p.x > canvas.width) p.dx *= -1;
if (p.y < 0 || p.y > canvas.height) p.dy *= -1;
ctx.beginPath();
ctx.arc(p.x, p.y, p.radius, 0, Math.PI * 2);
ctx.fillStyle = "cyan";
ctx.fill();
});
requestAnimationFrame(animate);
}
animate();
// Window resize handling
window.addEventListener("resize", () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
});
`
Breh whats wrong wit my code 😭

@warped lark what error are you getting?
Rendering issues 😭
Anyone want a Javascript on how to open a door?
(probably what they used for the door opening in minecraft java)
``java
class Door {
private boolean isLocked = true;
private boolean isOpen = false;
public void unlock() throws LockException {
if (isLocked) {
// Simulate unlocking
System.out.println("Unlocking the door...");
isLocked = false;
} else {
throw new LockException("Door is already unlocked!");
}
}
public void open() throws DoorException {
if (!isLocked) {
// Simulate opening
System.out.println("Opening the door...");
isOpen = true;
} else {
throw new DoorException("Door is locked! Unlock it first.");
}
}
public boolean isOpen() {
return isOpen;
}
// Custom exception classes
static class LockException extends Exception {
public LockException(String message) {
super(message);
}
}
static class DoorException extends Exception {
public DoorException(String message) {
super(message);
}
}
public static void main(String[] args) {
Door frontDoor = new Door();
try {
frontDoor.unlock();
frontDoor.open();
System.out.println("Door is open: " + frontDoor.isOpen());
} catch (LockException | DoorException e) {
System.err.println("Error: " + e.getMessage());
}
}
}
G
All
why does nobody here know how to use markdown 😭
good question
What's this channel even about
how do i use mark down 😭
is it this?
this would be better ```class Door {
private boolean locked = true;
private boolean open = false;
public void unlock() throws LockException {
if (!locked) {
throw new LockException("Door is already unlocked!");
}
System.out.println("Unlocking the door...");
locked = false;
}
public void lock() throws LockException {
if (open) {
throw new LockException("Can't lock an open door! Close it first.");
}
if (locked) {
throw new LockException("Door is already locked!");
}
System.out.println("Locking the door...");
locked = true;
}
public void open() throws DoorException {
if (locked) {
throw new DoorException("Door is locked! Unlock it first.");
}
if (open) {
throw new DoorException("Door is already open!");
}
System.out.println("Opening the door...");
open = true;
}
public void close() throws DoorException {
if (!open) {
throw new DoorException("Door is already closed!");
}
System.out.println("Closing the door...");
open = false;
}
public boolean isDoorOpen() {
return open;
}
// Custom exception classes
static class LockException extends Exception {
public LockException(String message) {
super(message);
}
}
static class DoorException extends Exception {
public DoorException(String message) {
super(message);
}
}
public static void main(String[] args) {
Door frontDoor = new Door();```
frontDoor.unlock();
frontDoor.open();
System.out.println("Door is open: " + frontDoor.isDoorOpen());
frontDoor.close();
frontDoor.lock();
} catch (LockException | DoorException e) {
System.err.println("Error: " + e.getMessage());
}
}
}```
-sigma
-sigma
-sigma
codeblocks are three backticks
goto markdownguide.org
in Comp sci basically all documentation and writing files are written in markdown
aka "README.md"
Forgot the java
Other than that it's same with a few features
does anyone here use lua?
kind of? i don't do anything super advanced with it
i use it for my neovim config but thats about it
I use scratch 
I remember when I used to use Scratch. It's the reason I have a lot of my programming skills today
very good software for learning once you have a few basics down
Personally i begin with college calculator (yes)
scratch is peak
i saw someone implement the linux kernel in scratch
maybe i should run it 🔥
Yo Ewan
Do you know any good
Studios that primarily
Use lua
Or should I start learning a new coding language
Or anyone
Roblox
🔥🔥🔥
Don’t worry about which languages you learn worry more about the actual concepts behind them
Because besides syntax like all languages are basically the same; loops, ifs, etc
Actually
I learned
Lua from Roblox
I’m trynna do lua on
a different software
Ngl
Oh
Does scratch use Lua aswell?
What’s ur goal?
Mb for responding late
To get better at coding, and mainly create a basic game using Lua on another game engine that isn’t Roblox studios
If ur looking to do game dev then I would learn c#
Supported by unity and Godot pretty solid
Also helps you on the path to learning c++ for unreal engine but don’t start with that
Ok
Is c# the easiest
Besides from
Lua
Might be hard at first since the syntax is completely different
I mean tbh most languages the only hard part is syntax once you adjust to syntax codding is a breeze I'm partial to C++ but like some others said starting with C# is a pretty good idea. And thankfully there are tones of resources out there to help adjust to different syntaxes
C++ is a horrible language to start on if you want simple stuff
what is worldbox running on
100% if you try to start with C++ Especially when making them jump from Lua just gonna hate everything
But god i still love that language so much no idea why
C#.
C++ is just a mid language honestly
Only still exists because of legacy
Cuz everything written in c++ 😞
Console.Writeline(“”); is how you print something
To the output right
Gotta make sure I’m learning the right thing
i last used c# in unity
i remember using print
like in lua
but regular c# should be Console.Writeline
Okay smart people so I got bored and decided to make rps on python to make this(probably an abomination)
How would I make the program restart through an user input?(ie: It'd ask 'Do you want to replay? Yes/No' and you'll have to type in Yes to restart the game.)
I've searched Google and i understand nothing so I came here
Btw would anyone have any tips on optimizing the number of lines
!rank
put it in a loop
at the end if the user says no then break out of the loop
import random
choices = ["Rock", "Paper", "Scissors"]
while True:
userchoice = input("Choose: Rock, Paper or Scissors\n")
computerchoice = random.choice(choices)
if userchoice == computerchoice:
print("Tie")
elif userchoice == "Rock" and computerchoice == "Paper":
print("You lose")
elif userchoice == "Paper" and computerchoice == "Scissors":
print("You lose")
elif userchoice == "Scissors" and computerchoice == "Rock":
print("You lose")
else:
print("You win")
if input("Play Again? (y/n)\n") == "n":
break
theres probably a better way to shorten this but idk a lot about python
there is a more optimal way to write the if checks but that wasn't the original question, so i won't impose lol
while input("Choose: Rock, Paper or Scissors\n") != 'n':
userchoice = input()
computerchoice = random.choice(["Rock", "Paper", "Scissors"])
result = "Tie" if userchoice == computerchoice else "You lose" if (userchoice == "Rock" and computerchoice == "Paper") or (userchoice == "Paper" and computerchoice == "Scissors") or (userchoice == "Scissors" and computerchoice == "Rock") else "You win"
print(result)
if input("Play Again? (y/n)\n") == "n": break```
the shortest it can be 😭
Ask ChatGPT
Nah, please tell me
Damn i understand it... Never thought I'd be able to understand code
Thank you man
🙏
I just realised i forgot to add what will happen if I put in paper
💀
import random
beats = {
"Rock": "Scissors",
"Scissors": "Paper",
"Paper": "Rock",
}
while True:
userchoice = input("Choose: Rock, Paper or Scissors\n")
computerchoice = random.choice(tuple(beats.keys()))
if userchoice == computerchoice:
print("Tie")
elif beats.get(userchoice, "") == computerchoice:
print("You win")
else:
print("You lose")
if input("Play Again? (y/n)\n") == "n":
break
without adding any other functionality...
if you make the choices (i called it beats, like "Rock" beats "Scissors") into a dictionary, you can write it as one if statement :)
this also has the loop the other person added
Whoa
That is very cool
I'll try if our when I'm free
Thank you man
ofc, it does work the same from my testing!
If I'm not wrong(I'm guessing rn) does a tuple choose from one of the beats and then take either of the two or does it categorize each beat into rock paper and scissors to then let random.choice choose ?
I apologise if I'm being confusing
a tuple is a form of list that can't have duplicates, it's not too important in this small program, but in bigger projects, it can be more efficient
random.choice chooses a random item from that tuple
I see
Thank you
you're welcome
Question is the code your writing Lua?
python
i know lua tho
to a degree
Oh ok one more question
sure
dictionary
a table in lua is basically anything you want it to be
it can be like a dictionary or a list lol
similar syntax
eh, they are both simpler/easier to read than other languages
i switch between many
Ohh ok that make sense
Do you do c# ?
not much anymore, but i have in the past
it's my favorite of the languages that start with C 
What is this living room for?
I see
Ohh
Is it a good language to start off with
Besides Lua?
I heard it’s the more simpler ones
C# is a really cool language but not worth it currently
if you want simple go with TS and use Bun (https://bun.sh) as a runtime and if you want more complex go with Zig
zig is production ready though
C# is my personal favorite language
It does have some limitations tho and I definitely wouldn't use it for everything
No I’m not
no fucking way
I have been waiting for zig for forever
love the idea
zig been production ready for ages now
I'd honestly say I'm still learning. There's a lot of C# functionality I haven't used that much yet but to be able to use it well took like a few months of daily use and learning the basics took like maybe 2 weeks because I already knew how to code with OOP languages before
Hello
It’s a really really new language while I think it’s definitely going to replace c the tooling just isn’t there yet
ore goes brrrrr
This is straight up fire
Amazin
more ore
m(ore)
hi
yo
Fellas I have a question
Does anyone know how to get a model into VRchat?
I have the file I just need someone to make the bones
You might be staring at me thinking “why are we already uploading to VRChat?” well a very important part of the model making process is making a great base. This means a lot of testing.
Of course, while my wrist was broken and mangled, VRChat made an update to their avatar uploading process, So today I’ll be introducing to you the creator comp...
erm howndo i make compiler from scratch am dumb
If you don't know how to code learn that first...
This is the first post in a series on writing your own C compiler. Here are some reasons to write a compiler:
it was like 5 am and i was trying to make my own system
i dont remember why
well what i shouldve asked was is there a thing like python but simpler ive been trying to find a better one because everytime i use python theres too much stuff goin on either that or im just dumb when it comes to coding
Python is one of the easier languages to learn...
Just keep trying to use it in projects en stuff
oki
Speciosa solar
It's not hard to code once you know how to do it it's like writing.
Coding is hard
Coding is soft
Everything is not hard if you know how to do it (duh)
I just experienced how it feels for newcomers in any field really
Learnt the annoying way that I can't even draw Adventure Time arms
Now I feel bad for my gatekeeping in the old days 🫠
:(
It is what it is
Coding is as difficult as writing
Send decompiler tutorial 💀
They’re noodles though?
Death
That's the embarrassing part 💀
I can't draw the noodles arms
But I didn't get good enough at coding for it to be useful in my first months anyway
I have plenty of time to keep practicing
Well, at least not able make the two lines of the arm even (align?) the first in tries
The hardest part is the fingers. It's like a goddamn final boss for me
Man, saying these reminds me of the time I didn't know what IndexError was
Then organize code and learn concepts
Tried to make ore generation like terraria
Nice!
How?
just make points and make more same points around point with random chance
What language is world box in btw?
C#
@karmic cave how did your systems work? Otnlooks cool
use noise to generate map then pick a random ore for chunks
that's probably the simplest way
just make more points around the start point with random chance :P
how do I make my own coding language?
Why do you want to? You're just curious? That's fine, I get curious about this stuff too sometimes. You can make your own programming language, but you will always need to base it off of another programming language to an extent, unless you build a processor that can use it directly (much harder, especially if you want to make the language complex). At that point it is almost always worth just using another language instead, but it's your choice if you want to go down that rabbithole and write a language, compiler, etc.
Hardware is the best rabbithole imo
I’d love to go about designing my own 8 or 16 bit processor one day
Two options:
- Make an interpreter in another language, preferably faster and lower level like rust or c/c++ for speed which reads your "machine" code
- Learn how real machine code works and build a simple assembler for it.
The first one is fun
The second one is pain and meaningless
Also don't expect it to be anything good
Making even simple syntax like C takes A LOT of work and logic so it will almost definitely be assembly-like
Hey assemblers are cool
Assembler Compiler Interpreter Transpiler, have fun with that rabbit hole whoever asked
you can have some fun in logisim
Nice
i loved this one
ok i cant send links but theres this youtube video thats really really usefull for this: youtube.com/watch?v=QZwneRb-zqA
YES LOGISIM I LOVE IT
I made a very basic 4-bit processor design with it once and it's such good software. It's so good, while it is old it remains the goat. Now I do my stuff in Scrap Mechanic, but I never would've got this far without tick-by-tick debugging.
cool to know .wbox can be decompressed

Does anyone have a Super rpg mod?
Hello programmers.
Is vro botting in casino or just developing an optimal strategy
I make a bot in another server and called the command, then just copy and paste them 👽
I don't know why betting on literally all columns is allowed, but they are
but it is random right?
It is

You never really win against the house's edge either
then what is the point of the ga
If it goes for long enough, you'd still lose everything
there is no algorithm that wins a purely random game 
Find the most profitable ratio in the short them 👽
ratio of?
The distribution of the cc to each column bet
The score there is the money it made from the starting 20,000 in 100 rounds
It's there since generation 100 probably
Nothing ever beats it or the rng
and the column that wins is random 👀
i mean this sound like a simple math equation you can ask chatgpt to solve for you
but i guess GAs are fun
I did use a thinking Claude 3.7
then it should be right
they are realy good at these theortical math problems
because they are not new and there's a lot of papers about them
Sure is
ask grok
Grok 3 is ass compared to the average free model right now
Like ChatGPT 3.5 low is so much better
I like deep research when it doesn’t fail but the normal llm is just not there for them
Guh
I realised I can actually use installed apps in #💰worldbox-casino 👽
Hope no one spank me for this
I could try calling LLM APIs and let it guide me
you can use them literally anywhere
Just appears as ephemeral messages
yeah
Infinite money glitch
just prevents messages from showing up in sevrer
only u can see it
What's stupid is that external apps include the discord activities they've been promoting
so if ya still want to play those but want to stop people from using image posting external apps
You can't
recreated this in my game
yummy ores
What would happen if, say, I compressed all the files that comprised a game I was working on, would it run better on all devices without sacrificing anything or would it be shit
Why do you ask?
Am I allowed to share videos of my about code here?
you can't do that
too slow to load up
because you have to uncompress before running
only compress game installers
Depends on what you are here for
Banana
Hello, has anyone made a top-down game with a climbable ladder in Unity? I need help making my character move up when touching the ladder using a Collider instead of a Trigger
just do two colliders one at the bottom one at the top and add a state to the player that should be true when they are climbing and false when they are not
use the state to change animations to climbing animations
when you touch bottom collider and presses interact button move the player (or do a smooth animation) to the bottom side of the ladder and set climbing state to true then when they reach the top teleport them off the ladder and set the climbing state to false
if this is not procedurally generated you can set the teleport coordinates on your own but if it is you need to play with it a bit to get decent relative values
idk if this how games do it but this is how id do it and you can always ask chatgpt how it is done normally
Tysm
Hi <@&1348293632301469760>
Plz don’t ping that
That’s the actual devs role
I.e the big guys maxim & Mastef
Newbie
Typescript moment
i was told TS was good, TURNS OUT ITS SHIT
IT WASNT FUCKING COMITTING
IT WASNT PUSHING THE COMMITS FFS 😭
i migrated it to javascript
Nice
that's probably true, unless you already hate JavaScript.
ts is good
looks like a skill issue
you have lint rules to prefer const and you are not using const
smh my head
download vscode eslint extension to see redlines where you dont write correct code
if you use vscode
there isn't actually any errors in the code just some lets that need to be turned into consts and an unused variable you can remove
of course you can always disable the linter and run your bad code
dwarf fortress ahh
why are you scared of dwarf fortress?
Dwarf Fortress is based as, graphics don't matter
Hush demon, jsx is clearly superior
Nope
ASCII art games tend to do that
I'm shocked it turned out better than absolute shit
What’s wrong with TS?
Its existence
Let me settle the debate
Both JavaScript and typescript are terrible languages
The end
Why don’t you use a cool marceline pfp
.
This
Crybabies
i use typescript for every web proj and have 4 years experience with it but i still hate it
it fixes some of the problems of js but its still based on js which was a mistake to begin with
we have spent billions of dollars and decades trying to make javascript work and its just barely good enough now
This is peak battle simulation right here 
why are web developers even doing all of that
just make a backend in python or something and get the exact same performance with all the simplicity and expandability
Anybody know anything about worldbox mods?
I was tryna figure out how to make worldbox mods and wanted to try using CollectionMod as an example, I can use their images, however whenever I try to use my own, it says it cant grab it
buttonSprite = Mod.EmbededResources.LoadSprite($"{Mod.Info.Name}.Resources.Icons.family_icon.png");
#🔧modding-talk could help you
backend python 
bro took the bad part of javascript and took it only
there's no better DX than just using typescript full stack
it is impossible to get a better DX unless they make browsers run a different language
also javascript is a very great UI library since it was made to run on a single thread very well it is just not good for computationally heavy tasks
you are right here i cant lie, but it is only this way BECAUSE corporations have invested so much into making JS work
its essentially the idea of legacy systems being so well established that we cant change it even if the foundation is trash
but you are right javascript is specially tailored for the web by this point so of course it beats every other language in that use case
HTMX and other tools are trying to change that but they are just a drop in the ocean lol
Most current languages have some sort of a trash foundation
well yeah but newer languages have a slightly less trash foundation because they learned from older langs mistakes
and id say js has a noticeably trashier foundation than most, idk i just hate the idea of the compiler trying to make stuff work with a guessing game rather than just telling the programmer to fix they code
nondeterminism SUCKS
🥴
sooo every language?
Even speaking ones
ye pretty much
Type script 
Typescript was written in typescript but that didn’t work out
Porting to golang as all good things do
Javascript runs on a single thread which is why typescript serever sucked all these years
Golang has easy concurrency and it is more efficient
Can't wait tbh because I'm suffering so much in large projects
Typescript server needs a restart every 10 minutes
Actually? That's so bad like wtf
Yup
Typescript is so good that you can do very cool things with types
The only problem is the deeper you go with types the more crashes you get on the language server
Hopefully the golang port will fix this
That's honestly kinda insane that it's single threaded but Ig it kinda makes sense for web fronts so websites can't cause too much destruction
its honestly no fault of typescript it was just never really designed to be a language for a compiler
and also having a compiler be a JIT interpreted language instead of raw compiled makes no sense as there are no runtime benefits to doing so
"controversial" take but [virgin all other languages] <<< [chad typed lambda calculus]
i love lambda calculus actually
it's big "those programmers over there would be very upset if they could read" vibes and i love it. for something that makes so much sense when you figure it out it seems like the eldritch fucking tongue when you're ignorant of it
massive l can't share the tromp diagrams. somehow the man who solved connect-4 made lambda calculus even more ESOTERICALLY ALL POOOOWEEERFUUUUUL
also in the original context of javascript's usecase that actually isn't as idiotic as it seems
i think it is more just people using javascript wrong than javascript being wrong.
js running in a single thread doesn't mean you're locked out of concurrency. in fact, you can still do pretty much anything you would want in js that you can in any other similar system. it's just different. besides, web workers being a thing makes the entire argument over js being singlethreaded a moot point anyway, at least imo.
i don't stan js but i also will not slander it incorrectly. i will slander it for valid reasons. like node.js, and how it exists at all.
Maybe still relevant
i think you can expose everything you would expect to be able to expose given the scope. web workers are intended to be discrete threads themselves, i don't think it is good practice to really be "sharing" memory between them like that. you would refactor the code so that stuff like that isn't necessary. pertinent data can either be exposed publicly or registered somewhere publicly accessible and ideally your js is set up in such a way that that is already true somehow. javascript is funky i agree but it isn't as stupidly designed as most people think. most people just aren't used to designing applications with the philosophy js uses imo
it's a lot more atomic than other languages. a lot of javascript is slow bc it is bad javascript, not bc javascipt is bad. (well, javascript is bad but not for these reasons)
Functional for the win
Until you want to make something more complicated than a calculator app 😢
But I am a lover of math so I’m with you
I don’t get why people hate ts
most don’t but the few that do seem to have very strong hatred?
The Typescripters are the most oppressed minority 
My favorite language is brain fuck
yes you can send information between web workers in messages, but if you ever worked with web workers you know how much they suck
there's nothing wrong with sharing memory between threads if done safely
it actually makes multi threading work so much easier
javascript is built for UI
I think light servers do very well with javascript since UI and light computation align in a lot of ways
@wet girder hi
this more than anything tbh
JS is great for what it was made for
what in the microsoft store ahhh layout is this updatte
Discord try not to change their ui for 1 min challenge
simple classicube bot script on python
v2 of my classicube bot. Integrates with ollama (locally ran LLMs) and makes it possible to interact with players in-game. Sends CPE packets if its enabled on connection but didnt implement CPE messages
so cpe is kinda useless
What about it?
I think they're blocking me. Used it for a discord bot

lol
I think they just added a cloudflare challenge to prevent botting
Rough, I guess
Prevent botting on an api????
That doesn’t make sense 
Oh makes sense
@wet girder they found a bug that casued a function to be 3^N complexity instead of N in the typescript codebase
it is probably the one causing all these crashes
Huh interesting
it effects validation packages which are nutorious for causing bad perforamnce
i guess now we know why
the function wasnt caching properly which fucked it up
Lmao, can you send link to some article or something so I can read more details?
one sec i can send you a tweet
Thanks
the bug was discovered by the creators of a validation package
i hope this gets fixed
typescript intellisense is unusable on big projects
from 733 checks to 24349567
it is really bad x)
Damn that's actually insane
I made a portable compressor and decompressor for WorldBox maps, in Rust programming language
https://github.com/Jean-Antoine-de-Anglerais/worldbox_maps_pressor_console/releases/tag/1.0.0
Nice!
neat

absolute cinema to see more rust appreciation here
sadly rust didnt go the best route
doing mutliple things at the same time (concurrency, multi threading, parallelism) is very hard in rust
very solid base for single threaded stuff
or if you gonna use multi threaded libraries built by rust nerds
but building multi threaded stuff from scratch is a death wish
not my own experience but i've heard it from a lot of low level programmers
It was a mistake to check this channel.. its all robot language to me. 😭
// Initializing payload for @trains_are_cool125428
[System]>> [ID: 1191856338381324348] >> Target recognized.
>>> Connect("target_server", port 8080)
>>> Inject: Base64Encoder + XorObfuscate
>>> Auth Token >> 17F9A4A5B61A3E
>>> Run: Decrypt('module_01', mode=DynamicKey(12))
>>> Scanning for endpoint [@trains_are_cool125428]
[Command: /Execute_Inject(@trains_are_cool125428, ID 1191856338381324348)]
>>> Generating payload: SHA256 checksum = 4598c47fa5de3d80b6adf92c48c0f3a7f82c8c55
>>> Establishing backdoor (Signal X|Trigger)
>>> Compiling vector code 0x12A4 (Async trigger)
>>> Bypass: AntiFuzzer attempt | Firewall 28% threshold reached.
>>> Downloading logs (encrypted_91f4)
- Log: **Error in Protocol 3** | File Corrupted | Exiting Phase 1.
>>> Shutdown active [@trains_are_cool125428] << [System Response: Denied]
>>> Deactivating stealth mode, 98% complete...
>>> Process locked, end of transmission.
AAAAA
function yell(message) {
return message.toUpperCase() + "!!!";
}
[Thats all i could do don’t judge]
not half bad to be honest, you know more than most (most non-programmers that is)
Weiner
IT FLIES
What
It flies!
VILTRUMITES
archive it
F
TIME FLIES
Greg?
No cooldown
TIME FLIES
It doesn't, been waiting for ts for years 
TIME FLIES
Time flies elves die
they all sang along?
Time flies it sours it smells
Amen 🙏 death to elves
WorldBoxia is falling apart !
No
Srry ts too important not to invade
console.log("hello world (box)");
Fit = lm(y~x, d = data)
Bro it’s the update trust
Summary(fit)
I like java script
Time got away from Maxim so the coding isn't done.
yknow what
im posting a wall of code
function optimizeUnits(cost, starting, budget) {
let remainingBudget = [...budget]; // [manpower, gold]
let result = {}; // Final unit counts
// Sort units by cost-efficiency (manpower + gold) to optimize budget use
let units = Object.keys(cost).sort((a, b) => {
let costA = cost[a][0] + cost[a][1];
let costB = cost[b][0] + cost[b][1];
return costA - costB; // Sort units by total cost, cheapest first
});
// Try to use up the entire budget
for (let unit of units) {
// Skip banned units (marked as -1)
if (starting[unit] === -1) continue;
let [manpowerCost, goldCost] = cost[unit];
// Calculate the maximum possible units we can afford with the remaining budget
let maxPossible = Math.min(
Math.floor(remainingBudget[0] / manpowerCost),
Math.floor(remainingBudget[1] / goldCost)
);
if (maxPossible > 0) {
// Buy as many as we can afford, and deduct from the budget
result[unit] = maxPossible;
remainingBudget[0] -= maxPossible * manpowerCost;
remainingBudget[1] -= maxPossible * goldCost;
}
}
// Return the result with the combination that uses up the budget as much as possible
return result;
}
// Example Usage
let cost = {
infantry: [10, 5],
cavalry: [30, 15],
archer: [15, 10]
};
let starting = {
infantry: 50, // Not used, just an example, doesn't matter here
cavalry: -1, // Banned
archer: 30 // Not used either, just an example
};
let budget = [1000, 500]; // [manpower, gold]
console.log(optimizeUnits(cost, starting, budget));
NOW GET OUT
no!
int main()
{
std::cout << "hello, world (box)\n";
};```
can someoen make a code to tell me when the update comes out?
print("No")
here you go
int main()
{
printf("idk lol lmao");
};```
thanks
it flies
it flies
it flies
it flies
it flies
It flies
it flies
it lies
It flies
it flies
TO IT FLIES
