#⌨coders-cave

1 messages · Page 26 of 1

hollow bronze
#

the bugs are features

#

additions even

#

now i gotta ask do you guys do

#

//comment here

#

or
// comment here

frosty jackal
#

god the second one

#

first one is for madmen (like cody)

barren shale
#

@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

hollow bronze
#

yeah ill catch you after my 4th bg3 playthrough

barren shale
hollow bronze
#

itll be another few months

#

you see my problem is that I would want SB2 to be in the way i want it

barren shale
#

Can’t cuz it’s gonna be the way I want it smh

hollow bronze
#

this is the trouble with working on projects that you have self investment into

barren shale
#

I mean base what I want on actual game design

frosty jackal
#

did nikon make sb 1

hollow bronze
#

yeah

barren shale
frosty jackal
#

like 100% of it

hollow bronze
#

afaik

#

yes

frosty jackal
#

and now you want to make a second version

barren shale
#

I mean I kinda made lots of bug fixes in the end

hollow bronze
barren shale
#

Added taxes

hollow bronze
#

bro is now red

barren shale
#

Oh I leveled up

hollow bronze
#

evil hamza

frosty jackal
#

ascended past my being

frosty jackal
#

farewell druid

barren shale
#

It seems similar to this

#

When I’m back from uni

hollow bronze
#

i think my level is frozen

#

or wait i left so it removed that

#

damn

#

i wanna be purple

frosty jackal
#

i never had a choice

#

i came back and they made me green

barren shale
frosty jackal
#

well this is awkard

hollow bronze
#

slip the admins a 20 and they'll make you whatever role you want

frosty jackal
#

cheaper than an unban

hollow bronze
#

unban is easy

#

just make an alt

frosty jackal
#

fr

hollow bronze
#

they dont care about pissman72

#

pissman73 can walk in like they own the place

hollow bronze
#

I had an idea that isnt economically a good one

#

actually it can be a good idea

#

quick lock it in the vault

torpid isle
#

genuinely who does this

prisma grail
torpid isle
young flume
#

uh

prisma grail
barren shale
torpid isle
barren shale
barren shale
feral bramble
#

Wait since when was Hamza demon

feral bramble
static solar
royal dust
#

guys how cursed is 40g ram

#

32g ddr5 ram

#

plus 8g ddr5 ram

brave salmon
#

Want a bible verse generator I made that also has my favourite prayers?

royal dust
#

this is a laptop

brave salmon
#

Here

barren shale
brave salmon
#

I made it using CHATGPT

#

idk how to code...smhchamp i learned a bit tho and did add some thing manually tho

native solar
stoic citrus
orchid frigate
#

Im still running with 8gb ddr3 ram

stoic citrus
#

ai overlords

orchid frigate
#

Opening a browser is an entire adventure bro and I still somehow play squad

humble wasp
barren shale
royal dust
brave salmon
#

They are faster and smarter. Mf made that entire script in like 6 seconds for me

cinder flame
#

You'd still have to have humans workin to debug the code...

astral basin
cinder flame
#

tf

young flume
#

unreal

tender hedge
tender hedge
tender hedge
young flume
#

☠️

#

Cambridge dictionary

noble lagoon
#

Real

wet girder
# brave salmon Anything that involves coding or programming will be replaced by AI

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

barren shale
#

It’s just not coming as fast as people think it is

#

AI will eventually replace all jobs

wet girder
#

I highly doubt it but we'll see

barren shale
#

But it’s way faster than humans

still bramble
barren shale
#

As I said in theory

#

In theory hardware is unlimited

wet girder
#

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

prisma grail
#

Then what do you have to do there? xD

wet girder
#

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

orchid frigate
orchid frigate
#

anyone doing anything high level especially front end willingly has to have some issues

hollow bronze
#

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

nocturne rune
# hollow bronze Comprehension and ability to more complex things is also something that will imp...

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.

hollow bronze
#

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

left leaf
mortal magnet
#

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 🙂

barren shale
#

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

