#⌨coders-cave
1 messages · Page 26 of 1
the bugs are features
additions even
now i gotta ask do you guys do
//comment here
or
// comment here
@hollow bronze if you’re free to help with SB 2 let me know
I need help but I can’t find good programmers who are willing
yeah ill catch you after my 4th bg3 playthrough

itll be another few months
you see my problem is that I would want SB2 to be in the way i want it
Can’t cuz it’s gonna be the way I want it smh
this is the trouble with working on projects that you have self investment into
I mean base what I want on actual game design
did nikon make sb 1
yeah
Yeah
like 100% of it
and now you want to make a second version
I mean I kinda made lots of bug fixes in the end
the thing I want is to have actual map with kingdom and borders (worldbox but its a competitive PvP)
Added taxes
bro is now red
Oh I leveled up
evil hamza
ascended past my being
I’ll show you what we have
farewell druid
i think my level is frozen
or wait i left so it removed that
damn
i wanna be purple
I was alien
slip the admins a 20 and they'll make you whatever role you want
cheaper than an unban
fr
I had an idea that isnt economically a good one
actually it can be a good idea
quick lock it in the vault
LMAO
Idk, clinically insane people Ig. 
are you part of said clinically insane people
uh
Not because of that way of writing comments. :P
accept za friend request
hamza with demon role will take a while to get used to
imagine what its gonna look like in 5 years when i have the next role
or add me as a friend
Wait since when was Hamza demon
ah
Unbearable
Want a bible verse generator I made that also has my favourite prayers?
this is a laptop
APIs crying in the corner
I got too confused trying to do an API thing
I made it using CHATGPT
idk how to code...
i learned a bit tho and did add some thing manually tho
L
im gonna be replaced by chatgpt 
Skill issue
Opening a browser is an entire adventure bro and I still somehow play squad
how
really slowly
Nah get your own
Anything that involves coding or programming will be replaced by AI
They are faster and smarter. Mf made that entire script in like 6 seconds for me
You'd still have to have humans workin to debug the code...
and this
tf
unreal
You mean the game engine?
I’m assuming you mean the game engine
It’s gotta be the game engine
Real
I am a professional software developer and this is simply not true. Coding is the easy part of my job and the only part of my job AI has any chance of being able to do. It's way more complex to create and maintain actual software than to just write code. And even the writing code part AI can't currently do, it cannot comprehend the whole software thus cannot create any code so I gotta code myself and I use AI to help me but it usually just slows me down
It is true
It’s just not coming as fast as people think it is
AI will eventually replace all jobs
I highly doubt it but we'll see
In theory AI really has no limits just like humans
But it’s way faster than humans
It is technically limited by hardware
I've been at work for for 7.5 hours now and I've not written a single line of code so far and will not be writing a single line today
I'll be stuck at the office for 1.5 hours more minimum
fun
Then what do you have to do there? xD
I submitted a couple PRs and reviewed a couple PRs (This took a painful amount of time because there were some controversial changes and the senior devs started a long ass argument about), meetings, test tickets, I released a new version of a Nuget package and tested some stuff and of course some debugging for issues that are happening in production
Oh yeah and I sent a couple emails about stuff
The sprint ends tomorrow and I've done all the coding for this sprint and probably next sprint so I just do stuff like this for some time
prs on what bench press squat...?
For me its the opposite
anyone doing anything high level especially front end willingly has to have some issues
the comprehension of your proprietary code or whatever is a near future solved kind of thing
longer context lengths, and faster training will help that sort of thing as far as adding to your existing code
Mostly you'll probably get to a point where you use it to set bare bone structures to work with (that would otherwise be tedious to make) and then you yourself fill in the more complicated logic. Or you simply guide it along the format and way you want it to be setup
Comprehension and ability to more complex things is also something that will improve by time, but I think arriving the best solution (completely on its own) is a lot harder in this scenario for an AI. So probably wont be a takeover relatively soon just yet. Trying to guess how the tech will be many years in advance is a fool's errand
We can already kind of anticipate how tech will be in the future. Things have been evolving rapidly over the last decade or so and doesn’t look like its gonna stop. AI is a thing now that was probably not thought of daily in 2010s and AI has caused school boards to change their curriculums and even enact restrictions of it. I can’t guess that AI will take over any time soon but I will say it has already started its conquest.
If AI does get too out of hand people will start probably start to take action in forms of protest. But to say it’s a “fool’s errand” to anticipate is inexact. Actually I think big industries and corporations should take these things into consideration before putting AI to work.
I cant be bothered to write terms in exact, it'd take too long
But the further you go in time its much harder to accurately predict anything
In the context of Jupe's job, even if you were inside of OpenAI or Microsoft or whoever else, they themselves dont know what the capabilities will be in 10 years with accuracy
For that specific case
If we thought it'd blow up the way it did, we wouldn't have the situation we're in, but thats because no one was expecting it to do so
You need preparation but you also have to learn to take the punches as you go, there will definetly more things to blindsight us
least the pay is good right?
Hello dear Coders!! I finally wanna learn coding but I do not know where to start.
Can anyone suggest or recommend me programming languages I should start with?
Any sites that are good for learning coding that I could use or sites that allow me to learn?
Any advices?
I like to hear all of it!! Thank you 🙂
I would start with thinking what I want to code, each language has its strengths and weaknesses, knowing what you want to do will let you select the best language for the job
languages are quite similar and once you learn one it won't be as hard to learn others
so yeah just think of what you want to do and i'm sure the people here will let you know what is the best language for it
I personally would start off with this coding website below as it helped me become a better coder, it’s pretty much free and offers tools that are both fun and informative to learn and use on your journey to become a coder it has multiple languages that are offered.
Could start with python that a safe start but Like the person below you said, it really depends on what you want to do with that decides what you learn.
There isn’t really a safe start
Because there isn’t a not safe start
Everything has its use
Some of the common “genres” are:
Native Apps
Websites/Web Apps
Game Development
Tools
Of course these have subcategories but choosing one of these can give you a general idea of what language you might wanna start learning
I wanna start with something "easy". Such as a Worldbox mod, a small discord bot, maybe a site or an app.
I see, Thank you! I add that to the list of sites I have.
The more tools the better. Thank you Zeivt!! 😄
Fair enough yeah. I do kinda got a direction I wanna go to. Kinda got a checklist for that so I wanna probs start with a Worldbox mod, then a Discord bot and after that a site or an app.
For worldbox mods you need to use C# since that’s what worldbox is made with
For a discord bot I would go for Python or JavaScript to start with but any language technically can work
For websites you have to learn html and css first which are not really programming languages
And then JavaScript
These two are used to build the visual side of the website
JavaScript is used to build the logic for the website like what happens when you click a button, etc…
I see I see. well since I want to start easy I will probably start with C#, and eventually built my own Worldbox mod. and from there move down the list, to Python - and create my own discord bot, then html and css, and after that Java to eventually have my own website.
those are DIFFERENT!!??
WHAT
I thought it was just the longer name 😭
You're not the first lol
what even is the difference between those? cuz their both from Java right??
(To be fair, I'm pretty sure that they only called it JavaScript specifically because they wanted to leech off of the Java bandwagon. :P)
Java is quite close to C#, JS is very different. It's interpreted and loosely written instead of compiled and whatever the fuck the opposite of loosely written was
Nope, they're totally unrelated, by different companies, and serve completely different purposes. Stuff like their typing systems are also fundamentally different.
Once you learn some coding you'll notice just how different they really are
Damnnn. Thats so confusing though. Couldnt they gave it a different name D:
Damnnnnn. Java never thought of suing them for that??
java and
c# in the same sentence??!?!?!?!?!!??! 😡
java has no right to be in the
same sentence as c#
javascript is jit mostly
its no longer interpreted
ah good to know
Anyone know of any good background removers?
Im trying to make gifs for a server bit all the things I’ve tried completely fail
removebg google it
Green screen?
how do I change the color of TODO 😭
its the same color as pass and my eyes skip over it
🤨
you are not supposed to look for your todos
there should be a place that tells you about them
Ok
why is my man writng javascript code to redirect http requests to https while writing c++ code for keyboard hook on the right side
Git just removed uncommitted code for which i worked all day because of merge conflict 
Mb it is not git, mb vs acted like that
But i was lucky enough to have temp folder on hdd, which means i can restore file using some soft
And i restored, but wtf, why files was removed without any changing or history
This is insane that visual studio still doesn't have files history
Visual Studio L 😔
never merge before comitting
or stashing at the very least
so many problems can be caused its so stupid and unclear
NOOO
Average python user
Use custom ide or whatever it’s called
Edit I
Why
So this is where all the coding nerds hide, right?
Quick! Everyone! Hide!
No, they are hide in #🔧modders-bay
I currently have a problem
Please don't laugh at me
But
I'm having an issue with HTML in notepad++
So
Why is this orange line on the side going all the way down from the hyperlink "a" tag to the "div" tag?
I have no idea about HTML or CSS, I'm a 9th grader
Please make my life easier
Show the result please
This random bullshit
The whole text is just a link
A red link
Oh, understood what you asked, its not about html
I made the links red
And first link is incorrect
I guess
<a class="" href="">Home</a>
Ah
Thank you
Oh my God it's finally fixed
I can sleep now
Anyone here know python?
Nikon is still alive in some part of the server huh
Yes
yo guys
hello GTA character
I though you're martin
i (worked) in lifeinvader
who
that Yugoslavian blud in liberty city
okay
speak english plz
vietnamese dude
you cannot use map in ios and please talk in English
Tôi ko bt nói tiếng english
yo spain dude
better to not talk here then
have what?
Ông chịu dùng tiến anh qua google translate được không. Chứ server chưa có chat tiếng việt
in wordblox
no i mean as a coder
Malbolge
okay
damn another malbolge writer
that language bouta blow up at this point
in roblox
Any self taught programmers here?
I guess most of people here
Depends on what do you mean by self taught
Learning programming through online sources, books, youtube tutorials etc.
I used resources on my native language (Russian), idk about english, and its depends on what exactly you need
I see
Do any of you know how to set up a domain because I have been doing some website thingies in html but im not much good
Im not gonna actually set up a website because I have been mainly copying websites off the internet I just wanna know how to put it up
dont use lessons
just use a one or two to learn the basics
then think fo things you want to do
break them down into pieces and find code to solve each piece
that's the best way to learn practically
using lessons will not give you the ability to solve real problems
the first app i made was a simple console applications that gives you an arithmetic problem and you had to type the answer
it can be broken down to an arithmetic problem generator and then an input checker for the answer as the two main parts
and then you can break these down even more
i run a website design agency so first you need to buy the domain, https://namecheap.com is the cheapest but its full of "ads" so its kinda annoying to just buy a domain from there, https://cloudflare.com is best but its around $2/year more expensive on average, you can use cloudflare to host your website too for free as long as you dont hit the limit
Register domain names at Namecheap. Buy cheap domain names and enjoy 24/7 support. With over 16 million domains under management, you know you’re in good hands.
if youre using different hosting provider and domain provider then you have to link them its really easy and the hosting provider will probably have it documented
yes
cloudflare is also a very cool and transparent company
yes as long as its a static website
I dont expect much traffic its not a business website its more kind of like a blog
which I dont expect to pick up nor want to
I will
C is so much more fun than C++
I've lived my life believing in a lie
why would I ever use an object to do things automatically when I could manually do everything
This sounds like a complaint but it's not
finally someone with a brain
I will, however, miss my structured bindings and type generic operations
😞
make -C src/ clean
clean: make -C src/ clean mv src/a.out . make -C src/
build:
make -C src/
mv src/a.out .
isnt this the point people say C is better than C++
that its "cleaner"
the syntax sugar can make C++ look cleaner than C, but the reason I prefer C over C++ is that I've become fed up with oop
writing bad oop code is a skill issue 😎
Is it better?
I love the fuck around and find out try catch lmao
unfork
no getter and setter on public variable?!?!?!??!???!
crime
fuck_around and find_out 💀
i want to actually rename it to that
that is amazing
Nice
I want to see the world burn.
// dynamic_list.h
#define d_arr_generate(T) \
typedef struct { \
size_t size, capacity; \
T* _d; \
} d_arr_##T;\
d_arr_##T alloc_arr(size_t s, T* __init_val) {\
d_arr_##T _operand;\
_operand._d = __init_val;\
_operand.size = s;\
_operand.capacity = s;\
return _operand;\
}\
int resize(size_t size, d_arr_##T* container) {\
##T* n = (##T*)realloc(container->_d, size * sizeof(##T));\
if (n == NULL) return 0;\
container->_d = n;\
container->capacity;\
return 1;\
}\
int shrink_to_fit(d_arr_##T* container) {\
##T* n = (##T*)realloc(container->_d, container->size * sizeof(##T));\
if (n == NULL) return 0;\
container->_d = n;\
container->capacity = container->size;\
return 1;\
}\
int append(##T item, d_arr_##T* container) {\
register int retcode = 1;\
if (container->capacity == container->size) {\
resize(++container->size, container);\
retcode = 2;\
}\
container->_d[container->size] = item;\
return retcode;\
};\
#include <stdio.h>
#include "dynamic_list.h"
// instantiate our pseudo-class
d_arr_generate(char);
int main(int argc, char** argv) {
d_arr_char str = alloc_arr(14, "Hello, World!");
printf("%s", str._d);
}
behold, OOP in C
kinda
I couldn't resist the urge to make awful looking code, technically these aren't classes or objects, but it's close enough to make you question. Behavior is technically being abstracted into a data structure and there is technically room for inheritance because the generated type is fully accessible (obviously), although this is really just an abstraction for a dynamically-allocated array, all calls to expand the array must still be done manually
this is just normal C
this is how you write functional code
you make structs and then you make functions that use these structs
The thing I don't like is the macro function that generates code
It isn't terrible now but it's pretty close
...
um... bro? i dont know what youre talking about
I just switched from C++ to C as my general purpose shittery language and I wanted to be a dipshit
I hate using macros but I think I see their use case now
I'm going through paradigm rehab
Macros suck in every language
Best thing you can do is never use them
Idek how they work in C and im currently using it as a secondary primary language
Lmao, they're useful if you use them correctly, but tbh I don't see many cases where just using something else would be objectively worse
They are kinda outdated I think atp
Cuz they are super fucking useful in assembly
And then they were transferred to c back when peolle didn't know what the language would become
I wanted to make a type generic array in C without learning how to make an intrusive structure or void*
Then the language grew and they kinda lost their purpose
Also didn't C not have const
Why did you move to C
I started using less and less C++ features in general use, to the point that I was basically writing C code with classes sometimes so I just decided to switch to C, also a lot of the libraries I use are written in C and adapting them for easy use in C++ is getting tiring
Yes but in C yoy gotta write struct when making a structure variable
Which single handedly made me write c code in c++
typedef- Not a problem tbh
Not whej defining it
When making an instance of initializing it
Idk the terminology
typedef struct {} s_name;
What compiler do you use
I havent seen that definition before
I think it's in the standard somewhere
I just do
struct Foo blabla{};
Or something like that I haven't used c in a few months
Lmao, that was one of the first things I learned about C that I didn't know from C++ 💀
No bool was the first
Too ugly, I've considered it though
That was a shock to me tbh because when I learned C I couldn't use the std
Damn
So I was flabbergasted
🥺
Tbh it wasn't that hard to get over
Dont call my baby ugly
Lmao
If I simp for one thing
Its rust
#1 fan of rust
Literally a walking ad for rust
Same but I took it upon myself
In the last week or two to learn
C++ oop or atleast get an idea on it and I can kinda see how its useful in big projects
Structures are definitely my go to for arrangement but classes also have some charm
It is useful, the inevitability is that I will incorporate my C projects into C++
Sad reality 😔
Yeah 😔
The dream
Not reading allat
thanks
Guys technically speaking if i get me thumb or thumb size object stuck in my pc fan how would i get it out via computer hacking because i am unable to move for some reason
Or well hypothetically
...
What
You could maybe turn your fan on but that could make things worse
The cylinder and the big structure 2.0
Nuclear bomb
And how would a thumb sized object even get stuck, wtf
What the
Tiếng Anh.
so, if you have solved this hypothetical question:
what if; hypothetically you got a thumb tack sized object stuck in your pc computer, and couldnt move the waist, how would you remove the stuck thumb tack sized object
Nice
i'm going to kill you.
Oof
Yes, #⌨coders-cave usually a place to use bot commands, absolutelly correct
it only makes sense
don't misuse the command here, there's an channel specialized for it: #🤖bot-commands
@young flume I don’t see that channel by default
So I need it available or ima have to keep using these chats
you probably haven't choose the option of it in id:customize
Oof
it's in "Bots Section"
Got it now
We Gucci
What?
the things I do to get rid of visual studio warnings without suppressing them in the preprocessor
- this actually makes a warning go away
- this will not reach the final build
- setting a nullptr = nullptr still means that I'll be dereferencing a nullptr microsoft
- the pointer is set to a non-null value in a different function, but intellisense has the object permanence of a toddler
so... You use visual studio?

