#⌨coders-cave

1 messages · Page 29 of 1

barren shale
#

just websites which are mostly small

#

itsj ust frontend js code so its not that huge and it doesnt really link to each other that much

prisma grail
#

While I barely have any TS experience compared to other languages I've worked with, I feel like it does quite a horrible job at not letting me be an idiot like JS.

barren shale
#

i guess that's why people managed to do it without quitting after a couple of days

barren shale
#

its for big brain smort people like me

prisma grail
distant wraith
#

Literally me

barren shale
prisma grail
distant wraith
#

Great

barren shale
#

Writing TS is more fun than writing C#

#

its less efficient though

prisma grail
prisma grail
barren shale
#

I've written 24 hours of TS in the last 6 days

#

funzies

barren shale
prisma grail
prisma grail
# barren shale 🤮

Oh, and also, said backend is therefore also responsible for powering mod upload logic in the replacement WorldBox modloader for NCMS (NML). GremlinRoseWheeze

barren shale
#

and you used JS for that

#

even python would be better

prisma grail
#

So yeah, I hope you don't do WorldBox modding, because I doubt that you'd be able to sleep well knowing that the main modloader interacts with an API coded in JSfor critical logic. GremlinRoseWheeze

barren shale
#

JS is not known for its stability xzibit

prisma grail
prisma grail
# barren shale and you used JS for that

I mean, look, I reasonably decided to just add on the required endpoints to the API I already had running for my mod. Unluckily for me, said mod API backend is like over 1k lines of code all in JS, and I genuinely couldn't've been bothered to rewrite that garbage into a better language.

barren shale
#

are you at least using pm2

prisma grail
barren shale
#

or some sort of PaaS

prisma grail
barren shale
#

then you should be using pm2

#

which will automatically restart it if it crashes

#

and store the logs for you

#
#

also if you have multiple cpu cores in the vps you can run multiple containers

prisma grail
barren shale
#

but i guess that's not very helpful if you dont have lots of traffic

prisma grail
barren shale
#

know

#

it exists

prisma grail
# barren shale it exists

Ah, fun. And I thought that I need to wrap any JS code I want to auto restart on crash into a systemd service. GremlinRoseWheeze

#

Ngl, at this point, I am genuinely amazed at what sort of monstrosities I've had to write just to not have to use the async keyword.

barren shale
prisma grail
# barren shale why are you not using string interpolation

I always concatenate strings because it's what I'm used to doing. Also, string interpolation on the Python version AMP is using is such garbage that it literally doesn't allow you to nest strings in {} (e.g. if you need to do "some seperator".join(some_string_list)).

barren shale
#

oof

prisma grail
# barren shale oof

Also, how is the string concatenation of all things what stands out to you in this coee? GremlinRoseWheeze

barren shale
#

wanna test something cool

barren shale
prisma grail
prisma grail
barren shale
#

sec its compiling

#

im building a SaaS

#

survey builder

#

actually this link requires auth one sec

#

i didnt fix the CSS for mobile so youre gonna have to do it on a pc

prisma grail
barren shale
#

oh yeah

#

i fixed it

#

reload

#

focusing on the smoothness of the survey building

#

so tell me how smooth its looking right now

prisma grail
# barren shale so tell me how smooth its looking right now