jolly field
wraith ibex
barren shale
#

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

mortal magnet
mortal magnet
mortal magnet
barren shale
#

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

barren shale
#

JavaScript is used to build the logic for the website like what happens when you click a button, etc…

mortal magnet
#

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.

wet girder
#

JavaScript

#

not Java

#

2 different languages

mortal magnet
#

WHAT

#

I thought it was just the longer name 😭

wet girder
#

You're not the first lol

mortal magnet
prisma grail
wet girder
#

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

prisma grail
wet girder
#

Once you learn some coding you'll notice just how different they really are

mortal magnet
#

Damnnn. Thats so confusing though. Couldnt they gave it a different name D:

wet girder
#

So basically the creators of JS wanted to capitalize on the popularity of Java

mortal magnet
#

Damnnnnn. Java never thought of suing them for that??

next lotus
#

c# in the same sentence??!?!?!?!?!!??! 😡

#

java has no right to be in the

#

same sentence as c#

barren shale
#

its no longer interpreted

wet girder
#

ah good to know

fringe zodiac
#

Anyone know of any good background removers?

Im trying to make gifs for a server bit all the things I’ve tried completely fail

next lotus
#

removebg google it

quartz pumice
#

how do I change the color of TODO 😭

#

its the same color as pass and my eyes skip over it

wet forge
#

🤨

barren shale
#

there should be a place that tells you about them

next lotus
lapis flint
#

Git just removed uncommitted code for which i worked all day because of merge conflict f_dying
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

static solar
#

Visual Studio L 😔

barren shale
#

never merge before comitting

#

or stashing at the very least

#

so many problems can be caused its so stupid and unclear

next lotus
#

guys

#

unfork all your github forks

jaunty latch
#

NOOO

jaunty latch
#

Use custom ide or whatever it’s called

#

Edit I

wet girder
serene glacier
#

So this is where all the coding nerds hide, right?

lofty phoenix
#

Quick! Everyone! Hide!

lapis flint
serene glacier
#

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

lapis flint
#

Show the result please

serene glacier
#

The whole text is just a link

#

A red link

lapis flint
#

Oh, understood what you asked, its not about html

serene glacier
#

I made the links red

lapis flint
#

Your second and third a tag

#

not closed

serene glacier
#

The tutorial guy pranked me

lapis flint
#

And first link is incorrect

serene glacier
#

I guess

lapis flint
#

<a class="" href="">Home</a>

serene glacier
#

Thank you

#

Oh my God it's finally fixed

#

I can sleep now

trail cove
#

Anyone here know python?

kindred matrix
#

Nikon is still alive in some part of the server huh

lapis flint
#

Yes

knotty root
#

yo guys

young flume
#

hello GTA character

knotty root
#

named Rickie

young flume
#

I though you're martin

knotty root
#

i (worked) in lifeinvader

young flume
#

so real

#

have you sending a friend request to niko bellic yet

young flume
knotty root
hushed basalt
#

Đây là đâu

#

Tôi là ai

#

Đmm

#

Cho t link map

#

Để t tải

#

Nhưng t dùng ios

knotty root
#

speak english plz

hushed basalt
#

Ko tải đc

#

Đeow

#

Đéo

knotty root
#

vietnamese dude

hushed basalt
#

English là cc gì?

#

Nhầm kênh

young flume
hushed basalt
#

Tôi ko bt nói tiếng english

knotty root
young flume
young flume
#

wait here @hushed basalt

knotty root
#

um

#

bruh

young flume
knotty root
#

wordblox premium

#

and the mod got quiet

balmy sedge
young flume
#

well

#

what language do you use

knotty root
young flume
knotty root
young flume
#

okay

orchid frigate
#

that language bouta blow up at this point

knotty root
placid bronze
#

Any self taught programmers here?

lapis flint
#

Depends on what do you mean by self taught

placid bronze
lapis flint
#

And me too

placid bronze
#

Know any free coding lessons online?

#

@lapis flint

lapis flint
placid bronze
#