Uh fan has crushed it slightly
Lmao
I am a proud notepad user
yoo
It's has already been turned on for a while
What’s stuck inside of it?
I remember when I was learning python I would only use notepad because I didnt know what an ide was yet
And now i can say proudly that i identify as a girl
bro its been 3 days
I used the python ide.
what
I hated it
OH NO
naw, atleast I got mine out
lol
Functions are capitalised, variables (and getting the script.parents version of it) aren’t
both fortunately and unfortunately
as a C dev, I hate it. As a C++ dev, I hate it. As an anything dev it makes me unreasonably frustrated, however, for whatever reason I feel an attachment to it, like a toxic girlfriend that you haven't figured out is harmful to your well-being yet
except I have realized and I don't care
it's comforting looking at all the git features I'll never use 💀
plus the solution explorer is brilliant
it also has the most robust syntax highlighting I've ever come across, so I can marvel at my shitty code in full rgb
marvel at the rainbow of bullshit
one day I will clean up this abstraction hell and get rid of the header files I don't need in this file anymore 💀
they're not harmful so they can enjoy their stay for now
I've had the complete opposite experience. There's really nothing in Visual Studio that I'd hate, everything just works perfectly. I do C# tho so that might be the difference maker
Straight up facts
Especially with C++
Right?
I’ve had a good experience with it too, aside from some hiccups with msbuild
But the performance is terrible
Can take 3 minutes to open visual studio
Never had problems with the performance either but that's because I've used it on super powerful school and work computers and my current computer at home was 1.5k€ so I have always had plenty of power to throw at the problem
Oh damn
I used to use visual studio 2013 until January last year
(I’m a source engine modder so that was a requirement)
I used 2017 at school for a little bit, then used 2019 until 2022 came out and now I've been rocking that
ah makes sense lol
I've never tried it for C++ tbh. Only C# and python
Ewww python
Is there any good reason to use python?
it works perfectly fine
Data science
I tried using python to make a discord bot but that was painful asf
I own @bitter sedge and it's made in python and it's a constant pain
Yeah JavaScript is superior
Why
5 files and then it becomes a mess
you dont have any type
if you forget what a function returns you have to go and read the function code
not typed languages ingeneral are bad DX
typed languages please
My discord bot uses one .js file but it’s over 4000 lines of code and it creates 10+ jsons to store data
I don’t use slash commands
that is not a reason to split your code
it slows the code editor
it makes it hard to find things
too chaotic

