#⌨coders-cave
1 messages · Page 35 of 1
but once we get into the big ones even with typescript it can suck if the codebase is not architected correctly
yeah htmx should be more than fine with that
ive just got personal beef with js frameworks lol
i build big dashboards for businesses
code base has like a 100 files at the very least
it gets pretty annoying
curse yuo
(Purely to flex gif perms)
to be honest the only problem with react is that it has too many ways to use it badly
other than that its okay
too many foot guns so you have to be very careful
i rarely use things like useEffect
that are easy to cause issues
i just use libraries where smarter people can use useEffect the correct way x)
Mhm
One of favourite things to do to see how robust the formatting of a website is is to "sidebar" them on my ipad, becuase it essentially forces a full screen of info to be a bar slightly less than a quarter of the original size
Some websites handle it well & are still useable
Others.... not so much
yeah websites should generally be usable down to 320px wide screen
Ots often the ones with long belts of Gui and buttons not warpping or overlaying properly
*its
me when you use flex instead of inline-flex 
so many wrapping issues can be fixed by using inline-flex instead of flex display
but people usually just go with fit width and then they have to do flex and flex wrap
Some websites just decide its esier to just nuke the buttons that dont fit instead of trying to wrap them properly
also just noticed the or ctrl + - is not wrapped in single quotes
many BIG issues in this site smh my head
thats why i hate react
this is an ssi for compiling markdown
like i said as well im not a web dev im a math dude
i may not have padding but yo mama got so much padding
im talking like 10em
!rank
why is the command enabled here
do not use that command here again, just so you know
there is a place for that and this is not it
Whose contributions are these?
Mine
With what you struggle exactly?
Like, how to contribute to exist public repositories?
Ye
Never does that actually, but if you have some suggestion to some repository, you making fork, making changes on branch on fork, then doing pull request to original repository, and wait when they will allow it or when they will add some comments (or just ignore)
look at the issues to find some stuff you can contribute
ill never have this
i commit like 500 file changes at a time

For my projects usualy doing same
i own my company so im making it policy to commit once every month only

I’m assuming “push” means actually sending through the edited version
yes
you batch up the changes into a "commit" and then you push it to the "repository"
other people "pull" the commits from the "repository"
Makes sense
key words in quotes
Mhm
jamie pull up maxim git graph hes cooking
vscode 🤮 (im playing)
depends on the vibes
sometimes nvim
sometimes notepad
never used it
i work fastest in vscode anyway
and i dont have hours of free time to setup nvim exactly how id like it to be
that's why i mostly dont use itt
i feel that
i started wtih a premade config for nvim but slowly made my own over time
but it took forever for me to actually become productive
and I had to get really good at typing first
monkeytype warrior
Ngl, it makes profiles like mine look far worse where most days have activity but only in a low amount. 
Doesn't matter amount
It can be different commiting style
Same amount of work can result with 10 commits or with 1
I like to commit small atomic things done, not whole related stuff, only separate things that can work out of everything other
I'm aware, I was talking about the fact that it just doesn't good with the orange color scheme.
I mostly do the same, and our amounts are actually pretty similar based on the screenshots.
You think it is more contrast?
3110 on mine, 3599 on yours.
Looking at mine, i see it same as it was green, i don't see changes
Yeah, and I think the very dark orange doesn't look nice when it has a wide spread.
Ye, looks like your commiting style more stable
Yes, I tend to regularly do small amounts of work every day when I have nothing else to do.
green was better
(I'm pretty sure they'll change it back after Halloween.
)
i thought its a perma update 
its gonna be white for christmas
and then they gonna make the boxes larger for ur mum
i think 50% of screen width each box
oh Scheiße its just number of commits? i always thought it was volume of changes.... damn
It's not just commits, it's also other actions you can do on GitHub repos like issues and PRs.
yeah sorry i meant that
should have specified that I was talking specifically about commits
Perfect , now my 2 contributions this year woud look fine 
next year 