I see

narrow light
#

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

barren shale
#

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

barren shale
# narrow light Do any of you know how to set up a domain because I have been doing some website...

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

Cloudflare

Here at Cloudflare, we make the Internet work the way it should. Offering CDN, DNS, DDoS protection and security, find out how we can help your site.

#

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

narrow light
#

I'l maybe look into cloudflare

#

isnt that what discord uses

barren shale
#

would recommend

#

i just bought a domain like 5 mins ago

barren shale
#

cloudflare is also a very cool and transparent company

narrow light
#

?

barren shale
narrow light
#

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

barren shale
#

should be fully free i think

#

look into it

narrow light
#

I will

tropic dagger
#

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

orchid frigate
#

finally someone with a brain

tropic dagger
#

I will, however, miss my structured bindings and type generic operations

quaint cobalt
#

😞

ionic jacinth
#

make -C src/ clean

#

clean: make -C src/ clean mv src/a.out . make -C src/

#

build:
make -C src/
mv src/a.out .

barren shale
#

that its "cleaner"

tropic dagger
#

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

barren shale
#

writing bad oop code is a skill issue 😎

jolly field
wet girder
#

I love the fuck around and find out try catch lmao

barren shale
#

Also the ifn’t stuff too 😂

next lotus
next lotus
#

crime

frosty jackal
#

i want to actually rename it to that

#

that is amazing

young flume
#

rizz

#

the rizzler

#

so skibiti

quaint cobalt
#

Nice

tropic dagger
#

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

barren shale
#

this is how you write functional code

#

you make structs and then you make functions that use these structs

tropic dagger
#

It isn't terrible now but it's pretty close

queen zodiac
knotty root
tropic dagger
#

I'm going through paradigm rehab

orchid frigate
#

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

tropic dagger
#

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

orchid frigate
#

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

tropic dagger
#

I wanted to make a type generic array in C without learning how to make an intrusive structure or void*

orchid frigate
#

Then the language grew and they kinda lost their purpose

orchid frigate
#

Idk I barely ever use it

#

Even if it didn't I wouldn't notice

tropic dagger
# orchid frigate 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

orchid frigate
#

Which single handedly made me write c code in c++

tropic dagger
orchid frigate
#

Not whej defining it

#

When making an instance of initializing it

#

Idk the terminology

tropic dagger
#

typedef struct {} s_name;

orchid frigate
#

What compiler do you use

tropic dagger
#

gcc and vs

#

Though I write for a windows machine so usually vs

orchid frigate
#

I havent seen that definition before

tropic dagger
#

I think it's in the standard somewhere

orchid frigate
#

I just do
struct Foo blabla{};
Or something like that I haven't used c in a few months

tropic dagger
#

Lmao, that was one of the first things I learned about C that I didn't know from C++ 💀

orchid frigate
#

If you like C may I perchance interest you in

#

Rust

tropic dagger
#

No bool was the first

tropic dagger
orchid frigate
tropic dagger
#

Damn

orchid frigate
#

So I was flabbergasted

orchid frigate
tropic dagger
#

Tbh it wasn't that hard to get over

orchid frigate
#

Dont call my baby ugly

tropic dagger
#

Lmao

orchid frigate
#

If I simp for one thing

#

Its rust

#

#1 fan of rust

#

Literally a walking ad for rust

tropic dagger
#

Lmao

#

I'm a walking diss track against oop

orchid frigate
#

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

tropic dagger
#

It is useful, the inevitability is that I will incorporate my C projects into C++

orchid frigate
#

Sad reality 😔

tropic dagger
#

Yeah 😔

tropic dagger
#

The dream

red vine
#

Not reading allat

hollow sky
#

thanks

grim grail
#

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

feral bramble
#

...

flat valley
#

You could maybe turn your fan on but that could make things worse

south nexus
jaunty latch
#

And how would a thumb sized object even get stuck, wtf

raw granite
#

What the

wise wadi
#

how do you get kingbox mox

#

mod*