it only slow for me around 6k line mark
My brother in Christ, 4k lines in one file
well there are more reasons
slower compile times
CANT FIND SHIT AGAIN
dont know where to place new code, should you keep it in a specific order or is it complete chaos
they made files for a reason
use them
4k lines of code is not much in large projects, but for only one file existing, it is pretty larger
Use several files
js developer be like
10000 lines in a single .js file
a common L for functional programming languages
C++ is oop
:(
also having 20k liens is not even a common l for functional languages
its a common L for programmer suffering from a skill issue
Are there people who actually use notepad to code lmao
My dad
_Would you rather see TicTacToe coded in one single line of JS?
_
Yes
ew
Crazy
He‘s based like that though
IwI
Didn’t even know IDE‘s were a thing until recently
I use notepad++ which people hate on me for
i code on word 😎
Entirely self-taught in 19??
i code on powerpoint 😎 😎 😎 😎
I code on discord
i started when i was 12
Honestly, I'm already jealous enough at you getting to make your bot with C# instead of being stuck with a Python codebase. TwT
i used a language called blitzbasic to make a game back then
14 for me
Why would you use C# with a discord bot just use JavaScript or typescript
Started learning Java Script to make bots
Stay away from python tho
Want to learn Discord.NET tho
I first (if that counts) did stuff in Scratch when I was like 7 years old. First time where I coded with a text based language was when I was like 14.
Scratch was fun
Yeah we did scratch in school in the second grade iirc
I still remember getting really frustrated at lists because I was trying to use them like a dictionary without even knowing what a dictionary is.
You need to create a character first. Use _start
DEAR GOD.
Shut
STUPID BOT.
NCMS python edition when key????
I think the first instance of me doing anything like that was
Minecraft command blocks I think
Exclamation on think
@barren shale I'll need to defenestrate you if this bug isn't fixed soon. :P
i dont work on sb
only sb 2
Literally never ever unless you want to end up in the deepest circles of hell trying to do it.
sb code base is 🤮
sb 2 code base is 😎
sb code base is like 50 javascript files
imagine the chaos
Why…..
ask nikon
Ok, how about I rephrase to "if sb 2 does this too, I'll need to defenstrate you". IwI
i hope he didnt make his new bot in javascript and used typescript
sb 2 uses slash commands
What is IwI?
What even is the difference?
because the request limits on interactions is better
Heard TypeScript a lot recently
You know, considering the glances I've gotten at NCMS source code, I'm not even surprised.
types make the code 10000000% easier to read
only nikon understands nikon code
Emoticon ^~^
Held together by sheer willpower and magic
Ah alright
meanwhile 10% of the solution explorer when opening like 30% of the folders in sb 2 code base
i hope discord doesnt ban me for making sb 2
im abusing threads to their full limit to make it look like an actual game
Damn, that‘s a lot of files
i think i can check the total amount one sec
You guys should eventually rewrite AMP in a non python language, unless there is data it saves that can’t be moved
Yeah my bot is just one messy file
And I lost the source files because I was too stupid to use GitHub
The 20 files it generates tho
You use slash commands?
The code is also bugged in several ways. 
My two favorite examples:
The Mods folder is created in steamapps/common on Linux.
The entirety of NCMS crashes if two mods try adding an iamge asset with the same associated path. Which, btw, is happening because at the start of the mod compilation process, he adds values to a dictionary that would result in those insertions causing an exception if the init method is called again, and he then uses the asset paths as a key in a dict, without checking if the key is already present, resulting in an exception that puts NCMS in exactly the broken state of init() being called repeatedly and crashing that was set up at the start.
this is what happened the last time i clicked reformat
Text commands are dying 😔
Let's see how everyone's favorite cave dwellers are up to
309 file changed 
yeah
I was genuinely (not in a good way) amazed by jsut how little had to go wrong for the entire modlaoder to burn itself down like that.
they are too expensive compared to interactions
also no ephermals
I like them better than slash commands, slash commands take more time to set up
TwT
Omg yes they‘re the main reason I battled myself through slash commands
They are like super handy
sounds fun
Just attach views to the text command responses, stuff like pressing a button can also give you ephermals. 
Plus for moderation related stuff, saying -purge 30 is much better than having to go through slash commands
not if you do it without interactions
like people had to before discord added interactions
Fair, the buttons and stuff do use those in that case.
yeah they do now
Obviously.
you can still do it without interactions though
There were buttons before that whole rework?
which is how i started sb 2 when i was still learning discord bots like 2 years ago
i think so because there's code for running buttons without interactions
I thought you would've had to previously use reactions as a "button".
maybe idk
but yeah use interactions
they have their own request limit
save your request limits for the actual stuff
you get 5 requests per channel if you dont use interactions 🤮
i wanna see 100 people use sb 2 at the same time
and wait for their interactions to get handled by discord
after 60 seconds
Fair, good that my command does everything with them past the initial invocation as a text command.
because it does so much 
IwI
Key btw what is the stuff you’ve contributed to AMP?
amp 🤮
A lot of different stuff.
Apart from the codebase being in a horrible language, it's great!
yeah jupe is a pog programmer
i had to help him fix something in amp like 2 years ago
Examples are a codebase refactor, stability improvements to some map commands, updating the dtrait/btrait commands, stuff for HP like some curses, the new help message system, some WiP economy stuff, some mod only/admin only commands that I won't name for obvious reasons, just random things like that.
if you dont use oop in C++ its just C with a slower compiler 
Yeah, I enjoy working with him a lot.
Speaking of admin commands, I accidentally removed the permission check for the -kick command in my bot and didn’t fix it until a day later
Well, until we manage to screw each other over with git in some way.
git merges ☕
Chaos ensued?
Turns out that we're good at causing merge conflicts. 
Yep
i run a small web design agency on the side with a couple of friends
Thank fuck the bot crashed 1/2 the time cuz my error handling is broken
and i manage the projects cuz im the biggest brain 🤓
and i always make sure they work on different files
cuz these merge conflicts man
I literally did the same thing for a week with a command for restarting AMP. Luckily, no one noticed before me. UwU
Tell that to my work place please. xD
Lol
I use c++ for making half-life 2 mods and it’s over 20,000 files to compile PER PROJECT
It also doesn't help in my case that I do Python with nvim + git terminal commands. 
just push first
and then let the late people deal with the merge conflicts

i let each person work on different branches and then i merge them myself
i'm the one who has to suffer cuz i dont trust them
I mean, when working on big stuff, I at least bring up the required brain cells for making a branch for it.
as you should
deal with merge conflicts at the end
instead of getting 30 of them you get 1
Well, funnily enough, there tends to be a difference between what we should be doing and what we're actually doing. :P
Yeah, very convenient.
but still you dont get the merge conflicts as you are working
you jsut get them in the end after you merge the branch
Yeah, ofc, and that's highly helpful for keeping me sane.
Which is quite the challenge when working with Python.
Like, I once accidentally, when makign a button, mixed up a parameter order.
Like, I switched up the Button parameter and the Interaction parameter.
And Python just no joke didn't care. IwI
Saw that the Interaction was getting a Button and the Button an Interaction, and just ignored that and let it all burn to the ground when it resulted ein nonsensical errors later on.
I mean, you can specify types.
Python jsut clearly doesn't care.
but its so much work
Even if you do.
and its not compiled
yeah it will run
because its not compiled
so it will just error when it reaches the line
Literal TS moment right there. TwT
at least you can lint ts files
and find the errors
also ts compile to js
and you can find lots of errors there
i think type errors are found when you compile to js
Fair, but I still have quite the distaste for both JS and TS anyways.
hmm why TS
Why
i understand JS
i guess yeah i could see people hating on TS
because its harder to catch bugs since it doesnt tell you about them
Oh, yeah, it's ridiculous that not even at least the IDE or something (this happened back when I was using Pycharm) was like "why are you overriding this method with same named parameters but suddenly different types".
The Python LSP I use in nvim at least actually tries to be strict with types.
Complaining about stuff like when I assume that a Union is one specific type, or that an Optional isn't None.
This looks like normal typescript right?
export async function ConfirmResetPassword(
input: z.infer<typeof ResetPasswordSchema>
): Promise<ConfirmResetPasswordError | undefined> {
const data = await ResetPasswordSchema.parseAsync(input);
const reset = await db.query.passwordResets.findFirst({
where: (reset, { eq }) => eq(reset.id, data.id),
});
if (!reset || Date.now() > reset.expiresBy) {
return {
field: "root",
message: "An unexpected error occured, please try again later",
};
}
await db.transaction(async (tx) => {
await tx.delete(passwordResets).where(eq(passwordResets.id, reset.id));
await tx
.update(users)
.set({ password: hash(data.password) })
.where(eq(users.id, reset.userId));
});
redirect("/sign-in");
}
this code is fine right?
WRONG
export async function ConfirmResetPassword(
input: z.infer<typeof ResetPasswordSchema>
): Promise<ConfirmResetPasswordError | undefined> {
const data = await ResetPasswordSchema.parseAsync(input); // can error
const reset = await db.query.passwordResets.findFirst({ // can error
where: (reset, { eq }) => eq(reset.id, data.id),
});
if (!reset || Date.now() > reset.expiresBy) {
return {
field: "root",
message: "An unexpected error occured, please try again later",
};
}
await db.transaction(async (tx) => { // can error
await tx.delete(passwordResets).where(eq(passwordResets.id, reset.id)); // can error
await tx // can error
.update(users)
.set({ password: hash(data.password) })
.where(eq(users.id, reset.userId));
});
redirect("/sign-in");
}
5 different errors that ts wont tell you about
but tbh C# has the same problem but the exceptions are well documented so you can just hover over the function and see what it can throw
Yea, that's kinda my reason. For me, when I use TS, it just generally feels like I'm using JS with a barely functioning bandaid glued on top of it, for lack of a better description.
export async function ConfirmResetPassword(
input: z.infer<typeof ResetPasswordSchema>
): Promise<ConfirmResetPasswordError | undefined> {
try {
const data = await ResetPasswordSchema.parseAsync(input);
const reset = await db.query.passwordResets.findFirst({
where: (reset, { eq }) => eq(reset.id, data.id),
});
if (!reset || Date.now() > reset.expiresBy) {
return {
field: "root",
message: "An unexpected error occured, please try again later",
};
}
await db.transaction(async (tx) => {
await tx.delete(passwordResets).where(eq(passwordResets.id, reset.id));
await tx
.update(users)
.set({ password: hash(data.password) })
.where(eq(users.id, reset.userId));
});
} catch {
return {
field: "root",
message: "An unexpected error occured, please try again later",
};
}
redirect("/sign-in");
}
this is the proper way of writing that function btw
incase someone wondered
well you are not using typescript's features then
i heavely type my code
makes it a lot easier to write bugless code
The one thing that I prefer in Java over JS is checked exceptions. Absolutely love being forced to actually try-catch potential exceptions instead of being screwed b them when they actually happen.
yup
but i dont like the forceful exception handling
To be fair, I also don't use TS too much in the first place. Only when I'm forced to because of school.
sometimes i want the exception to crash my program
because it is not meant to happen
in java you'd have to chain your functions with throws until your main function
Just wrap it in an unchecked exception and rethrow that.
In that case, I still think that that should in some way to be made clear.
if it is a library then sure
but in sb 2 i just throw the exception
_Watch WorldBox and its modders (except for me) also never ever use those.
_
why not
wtf
auto properties save you lots of time
and you can add stuff to it like a normal property
I'm genuinely clueless. They just never use properties at all.
It's all fields with getter/setter methods.
that's a property
Genuinely feels like I'm using C# to write Java code.
But it's not using the syntax. 
checked exceptions feel...useless tbh
you're writing double the code lol
anothign thing i hate about c++ and c, you write a header and .cpp file, literally writing double the code
Like, don't make me do Actor.data.getHealth(), just give me a C# Health property to access. TwT
thats why c# better :))
I'm talking about WorldBox and modding it rn. That's in C#.
Like, they're using C# without actually using its good features. 
Idk, I feel like they're a good aid for actually making my code robust. Because if they're not there, I might just fsr forget about handling an exception, and have that screw me over at some later point.
(For context, exception stack traces in WorldBox modding happening in the source code don't provide line counts.)
as an abuser of try catch i can confirm
It'd be like 4x the line count. 
Oh, and another thing I absolutely love about C# is LINQ.
Literally the best thing ever.
Not under the scenario we're thinking of rn. 
Disclaimer: I am new to C#, so bear with me
Aren‘t auto-properties like
var AutoProperty { get; set; }
Or am I mixing them up?
Yeah.
this is the best linq discovery i discovered last year
you can use this to run multiple tasks at the same time and then wait for them all and get the results
Oh god, I just remembered having found that syntax weird when I first switched from Java from C#.
wtf async in linq does that??!?!?
yeah
That is absolutely great, convenient, and BEAUTIFUL.
Task.Result waits for the task to end first
i didnt know that before i learnt about this
Java, at the very least, has streams, which (in my opinion) are almost as good as LINQ, only annoying thing is that the methods have names like map()/filter() and that there's more boilderplate (we're talking about Java, after all).
Then, I go to AMP.
Want to do a list thing that I'd usually do with LINQ.
look at this hot thing
that gives me the ids of all the characters that have the required level to gather
Proceed to have a stroke from how awful list comprehension and functools is.
yeah i dont like the names too
ef core
I could look at and write this sort of code all day.
pagination in a few lines too lol
oh yeah yo udont need the async in the select since the function on the right side returns a task anyway
same
orm code:
literally every orm code looks like this at this point smh
orms need to be more creative
Tbh, never had to do that sort of stuff, had my brain borderline die when I needed to study SQL for a test in school. TwT
orms make sql super easy
What I'm about to say is probably presumably stupid, but why not just use a system like JSON for storing data?
you dont have to deal with joins
depends on how much data youre storing
json takes more space
and is slower to retrieve and harder to setup relations with
Oh, well, the subject I was referring to is raw SQL.
God, I hope so, because I'm not enjoying that subject AT ALL. xD
i feel like mongodb without an orm is harder to use than mysql with orm
i got a 97 in db back when i had it 😎
Ah, that's fair, didn't know that.
97.5 and it would've been an A+ 
I somehow got 85/100 points on the test after a whole 20 minutes of frantic studying.
(Total grade ended up being a D because I almost failed the theoretical part.)
raw sql and you're asking for an sqli lol
i studied at uni for 3 hours before the test
that's it
You're clearly more competent at this stuff than me. 
meanwhile almost failing my other classes 😎
xD
Tbh, I prioritize my work and free time projects way more than school.
The experience from those feels 10x more valuable than what programming lessons in school teach me.
The last time I learned something new from those was before I started modding WorldBox.
real
also you can work and make money
I probably also wouldn't. I just do more useful stuff, and either get an A if the subject is programming related and not too heavy on theory or a D if it's some subject I'm not a natural at like my native language.
Yeah, I'm definitely enjoying both the experience and the salary from my job.
sadly there are no jobs here that take people without a degree and they have a shitty pay anyway
so i made my own business
i also tutor on fiverr which made me lots of money last year
we do stuff like this https://humnum-restaurant-git-main-deveopixs-projects-6985ad18.vercel.app
Like, school only requires us to do 8 weeks of internships before graduating. So at that point, I'll have significantly more work experience than my classmates. Which, as I view it, also makes me pretty compelling as a hire compared to them.
this is a testing link
yeah hiring is mostly about experience
I was really lucky to get one to, received the offer by a teacher that I had that also had a high ranking position in the company I work for.
He first offered me an internship, then an actual job after he was happy with how I did during that internship.
Honestly, I can't even comprehend how to make stuff look good like this.
Like, I can't for the life of me come up with good looking designs.
thank you 
I can do front end stuff if someone else tells me exactly what the result should look like.
i thought i couldnt
but then i started trying
and i became decent at it
But if that's not the case, better lock me into a server room and lemme make some API or something like that.
i just look at examples and try to take ideas from them
anyone can do it i was just like you a year ago
just look at other websites and try to copy the base of the ideas
only the base so you have to add your own touch to it
I mean, I might give it a shot later, but the thought of needing to deal with CSS is ever so slightly discouraging. :P
use tailwind
or something similar
never use raw css
its kinda like raw sql 
My reaction. When I first encountered a problem due to !important.
Was on another level of infuriated.
i mean you do get long classnames with tailwind but its still so much easier
oh yeah i got one of these once
shortest tailwind class name ever:
Hmm, actually a good idea. I know what it is, but never tried it before.
Past me jsut assumed that it'd be hard to use because you needx to memorize all class names.
that's not the hard part
the hard part is css

also tailwind docs are very great
(Btw, past me was using unconfigured vscode for HTML/CSS. :P)
i dont think you need any extnesions for these
I mean, I'm already used to docs the quality of discord.py, so it'S physically impossible to disappoint me at this point. xD
Then I must've straight up screwed up something with vscode back then.
Idk now, because I just use Webstorm.
noooo
not
tailwind
man tailwind is like inline css
use bootstrap or something at least its more abstracted
that's why its so good
you need 0 setup
its easy to fuck up
but if you know what youre doing its way better than the alternatives
Might as well use some website builder UI or whatever at that point. 
I don't know why but this sentence is just so funny to me
"the" unity, they say when unity pulled a rather anti dev move last year. Doesn't mean like a good unity to me. 
(Just giving my interpretation of how this could be funny. :P)
Sounded to me like they were talking abt some drug or cult :P
Ok, that's arguably even better. xD
Also, just as a slight hint for being able to actually get help when you've got a problem, I'd suggest giving this page a read: https://dontasktoask.com/ .
It's a real person qwq
But you actually automate a normal account
Just against Discord TOS
It's a face
If I wanted to give something a weakness to silver weapons in worldbox, how would I go about that?
try asking #🔧modding-talk
they're probably more familiar with the worldbox source than we are
Oh thank you
👍
what are you talking about its completely different lmao
so is bootstrap??
Doesn't it literally just provide you with classes for making your divs look like certain predefined components?
That just sounds like styling HTML to me. I don't know why, but I've never managed to make anything look like what I imagined 
use tailwind
and use figma to sketch it really quickly
and then try to replicate it in tailwind
design in 1440px and use containers
containers make sure that things dont go to the edges (navbar) when the screens are wider than 1400px
so people with super wide screens can use your website
Oh god, you're reenacting all of my nightmares. :P
if youre really into web i can help you get started
@distant wraith you’re back! You’ve returned!
Ok, so I actually always thought that this sort of design stuff would be my thing, so when I got accepted into my current school, I went to a branch that, in addition to coding, puts a whole lot of emphasis on design. I tried to be good at it there. For a year and a half. But ended up convincing the school to let me go to their IT only branch instead because I was just that horrible at it and couldn't accomplish anything. Like, I'm either just that incompetent at this sort of stuff, or my teachers were incompetent at teaching. Idek which one tbh.
(I guess what I'm trying to say is what I'm interested but might be a complete and utter pain to even try to help in this regard.)
Nahhh
What you say doesn’t make sense
Anyone can be good at anything
You just gotta practice
I was really shit at designing websites and I’m still am not that good at it
So I started trying by copying ideas from other websites and putting them together
Which gave me enough experience to come up with my own designs
Also design is a lot about specific practices that you just need to keep in mind
Like this one
Well, I did always get good grades because it was clear to people that I can use the technology, but no one ever liked my (horrible) design ideas.
But you didn’t know how to do anything when you were born
You learnt how to use technology by practicing
That’s why you’re good at it
Fair, designs of other sites tend to leave my mind as quickly as they entered.
Ok, I never thought of it that way before. IwI
that's how things work in life
you do something a lotyou become good at it
jupe about to drop some god tier information

Bit late to the convo but I did scratch when I was 7 to 8 then learned python when I was 9 and coded sometimes until 8th grade so 15 and since that coded pretty consisntently after that. Looks very good on job applications when I say I've been coding for over half of my life
I never even considered before mentioning that sort of early stuff when applying.
(Also, NGL, I now almost see why past you thought that having AMP be in Python was a good idea.
)