Ok, so first up, I want to point out that the only time I ever had to make any sort of form before was when I created a staff application form in Google Forms for a server I was an admin on.
After I realised that the top two buttons were only for the starting and end page of the survey, everything felt very intuitive for me, the animations and live impact of the things I'm doing made it feel nice, and the jump option stood out to me nicely (mainly because it seems very useful and I never saw something like it before). The whole thing that got me tripped up while I was making questions was how the question type changing disclaimer says "question/answer settings", no I instinctively thought that it'd fsr also affect the question name/description I had already entered. I also feel like seeing that popup literally every time gets a bit repetitive because of how it interrupts the normal flow (which, of course, makes sense for the first time since it's a warning, but feels annoying when it's happening when I already know what it's going to say). Also, the flashbang from it eing light mode was a bit of a jumpscare. xD

barren shale
#

oh i didnt notice this

#

yeah im gonna make only one pop up that appears when you click add question which lets you choose the question type

#

and ill fix the change type popup text

#

thanks for the feedback

prisma grail
#

You're welcome!

prisma grail
#

I've been bypassing what Python expects of me for so long that it genuinely feels weird to be able to simply await the send() method. wbsuffer

knotty root
#

I'm watching TV

distant wraith
#

I love censorship

#

I just can't think of how much censorship is forced on this poor thing to make it this delusional (or paranoid, idk which is the right word)

#

Common Meta L

wicked spindle
lapis flint
wicked spindle
lapis flint
#

I guess

lapis flint
prisma grail
prisma grail
distant wraith
#

No syntax highlighting

static solar
prisma grail
north dune
#

the more redundant one

static solar
opaque ingot
#

Thank god they have these courses in the Philippines

#

FUCK YEAH

barren shale
#

Also don't call your variable isThereWar

#

Call it warStatus or something

prisma grail
barren shale
#

then make it an enum

#

warOn

prisma grail
barren shale
#

isWarOn

barren shale
#

idk ive programmed a lot

#

and ive never used there in a variable name

#

it sounds wrong

prisma grail
barren shale
#

well yeah ig

#

but you can use it for more than there's a war and there isn't a war

#

you can add war states to it

prisma grail
# barren shale and ive never used `there` in a variable name

That's fair, I agree that the name sounds a bit weird. But I see no reason to make it a data type different from bool, and the initial name you suggested was worse than isThereWar in my opinion because you can't even tell based on the name what the data type is.

barren shale
#

or if you have an object that you save the war info in like WarInfo then you can check if it is null for no war and if it has a value for there's a war

barren shale
prisma grail
prisma grail
barren shale
#

in the case of many values you'd use any

#

anyWars

#

if anyWars is true then there is a war

prisma grail
#

Ah, yeah, that's actually a nice name.

barren shale
#

I mean you shouldn't use .Length > 0 you should use .Any()

prisma grail
#

(Personally, I'd add a has at the beginning because I prefer it when my bools start with verbs.)

barren shale
#

but idk if that exists in .net framework

#

has works too in the case of many

#

it depends on the word after xzibit

prisma grail
barren shale
#

i just select the one that sounds noicer

prisma grail
#

It's the sort of thing where I write the wrong thing.

#

My IDE complains about it.

#

I apply the quick fix.

barren shale
#

rider be like hagrid

prisma grail
#

That fixes it.

#

I forget about it again.

barren shale
#

sometimes you shouldn't use .Any() and use .Count()

#

for better performance

#

to not cause multiple enumerations

#

but dont worry rider will warn you for this too xzibit

prisma grail
barren shale
#

rider smort

#

you stoopid

#

anyway time to write some speciesbox 2 C# code

#

smh my head

#

time to abuse every discord feature to make this bot work

prisma grail
barren shale
#

but

#

in the 2 years i'd say i had around 8 months of work

#

and i wasn't the best at working for more than an hour a day

#

so its not really much

prisma grail
rocky kernelBOT
#

You need to create a character first. Use _start

prisma grail
#

Well, apart from the fact that I'm gonna kill you if SB2 does this too. GremlinRoseWheeze

barren shale
#

amount of lines in sb codebase

#

3 projects

#

api, bot and shared

barren shale
#

this is how many classes xzibit

#

~650 classes

prisma grail
rocky kernelBOT
#

You need to create a character first. Use _start

barren shale
#

oop wblove

barren shale
prisma grail
barren shale
#

greens

#

but its mostly a couple of files that lower it a lot

#

because i dont write all the code in the best way because some code is temporary

#

so there's no need to put lots of effort into it

prisma grail
barren shale
#

i mean building on top of unity is eh

#

so maybe that's that

#

or you are not using as many patterns as i am wbcoolchick

#

use patterns

#

they are fery kewl

#

i also use github actions to push the bot updates to the VPS automatically

#

which is also fery kewl

#

that definetly didnt take ages to setup

#

and fail 20 times

prisma grail
barren shale
#

read this then

#

and try to apply some to an already built codebase

prisma grail
barren shale
#

i havent worked on sb 2 in a while i forgot where i was at with the code

#

this code base is too huge xzibit

prisma grail
barren shale
#

singletons dont count

#

everyone knows singletons

#

smh

prisma grail
#

Trust me, I do know some design patterns and can think of many examples of using them outside of my WorldBox mods. xD

barren shale
#

mhmm mhmm sus

prisma grail
#

My code standards just magically drop into the floor when I'm working on personal projects. fff

opaque ingot
#

Is CS degree worth ut

#

It

rocky kernelBOT
#

You need to create a character first. Use _start

spare mirage
#

ohhhh

opaque ingot
#

So guys how do i check the list if I contains something specific like more than one specific item. for example you want to check stone in that list then you use Contains() but now you want to check Stone or a rock inside that list for if statement. Do i just use ||?

carmine epoch
#

_gather

#

That's crazy

#

@barren shale why is speciesbox enabled here bruh

rocky kernelBOT
opaque ingot
errant trail
#

javascript is CRAZY

lapis flint
#

|| Thats why humans shoulnd't use it ||

opaque ingot
#

Should I get CS Degree?

lapis flint
#

Idk what is that

opaque ingot
#

It's a thing that's required for applying jobs about programming like being full stack dev and others

errant trail
#

i heard that colleges are overrated in the first place

opaque ingot
#

I mean I can just freelancing but I got a really bad feeling

#

For thst

opaque ingot
#

My parents is Asian after all.

errant trail
opaque ingot
#

I'm just trying to prepare..

#

So i don't suffer in the upcoming future and im trying improve/learn some languages required before that suffering happends.

opaque ingot
#

Review please

prisma grail
# barren shale Idk

_My cries towards admins to get its viewing perms removed have been ignored, it seems. wbsuffer _

barren shale
#

top tier commit messages

#

and here's a new one

prisma grail
static solar
lapis flint
#

Understood

wicked spindle
#

Have you ever wrote comments in your code that slowly go insane

lapis flint
#

Wdym?

#

Why comments go insane

static solar
lapis flint
#

🥴

static solar
#

Example:
// This code does x
Later
// THIS CODE IS DOING SOMETHING GREAT, IT‘S DOING X

lapis flint
#

Never had that

static solar
#

Me neither

#

But I rarely make comments

distant wraith
#

I never seriously wrote any comments in my actual projects

#

They're such a waste of time

lapis flint
#

Always do it

static solar
#

Unless I write something so ugly I do it as a failsave, in case I can‘t comprehend it later

distant wraith
#

The closest thing I do is docstring

lapis flint
static solar
#

Comments shouldn‘t be necessary when you write readable code

#

Good naming, etc.

distant wraith
static solar
#

Heard about that

lapis flint
#

My opinion

static solar
#

I completely forgor

lapis flint
#

Commenting almost each method

lapis flint
lapis flint
#

In visual studio you just type ///, and it generates this by itself

distant wraith
#

Looks even more painful

lapis flint
#

Nah

#

You can ignore param and returns and keep only summary section (just description)

#

And it even have formatting for highlight and other stuff

static solar
#

Never really used that feature for my small console apps

lapis flint
#

I guess it is useless for small console apps

static solar
#

Yeah but ig I can add them as practice anyways

orchid frigate
#

alot of stuff

#

mainly just stuff

barren shale
barren shale
#

C# one is really nice

#

compared to the python one

distant wraith
#

Totally unbiased take

prisma grail
#

Never before have I heard a more unbiased C# opinion.

#

(I do have to agree though.)

quartz pumice
wet girder
#

Why is the little guy thinking and not speaking

tropic dagger
#

too real 😭

errant trail
#

imagine coding in html

#

like not even JSX or HTMX you just code with script tags

#

this would be the ultimate troll

#
<htpl>
    <set name="a">Hello world!<set/>
    <log data="$a"/>
<htpl/>
royal zenith
#

Why is my code not working?<htpl>
<set name="a">Hello world!<set/>
<log data="$a"/>
<htpl/>

barren shale
royal zenith
royal zenith
wet girder
#

At work I've done exclusively backend work for the last 5 months and now I am doing excusively front end work for a while and damn is it refreshing

barren shale
#

fullstack is best 😎

narrow light
#

My tech teacher wants me to die of sadness

#

She wont let me code in either html or python

#

And hasnt even started the wix project

#

We are doing mind map shit

wary plank
#

this hurts my head

opaque ingot
#

How many hours should I spend on coding?

distant wraith
#

Until you get what you want or give up. That's how I do it

wicked spindle
opaque ingot
# wicked spindle 2

I could barely spend 2 hours straight coding. But I do spend like over 1+ hour morning, afternoon and at night

barren shale
#

26 hours a week at least

timid field
#

Final moments before disaster

static solar
prisma grail
prisma grail
prisma grail
barren shale
#

7 hours in json

#

what the fuck are yo doing

barren shale
#

nvim user 🤮

prisma grail
barren shale
#

no

#

look at my cool nvim theme though

prisma grail
# barren shale no

Well, AMP is involved in running the event (it's the horrible mess of a system I was coding last week that made me complain about asyncio a whole lot), and all of the question/answer sets of the event were stored in a google doc with bad/inconsistent formatting and needed to be transferred over into a JSON file.

barren shale
#

look at this cool ascii implementation of ray marching

barren shale
prisma grail
# barren shale

Pretty nice colors, that different font is slightly infuriating to me though. fff

barren shale
#

yeah font kidna suck

opaque ingot
barren shale
#

i dont use nvim anyway

#

i tried it for a week

knotty root
#

@prisma grail hiii

barren shale
#

slowed me down too much

prisma grail
knotty root
#

@barren shale hii

barren shale
#

i also spent too much time making vscode look beautiful wblove

barren shale
knotty root
barren shale
#

which coin

#

what

#

coin

#

what

opaque ingot
knotty root
prisma grail
# barren shale so you've spent 7 hours writing down json

Ok, so a few corrections to that.
1st: I wasn't just writing the exact JSON, I also did stuff like writing aa schema for the JSON.
2nd: I actually only did like a quarter of the porting into JSON because of how painful it was, and got some other event host that happened to know some coding basics to do the other 75%. GremlinRoseWheeze

knotty root
#

tldr dont have enough braincells

#

stop trying to mentally hurt me

barren shale
knotty root
#

the coin

knotty root
#

tgat collection shit

barren shale
#

and doesnt shit on your laptop's battery

static solar
#

Data stealing

prisma grail
# barren shale slowed me down too much

I guess that's fair, took me several months of just having it sitting around on my mac before I actually went through with using it consistently for something.

#

(Blame Pycharm for being an annoying piece of garbage with way too lenient type checking on strongest settings I could find.)

prisma grail
static solar
#

I should convert my school laptop to Linux

barren shale
#

i mean not only battery wise

#

it starts really fast

#

rider takes like 20 secs for me to start getting intellisense

#

vscode takes 2 secs or something

#

just how long the typescript language server takes

static solar
#

Rider is like 8 seconds max

barren shale
#

not on speciesbox 2 codebase xzibit

static solar
#

Oh true

barren shale
#

it takes me like 40 secs before i can start coding on speciesbox codebase

static solar
#

Just use fewer files :P

barren shale
#

its 15k lines of code rn

#

so fewer files would make it too chaotic

static solar
#

And make better code

#

Ez

#

Buy my courses

#

For more life hacks

barren shale
#

sounds like a scam

prisma grail
barren shale
prisma grail
barren shale
#

stuff

prisma grail
#

You sure like to do stuff in commits.

barren shale
#

i do lots of stuff

static solar
barren shale
#

here's the top 8 commits of 2024

static solar
#

Stuff

#

You do a lot of stuff

barren shale
#

this is a speciesbox commit

prisma grail
# barren shale vscode takes 2 secs or something

Btw, does vscode offer any shortcuts/UI for changing solution/project settings/building/linking C# files/etc, or do you need to do that sort of stuff via the .net CLI and/or editing of .csproj files?

barren shale
#

1500 changes

barren shale
#

rider for C#

prisma grail
barren shale
#

vscode for typescript

prisma grail
static solar
barren shale
#

i tried vscode for C# for a while

#

but i prefer rider for the extra stuff

prisma grail
static solar
barren shale
#

i mean it is viable for low battery situations

#

especially on big projects

#

you wont get the best intellisense though

static solar
#

I had to jump through so many hoops to get it to work

#

And when it worked it was just unpleasant to use

#

So I used Rider instead

barren shale
#

hmm?

#

how long ago was that

#

cuz the C# extension released last year made it super ez

#

you just install it and that is it

static solar
#

Oh no, I couldn‘t use that

#

Because VSCode is not Linux compatible

barren shale
#

wat

static solar
#

There is a port for it, but it lacks most addons

barren shale
#

vscode is

#

vscode runs on anything

#

its written in javascript

#

it runs on chromium

static solar
#

Perhaps I was just stupid, I will look at my setup when I am home

#

But I‘m heading to my internship rn

barren shale
#

its built with electron

prisma grail
barren shale
#

yeah you are probably talking about visual studio

#

which doesnt have a linux version

#

or a mac version

static solar
#

I‘ll look into it

barren shale
#

rip vs for mac wbpray

prisma grail
static solar
#

But my bus just arrived

#

Bye bye

prisma grail
prisma grail
barren shale
prisma grail
#

Because it seems to not do stuff like creating a solution/project, and literally just doesn't do anything at all if that isn't set up, seemingly not even very basic detection of syntax errors.

barren shale
queen zodiac
prisma grail
barren shale
#

damn you guys are that stoooopid?

prisma grail
barren shale
#

NCMS is cool (i've never used it)

#

😎

prisma grail
queen zodiac
opaque ingot
#

How the hell does this work..

if(user == "login" || user ==  "Login")
            {
                Console.WriteLine("Input your name's account");
                user = Console.ReadLine();
                
                if(user == user && atm.Name != atm.Name)
                {
                    Console.WriteLine($"{user} does not exist, Try again");
                    user = Console.ReadLine();
                    if(user == user && atm.Password != atm.Password)
                    {
                        Console.WriteLine($"{user} incorrect password, Try again");
                        user = Console.ReadLine();
                    }
                }
prisma grail
orchid frigate
#

and this is about the worst way you could mess up naming variables

orchid frigate
#

wait you cant have two variables because the first one would be redefined

#

then unless there is some weird c# feature im missing it doesnt work at all

lapis flint
#

That virtual mod class was bad idea

prisma grail
lapis flint
#

I was experimenting with new things for me and didn't thought about usability for people who knows how to work with code correctly

lapis flint
prisma grail
#

For the dev coding it, that is.

lapis flint
#

I even named it for error as HIDDEN_THING_YOU_CANNOT_FIND_IT.cs

prisma grail
#

(I once looked into NCMS mod compilation pretty closely because I wanted to try Harmony patching it to be multi threaded.)

lapis flint
#

Is it possible?

prisma grail
#

Running constructors for GameObjects outside of the main thread makes Unity throw an exception.

lapis flint
#

i mean just for harmony, not ncms related

#

Wait, aren't unity's GameObjects shouldn't have constructors?

prisma grail
prisma grail
#

But whatever method you were using.

#

That at some point constructed it.

#

Caused an exception.

#

Because of some Unity method being invoked outside of the main thread.

#

It's just some restriction they put in place, presumably because they were too lazy to make the code thread safe.

lapis flint
#

Wait, but can't you make default GameObjects's methods async so in general it will work async, just object will be on main thread

#

I mean, if they already done as async by game's dev, it will be possible i guess

#

i don't remember how async works in unity

#

There were limitations

prisma grail
lapis flint
#

iirc

prisma grail
#

They at least were when I used async in Python.

#

Idk about C# tbh.

lapis flint
#

I am not sure

prisma grail
#

Yeah, I also recall Hamza haven't said before that async code works fine without needing to be thread safe.

queen zodiac
lapis flint
#

Hmm, i always understood that concept incorrectly

prisma grail
#

Ah, I see. Nice that I was able to help clear that up!

lapis flint
#

Never worked with threads, i thought its just more powerful way for async, and that async is a paralleling

prisma grail
#

Even when I coded the networking in KeyGUI, I did it synchronously in a separate thread.

barren shale
#

Async is not parallel

#

Async runs on a single thread

#

It just switches between different parts of the code

#

You choose when you want it to switch by yielding

#

await Task.Yield()

#

Or by awaiting something that takes time like an HTTP request or some IO operation

quartz pumice
#

async is threads but in python instead of the os

barren shale
feral bramble
lapis flint
feral bramble
#

Ah

barren shale
#

threads in programming do not run on different physical threads

lapis flint
#

What

barren shale
#

you can create 2 threads and the os can run them on the same physical thread

#

yeah idk why they called them threads

#

people confuse them with actual physical threads on the CPU

#

it is running synchronously because i never yielded

prisma grail
# lapis flint What

To elaborate, they can run on different physical threads, you just don't have control over if they do or if the scheduler treats them differently (I'm at least pretty sure that's how it works).

barren shale
#

yielded after "WORLD"

#

"DONE" gets printed before "!!!!!!"

#

as you can see async runs on a single thread and just switches to a different "context" when you yield

lapis flint
barren shale
#

which can be the same physical thread

queen zodiac
# barren shale

first time I don't see the messiest code ever in this channel

opaque ingot
#

User in the if statement was the problem, whenever I Input incorrect user name in login then input again instead of incorrect name it'll output incorrect passwordxzibit

north dune
quartz pumice
# queen zodiac first time I don't see the messiest code ever in this channel

Very well. ```c
// get x pages (and resize)
static void *mempage(int pages) {
uint64_t loop=0;
void *start;
int allocated = 0;
do {
if (memory_map[loop].type==0 && (uint64_t) start == 0) // set start to the first free block in path
start = (void ) (loop4096);
if (memory_map[loop].type==0) allocated++; // check if the next block is free
else {start = (void *) 0;allocated = 0;} // if the next block si not free, reset start and allocated

loop++;

} while (loop < memorysizeblocks && allocated != pages); // until goal, or out of memory
if (allocated != pages) start = (void *) 0;
return start;
}```

prisma grail
supple kiln
#

reached my weekly replit AI quota who will tolerate my shitty javascript questions now wbsuffer

errant trail
#

i think i have the messiest one

#

but i deleted it

#

its in js btw

barren shale
#

also dont use javascript

supple kiln
barren shale
#

learn typescript

#

very similar

#

way better

#

i can teach you for the low price of $20/hr

supple kiln
#

Can typescript be used for discord bots? If so epic

barren shale
#

typescript is javascript but with types

supple kiln
#

Interesting

barren shale
#
let i = 10;
console.log(i);
supple kiln
barren shale
#

this is javascript

#
let i = 10;
console.log(i);
#

this is typescript

supple kiln
#

Where colors go :(

barren shale
#

colors are there your discord is bugged

#

but yeah you have to do some extra stuff sometimes

#

like in function you have to specifiy the type of each parameter

supple kiln
barren shale
#
function Add(x: number, y: number) {
  return x + y;
}
#

you can also specifiy the return type, if you dont its gonna do it for you though

#
function Add(x: number, y: number): number {
  return x + y;
}
supple kiln
#

Cool cool

barren shale
#

So now if you do

let str = "Hello";
let y = 5;
Add(str, y);

its gonna give you an error

#

because str is a string and the first parameter should be a number

#

very kewl

supple kiln
#

I like it

#

Anyway yeah never made an openai account, I would but the fact it asks for my phone number is ridiculous

barren shale
#

not really

#

millions of users

#

you dont want people to create multiple accounts

supple kiln
#

Not gotten a single spam call on my 3+ year phone number i intend to keep it that way

barren shale
#

i dont think signing up to websites like this gets you spam calls

#

signing up to sus websites gets you spam calls

#

but companies like openai will get sued if they share your number without you letting them

supple kiln
#

If openai was still a non profit I would give it

barren shale
#

if openai was still a non profit you wouldnt be able to sign to chatgpt since it wouldnt exist xzibit

supple kiln
#

Pretty much, I could see them charging for api calls but not the subscription bs

#

Anyway it's pretty late for me gn all

queen zodiac
#

Ok, nevermind

errant trail
#

typescript will require extra boilerplate but great for keeping every value type consistent

#

a

barren shale
#

typescript saves you a lot of time when you have more than 5 files xzibit

#

javascript is hell when there's a lot of files

#

especially if you are working on someone else's code

errant trail
#

true true

orchid frigate
#

never gotten a single spam call

#

I think it aint about the number I think its just a grudge against openai

quartz pumice
#

Hides the pain

#

It's relevant because Adam is the name of a few things

queen zodiac
#

Where’s our freedom

#

🛢️ 🦅 🇺🇸 🦅

brave garden
#

wait this isn't general

#

mb

opaque ingot
#

Should I learn xaml or gui

barren shale
#

neither

#

dont make apps with these

quartz pumice
quartz pumice
#

Sunday school is Christian daycare I think 💀

wet girder
barren shale
#

I’ve used it

#

I didn’t like it xzibit

wet girder
#

Bro wpf is gonna be my life for 4 fuckin months

#

I'm a week into it and so far I'm confused af of what's going on

#

I've written like 3k lines of code in that time, mostly copy paste tho

wet girder
distant wraith
#

Ruff is stealing Black's job

quartz pumice
quartz pumice
#

whenever I make a function static its optimizing the whole function out

#

like its literally removing the function and then trying to go there and triple faulting (how?)

#

oh nvm its not trying to go there it also optimizes out everything that uses the function

sullen steeple
#

hello coding chat

#

i am here to take out my angers and frustrations of c++

#

and s f m l

#

the most important part of it is the fml ong 🙏

#

because i want to fucking die after trying to set this up

#

ok bye

#

nevermind i am back

#

yeah uh so can someone help me frfr

#

oh yeah one of the errors is just "you have 81 other errors"

#

ok i deleted a random project configuration file and that fixed it

#

of course

#

i dont

#

i dont even know what i did

#

god forbid i try to run it a second time

fervent umbra
#

Coding is kinda lame tbh

#

Like

#

Get a life

barren shale
#

Like

#

Get a life

fervent umbra
#

To each their own opinion

feral bramble
static solar
#

Like

#

Get a life

queen zodiac
#

Living is kinda lame tbh

placid crystal
#

LOL!!

barren shale
#

Without skiing you would be able to go on discord

#

Coding > skiing

rose pawn
#

thats like saying

#

without world War 2 u wouldnt have discord

barren shale
#

Not really

#

Skiing is a hobby

#

Coding is a job

frosty jackal
#

skiing can also be a job

#

what you might mean is the difference between the importance of working in the entertainment and the tech industries

tropic dagger
opaque ingot
tropic dagger
opaque ingot
#

Just tried html and css today

#

After 1 hour trying why my text size not adjusting turns out i was using height instead font size💀

distant wraith
#

Writing HTML and CSS is pure boredom and frustration

#

I never understand how someone can sit for more than 10 minutes through it and actually make something good looking from it

opaque ingot
#

Not done yet tho

#

I forger what words should I put inside the web

opaque ingot
orchid frigate
# opaque ingot

If you gonna showoff the site to companies use chatgpt or something similar to rewrite the text to something more professional

#

Preferably tell it its for a professional portfolio

opaque ingot
#

Is being full stack developer fun?

hardy spruce
#

I want to create an world box mod with 10000x speed

opaque ingot
hardy spruce
#

i have to learn to program first

queen zodiac
tropic dagger
hardy field
#

And 100x speed will hardly be faster than 50x speed

#

Because it doesn't matter how fast you try to push the game, it still has to calculate stuff and no computer can calculate that fast

queen zodiac
lapis flint
#

Just found out you can do commits to the past so you can keep github streak even if you missed

opaque ingot
#

So uh

#

Is there a difference between let and var?

wet girder
#

in JS?

opaque ingot
wet girder
#

This Ig. When I did a course in web development I was told to just not use var

fervent umbra
quartz pumice
barren shale
#

var is very unintuitive

#

let is how it works in all languages

#
console.log(a);
var a = 5;

would print undefined

#

when

#
console.log(a);
let a = 5;

would error

#

because when you use var its defined at the start of the function

var a;

console.log(a);
a = 5;
#

like this

#

very stupid

#

but javascript was made in like a week so yeah xzibit

orchid frigate
#

wait so let and var are different in js?

#

nah thats evil

#

and incredibly useless

barren shale
#

var was made first

#

and it sucked

lapis flint
barren shale
#

but they cant change it

barren shale
lapis flint
#

Js is a language of god

#

Thats why we can't understand it

feral bramble
#

JavaScript?

#

Eh it be fine

distant wraith
#

Interesting

#

I wonder if it's actually that good or just a contaminated mess

barren shale
#

i mean they have infinite data to feed it

#

billions of messages everyday

distant wraith
#

I suppose

barren shale
#

oh wait claude is not discord's ai

#

or is it?

#

what was the discord one called

distant wraith
#

Not this one, no

#

They have the same name

barren shale
#

ooooooooooooh

#

that's fucking stupid

queen zodiac
distant wraith
#

Oh right

#

I'm stupid

sullen steeple
supple kiln
#

i hate javascript but whenever I try another language I just end up back at js and its all I know someone help wbsuffer

distant wraith
#

Literally me and Python

short chasm
#

So uh

#

How do I make a site people will want to use

#

How do I advertise

#

And how do I set up Adsense

barren shale
queen zodiac
short chasm
#

Right, but needing something leads to wanting

queen zodiac
#

always works

knotty root
#

Stop cooking @opaque ingot

opaque ingot
supple kiln
#

But I started about 4 years ago and I still have no idea what a library is

narrow light
#

I should have taken your warnings more seriously

quartz pumice
#

Lol

orchid frigate
orchid frigate
#

Thats just how js is

frigid cairn
#

I’m currently experimenting with unity a similar system to 4d miner but a dimension below; a 2d platformer where you jump on 3d objects in the level that you can rotate along X,Y,Z using the scroll wheel

#

My current tests are going well, I just apply a collider and are it face the camera, then rotates with the object

#

Not too many game breaking bugs, a bit of object clipping

barren shale
#

unity 2d physics are trash

#

do it yourself

#

dont use unity's physics

frigid cairn
barren shale
#

and collisions

frigid cairn
#

Barebones atm but does the job

frigid cairn
#

This is literally just a square on a cube, proof of concept

barren shale
#

inbuilt collisions are very inaccurate on 2d for some reason

#

characters always go in the ground a bit

#

which fucks up movement

barren shale
hardy spruce
#

NCMS not working

warm condor
#

As a practicing modeler I am a spy from far away lands to spy on you coders and scripters

karmic cave
barren shale
#

too problematic

astral jacinth
#

i too code sometimes

last cedar
#

I’m starting to code witch language should I start with

#

I was thinking about doing python but idk if that is a good language or not

#

Please help me

orchid frigate
#

Any C language

#

Python is a scripting language so you won't really find much use in it

#

As a beginner

#

The top choice would be C# paired with maybe unity if you are interested in game development

last cedar
#

Ok thank you

quartz pumice
#

am trying to mess with opencl

#

to me it just looks like a fucking mess

#

I downloaded the sdk, but its incomplete, and has nothing legitimately useful

#

finally found a sdk

#

khronos official guide is just a powerpoint

#

yea htis a fucking 5 slide "powerpoint" in the form of a markdown file

quartz pumice
#

MORE FUCKING POWERPOINTS

quartz pumice
#

theres no fucking

#

table

distant wraith
#

Almost lost my damn mind trying to figure out why Tailwind font weight doesn't work on buttons wbsuffer

#

Turns out I forgot to rebuild it

hollow bronze
barren shale
quartz pumice
#

I swear most of opencl should be under some abstraction

#

its so feature rich everything is fucking difficult to use

prisma grail
#

I spent the last few hours debugging cryptic C++ code I could barely even understand just to realise that it didn't have any bugs and that my problem was something completely different. TwT

jovial jackal
#

hi, i want to import my python file, but only 1 python file work, why??

karmic cave
#

Use binary code, crab

#

This is better

#

Then your craby python

tropic dagger
tropic dagger
#

oops I read it (the file) wrong

#

okay the file is being read correctly, I'm just not returning the right value

#

bullshit 😭

#

I changed one thing and now I'm getting errors in an entirely unrelated portion of code
I fucking love this 😭

#

the code is executed before what I changed, it operates entirely independently, and it wasn't erroring before 😭

#

wait why am I getting an access violation at 0 error, the pointer I'm dereferencing isn't 0 😭

#

wait and the string that just prints (null) does not point to a null string 😭

#

I'm going to look for the obscure fix to my obscure problem later I'm sick of this 💀

queen zodiac
#

🥚 Putting it in the fridge

teal crag
barren shale
#

overflows and divide by zero dont cause errors is debatable

#

but everything else is very pog

prisma grail
barren shale
#

its erlang syntax

prisma grail
barren shale
#

<> is for concatenation

#

|> is for piping which is very pog

#

imagine in C# instead of doing

Console.WriteLine(Func());
#

you can do

Func() |> Console.WriteLine
#

way more readable

#

first one you have to read from the inside to the outside or you have to add a variable to make it more readable

#

second example is more intuitive

prisma grail
orchid frigate
#

And get 27 headaches a day

#

Just saying

orchid frigate
#

Looks absolutely fucking sick

hot furnace
#

Better one

north dune
#

made an app because i couldnt find one to use

#

on screen joystick for WASD, this one doesnt even show up until input is going

barren shale
#

noice

quartz pumice
#

poggar

lapis flint
#

But it is asset, made not by me

#

There was a bug which allows movement not in 8 directions, but in any, which makes it more flexible for mobile players and it is not fair by my opinion

hollow bronze
#

based godot user detected

next lotus
#

f#???

#

how is this possible

barren shale
#

Instead of nulling and handling the null value later

next lotus
#

but my bool can no longer have 3 states

#

im gonna shit myself

lapis flint
barren shale
#

Yeah but nulls cause exceptions

#

These languages wanna force you to handle everything so crashes become rare

lapis flint
#

I see that c# goes by same way, at least more and more ide warns (which is just disabled)

quartz pumice
#

I would be fine with not having null if there was none 🤣

narrow light
#

My hate for wix grows stronger for each tech lesson

#

The gods have forsaken me with this laggy confusing platform

#

Is the easyness worth the ungodly ness of the lag and confusion

wet girder
#

Why would you use wix

narrow light
#

Me and the indian dude begged for html

wet girder
narrow light
#

The teacher ignored our begging

narrow light
#

Might just be it would be useless for the others

#

But why must I be forsaken with this

wet girder
#

My 8th and 9th grade tech teacher taught me html, css and python

narrow light
#

why tech teacher why

#

We spent most of 7th grade on excel

#

It was

#

Hurting of my soul

orchid frigate
#

But you know the material in the rest of the classes was 4 years ahead of the american schools

#

Gotta love modern education

quartz pumice
#

"allright guys, let me show you this powerpoint on how to use chrome, which youve been using since probably before you could talk"

barren shale
#

wix should either die or upgrade their tools

#

things like framer and webflow are way better

#

and even wordpress is waaaaaay better

wet girder
#

Honestly wordpress is really fucking good if used correctly

#

Afaik Wix is always just bad

barren shale
#

setting up payment and paying yourself $1000 in test mode is fun

#

would recommend

quartz pumice
prisma grail
# quartz pumice

This is literally me with videogame stuff like save files. Video game devs fr gotta start integrating git into their save file systems. xD

tropic dagger
#

That's a screenshot from my file explorer give it back

onyx ginkgo
#

I'm trying to find out how to change the 3DS charging port

barren shale
#

hack god's computer and change the source code so your 3ds chargin port is fixed

#

😎 👍

narrow light
onyx ginkgo
#

There is a way to change the port

barren shale
#

probably

#

but this channel is about coding

#

not fixing 3dss

tropic dagger
#

😭 damn that was rude

wet girder
# onyx ginkgo I'm trying to find out how to change the 3DS charging port
wicked spindle
#

Its cooked 😭😭😭

barren shale
#

this chat is now stackoverflow

quartz pumice
#

integrated graphics are so slow a red 480p screen gets only 500 fps

#

😭

#

this is the whoel thing too like..

void kernel pixel(global double *x_,global double *y_,global int *im_width_, global struct rgb *im) {
  int id = (int) get_global_id(0);
  im[id].r = 50;
}```
barren shale
#

probably bottlenecked

#

its not like its using 100%

barren shale
#

when you cant debug on local so you have to keep pushing debugging and changing shit

prisma grail
barren shale
#

the best kind of foxes

wet girder
#

bog fox

onyx ginkgo
wet girder
onyx ginkgo
surreal garnet
#

hey guys

#

I am doing a programming project at my university and I need to do a survey, it has to do with worldbuilding so it won't be very strange, would you help me by answering it?

#

h ttps://forms.gle/SLBZUzDF5VS56XtB9

surreal garnet
narrow light
#

But thats just my oppinion

narrow light
narrow light
wet girder
#

Coding is the most annoying part of software development ngl. I've had to deal with idiotic WPF shenanigans for a couple weeks and no end in sight

quartz pumice
#

Lol

#

Yeah I swear, everything Khronos has made could have been a million times simpler

narrow light
#

I want to kill microsoft teams

quartz pumice
#

It fucking opens every time I open computer

#

Wth was that

narrow light
#

I mean its new reading assignement feature Is shit

#

I spent 10 minutes on a word

#

Because it said I was reading wrong

static solar
#

Isn‘t that incredibly old?

#

I thought it‘s usage is getting faded out

static solar
narrow light
#

Im master coder nekcrop

#

And my ways are defenitely coding

#

And im very good at it

quartz pumice
wet girder
static solar
wet girder
#

Nope, Avalonia makes it cross platform tho

static solar
#

Avalonia is poorly documented, though

#

Although the XAML is very similar to WPF XAML

#

So I guess experience carries over

barren shale
#

not really when you using good languages

grand topaz
#

Hey, just a beginner's question

#

Is android studio the most easiest IDE to use?

barren shale
#

as long as you are not using eclipse you are doing good xzibit

grand topaz
#

I use netbeans for back end in web dev

#

Or vs

#

Eclipse is so meh

narrow light
#

very good colour

distant wraith
#

Gemma is a damn joke

#

They fed it too much stupid juice

#

Even if that's true, at least I'd expect it to tell me why in more detail. It's almost like it's making fun of me for being curious

low relic
#

Hey coders

#

What is "win32: harhar miner"

next lotus
#

thats from an antivirus

#

you just had a bitcoin miner

empty moon
#

Congratulations 🎉👏 a Bitcoin miner

wet girder
#

I have a love hate relationship with git. I could not live without it, makes version control so convenient but at the same time it can be the most frustrating thing ever when you gotta do something more complex (I might just suck at using it)

quartz pumice
#

Lol

barren shale
#

everyone was like GC or no GC until rust came and made ownership & borrowing which is as fast as no GC but as memory safe as GC

#

programming language design is always the same shit too

#

most languages look the same

half hedge
static solar
#

Just realised the C: drive looks like an emoticon and I cannot unsee it now qwq

prisma grail
static solar
prisma grail
static solar
#

Yeah don't know anything about Mac

prisma grail
barren shale
#

Mac🤮s