raw granite
quartz pumice
quaint cobalt
#

Nice

quaint cobalt
#

Oof

lapis flint
#

Yes, #⌨coders-cave usually a place to use bot commands, absolutelly correct

barren shale
#

it only makes sense

young flume
# quaint cobalt Oof

don't misuse the command here, there's an channel specialized for it: #🤖bot-commands

quaint cobalt
#

@young flume I don’t see that channel by default

#

So I need it available or ima have to keep using these chats

young flume
quaint cobalt
#

Oof

young flume
#

it's in "Bots Section"

quaint cobalt
#

Got it now

young flume
#

checklist that

#

nice

quaint cobalt
#

We Gucci

static solar
#

What?

tropic dagger
#

the things I do to get rid of visual studio warnings without suppressing them in the preprocessor

  1. this actually makes a warning go away
  2. this will not reach the final build
  3. setting a nullptr = nullptr still means that I'll be dereferencing a nullptr microsoft
  4. the pointer is set to a non-null value in a different function, but intellisense has the object permanence of a toddler
quartz pumice
#

so... You use visual studio?

quaint cobalt
grim grail
jaunty latch
#

Lmao

jaunty latch
quartz pumice
grim grail
jaunty latch
quartz pumice
#

I remember when I was learning python I would only use notepad because I didnt know what an ide was yet

grim grail
#

And now i can say proudly that i identify as a girl

flat valley
flat valley
#

what

quartz pumice
jaunty latch
#

I’m using c# and JS in notepad

#

!!!!

quartz pumice
#

no way

#

bro is a daredevil

quartz pumice
jaunty latch
#

Especially with c#

quartz pumice
#

never used c#

#

im afraid of it

jaunty latch
#

lol

grim grail
#

I just do

#

Because

jaunty latch
#

Functions are capitalised, variables (and getting the script.parents version of it) aren’t

tropic dagger
#

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

quaint cobalt
next lotus
#

c# masterrace

wet girder
spare mirage
#

Especially with C++

tropic dagger
#

Right?

spare mirage
#

But the performance is terrible

#

Can take 3 minutes to open visual studio

wet girder
#

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

spare mirage
#

I used to use visual studio 2013 until January last year

#

(I’m a source engine modder so that was a requirement)

wet girder
#

I used 2017 at school for a little bit, then used 2019 until 2022 came out and now I've been rocking that

wet girder
barren shale
#

i think it is worse for C++

#

lots of people complain about it

wet girder
#

I've never tried it for C++ tbh. Only C# and python

barren shale
#

but its still one of the best free options

#

i use rider for C# but that's paid

spare mirage
barren shale
#

yeah dont do that

#

i used vs python for like 2 hours

spare mirage
#

Is there any good reason to use python?

barren shale
#

and then i went back to vscode

#

AI

wet girder
wet girder
spare mirage
#

I tried using python to make a discord bot but that was painful asf

wet girder
#

I own @bitter sedge and it's made in python and it's a constant pain

barren shale
#

small bots: typescript

#

big bots: C#

#

ez

spare mirage
#

Yeah JavaScript is superior

barren shale
#

no

#

typescript

#

never touch javascript

spare mirage
#

Why

barren shale
#

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

spare mirage
#

Is it easy to convert to typescript?

#

It’s just a modified JavaScript right

barren shale
#

the more files the worse

spare mirage
#

My discord bot uses one .js file but it’s over 4000 lines of code and it creates 10+ jsons to store data

barren shale
#

yeah that's gonna take a while

#

and why you have one js file

spare mirage
barren shale
#

it slows the code editor

#

it makes it hard to find things

#

too chaotic

quaint cobalt
quartz pumice
#

it only slow for me around 6k line mark

tropic dagger
#

My brother in Christ, 4k lines in one file

barren shale
#

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

dusty kernel
tropic dagger
#

Use several files

next lotus
#

10000 lines in a single .js file

spare mirage
#

In mean I’ve had c++ files in over 20,000 lines

next lotus
#

a common L for functional programming languages