you were wrong both times, it equals 10
nuh uh
said on your computer where 1 + 1 = 10
how many equations equal 10 then >:[
darn
bro rlly using the alien when his comment is the only one remotely alien to the convo
After3 days of trying to clone turtle objects i have remembered that python is an object oriented language and i can just make a class
But at this point i have exams so it waits
1 and 1 is 3 in coding 😨
Not in coding but in binary
'1' + '1' = '11', which when translated into a number yields 11, and that is binary for 3. Thing is, concatenation is not the same operator as +. In python it is written the same, but it does something different.
how is 01 11
ih quotes
quotes mean it is a string, and when you use the plus operator on strings it concatenates them
But 11 is 1+1 right? Therefore, in binary, 1+1 is 3
No, 11 is 1 concatenated to 1. 1 + 1 is a different thing
which is to say, either 2 or 10
Prove 1+1 ≠ 11
See?
11 = 10 + 1
You can’t
Prove that then
the fuck is this argument about
You have to disprove it
ya boi cannot do maffs 😭
the burden of proof is on the claimer in this case
and you're claiming it
Not claiming it, just hypothesizing
But I guess here we go
well, the theory is easily disproven
do yall even remember why you are arguing
Addition is defined as such: one number and another, combined makes a group of 2 numbers
no, combined they make one number
Therefore 12+13= 1213
stop trolling bro, you're talking about concatenation, not addition
One is the first integer of the sequence
addition is defined further than you've specified
Hey, let me prove it
you've just stated what part of the definition it shares with concatenation
Then why don’t you define it?
if 1+1 then =2 if "1" + "1" then = 11
solved it for yall you dont gotta argue now
thats your definition
No, “1” + “1” = “1””1”
not in coding it aint
this guy confusing strings with ints
exactly
ion think he knows either
ah
I learn this in math class
why the fuck are you even here then
thats like going to a steak house as a vegan
Because I used to make game in unity
because of people discussing whether 1 + 1 = 2 or 10
Or a vegan house as a steak
cause it's not 11 except when working with strings, but strings are not numbers
tryna convert the blind
my man is trolling tho
Vegans piss me off like how can you eat without eat 90% of my diet is meat I would starve
Pretend your diet is that 10% and that’s how vegans eat
Because they don’t eat meat
11 refers to (| | | | | | | | | | |) units and 1 + 1 refers to (|) unit + (|) unit, as in (| |) units
so potatoes and rice
(| | | | | | | | | | |) units is not (| |) units
cannot believe I have to get the tally system out 🤦♂️
No, 11 refers to (0) and (0) zeros being the object counted
I guess I could make a pretty fire rice dish without meat if I shower it in seasonings
13 refers to 0 and 000
that is not how the decimal system works, neither is it any other number system
But I would deplete from protein
I seen someone make a vegetable sandwich no joke
that must be why every vegan is a stick person
You can
Its not bad
but wouldnt choose it over some meat
How do you know?
Vegans cant even get protein whey since its made from crushed bugs
It was bad
pre-kindergarten education
they literally eat 3 grams of protein per day
Whey is from milk
aint it from bugs?
Vegetarians can eat it but not vegans
It seems to me pretty obvious when there’s a number 13 it’s 0 and 000
And it doesn’t seem like you’ve proved that it isn’t
you do not just add a numbers digits to get the number
try writing a million
isn't it 1000000?
Yes
is it also 1?
what, 10x?
that's not just applied to zeros
still vegans cant eat it either way
It’s 0 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
they gotta pretend like they say they vegan but when they go home they eat an alive cow or smt
That’s how many objects one million contains
Bugs probably just slip in there
nah they crush crickets
since they are mostly protein
0 in the other sense represents an object
and then process them
Probably shouldn’t have used 0 to represent them though
count to thirty in front of me please
One two three four five six seven eight nine ten twenty thirty
👽
I meant in numbers, not words
the words refer to numbers but I want the numbers
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30
you missed a few
even then, in your system 30 means 3 units (000) plus 0 (0000000000) units
so you just said thirteen
No I didn’t
30 is the same as 13 though
There are different ways of writing each quantity
no, in your system 13 means 4 units
Depending on how they are displayed
besides, I asked for thirty. Not thirteen
Ig so
I counted to 30
the word thirty, not whatever the number 30 means in your system
as in, three groups of ten
The number 30 means 😧 😧😧😧😧😧😧😧😧😧😧
Ig I shouldn’t use that as a thing either
the word thirty means (|||||||||| |||||||||| ||||||||||)
I'm asking about the word
The word thirty means 😧 😧😧😧😧😧😧😧😧😧😧
are you seven and on discord arguing about numbers?
mind you, according to this system you'd be older than 13 (4)
you need to learn to count
say it with me: "One, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen, twenty, twenty-one, twenty-two, twenty-three, twenty-four, twenty-five, twenty-six, twenty-seven, twenty-eight, twenty-nine, thirty"
I’m actually 90
🧢
It with me
you would not have survived school with that number system
You’re right, I thrived
Say hi to the new samsung galaxy
bye
I want to get back to programming a discord bot but I can’t think of anything useful or original
what programming language?
Jus Python
why python
A. It’s my primary language
B. Discord has a lot of support & tutorials for python bot dev
C. I just enjoy it
Also considering the other languages I’ve dabbled in are Swift & paskall lmao
try something more main stream
typescript/C# on the easy side
zig on the harder side
they also have a lot of tutorials
but might be better for actual projects
python starts to become very hard after as the project gets bigger
… did you just call Python non-mainstream lmfao
I do agree with that
It’s amazing for rapid prototyping
Not so much for long term beefy projects
no i was talking about swift and pascal
Ohhh
That makes more sense
Swift was becuase I wanted to see how apple was doing things these days, paskall becuase it was fun
python is very good when all you need to do is use libraries
which can work for a discord bot
Mhm
AMP is built with python
I’m currently learning pure C, but I can extend that to C# if needbe
but also if you ask @prisma grail they would tell you to not make a bot in python 
C# is not related to C
completely different
Of course they are
nope
Absolutely no confusion in the naming scheme whatsoever
Amazing
Yes
It’s Java & JavaScript all over again
C and C++ are notoriously hard though
they let you make the worst programs ever
zig and rust are the modern C and C++, they don't let you fuck up
Mhm
unless you are very bad like me x)
Wether it should or not lel
because you need to manage your own memory to not create memory leaks
C is the ultimate language to write other better languages in lel
At least historically
Mhm
rust and zig makes it harder to write bad code
and they offer similliar performance
Rust is pretty damn good overall
rust is harder to write in but it doesnt let you write bad code
zig is a good balance
not as performant as rust though
i dont really use any of these anyway
im a web dev after all
Iirc rust is amazing for secure code
just typescripting away
yeah
Becuase it almost directly correlates to raw machine code
just a dozen of instructions
And usually it’s only one operand per line
but you need like 50 lines to print Hello World on the terminal
So you only have to parse the arguments of a given operand then move on
ive done assembly before for a course
Exactly
Nice
It’s fun, but not practical
Beat me to it
Mhm
I’m tempted to write smth really complex in assembly now just to spite it
GHOST PINGS AGAIN
I mean, it's at least a better choice than JS/TS. 
You need to create a character first. Use _start
What is speciesbox doing in here
that's a big lie
This bot will actually be the end of me with how often it does this...
better than JS yes
just use * instead of _
hello
I need to think of an original idea(s) for a discord bot
lol
Even better: Just have admins fix the channel viewing perms of the bot. 
Are you suggesting the admins need to actually administrate instead of act as a juiced up mod? Preposterous!
Multiplayer farming
Elaborate?
Believe it or not, admins already do that. xD
Wow, never knew lmfao
Farming with people in the same channel
everyone interacting with the same plot of land
The SB thing in particular seems to be ignored because I'm somehow the only person having the issue Ig. 

