#⌨coders-cave
1 messages · Page 20 of 1
i've tried making 2d games like 100 times games in unity and i ran into the hell that unity is for 2d games
apparently its called unity3d for a reason 💀
My next stop in the planning is to optimise the chunk generation and remove inactive chunks after some time
Then I'll try to implement sprite pooiling, but I can already see how it's going to be a headache
i would watch a youtube video
its not really very hard but the docs might not be the best way to learn about it
as for inactive chunks i would look into how terraria does it
they have a real cool way to make inactive chunks seem active
Yeah I know about it
by calculating the time between the last time it was active and the time you activate it again and then using that time to grow trees and vines and all the cool things
oh nice
also if you are going to have collisions in 2d its gonna be a big headache so get ready for that
you either have to suffer through unity's 2d physics engine which is not very good or make your own which will take some time and reading
It'll be used only on chunks where something big is happening like cities and stuff. But the rest will be just statistics or just freeze and unfreeze
There isn't going to be physics
good
because that's the worse part about 2d in unity
also making things flexible which i see you are already doing from what you've said is a great benifit in the future
you seem to be doing great
i would just google anything major before i'd do it just incase there's a good way of doing it
fucking up the performance is so easy in unity and it messes up the whole game
tell me now this isnt hard coded
#center the window
width = main.winfo_screenwidth()
width = int (width)
height = main.winfo_screenheight()
height = int (height)
width2 = width / 2
width2 = int(width2)
height2 = height / 2
height2 = int (height2)
width4 = width / 4
width4 = int(width4)
height4 = height / 4
height4 = int(height4)
main.geometry(f'{width2}x{height2}+{width4}+{height4}')
i wish there is a simpler way to center the screen
why the fuck do you need width / 4
the x should be screenwidth / 2 - windowwidth / 2
and the y should be the same with height
what is even this
make the width of the window about half of the screen
well if the width of the window is half of the screen then its gonna be screenwidth / 2 - screenwidth / 4
that's where the window should be
its the half of the screen
but
x and y should be a quarter of the total screen
to place it in the center
this is python right?
not really
@knotty root here i tried my best 💀
here are some colors to make it easier to read
thx bro!
Ayyy another python user!! 
Just had a 1.5h hour meeting where I got assigned 6 jira tickets to do in 4.5 weeks
The tickets are all basically "enhance cyber security by doing this and this"
lots of fixing dumb oversights in old code
loving life
Whar?
Isnt there a way less complicated way to do that
Math bruh
There is
You can memorise it
So as soon as someone asks what's 1+1
You don't have to calculate it's 2
that's not a less complicated way of doing the math
because you did the math
then memorised the answer
stop being dumb
cant python use a preset def to use for centering the screen
I never did the math
I saw that you did the math
And memorised your equation
I basically stole your answer
1+1=1+1
1+1=2 moron
20k damage, and next time ask in #🚑help-chat or #🌋worldbox-chat
About 5
It is about the answer
You asked what's a simpler way to do 1+1
And so I told you the simpler way
It is simple because it doesn't even require you to know any math
Even if you didn't know how to count you would still be able to answer the question
Thus it is simpler
Literally 1984
A simple way to do the math that doesn’t require doing the math