barren shale
orchid frigate
barren shale
#

also having 20k liens is not even a common l for functional languages

#

its a common L for programmer suffering from a skill issue

spare mirage
#

Are there people who actually use notepad to code lmao

prisma grail
barren shale
#

ew

spare mirage
barren shale
#

i make a file for everything

#

sb 2 has like 350 files

static solar
prisma grail
static solar
#

Didn’t even know IDE‘s were a thing until recently

spare mirage
barren shale
#

i code on word 😎

static solar
#

Entirely self-taught in 19??

barren shale
#

i code on powerpoint 😎 😎 😎 😎

spare mirage
barren shale
prisma grail
barren shale
#

i used a language called blitzbasic to make a game back then

static solar
spare mirage
#

Why would you use C# with a discord bot just use JavaScript or typescript

static solar
#

Started learning Java Script to make bots

spare mirage
#

Stay away from python tho

barren shale
static solar
barren shale
#

hamza 7 years ago was a god coder

#

i didnt even setup a .gitignore

prisma grail
spare mirage
#

Yeah we did scratch in school in the second grade iirc

prisma grail
# static solar Scratch was fun

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.

rocky kernelBOT
#

You need to create a character first. Use _start

prisma grail
#

DEAR GOD.

prisma grail
#

STUPID BOT.

spare mirage
#

NCMS python edition when key????

static solar
#

I think the first instance of me doing anything like that was

#

Minecraft command blocks I think

#

Exclamation on think

prisma grail
prisma grail
barren shale
#

sb code base is 🤮

#

sb 2 code base is 😎

#

sb code base is like 50 javascript files

#

imagine the chaos

spare mirage
barren shale
prisma grail
barren shale
#

i hope he didnt make his new bot in javascript and used typescript

static solar
barren shale
#

because the request limits on interactions is better

static solar
#

Heard TypeScript a lot recently

prisma grail
barren shale
barren shale
static solar
barren shale
#

idk how it works

#

my brain isnt big enough

static solar
#

Held together by sheer willpower and magic

spare mirage
barren shale
#

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

static solar
#

Damn, that‘s a lot of files

barren shale
#

i think i can check the total amount one sec

spare mirage
static solar
#

My largest bot had like 30‘ish files in total

#

And then my laptop broke down

spare mirage
#

Yeah my bot is just one messy file

static solar
#

And I lost the source files because I was too stupid to use GitHub

spare mirage
#

The 20 files it generates tho

barren shale
#

i mean its not all code files

#

but yeah its around 500 id guess

#

or 400

spare mirage
prisma grail
# barren shale only nikon understands nikon code

The code is also bugged in several ways. wbsuffer
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.

barren shale
#

this is what happened the last time i clicked reformat

static solar
onyx ginkgo
#

Let's see how everyone's favorite cave dwellers are up to

barren shale
#

309 file changed xzibit

barren shale
prisma grail
#

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.

barren shale
#

also no ephermals

spare mirage
prisma grail
static solar
#

They are like super handy

prisma grail
spare mirage
#

Plus for moderation related stuff, saying -purge 30 is much better than having to go through slash commands

barren shale
#

like people had to before discord added interactions

prisma grail
barren shale
#

yeah they do now

prisma grail
#

Obviously.

barren shale
#

you can still do it without interactions though

prisma grail
barren shale
#

which is how i started sb 2 when i was still learning discord bots like 2 years ago

barren shale
prisma grail
#

I thought you would've had to previously use reactions as a "button".

barren shale
#

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

prisma grail
barren shale
#

because it does so much xzibit

spare mirage
barren shale
#

amp 🤮

prisma grail
barren shale
#

python for a discord bot

#

big nono

prisma grail
barren shale
#

yeah jupe is a pog programmer

#

i had to help him fix something in amp like 2 years ago

prisma grail
# spare mirage Key btw what is the stuff you’ve contributed to AMP?

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.

next lotus
#

its not as oop as

barren shale
prisma grail
spare mirage
prisma grail
#