underline
I’d assume one main “farm” message, then everything else in the channel is commands from player,s which auto delete after sent to avoid clutter
& have the farm message update itself as often as possible without lag
Yeah, I sure hope we can at least agree on that. xD
Even beyond that though, I'd rather make a Discord bot in Python than in TS.
use interactions please
skill issue
Why would I ever do that >:D
because you are a smart person
Mhm
(Or C# if I want to use an actually good language.)
C# currently meh
(Time to look up how to properly use interactions)
if you are going that big then go for something bigger already
like rust or zig
or maybe go
And not my jank ahh solution currently
You really like rust & zig
i like using the right language for the right thing
C# currently has "bad" error handling which will bite you in the ass later on (like its doing to me in SB 2 now 😔 )
also ive noticed that going for a more functional approach is less prone to errors
"bad"?
exceptions
Nah, I'm perfectly happy with languages like C# and don't see a meaningful point/benefit to learning a language like Rust instead, since it'd take me far more effort than just using what I already know. xD
So ur trying to avoid using em
so you have to account for all the edge cases / stuff that goes wrong urself?
attribute/value comparison and error as values in zig are soooo good
no its just handling exceptions is annoying
handling errors as values feels way better
ah k
that's why i just made a scuffed up implementtation of errors as values in C#
I do not dislike those nearly enough to learn a new language just to avoid them.
you still need to try catch at the top level
true true but that's skill issue
it takes a couple of hours of work to become decent enough at a language
but maybe im just a giga chad programmer
(i did not make this)
after a while programming doesnt become about the language
the syntaxes are close enough to each other
the built in stuff is not that hard to learn as you go
But why give up usage of all C# specific knowledge I already have just to have slightly nicer error handling? 
if you know how to structure your code you are good to go
what bout the low level stuff
syntaxes are still the same
oki
C and C# syntaxes are almost identical
but even lower tho
because its worth it on the long run

we dont talk about lower than C here
Or mb i am confusing it with c++, which have scary constructions
👌
wait wha
What
yeah that's why i said almost
I like to talk about IL though...
You need to create a character first. Use _start
that's a joke
he just hasnt been here in a while
Lmao, what

guh why
a lot of languages have an IL
¯_(ツ)_/¯
This chat is
IL is cool though i can agree
C# occupied
mid?
yes
Wdym mid
like compared to mid languages
Time to talk about computer architecture here
C# ranks first
not the bestt not the worst
Ah
Well, I primarily mean the one the .net runtime deals with. xD
By my opinion it is the best if we are about functionality and syntax and forget about cross platforming
why would we forget about cross platform
C# is completely cross platform
works everywhere
A bit differently with some dances each time
Java isn't that bad. 
java development as a language is very slow
oracle is one of the worst big companies ever
Never tried to code in java
Time to write a discord bot in brainfuck
Ok, can't argue against Oracle being a pain.
C# caught up to java and became ahead of it in a very quick timeline
0/10 tech company. xD
did you know tthat oracle sql server codebase takes a couple of days to finish all testts in a SERVER FARM
and oracle sql server is the slowest sql server out there
Wtf

Wildcard type parameters for generic types in C# when? IwI
yeah a guy who worked there was writing an article about it
wdym wildcard type parameters
they said that apparently when you add a feature it breaks like 50 tests, so you have to write more flags to make sure that it doesnt break all of these tests, and then you need to write your own 50 tests to make sure that other people dont break the code.
i wouldnt work there for a $1m salary 
In Java, you can easily work with generic types in a non/less generic way by supplying wildcard types like e.g. ? or ? extends SomeActualType as type parameters.
and why does generics not do the same thing
It's especially convenient when needing to interact with generic types in a Reflection context, since Reflection can't really be generic by default, making it a pain to deal with generic types.
I’m tempted to see just how bad of a program I can write in C before it refuses it
Wdym?
Also monthly reminder to nerve use Python eval() function
Why cant you <T> in generics
Python has eval too? 
C lets you write bad programs
You'd then need the method using the generic type to also be generic.
you can write a program that crashes your PC in C
C doesnt care
C will jsut watch you cry
Which you literally cannot do in e.g. my Reflection example.
Like IEnumerable cast, but with List collection type for example
And other types by same way
can isee the reflection example
You set base type as argument and allow all inherited to be put in
Great.
I am going to BSOD your rig with eval() real quick
It's the main one I'm using rn since most other cases would realistically have some way for you to just make the method using the generic type generic too to circumvent the issue.
that's not an example >:(
Fair, the area.
List<Type>
What's up with List<Type>
You can't pass List<Type1> to List<Type2>, even if one inherited from other or if they are inherited from one parent, wildcard solves that
But generic solves that, yes, mb not good example
I remember we already had same discussion about wildcards here
And i used same wrong example
Hello
This channel is in an eternal cycle of repeating the same programming religion wars over and over again. 

is a new one gonna occur anytime soon?
Same same
(I still consider this quite an ugly solution compared to having a wildcard, especially since the specific type you're working with needs to be designed accordingly.)
I'll have to see when it actually happens!
union types also makes it easier to do error as values
since you can do Type | Error
Yeah, fair, far better than needing some funky wrapper stuff.
or if they implement it like typescript you can do, [Type, null] | [null, Error]
you still need to wrap all exception throwing statements with a try catch sadly
i really hope they add a setting that changes that
like all thrown exceptions now actually return valeus instead of throwing
and then i'd be happy coding in C#
Oh, that typescript thing?
yeah typescript is very very good
unless you are writing libraries
then its bad
and you die in creating black magic fuckery
Average programming experience
Just use a Harmony finalizer for it! 
(Gotta love it when my WorldBox modding experience randomly comes in clutch like that.)
because this makes sense when you read it
but things like this
your head stars to hurt
what's a harmony finalizer
Do you generally happen to know what Harmony is at all?
It's a library that has various tools for manipulating the IL of any C# method on runtime.
One of its patch types is a finalizer.
oh
i need to look into that
if it supports latest C# versions and is stable i might use it
When you patch a method with a finalizer, it wraps the method in a try-catch automatically and calls your finalizer with any exception might've happened as a value.
With those capabilities, it's probably possible to write a single finalizer that dynamically wraps all of your methods and turns thrown exceptions into the return result.
You simply add the union return type to methods that should have errors as values, and then find these patch targets via Reflection.
Make sure to look into performance btw.
I never did since I'm forced into it anyways when modding, so idc.
i was literally thinking of making a function like tthis
public static Result<T> Wrap<T>(Func<T> function)
{
try {
return function();
}
catch (Exception E) {
return E;
}
}
But from what I've heard, patching methods does come with some kind of performance penalty, I just don't know how meaningful it is if at all.
but this would be annoying since I'd have to call it around every function
var result = Wrap(() => function(args));
shouldnt really cause any issues
lots of space for overhead in making a discord bot
Yeah, that seems painful. xD
the main limitations of discord bots are discord 😔
Worst case scenario, making the try-catch inserted by a source generator is always an option. 
Actually, I'll be surprised if no one makes that a library, now that I think about it.
Once union types release.
Just a source generator that searches the syntax tree for methods that can return an exception type, and then wraps the contents of those methods in a try-catch.
oh wait
i think there's a feature in C# that doesnt even require source generations
i need to go back and check
No need to avoid Roslyn that desperately though. :P
hello talented people
i have very decent lvl of exp in coding im hoping to make a mod that adds traits that cuse units to act different in combat coudl anyone lmk how id be able to start that im starting to f round with the example box things but first time doing any of this only me + chatgpt rn lol jus need a place to start
#🔧modding-talk
look at pins for modding guides
and additionally can search for messages there covering how to do traits
preeesh

you're rankist when you have only ~10 minutes of experience from talking 😭
@hardy condor you can come back, this man was just having a power trip cause he saw "for the first time in my life, someone else has a lower rank"
LOL i preesh u rankism is his cross to bear
he barely even been born and he chooses the dark path
imagine not being in this server for the last 3 years at least
… that made me realise smth
The code I program fora bot can also interact will manner of other apps
that's why you are smart and use interactions
because interactions have higher limits
Mhm
20 requests per sec on interactions
Time to use discord to control a Minecraft character ig
and most libraries have the ability for you to wait until the amount resets if it reaches 0 before it sends a request
just look into the settings
okay so the global limit is 50 reqquests per second
but i think its 20 request per second on a specific channel
idk i cant find it
i only found something that said the 50 requests per seconds do not apply to interactions
but i cant find anything about the limits of interactions
so it might be infinite
the thing is you can't create an interaction from thin air
it has to be created by users
so unless you have a very specific bot you will have things outside interactions
just dont do text commands like old bots
Interaction endpoints are not bound to the bot's Global Rate Limit.
hmmm
create interaction response
get original action response
edit original action response
delete original action response
and then does the same but followup message
wait what
do you know what's the rate limit for interactions?
i know that they dont share the same global limit as other requests
I do not know how to code 🥰
Cool
Same
Learn
Only druids can do that
Hi everyone! I'm working with a function called setCost, which takes three parameters in this format: setCost( ,"", ). However, I'm not sure what each parameter is supposed to represent. Could someone help clarify the purpose of each parameter?
Not unless you tell us where you got this function from
Only druids can do that
You’ve said that twice

Bruh my internet
Bruh my internet
You’ve said that twice
https://www.answeroverflow.com/m/1123474388604428388
all i could find was js specifically being limited to 50 possibly.
So guess have to do testing to findout
https://discord.com/developers/docs/interactions/receiving-and-responding#endpoints
On this page it says "The endpoints below are not bound to the application's Global Rate Limit"
Though the @discordjs/rest package is setup to rate limit all /webhooks paths the same so editing interactions and following up gets globally rate limited with the cur...
I don’t think that’s how double-sending lag glitches work bro
They don’t resend 5 mins later
Unless you restart the app
My brain
Not braining
wtf
Hard to test this
i don't even know either
gonna see if i can find any other additional information with searching
I guess you can send raw requests without using a library
Because all responses contains rate limit info
But libraries don’t give you access to them
I’ll check when I’m home
I think you can enable verbose logging too which might work
After searching for a while
Only answer I can get just boils down to it depends
Idk, the global rate limit is common enough that it once took AMP offline for 8 hours. 🤷♀️
definitely can be beyond 50 tho?
https://github.com/discord/discord-api-docs/issues/5800
The bug here was just them having a problematic rate limit configuration
wasn't that from trying to get reactions due to starboard
Made us first hit the global rate limit and then get our IP blacklisted from interacting with Discords API.
aight
Seems like interactions have no limits
Which is possible
Since interactions are limited and can only be initiated from users
"interactions have no limits since they are limited" - that sure sounds very logical! 
no api limits since they are limited by the fact that they are initiated by users
"elaboration for stupid people (like (key))"
smh my head
hi coders
-ce man!
Don't slur bait
Hi
@prisma grail i did it
i built the abomination
this
4 wrap functions 2 for action/async action and 2 for func/async func
I can use this to wrap functions that I don't have control over
like this
public static Result<Image> GetMap()
{
if (_map is null)
{
const string path = "Data/files/images/map/map.png";
var mapResult = Result.Wrap(() => Image.Load(path)); // HERE
if (!mapResult.IsSuccessful)
{
return mapResult.Error;
}
_map = mapResult.Value;
}
var cloneResult = Result.Wrap(() => _map.Clone(_ => { })); // HERE
if (!cloneResult.IsSuccessful)
{
return cloneResult.Error;
}
return cloneResult.Value;
}
Ah, pretty neat!
I give up python is too difficult right now
Time to go to godot for now(i think the node system will make my idea easier at least)
World box
But sometimes python is the right answer ||- said no one ever||
It is sometimes tho
Just not for anything im doing
Its good for making 16 bit games
no
Snake:
What am i supposed to use it for then
data sceince and ai
But what am i going to use the AI for if not for funny stuff like 2d drones or cops and robbers
general rule to know if python would work for you
AI
Data Science
Less than 200 lines of code
other than that i'd go with something you can use to build a good codebase architecture so you dont suffer as the project gets big
but yeah if you can do it with around 200 lines of code you should be fine
hi
hi
What if you want to have your code run slowly without putting in extra code?
Python is for the design process of making something, change my mind (once I get home in a few hours)
i have never heard someone say this
yeah python is good for data science/ai/scripting kinda like shell but y would u make games with it 😭
I looked up beginner panguage
Saw python
Saw pygame
And decided to start
depends if ur learning programming or learning game dev
sure python is fine for basics but it doesnt teach you how to program well
esp becuase of how it abstracts away data types and such
I mainly just wanted to make a boid simulation
What is a boid
I came to update i can now duplicate the boids at well on the window
I just need them to do boid things
Basically i want to mimic birds flocking
Too hard
You cant self advertise your game here(or hire playtesters)🚫⚠️
C# is not any harder than python
its just different
and it gets easier with the autocomplete
why wouldnt you design with other languages?
Might learn it in summer vacation then
also most important thing in design (if we are talking about coding) would be the architecture
project architecture in python is a pain
Debatable. With C# you have to actually know more programming topics than with python because they're not hidden away
This I do agree with tho
I feel so dumb right now
I set it to spawn them at the mouse position so they clipped inside each other
And began interfearing either the alligment algorithm
And i was sat there trying to fix the wrong problem FOR AN HOUR
what do you mean by have to know more programming topics?
I mean like you don't really have to understand data types, OOP structures to write python where as for example C# forces you to think of them while you write which Imo is better when learning programming as they're integral part on how shit actually works and how to actually write functioning and clean code
true
but comparetively speaking the move from python to C# is easy
moving from something like python to rust would be what I consider hard
the main hard part of programming that you will face no matter what programming language is architecture. You have to write clean code, but also not overclean, writing clean code is hard at the beginning, not writing overclean code is hard as you get better
so many useless non-zero-cost abstractions in the sb 2 codebase that i regret
i wrotte them because i was like what if i wanna do this in the future
and i havent used them yet 
not really tho because it leaves you with a hellscape of type issues to deal wtih
#programming #coding #DeveloperLife#WebDevelopment #UIUXDesign #JavaScript #Python #Java #CSharp #Ruby #PHP #Swift #Kotlin #TypeScript #GoLang #Rust #Perl #HTML #CSS #Sass #LESS #SQL #GraphQL #NoSQL #MongoDB #Firebase #PostgreSQL #MySQL #Django #Flask #Spring #Express #Rails #ASPNet #VueJS #ReactJS #Angular #Svelte #NextJS #NuxtJS #Gatsby #Tail...
you can certainly design with other languages, but Python just makes it super easy to not have to worry about small annoyances like assignment of memory, typing and otherwise. Compared to C# where you have to add a type to every output, worry about lists being typed improperly and have to use workaround techniques to get arrays of arrays, I find it easier myself to design in Python.
sometimes you want typing, sometimes you don't. I use Python for prototyping the general layout of an abstract system (like if I'm programming a calculator for a game I'll be able to figure out what datatypes I need to store the different things I'm working with, and what functions I'll need to use to manipulate them) but if you're intending on making a more easily designed project you don't necessarily need to prototype it in another language.
i understand that for simple projects but once you scale up i find that my program and its python equivelant would look nothing alike, even from a blueprint pseudocode standpoint
what do you mean by design
Thats why python bad, its syntax way different from other languages, but its usage very limited, so learning other languages when you will need will be harder after python
In c# you don't need to add type to every output, user var instead if you want, but having types makes it easier to debug, because you know whats happening from first look
Python is spaghetti language
Ye, faster to make something
But worse if you want to extend and maintain
By "design" I mean design a process that takes care of a problem, not a program layout to be directly translated to another language
exactly, it's not something for permanent programs but instead for quickly importing essential features and putting together a simple proof-of-concept
but if youre designing something big
you lose the benefit of python really quickly
as i said more than 200 lines it starts to slow you down
yep, but if you're designing something really complicated you don't need to worry about little problems with choice-of-program as much
designing
if you're actually implementing it you want something more applicable
idk the difference between pythons and C# is not that big when writing the code
its just not worth to stick to python at least for me
i did a lot of python for AI stuff but when i tried to use it for other stuff it didnt go very good
writing stuff using a more strict language has more benefits to me even when its just a small design
Python is a mathematician's language, to put it one way
yeah python is built for data science and ai
its built for you to import libraries and use functions
Nah, it wasn't built for ai
But uses for it now
it wasnt built for ai
now its being built for ai tho
also most of ai is data science
also whoever decided that python should use indentation sucks
its so annoying when you copy a piece of python code and then its 2 space indented when your code is 4 space indented
and then you have to fix it

wait, 2 space indented? I didn't know that was possible with Python! (Not that it should be...)
Oh
let's be real, I never would've learnt Python when I was younger if it used brackets
Python should have a bracket version though
it does
brackets are way superior though
agreed, it just made the language more approachable as a non-programmer
it makes scopes way more obvious and less confusing
inconsistent indentation time lets goooo
someone gotta take an L or the next generation will not know how to program I guess
As long as the block stays the same indentation python is fine with whatever amount
yeah but
i cant have my code looking like that >:(
Aight gonna code something with god awful indentations :P
blocked
5 space indentation just to screw over everyone
perfection
Seems legit
IT WORKS
IT FINALLY WORKS
(Followed a tutorial tho but because it was 5 godot versions ago i still had to read 300 lines of documentation)
I CAN EVEN SEND IT AS AN EXE
I am never touching the boids topic again
Time to try to make a fun game tomorrow
That was the failed version of boids algorithm
Because i forgot to do the -= instead of =
And also the tilemaplayer had no collision
idk if you really start taking design seriously i would just use LaTeX pseudocode or some diagram software like mermaid for UML diagrams
just use whatever, I'm just saying that while Python is bad performance-wise and it's bad for actually making a large project it's still good for design (even if it's not the best)
i love python and i use it a lot for my work but i just disagree on using it for design
but hey every man to their own
what is that
bro does not know what a exe is
Hey I need help with some code for my game. Please hit my friend up on discord: lynxiboii
USA RAHHH 🦅🦅🦅🦅🇺🇸🇺🇸🇺🇸
@ruby drift just a heads up this is a specialised chat for programming & programming related topics, the main chat is over at #🌎general or for Wb stuff #🌋worldbox-chat
Ehhh
I have no idea why this single channel out of all the servers I'm in has random people start talking without looking at the name of the channel to stop and think about what is meant to be discussed within
it has happened on numerous occasions
Ik, like what’s the connection?
Do they see “cave” & just assume it’s some sort of quieter sub-general?
maybe they just see the keyboard icon to the left of the name
it's still so weird though
something u run with wine :P
Brine
What ideology is this place
?
No ideology, just coding
Hello fellow programmers
annual check of how much ram .net new version will use on sb 2
before
this is production btw
boooooo
no difference
between .net 7 and 8 there was like a 100MB diifference
I've heard .net 9 made some great optimizations for LINQ tho
yeah linq gets better every update
sometimes its faster than the normal way of doing things
because the normal way is not the fastest way most of the times
Crazy that you can make a program in Linux that's 2 kilobytes big lmao
Meanwhile .net
This has a lot of libraries
Idk why it runs bad on linux
I might not be running it correctly
On windows with debugger it only takes 40mb of ram
That's still a lot 😭
yeah program for linux is 1745 bytes large
i forgor how large a killobyte is but knowing if its the size of a page then my program is smaller than a kilobyte lol
and thats with fuckin everything
all the libaries jammed int oit
ls -l main
-rwxr-xr-x 1 higanbana higanbana 4320 Nov 13 19:09 main
no libs
asm
thats less than a kiilobytes
athats 8 kilobytes
lmao
comparing the size of a program that doesnt even hello world to .net is funny
the price you have to pay for not having to rebuild your app for everything
also stuff like ls is a very small lifespan program
you dont care about stuff like memory
comparing apples to oranges
I dont think it even uses
memory
that isnt stack
bruh it uses malloc
dafaq
POV: JavaScript
Freaky
Erm... what the C#
@brave salmon free mod points
Thx, lmk if they continue
one more thing, they've sent more of the same message in other channels
Oh okay lemme go look
#🎲game-room message #🌋worldbox-chat message and one in memes that got deleted
Yeah another mod dealt with it
alr, good to hear
no problem
What did happen
wer can I transform a image into a map???
@humble wasp thoughts on this message btw?
#🔁map-conversion
Also, for general help with WorldBox, please go to #🚑help-chat. This channel is only for programmers and unrelated to the game.
Thoughts on not just adding further messages that don't fit the chat because one person did it?
i knew you would say that
- Stop misusing the channel, this is my last verbal for this.
- If you take issue with how Friday is moderating, say so towards an admin in DMs instead of trying to incite drama publicly.
- you both sound like huge nerds and are making a huge deal out of the most basic thing
make sure to --force and do it on a friday
sadly no longer works as everyone uses protection on the main branch
i wonder why they'd do that
cant post my lit rice
rice can never be lit
mines pretty good for macos
ive ate rice 80% days of my life
do you live in asia
what kinda rice yall got there
i cook 🔥 fire software
chat gpt wil cook food for me
which u can then use to grill
Yall got internships secured for the summer ⁉️
@prisma grail ma'am they might be misusing the channel i think
you don't even talk ere...
hello
you sound fun at parties
bro definetly goes to the principles office when he sees people vaping in the bathroom
This goes both for you and Jarz: Either stop arguing about this or take it to DMs. Jarz has already been warned, so there's no need to add fuel to the fire. Please move on from this topic.
Anyways, has anyone here by any chance developed something with the YouTrack API before? If yes, I'd be curious to hear y'all's opinion on it. xD
spambot advertising... things
smh i thought this was on topic 🤷♂️
cs - related
anyways im working on fine tuning ollama for function calling does anyone know good tooling for this
Oh, that was fine, I was only referring to your reply to him.
To personally answer your question, I personally don't have an internship because I've already got a more permanent software development job. xD
oh shit mb i thought this was general mb yall
maybe one day after uni
im only second year
I have a good pipeline to possibly getting an internship at ames research center for next summer but i gotta work my ass off
What’s your opinion on it?