this is not solving
the result of solving is finding the answer
but its not the only way to find the answer
im talking about solving the problem and not finding the answer
Is worldbox using DOTS?
Fr
Whe rust optimizer sees that shit it's gonna delete the entire variable that 1+1 was done on and then create a extremely vague compiler error because there's a missing variable in the stack that will segfault
no
Well if you want to also have some work behind the answer
You can memorise that too
Yes but you can gaslight people into thinking you did solve it
Thus solving it in the eyes of the stupid
Well we are not talking about that
For instance I just tricked you into thinking I know what 1+1 is
Before your answer I had no idea however because you said it
You though I knew
And thus though I had solved it
What you didn't know is I have the IQ of an orangutan
Obviously "1" + "1" = 11
correct, it's 11 because there's no "=" in the "1+1" question
It's equal to an error as most languages don't allow string manipulation of this type
And if they do it would be equal to "11"
"1" += "1"
I mean if you take js and Python which do, you consider most developers out there so kinda yes and no
Well the visible output would be just 11 as a string but kinda yes
You consider the part of the community that doesn't count which is the guys who wanna learn programming for the money so they watch one of those 11 hour tutorials on python, give up 20 minutes in and call themselves coders because they made a console calculator
The actually skilled people who code in these languages is like 5% of the total devs in these languages
is there a comprehensive modding tutorial?
JavaScript meanwhile
Did you know that {} + {"hi":0} is {"hi":0} but {"hi":0} + {} is error?
Such thing doesn't exist nor will it ever exist because it's impossible. #🔧modding-talk can assist you to the right direction tho
I have so many questions
Like why does JavaScript like brackets so much
And why is there a surprised face after the string
And why in general
Why does the language exist in general
Just replace it with something better like
Rust
Fuck it even zig atleast it will get some attention
Bcuz that's our face when the code works
It has something to do with that all browsers won't really switch from it and it will be a mess instead of a unified web. Typescript and jQuery make it a little better tho.
It makes sense tho. {} Is an empty dictionary (? No idea what it's called in JS) then if you plus {"hi":0} to it just adds a new dictionary entry. But if you add an empty dictionary to a dictionary it can't do shit
Reddit is the last place I'd think will have actual correct answers, let alone good answers
If there is, I would not expect any explanation of it
Actually, actually, "1" + "1" = "2"
ehh, Ill just make one once I figure out how to mod 💀
already done it with multiple other modding communities that lacked directions, help, or just had a shite wiki/documentation
If you already have modding experience the modding community here will be super helpful. I thought you were a complete beginner
well even so your telling me I CANT make a tut for beginners? thats just crazy talk its very possible if you know even the basics and arent a shite educator
There are some guides but they require some programming experience and basic understanding of computers. 99% of time someone asks the same question as you did they don't even know what C# is
Worldbox has been made very modder friendly over time but it's still not complete coding beginner friendly like any modding
Plus I'm not the best person to take advice from in the topic. I've never modded a single game. I just do full stack application development with .net
From this interaction I learned to just direct everyone who asks about modding straight to modders lol
Ping just in case you won't notice without it
Texas highway intersections trying not to cost a gajillion dollars
Sweet sweet laundering
I watch rce play it but never played it myself
Same with mini motorways
I know what you watch
That one engineer
I dont play mini motorways but finished freeways
I love his videos
So cool
I've played the mini motorways train game and it was fun af so mini motorways is probably even more fun from what I've seen
Its a good youtuber if you watch the sponsor parts too
Just never got around to playing it
Oh yeah me too thays called mimimetro
Mini metro
Im not good at it but still pretty epuc
As a European, existence of induced demand makes playing this game impossible. I love Mini metro tho
I guess it matters what you do
Because I only do low level shit which noone is usually interested in so noone on stack overflow has ever asked these questions and even if they have I usually need more theory than code
So I rely souly on old reddit posts and random old forums
But I have never been disappointed of reddit answers they usually don't answer the question directly but point you to where you should look to study the problem
High level programming is a fever dream
the more I read into uefi the more I realize how fucking shitty it is
like... why must it be so bad
its so bad that theres entire features that are changed on most systems because they dont even fucking work
I thought that they used windows things because microsoft had influence over the project.. they didnt; they were just really fucking lazy
and the uefi implementations are so fucking fucked that its a good idea to still support bios booting
and when you install windows it doesnt even bother with uefi unless you tell the installer to specifically bother with uefi
and, uefi, with all these problems, hosts developer conferences that do nothing, and just promote new softwares that nobody gives a shit about, even the softwares creators
I get that they would be tied because its a tandards.. but if you have a bad standard THEN FUCKING MAKE A NEW ONE
Programmer rage
Comedy has truly peaked
i am red male
Hmm, does anyone need a logo/app/website design or like anything? I'll do it for 5$
alright, anybody knows is there a way to start a sound by pressing on div. I mean it will launch from the path but I just need to somehow start it. Is this possible without the <button> tag? (html/css/php/mysql)
Yeah it is
In js you can get the element and add on click event to it
Idk how with js tho
Probably not possible
Do you really need to do it without any js?
This tutorial is pretty good how to do it on js
You can just use divs instead of buttons if you prefer
Onclick works same for any element
Yeah but it's not best practice. Doesn't matter for personal projects but if you ever do professional projects you should rather just make your buttons look different with css
yeah, i understand that. The thing is, the button I use is made using divs, so I just don't want to re-create it - I really like how it looks
Thanks again
Im trying to get a character to be able to cast a spell from his hands or just basically not have to have the staff:
public static bool tryToCastSpell(AttackData pData)
{
Actor a = pData.initiator.a;
BaseSimObject pTarget = pData.target;
Spell spell = AssetManager.spells.get(a.asset.attack_spells.GetRandom<string>());
if (!Toolbox.randomChance(spell.chance))
return false;
if (spell.castTarget == CastTarget.Himself)
pTarget = (BaseSimObject) a;
if (spell.castEntity == CastEntity.BuildingsOnly)
{
if (pTarget.isActor())
return false;
}
else if (spell.castEntity == CastEntity.UnitsOnly && pTarget.isBuilding())
return false;
float num = (float) a.data.health / (float) a.getMaxHealth();
if ((double) spell.healthPercent != 0.0 && (double) spell.healthPercent <= (double) num || (double) spell.min_distance != 0.0 && (double) Toolbox.DistTile(a.currentTile, pTarget.currentTile) < (double) spell.min_distance)
return false;
bool castSpell = false;
if (spell.action != null)
castSpell = spell.action.RunAnyTrue((BaseSimObject) a, pTarget, pTarget.currentTile);
if (castSpell)
a.doCastAnimation();
return castSpell;
}
I found this in the combat_action_library but I dont know how i might use it especially AttackData I dont know what that param is exactly (im new to modding) anybody know? Anybody done a trait that can cast magic
Noone here knows try #🔧modding-talk
Also
Please rename to TryCastSpell or smt
The "To" tickles me in a bad way
😳
Oh gosh that function naming is painful
I've never before seen a function with the word to
and I never hope to see it again
and the camelcase 🤮
PascalCase is what you're meant to use in C#
and it's so much better
Why shouldn't you use specific int types
That seems far too strict
I guess it's because not native
But even then I doubt that's going to be that big of a deal
yeah it's not gonna matter that much
These naming conventions in general feel far too strict like
Isn't that kinda destroying creativity in code for the sake of readability
But then I guess it's for work purposes
And professional coding
I have to use them at work. But we do have like over a million line codebase so it makes sense that it should be as clean as possible
probably more like couple million of lines honestly
Yes
I use camel case for private fields and pascal case for public ones, don't like that underscore case
I've never used underscore before private variables. None of my coworkers do either so it's fine
Isn't underscore for variables that aren't going to be used
In snake case that's the case anyway
Pun lightly intended but not too much
No
Regex my beloved
I think in C it's for libraries and underscores are variables you shouldn't change
Wouldn't that just be constants
no, it would be that only the library is supposed to touch
struct Sprite {
V3 pos;
void *_renderdata
}```
Thats not my function 🙀 its the devs
My python code gave this does anyone know why
File "C:\Users\DELL\AppData\Local\Programs\Python\Python310\lib\site-packages\bs4\__init__.py", line 435
warnings.warn(
MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.```
Please, show us the line, that causes the error 🙏
I think you gave it a filename instead of a file handle
its not opensource tho
😦
😭
Ah shit i dont have the code with me
I cant show it
Sad
Long story
I made my dad work the code for me cuz i dont have my laptop with me
And then he sent the result
Ok not long
hey guys i have a question:
can i learn c sharp while modding or do i need to learn it seperately frist
Do whatever you want; there's no law against it
It's possible. If you know some language already then it's very doable but if you don't know any coding at all I'd recommend learning in w3school first and then modding
but that's just a recommendation
i know people who accepted a job, started with no knowledge on that job and learned while making it
I hope they weren't a surgeon
No, operator of a nuclear powerplant
Hello
Hello
What did I missed?
Quite literally nothing
thats how it works
nuclear physicists want too much of a salary so they pick up random people off the street and train them
I was talking about 0 prior experience and training
Chernobyl moment
Chernobyl was a design issue 💀
AZ-5 was supposed to turn it off but the designers had a skill issue
You can literally just copy paste parts of other's mods if you are savage enough
It was also a big disaster of the Soviet government who didn't really alarm anyone and tried to hide it, also people were told that the evacuation was temporary and they'll come back
My parents also say that some gotten like special permits depending on when after Chernobyl they were born and it basically allowed them some stuff like going to summer camps for free but that's not a worthy compensation and just a cover-up of the crumbling USSR
That would be cool
We're actually in range of another disaster like this. The Zaporushya atomic plant is occupied by russians and was mined (with explosives) miltiple times, the 5th, 4th and 3rd reactors are also not fully off to blackmail us so they might blow it up. They also don't let IAEA in some places which is insanely sus. But I think it's unlikely that they would do something like this cuz that'll hurt them too and a lot.
Yeah this is absolutely off topic from coding
if any mod asks we are discussing an implementation of nuclear power plants
I dont think they can turn them on though
I doubt the plants are designed to be able to run a reactor without having like 20 megawatts of stable power
unless they like never turned off (but the power plant operators wouldve turned it off if the russians were coming close ?)
Anyone play around with pygame?
class Star:
colours = [RED, BLUE, YELLOW, WHITE]
def __init__(self, size):
self.size = size
self.x = choice(range(1, HEIGHT))
self.y = choice(range(1, HEIGHT))
self.image = pygame.draw.circle(screen, choice(self.colours), (self.x, self.y), random.randint(1, self.size))
self.star_count = []
and the game loop function
def main():
global clock
deltatime = 60
star = Star(6)
for starz in range(40):
star.star_count.append(star.image)
while True:
clock.tick(deltatime)
screen.fill(BLACK)
screen.blit(star.star_count, (300, 300))
pygame.display.update()
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
When I loop through and append each instance, it isnt generating random x and y positions. Or size values. And the "screen" variable gets written down as a single value, I'm assuming the X position value. Which raises an error for .blit()
[<rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>]
Even if I do a for loop to loop through the list after it gets all the instances appended, itll still raise a .blit() error
What error are you getting
Idk but fuck that error
Says first argument in blit() has to be a pygame.surface.Surface()
So I just created 40 instances of the class manually, manually added them to a list and drew them instead. I've no time for debugging, I'm lazy
It's a lil laggy but I'll manage
So you decided to instead of spending 5 minutes to debug the error
To manually do all the work instead
Because of being lazy
That's some next level shit
Nuclear software engineering 
They have power lines going there, and we keep repairing these, not sure why tho
I heard PyGame is kinda bad 🤔 although that was a while ago.
It's not bad it's just
Not made for use as a game engine
It's made for learning
Introduction for game development and coding
And small graphics projects
Schools and their "computer science" classes
My teacher was very very chill she let us play games all day
It was WAY WAY longer than 5 minutes, so I decided to do that and go to sleep 
If the manual version works why dont the automated one work since its literally the same
I prefer godot but pygame has fun modules to play around with
Well python has a lot of fun modules, like pymunk
Who knows how to add runner button on visual studio code 
fuck vsc
how to add run button in visual studio code | (Fixed) run button not showing in vs code
tags:
run button not showing in vs code,vs code code runner run button not showing,visual studio code run option not showing,code runner not showing in visual studio code,code runner visual studio code,how to add run button in visual studio code,how to add...
do you mean like this?
thank you
atleast its not vs
Did not succeed
Does anyone know of any free alternatives to the chat GPT API, I need to use it in an Django application
host your own llm
it will either suc in comparison or it will be too expensive to run
its basically impossible to run something as good as chatgpt at a good speed without like a 4090 or something
There is no public models like gpt
GPT is GPT, you didn't mention ChatGPT explicitly 🤷
I meant like gpt 3.5 or better
what do you use instead
Pycharm or sublime
nothingl ol
I think theres some AI features
and it feels good
but nothing that can compare with vsc

PyCharm is good if you really need an IDE for python. Which imo isn't required as python is a scripting language and for scripting there's no reason to use and IDE
You can get everything required into VSC
I don't understand tho how anyone likes to code with plain text editor like sublime or even vim
Checked my next tickets in the sprint at work and looks like I am not gonna be writing any code this week 
I have to study what components need to be updated then I gotta check errors from logs and make tickets out of new errors and then I gotta study anti-debugging methods
gonna be the most boring week ngl
before this I had to do unit tests
so that wasn't much better anyway lol
Imma start to learn C#
W3Schools doesn't have a very good reputation about its tutorial quality, in the Python community anyway
the C# courses and web courses are peak
Bought a book for it
But thanks!
skill issue
Actual interaction with clyde today
The bot is actually insane
Just a thought. Is it possible to run AAA games purely in a browser like those browser games?
Yes and no lol
webgl I don't think has any limitations
But webassembly would probably be very limiting on Chrome
Wasm is 1.95-11.71 times faster than JavaScript on Firefox on a desktop.
On Chrome it's severely limited thoug
So.. yes and no
I know that there is a Minecraft 1.9 you could use in browser and even has multiplayer, but the official website for it was taken down last year by Microsoft
Is it possible to add mods support to mobile version of the game?
It is very unlikely, and the correct channels would be #🌋worldbox-chat #🚑help-chat or #🔧modding-talk
How tf do i talk with that bot
dm @Clyde to me and then dm the bot when it answers to you
What
WHY IS RUST TAKING UP TWO FUCKING GIGABYTES OF SPACE ON MY COMPUTER
WHAT THE FUCK
Rust is bloatware
clyde isnt real
2 gbs of storage or ram, both is not alot
it is alot
2 gigabytes of my ram would be 1/8'th of it
bro its usally ment to take up 10 gibs
WHAT THE FUCK
either youve got some revolutionary ddr550
gcc only takes up a few megabytes
or your lying
and in memory its the size of the program plus a few hundred bytes
I dont
what
2 gigabytes of space for rust
on my computer
rust a fucking cli compiler
@old mural
yes how can i help you
bruh do you download gcc every week or something
pretty much yeah 😦
it breaks every week by itself

did you forget your pills today?
tbh i had nothing to say to that
after 3 mounth in learn PROGRAMMING this my level I make this simple app at 2 hour
No bullying, and also tell me what I should add or improve
Urdu+ English wat
that's arabic
??
Nice, Also I'm pretty sure there are plugins to make your code text set to the language you want, not sure if that might be easier.
i have a few suggestions
Try to only import the specific things you'll need from your modules (for example: from pystyle import Write, Colors) This makes your code cleaner and easier to understand
Do not use python's OOP for any serious projects. It's slow, cumbersome, and it just sucks
I recommend you use functions more often. Lines 4-18 could easily be turned into a reusable function
overall i think you're doing great! good luck
What do you mean Do not use python OOP for any serious projects
Any good projects that is huge often uses OOP
And classes don't slow anything down
What's more is that OOP is recommended when developing a project, or you'd be using pure dictionaries to store data
PYTHON oop sucks
python specifically
oop is great in other languages
my bad i should have clarified that
How so
as i said before, its incredibly slow
it has no private/public variables or functions
Where did you get that information
a simple google search
Notthing in Python is secret, even functions, modules, ...
Whats your point
OOP is good 🤷
How then
python really just lacks a lot of the features a fully oop language has, like c#
Like what
i gave a few examples here
i dont have a list that states every single feature lacking
What's the point of private functions and variables
oookay
In Python, you can just implement the __getattr__ magic method of a class to prevent someone accessing something
i dont plan to keep arguing about this
if you want to know why it's not really great google is right at your fingertips
good night 😁
Nothing
And the fact that you already gave up arguing already shown that you have no actual points
And you wouldn't use Python anyway if you need that crazy speed where even a single extra nanosecond is a huge slowdown
Perfect
i do think big python projects are hard to maintain
python is messy. OOP in python is just not as clean as it is in actual programming languages like C#
python is good at scripting
Le bronzo
Cargo is way better than gcc
And rust is way bigger than C or C++
Also the projects are also huge
An average project is a few gb İ think
Cargo is so advanced it has its own mini package manager
Plus for rust even 10gb are good
Peak language
Zig is also fun but feels like what c++ should have been
how, this isa whole ass backend project at work written in C# and it's 16MB
not a very big backend tho apparently as the main project I work on is this big (both backend and frontend)
The project includes all the crates
Just realized why this is so small. I've never built this project so it has only the code
if I had built it would have all the packages and shit
Basically
And they are all compiled with the program
All it takes is a few huge crates to bloat the project
makes sense
I will try thank you
Thank you for the tips and for the motivation, thank you
bruh
each character is one byte
that's 1 billion character
i dont think that's a thing
This is a real project at work tho
I checked and like 2GB of that is files from building the project
yeah
when you build it it gets a lot heavier
but it sohuldnt be gbs before you build
well nobody cares about after build
there are a lot of temporary files for optimization that you can delete
the program after its been built shouldnt be in the gigabytes either
İt fits an entire game engine in a crate
With a renderer and everything
İt's a pretty normal size for such a project
its still code
code is very light
the heavy part of most programs is textures
and security
this is 7k lines of code
in C# built
even if you add the .net runtime which is like 200 mb
this is like 250 mb for 7k lines of code
so if you had 70k lines of code it would be around 600-700 mbs
oh this is 7k lines of code + discord.net + 2 more packages for drawing and logging
İ get it
Rust is huge
But İ still like it
İt's very fun to code in
Fav language
its not huge
you are probably calculating the size in a wrong way
maybe including files that are not needed
Guys, tell me how to install mods for the mobile version of the worldbox
You can't
You cant
You cannot at the moment
You can’t
Nobody implemented such a thing yet
the impossible question
I beat you guys hwre
Time to bribe mods to dekete ur message
Mod abuse
Whar

Coders cave, coders in da cave

I have never written a line of code in my life
K
It's impossible
Can you download world in mobile worldbox
Yes
~maps @pulsar jackal
Whats wrong with this bot here
It doesn't like you
Does anyone know anything when it comes to tech support? I'm trying to manage my low disk space and if someone can help me with that then that would greatly be appreciated.
Tech support scams?
No they mean support my tech
Mhm, I'm trying to clear out my disk space. I watched a video about doing it but I guess I just want to make sure I'm not screwing up my pc
First thing I did was head to this PC and right clicked Windows C: and clicked properties.
Want space?
Delete shit
Anything you can
And that you installed and isn't a system file
System deletable shit is too little to be considered worth deleting
That's the only way
Also don't worry about screwing up your PC unless you have important files on your windows you can't do anything that actually damages the hardware
Worst case scenerio you have to reinstall windows
First step of freeing up space could be making proper backups of important files
that way you could technically just reinstall windows if it comes to that
bad way
I have so much useless shit on my pc and I should really reinstall windows but damn am I too lazy to do that
If you got to this point now
You will end up like this again
Might as well buy your way out of the problem
I've been telling myself I'm gonna be buying new pc soon so I don't need to reinstall windows yet
but I never do buy the new pc
I've planned on buying it for over a year now
you should reinstall windows periodically anyway
Not touched by garbage downloads
But then you have like 300gb in games
That you have to reinstall
And that's just pain
Plus extra software you use that you don't remember the entirety off so you end up spending like a month downloading shit
So you end up in the same place as before
What a loop
Just store a text file with all the apps you used before in an external drive
better yet you can use chocolatey to install them all
Problem is I don't even know them in my normal windows installation
I'm so disorganized I have no idea what I use but I use something
Plus installing them takes even more time and manual labor
unless you've installed every app on your computer as a portable app you can just look at all your apps in settings
I don't mean that kinda apps
I mean some random programs that I used once for some project that took a shit ton of time to find and install
And will probably need again in the future
ok maybe you're fucked
Dont worry I will figure it out
I have done this before
I need to reinstall everything anyway because I need to move windows to the SSD so I will just reinstall everything
oh ok
by the way i recommend you use the tiny11 builder on your windows iso
i can't post the github link here but it removes a lot of the bloatware in windows
i also like to use rufus to skip logging in with my microsoft account forcefully
yo wtf
i can call js scripts right in c# wtff
wtf man
this is insane, this will kill reactjs fr
this is like 3 years old
and no it wont
Bro JavaScript syntax is a mentally challenging experience to watch
Lol, you did a lot of mistakes in word python
well neither of they have the most enjoyable syntax ngl
Nah but what is going on in that first const
Random symbols everywhere
Wtf is "${user.email}"
its not js syntax
That's just fucking witchcraft
its framework syntax i guess
Oh so frameworks have their own syntax
I'm so happy I never decided to do webdev
Inside ` and `
This shit is too much
Yes
That's what you got a problem with?
Yes
C# has a similar thing and Imo it's awesome
Its a jquery i guess
And a function $
$ is a jquery function to select html node
And row inside ` and ` is node selector
It looks messy af but I love it
frameworks use thigns like curly brackets and dollar signs to differeniate between the use of different technologies within the same file
in blazor you can use C# and html and javascript in one file
Kick code 😎 Write ass 🫵
yes indeed
C#, Java and rust are ass
Least obvious troll
There is nothing "trolly" about what i said
The entire message is rage bait
cant expect anything less in discord
i mean java is ass
but yeah
@static solar what's the savior role
Temporary drip
Good observation 
Not necessarily true but yeah its common in discord
1 out of 5 messages i send here is rage bait lmao and u guys fall for it XD ‼️‼️‼️
Btw java sucks ass python is superior
Python is amazing
I don’t care if it is slow
It’s readability and easy learning curve are unparalleled
Python has a very easy and readable syntax if you ask me
Only when you do simple stuff
Anything more complex and it becomes impossible to read
yeah i have to agree
especially with arrays
you need to know what every symbol mean if you wanna read that shit
and there are a lot of them
heya
on lunch break rn
I got some meatballs from downstairs. They make the best meatballs and I couldn't help myself even tho I ate them last thursday as well
nice!
It's readable if you already know it's oop otherwise like reading an alien language
you just gotta not have skill issue and it's very readable
I guess that's true
But anyone volunteraly writing c# has a skill issue
So that creates a paradox
I've made like 13 grand before taxes writing c#
or more I don't really know
I know I never saw 31% of my income because taxes and työeläkemaksu which I don't know the name of in english
Only 31%?!?!
Finland really is a fucking heaven
Oh NVM Bulgaria is somehow 10% according to the first google result
I don't really trust it but our employers pay us about the same as in third world countries so I guess it's probably accurate
A 9-5 job here pays like 900lv a month which is about 450euro
I have an above average junior .net full stack developer starting salary of 2700€ a month which after taxes and työeläkemaksu is 2 153€
average salary in finland is like 3200€ and median is like 2900€
Can't we just like give Bulgaria to Finland
Our government is so shit I don't think we even have one can't we just be Finland
isn't your president a putinist?
He is alot of things
I googled and he is a putinist
When zelwnsky came he basically said "fuck you I barely have enough ammo for myself how do you expect me to give you"
would not want to live there
Tbh he is kinda right we don't have enough equipment to defend ourselves how does Ukraine expect us to supply
Smh
But still if we become Finland
We wouldny have to buy the cheapest shit the world haa
It would be so cool
Finns don't like bulgaria because of the president
We will become finns on paper
Only government yk
So that we can take the pros from having a good government
But we may rebel as for some reason we are Patriotic af and prefer to live in a corrupt Bulgarian government than anything else
would not call the current government good, the far right got voted into the government and the government hasn't been able to do anything after that
plus 2 of our ministers are very clear racists
and 1 is a sexual predator
It's better than us we literally didn't have a government for 2 years because every government we voted for sucked to the point they had to be thrown out
I'm not even joking
that's bad
They had absolutely no idea what they were doing it was like a south park episode
well we basically haven't had a government for 4 months now. They're unable to do anything because of the racism and sexual predator things
They also literally fought in the congress room or whatever on camera
Full fists and everything
damn
ngl hoping that our current government resigns we get an actual functioning government
I could list things for hours why but I gotta go work
so cya
Aight cya
you’re Bulgarian?
I don't see how that would be exclusive to Python
Like what?
Well amp has quite a lot of complex stuff. Json handling for example is quite messy in Python, or well discord bots in general
You mean getting items like
map_dat["saveVersion"]
python is not made for very complex stuff
it is not fast and it gets messy fast
interpreted languages are ingeneral good for scripting and small things
or embedded systems
Can't deny that
just use the right language for the right application
and any language is viable
im not gonna use rust to make an api that gets called 5 times every minute
im gonna use nextjs because it allows me to host it for free
What were they thinking when they made Python
“Hmm yes snake coding language go brrr”
What were they thinking when they made C-Sharp 
Python++ when
It's not named after note, C# is C++++ but the plusses are in a 2x2 grid
So it becomes #
Funny?
It’s a grid
bruh what programming language has a normal name
haha lets name a language after a letter
haha lets name a language after an animal
haha lets name a language after oxidized iron
haha lets name a language after an island
Isn't C named C because of compiled or compiler
Nvm it's called c because it was the successor of another language called B
Да
Mojo
yeah but its fast because it runs in parallel
then the closest thing to python++ i can think of is nim
But why...
One line 
Oneliners are fun when you make them yourself
But why use a tool for it. Takes out all the fun of making shitty code
I just like to see one line codes, but don't like making one myself 🤷
one line codes are the ugliest thing to ever exist
imagine having to debug a one line code
It's ugly and impractical but they're fun to make
Me and one of my friend used to challenge each other to do them
He used js so it was a bit easier for him than my C#
so basically, an obfuscator?
i feel superior compressing 100 lines of code into a single linq line so no one can understand the shit i wrote
Pretty bad obfuscator as turning code into a one liner takes a huge hit in performance
I don’t know any coding. That’s why I’m the evil catlover.
Youdon
Nothing that you said made any sense
Does it have to?
Yes
For a proper communication environment one must make sense
Or something complicated like that
Tell me then what didn’t make sense?
You aren't a catlover you are a dog lover
Yeah but I feel like it doesn’t get the point across, that I am the evil version of catlover
cat lover is the evil version of you
Kinda true actually 
oh my fucking god LOL
Real

Hello
lmaooo
Why is there some random Indian music
This album is so fire 🔥
You're not a true Python programmer if you never listen to Indian music
If you think that's bad, check Chicky's bio
It's lovely

Ur mom
You’re resorting to sending messages in almost all chats to get that exp?
SMH
What?
When did I say I was doing that
Nah but fr you gotta change your bio wth mannn ☠️
@orchid frigate someone is trying to make a os in kotlin
Nah I’m good
I was talking about catlover
Ohh
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
Set up the figure and axis
fig, ax = plt.subplots()
ax.set_aspect('equal')
ax.axis('off')
Define parameters
a = 0.0
b = 0.2
Function to generate points for the spiral
def generate_spiral(t):
r = a + b * t
x = r * np.cos(t)
y = r * np.sin(t)
return x, y
Initialize the plot
line, = ax.plot([], [], lw=2)
Animation function
def animate(i):
t = np.linspace(0, 10 * np.pi, 1000)
x, y = generate_spiral(t + 0.1 * i)
line.set_data(x, y)
return line,
Create animation
ani = FuncAnimation(fig, animate, frames=200, interval=50, blit=True)
Display the animation
plt.show()
This code creates an animated spiral pattern that evolves over time. It utilizes the matplotlib library for plotting and animation. You can customize the parameters a and b to achieve different spiral patterns. Simply copy and paste this code into a Python interpreter or script, and you'll be able to see the animated spiral on your screen.
Tried Stable Diffusion XL
👍
I thought
this text
Wasnt posssible
Woah
cool
hello
Morning
@jolly field stop clogging automod
You’re a bit late
Don’t bypass tho

Woman
farcry 5 devs be like: i swear ong farcry 5 is so buggy i can literly glitch under the map when boating on land or driving into mountains or skydiving into water.
Far cry 6 is way more buggy - you don't even have to do anything for the game to glitch tf out - not like it happens all the time, but often enough to be noticeable
Have you seen the os dev barebones page
There are so many random languages
C# is there
Go is there
Pascal
D has three bare bones pages
Tbh D doesn't look bad it looks like good c++
Everyone in IT be like
IT mfs are built different
🤣
IT mfers be earning six figures while looking like shaggy
Damn I hate working during summer vacation time. My boss just called me and started asking about production updates to cloud because she never does them but neither do I so I just awkwardly started figuring out with her wtf my coworkers do when they release to cloud
It felt more like I was the rubber ducky. She kept talking and I had no idea what was going on
Usually computer rooms are cold
Freezing actually
🥶
I’m just doing one of my old man stories

👨🦳
👴
It's a markup language
Pro tip of the day. If you want to a software development job you should learn REST APIs and how to use Postman. Everything uses REST APIs nowadays
What does the attribute: and request: parts do in / wyr command
Which is not the best way to handle most things
But people will still use them for there 100 request per hour apps
Well yes but it gets you paid 
At work we don't do useless APIs tho. We try to have as little requests as possible because some of our clients customers are in countries with shitty internet and the software won't work well if we do million api calls. So all API work I do at work is actually useful and I create optimized APIs
The senior devs will be quick to point out if something is not optimized enough
Playing fnf on roblox on a xbox is something i thought i would not be doing at 4am but here i am
But anyways
Hello chat
Wrong chat
You don't
Lua is not the best language for any other case other than some in video game coding like stormworks or well even gmod
Someone's gonna say Roblox but Roblox is an inferior way of doing game development
@knotty root don't ghost ping people
blud i was checking his role
That's not the way to do it tho. You could've just done ?whois ping in #🤖bot-commands and no harm done
ok 
Yea only high levels can ghost ping it's common knowledge
I love it when my code starts looking like a rainbow because there is so much going on
this is called unclean code
you shouldnt have more than 2 indentations
split it into multiple functions
why would I do that when its indentation is about a line long
its a state machine so it kinda has to look like that
🥖👨🎨👍
One of our senior devs uses git in a stupid way and when he's trying to merge his changes to testing branch it doesn't let him because he fucked up manual merge so badly
He did 3 fuckin commits for a single merge
Why just why
Now I have to fix it for some reason

Today I leant that you can define a type this way:
type("catlover", (), {"__init__": lambda self: setattr(self, "cat", "Meow!")})
Interesting
hm
looks very slow
yes lambda
@acoustic tinsel ever heard of #🤖bot-commands
Ok
how
how would it even touch performance
if its type definition
idk
but when you include a lot of strings
its starts to fuck with the garbage collection
that's why i said it looks and not it is
but it might be optimized so yeah idk
hi guyz is anyobody here??
IM BACK BABYYYYYYY!
nerbs

https://xkcd.com/2347/, so true
Nice try

Ong ☠️☠️☠️☠️
Kobalt
oof

Please tell me how to make sure that the trait is issued only after the unit has received 120 units of damage, I have no idea how to track the damage received.
#🔧modding-talk can help better
ok, thx
the "Revert last commit" button would be looking hot
I just accidentally almost deleted System32 on my work computer
damn
bro really got caught
Accurate
🐢
I fuckin hate VB. When I accidentally put a semicolon after a line of code it gives me an error "Character is not valid" I've been confused by this so many times. Please just tell me "DO NUT FUCKIN PUT ;" rather than this
vb in 2023 
someone has to deal with legacy code
We're always trying to move to C# whenever possible but quite often it just makes more sense to do small update to legacy code
mostly because of deadlines
if we had unlimited amount of time to do these we wouldn't deal with vb and just turn everything into C# code
wonder if legacy code will stick around in important stuff for centuries...
Our current code will be legacy at some point
There will always be legacy code but the current legacy won't stick around forever
well the current way newer programming languages are being built you should be able to migrate really easily
so you can just keep migrating instead of getting legacy code 🤮
Yo! I’m going into my Junior year of high school, and I’m taking my third CS course, I think Java this year. After that though, we have a choice, C++ programming or Game Design. Which would you guys recommend if I want a CS Degree later?
Yo guys I heard you can mod worldbox on mobile is that true
No, it isn't
I'm biased af so will say c++
You should just do whatever you want, either one will help worth getting a CS degree
I have experience in studying both game design and C++ and Imo game design was more fun but C++ is also fascinating
Use code ARCH15 and get 15% off the brand new Solution Architecture course on Dometrain: https://dometrain.com/course/getting-started-solution-architecture
Hello, everybody, I'm Nick, and in this video, I will talk about the Moq and SponsorLink situation that is causing a lot of drama in the .NET community.
Links to what's being discussed:
htt...