Well, until we manage to screw each other over with git in some way.

barren shale
#

git merges ☕

prisma grail
#

Turns out that we're good at causing merge conflicts. wbtroll

spare mirage
barren shale
#

i run a small web design agency on the side with a couple of friends

spare mirage
#

Thank fuck the bot crashed 1/2 the time cuz my error handling is broken

barren shale
#

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

prisma grail
prisma grail
spare mirage
prisma grail
barren shale
#

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

prisma grail
barren shale
#

deal with merge conflicts at the end

#

instead of getting 30 of them you get 1

prisma grail
# barren shale as you should

Well, funnily enough, there tends to be a difference between what we should be doing and what we're actually doing. :P

prisma grail
barren shale
#

you jsut get them in the end after you merge the branch

prisma grail
#

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

barren shale
#

me when no typed language

prisma grail
#

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.

prisma grail
#

Python jsut clearly doesn't care.

barren shale
#

but its so much work

prisma grail
#

Even if you do.

barren shale
#

and its not compiled

#

yeah it will run

#

because its not compiled

#

so it will just error when it reaches the line

prisma grail
barren shale
#

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

prisma grail
#

Fair, but I still have quite the distaste for both JS and TS anyways.

barren shale
#

hmm why TS

barren shale
#

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

prisma grail
#

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.

barren shale
#

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

prisma grail
barren shale
#
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

barren shale
#

i heavely type my code

#

makes it a lot easier to write bugless code

prisma grail
barren shale
#

but i dont like the forceful exception handling

prisma grail
barren shale
#

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

prisma grail
barren shale
#

i dont use java anyway xzibit

#

java is ew

#

no auto property

#

its 2024

prisma grail
barren shale
#

but in sb 2 i just throw the exception

prisma grail
barren shale
#

and then if it happens while testing i can see the line

#

and check it

barren shale
#

wtf

#

auto properties save you lots of time

#

and you can add stuff to it like a normal property

prisma grail
prisma grail
#

It's all fields with getter/setter methods.

barren shale
#

that's a property

prisma grail
#

Genuinely feels like I'm using C# to write Java code.

barren shale
#

please use auto properties

prisma grail
next lotus
#

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

prisma grail
#

Like, don't make me do Actor.data.getHealth(), just give me a C# Health property to access. TwT

next lotus
#

thats why c# better :))

prisma grail
next lotus
#

like jfc, that getHealth and setHealth will contain a single line of code

#

ye

prisma grail
#

Like, they're using C# without actually using its good features. wbsuffer

barren shale
#

this offends me

#

imagine this without auto properties

prisma grail
# next lotus checked exceptions feel...useless tbh

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.)

next lotus
#

as an abuser of try catch i can confirm

prisma grail
barren shale
#

anyone wanna take sb 2 code base and work on it instead of me

prisma grail
#

Oh, and another thing I absolutely love about C# is LINQ.

#

Literally the best thing ever.

prisma grail
barren shale
#

yeah

#

i fucking love linq

static solar
#

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?

next lotus
#

yes

#

that is autoproperty

static solar
barren shale
#

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

prisma grail
# next lotus yes

Oh god, I just remembered having found that syntax weird when I first switched from Java from C#.

next lotus
barren shale
next lotus
#

oh waut

#

you're doing a .Select x.Result

barren shale
#

make sure you do x.Result though

#

yeah that will make it sync again

prisma grail
barren shale
#

Task.Result waits for the task to end first

barren shale
prisma grail
#

Then, I go to AMP.

#

Want to do a list thing that I'd usually do with LINQ.

barren shale
#

look at this hot thing

#

that gives me the ids of all the characters that have the required level to gather

prisma grail
#

Proceed to have a stroke from how awful list comprehension and functools is.

barren shale
next lotus
#

ef core

prisma grail
next lotus
#

pagination in a few lines too lol

barren shale
barren shale
#

literally every orm code looks like this at this point smh

#

orms need to be more creative

prisma grail
# barren shale orm code:

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

prisma grail
#

What I'm about to say is probably presumably stupid, but why not just use a system like JSON for storing data?

barren shale
#

you dont have to deal with joins

barren shale
#

json takes more space

#

and is slower to retrieve and harder to setup relations with

prisma grail
barren shale
#

raw sql is rare these days

#

sql dbs are as easy to use as nosql dbs these days

prisma grail
barren shale
#

i feel like mongodb without an orm is harder to use than mysql with orm

barren shale
prisma grail
barren shale
#

97.5 and it would've been an A+ wbsuffer

prisma grail
#

(Total grade ended up being a D because I almost failed the theoretical part.)

next lotus
barren shale
#

that's it

prisma grail
barren shale
#

meanwhile almost failing my other classes 😎

prisma grail
#

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.

barren shale
#

i have a final on saturday

#

im not studying for that shit

prisma grail
barren shale
#

also you can work and make money

prisma grail
# barren shale im not studying for that shit

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.

prisma grail
barren shale
#

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

prisma grail
#

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.

barren shale
#

this is a testing link

barren shale
prisma grail
#

He first offered me an internship, then an actual job after he was happy with how I did during that internship.

barren shale
#

pog

#

these dont exist here sadly

prisma grail
barren shale
#

i livei n syria

#

so yeah shit is bad

prisma grail
#

Like, I can't for the life of me come up with good looking designs.

prisma grail
#

I can do front end stuff if someone else tells me exactly what the result should look like.

barren shale
#

but then i started trying

#

and i became decent at it

prisma grail
#

But if that's not the case, better lock me into a server room and lemme make some API or something like that.

barren shale
#

i just look at examples and try to take ideas from them

barren shale
#

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

prisma grail
barren shale
#

or something similar

#

never use raw css

#

its kinda like raw sql xzibit

prisma grail
#

Was on another level of infuriated.

barren shale
#

i mean you do get long classnames with tailwind but its still so much easier

barren shale
#

shortest tailwind class name ever:

prisma grail
#

Past me jsut assumed that it'd be hard to use because you needx to memorize all class names.

barren shale
#

that's not the hard part

#

the hard part is css

#

also tailwind docs are very great

prisma grail
#

(Btw, past me was using unconfigured vscode for HTML/CSS. :P)

barren shale
#

i dont think you need any extnesions for these

prisma grail
prisma grail
#

Idk now, because I just use Webstorm.

next lotus
#

noooo

#

not

#

tailwind

#

man tailwind is like inline css

#

use bootstrap or something at least its more abstracted

barren shale
#

you need 0 setup

#

its easy to fuck up

#

but if you know what youre doing its way better than the alternatives

prisma grail
static solar
#

I don't know why but this sentence is just so funny to me

prisma grail
#

(Just giving my interpretation of how this could be funny. :P)

static solar
prisma grail
static solar
#

It's a real person qwq

#

But you actually automate a normal account

#

Just against Discord TOS

#

It's a face

gloomy zinc
#

If I wanted to give something a weakness to silver weapons in worldbox, how would I go about that?

tropic dagger
#

they're probably more familiar with the worldbox source than we are

gloomy zinc
#

Oh thank you

tropic dagger
#

👍

next lotus
next lotus
prisma grail
barren shale
#

You need lots of setup to make it good

distant wraith
#

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 wbsuffer

barren shale
#

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

prisma grail
barren shale
jolly field
#

@distant wraith you’re back! You’ve returned!

prisma grail
# barren shale if youre really into web i can help you get started

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.)

barren shale
#

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

prisma grail
barren shale
#

You learnt how to use technology by practicing

#

That’s why you’re good at it

prisma grail
prisma grail
barren shale
#

that's how things work in life

#

you do something a lotyou become good at it

#

jupe about to drop some god tier information

wet girder
barren shale
#

true

#

sadly im too old now so i cant say that

prisma grail
#

(Also, NGL, I now almost see why past you thought that having AMP be in Python was a good idea. wbseriously )