#⌨coders-cave
1 messages · Page 29 of 1
itsj ust frontend js code so its not that huge and it doesnt really link to each other that much
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.
i guess that's why people managed to do it without quitting after a couple of days
TS is not for stooopids
its for big brain smort people like me

I'm not stupid, JS is. I'm just too good at JS to use it properly. 
Literally me
sounds like something stooopid would say
Fair. (Please don't ask me how the backend for my API for my WorldBox mod is written.)
i hope its ts or C#
Writing TS is more fun than writing C#
its less efficient though
You think that a stupid person could write stuff like bug free TicTacToe in one line of code?
JS.
🤮
(Must be why I have never touched it since I got it to work as I want.
)
Oh, and also, said backend is therefore also responsible for powering mod upload logic in the replacement WorldBox modloader for NCMS (NML). 
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. 
JS is not known for its stability 
To be fair, the only time where it has caused issues so far was when I literally killed it on accident.
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.
are you at least using pm2
I am running an express server with nodeJS.
are you running it on a VPS?
or some sort of PaaS
Oh, oh, yeah. What does that have to do with anything though? xD
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
Ah, that actually looks nice. I had no idea that that exists tbh.
but i guess that's not very helpful if you dont have lots of traffic
Yeah, but alone the other thing you said sounds like. I'd like to know why schools have a tendency to fail to mention that stuff like this exists.
because they dont
know
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. 
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.
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)).
oof
Also, how is the string concatenation of all things what stands out to you in this coee? 
wanna test something cool
strings are long so i looked at them
Fair, the error messages I'm writing are borderline essays. xD
Sure, what?
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
This link still says that I need access to some team to view it.
oh yeah
i fixed it
reload
focusing on the smoothness of the survey building
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
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
You're welcome!
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. 
I'm watching TV
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
What did you type 👽
That’s it????
I guess
The future is now, old man
Watch cody do if (condition == false).
Ok, so wanna refactor the hundreds of thousands of lines of C++ company code across all different projects to use if (condition ain't true) for me? 
Progress requires sacrifice
I wanted to, but my IDE provider bust into my door and kidnapped my family after level 30 because they are haters 😔
Yup, exactly what I'm talking about. IwI
the more redundant one
:)
Also don't call your variable isThereWar
Call it warStatus or something

That sounds like an enum, not a bool. 
Literally why would you need an enum to store whether or not there's a war? IwI
isWarOn
because you can probably add more states to it
idk ive programmed a lot
and ive never used there in a variable name
it sounds wrong
But, like, if you literally just want to know if any war is ongoing at all, you're just overcomplicating by having an enum, I'm quite sure.
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
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.
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
yeah initial name not for a boolean
I'm relatively sure btw that this is in the context of WorldBox modding, so the bool is literally just there so that DiplomacyManager.wars.Length > 0 (or whatever the exact names were, I honestly forgot because I've been doing too much AMP) only needs to be checked once, so if you want more exact war data, might as well just reuse whatever data structures the game uses..
Ok, good that we can agree on that. 
in the case of many values you'd use any
anyWars
if anyWars is true then there is a war
Ah, yeah, that's actually a nice name.
I mean you shouldn't use .Length > 0 you should use .Any()
(Personally, I'd add a has at the beginning because I prefer it when my bools start with verbs.)
but idk if that exists in .net framework
has works too in the case of many
it depends on the word after 
It does, I just forgot about it. 
i just select the one that sounds noicer
It's the sort of thing where I write the wrong thing.
My IDE complains about it.
I apply the quick fix.
rider be like 
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 
How does Rider know so much about C# collections and I so little when I'm literally a huge LINQ addict?
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
For how long have you been working on SB2?
closing on 2 years now
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
I don't even know what to say at this point.
You need to create a character first. Use _start
Well, apart from the fact that I'm gonna kill you if SB2 does this too. 
slashcommands 
not much tbh
this is how many classes 
~650 classes
I genuinely can't even be bothered to start some stereotypical argument about why I prefer oold school commands rn.
You need to create a character first. Use _start
oop 
slashcommands use interactions which gives me more requests to discord api
What does it say for maintainability index?
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
Ngl, a lot better than what I've got going on in mods I either own or help to develop. 
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 
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
I literally off the top of my head can't think of a single occassion where I was coding and conciously thought "Ah, I'm using this design pattern right now!". 
read this then
and try to apply some to an already built codebase
For doing that with AMP, I've got a shell script coded that does it. xD
i havent worked on sb 2 in a while i forgot where i was at with the code
this code base is too huge 
oo noice
Oh wait I literally saw the word "Singleton" and remebered that I have several of those. I think a part of this might not only be me being bad at coding but also e having a garbage memory. 
TwT
Trust me, I do know some design patterns and can think of many examples of using them outside of my WorldBox mods. xD
mhmm mhmm 
My code standards just magically drop into the floor when I'm working on personal projects. 
The GitHub flex
I wish GitHub users would just stop proving their superiority
so much better
wait
_I
You need to create a character first. Use _start
ohhhh
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 ||?
Who are you?
Nothing selected
Bro just answer my question
Idk
Language of gods
|| Thats why humans shoulnd't use it ||
Idk what is that

It's a thing that's required for applying jobs about programming like being full stack dev and others
i heard that colleges are overrated in the first place
I cant decide what the hell should I do in college
My parents is Asian after all.
oh you are already in college, go for a CS degree (not even a question)
Alright, I still have 5 years left till I go college actually
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.
Review please
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
_My cries towards admins to get its viewing perms removed have been ignored, it seems.
_
Still better than me in my WorldBox mods repo. xD
Computer Science
Understood
Have you ever wrote comments in your code that slowly go insane
Because you yourself go insane and the comments reflect that
🥴
Example:
// This code does x
Later
// THIS CODE IS DOING SOMETHING GREAT, IT‘S DOING X
Never had that
I never seriously wrote any comments in my actual projects
They're such a waste of time
Always do it
Unless I write something so ugly I do it as a failsave, in case I can‘t comprehend it later
The closest thing I do is docstring
You mean summary thing?
Maybe?
def func():
"""Doc stuff
"""
Oh yeah
Heard about that
Comments inside method is not, but method itself should be
My opinion
I completely forgor
Commenting almost each method
Yeah
Yes i guess
This is how it looks on c#
In visual studio you just type ///, and it generates this by itself
Looks even more painful
Nah
You can ignore param and returns and keep only summary section (just description)
And it even have formatting for highlight and other stuff
Never really used that feature for my small console apps
I guess it is useless for small console apps
Yeah but ig I can add them as practice anyways
atleast you did the stuff
alot of stuff
mainly just stuff
stuff has been done
not really
C# one is really nice
compared to the python one
Totally unbiased take
Why is the little guy thinking and not speaking
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/>
Why is my code not working?<htpl>
<set name="a">Hello world!<set/>
<log data="$a"/>
<htpl/>
Bruh Moment
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
fullstack is best 😎
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
this hurts my head
How many hours should I spend on coding?
Until you get what you want or give up. That's how I do it
2
I could barely spend 2 hours straight coding. But I do spend like over 1+ hour morning, afternoon and at night
5 hours
26 hours a week at least
Final moments before disaster
When I start coding I do it for hours on end for some reason
My stats from last week are straight up depressing tbh. 
Happens to me easily too when I get invested into whatever system I'm coding or something like that, I interpret it as proof that coding is what I'm meant for. 
(Note that the Python stats are lower than they should be because I usually code Python in nvim, but I don't have Wakatime extensions installed in nvim, so the stat is only tracking the Python coding I did in Pycharm.)
#⌨coders-cave message elaborates on that criticism, I'd say. 
nvim user 🤮
Ok, so you know the ongoing event on this server? The "Race to the depths of the sea" one?
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.
look at this cool ascii implementation of ray marching
so you've spent 7 hours writing down json

Pretty nice colors, that different font is slightly infuriating to me though. 
yeah font kidna suck
Dang, firstly whenever I make some project I put my ideas to some to do list and each line I do them on scheduled
@prisma grail hiii
slowed me down too much
Hi!
i also spent too much time making vscode look beautiful 
hola
can i have The coin
Wat dat, ik it's react but what yoh making
speciesbox
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%. 
speciesbox has coins?
Oh god, why vscode? 
tgat collection shit
because its good enough
and doesnt shit on your laptop's battery
Data stealing
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.)
Right, sorry, forgot that Windows users gotta worry about battery life on laptops. :P
I should convert my school laptop to Linux
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
Rider is like 8 seconds max
sure on your 3 files project
not on speciesbox 2 codebase 
Oh true
it takes me like 40 secs before i can start coding on speciesbox codebase
Just use fewer files :P
sounds like a scam
Idk, it's only like half than that on my KeyMods project, and I think you saw that that also contains quite a lot of lines.

stuff
You sure like to do stuff in commits.
i do lots of stuff
Best commit 2024?
here's the top 8 commits of 2024
this is a speciesbox commit
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?
1500 changes
i dont use vscode for C#
rider for C#
He clearly likes stuff.
vscode for typescript
Ah, ok, you had me jumpscared for a sec because you drew that comparison. xD
You had me worried
Was about to call a mental health emergency hotline already. 
I did that when I made the switch to Linux
i mean it is viable for low battery situations
especially on big projects
you wont get the best intellisense though
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
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
wat
There is a port for it, but it lacks most addons
vscode is
vscode runs on anything
its written in javascript
it runs on chromium
Perhaps I was just stupid, I will look at my setup when I am home
But I‘m heading to my internship rn
its built with electron
You sure that you're not talking about Visual Studio? 
yeah you are probably talking about visual studio
which doesnt have a linux version
or a mac version
I‘ll look into it
rip vs for mac 
And not even a mac version anymore because everyone hated it so much. 
Yup, it'll be missed by everyone except for C# coders with a brain. 
Bye!
yeah they dropped it and made the vscode extension better
Tbh, unless literally every WorldBox modder in existence is screwing up the setup of C# extensions, I can't imagine it to be that good.
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.
you can use the cli to create a solution ig
Well, yeah, but you think that the average WorldBox modder still using NCMS can do that? 
damn you guys are that stoooopid?
I could rant about the coding competence, or lack thereof, of the average NCMS using modder for days on end. IwI
You'd hate yourself for saying this if you did use it. 
Agreed
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();
}
}

What is wrong with NCSM?
For starters, one of it's features is a on runtime dynamically generated Mod object that is impossible to detect by IDEs.
Im guessing there are two user and two atm variables if c# allows that
and this is about the worst way you could mess up naming variables
Damn
Annoying
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
The idea was to reduce modding entry threshold, because the part where you need to install the ide and create a solution is really threshold for many possible modders, so thats why it was planned to make it work trough vscode and notepads, but yes, it could be better to make it work as vs solution too
That virtual mod class was bad idea
Well, yeah, but the only things that's really required to allow those sorts of people to code is to just do the compile step for them.
I was experimenting with new things for me and didn't thought about usability for people who knows how to work with code correctly
I meant my view on it was fogged with one way of usage
I mean, I do have to say that the thought of just manipulating code like that during compilation is fun.
For the dev coding it, that is.
Ye
I even named it for error as HIDDEN_THING_YOU_CANNOT_FIND_IT.cs
I did have quite a good laugh when seeing this is NCMS source code, to be fair. xD
(I once looked into NCMS mod compilation pretty closely because I wanted to try Harmony patching it to be multi threaded.)
Is it possible?
I couldn't get it to work because of the mods window stuff.
Running constructors for GameObjects outside of the main thread makes Unity throw an exception.
i mean just for harmony, not ncms related
Wait, aren't unity's GameObjects shouldn't have constructors?
Well, yeah, generally, it's possible to change code to use multithreading with Harmony, though it often requires code changes so extreme that you'd probably end up doing it with a prefix that skips the original.
I wasn't calling the constructor directly, of course.
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.
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
Aren't async and multithreading very different things?
iirc
Yeah, I also recall Hamza haven't said before that async code works fine without needing to be thread safe.
Hmm, i always understood that concept incorrectly
Ah, I see. Nice that I was able to help clear that up!
Never worked with threads, i thought its just more powerful way for async, and that async is a paralleling
Ah. I use threads a lot, never really used async before until Python forced me a week ago.
Even when I coded the networking in KeyGUI, I did it synchronously in a separate thread.
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
async is threads but in python instead of the os

tf is that supposed to mean
He meant that async is a thread, but virtually, inside execution environment, while just threads are on cpu
Ah
which is still wrong
threads in programming do not run on different physical threads
What
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
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).
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
No, i understand that it is not same as physical threads, but i thought it is still cpu management
well the OS should run it on the physical thread with the least usage
which can be the same physical thread
first time I don't see the messiest code ever in this channel
Nah I already fixed it, my dumbass brain was not braining
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 password
async is another label/goto confirmed
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;
}```

reached my weekly replit AI quota who will tolerate my shitty javascript questions now 
chatgpt?
also dont use javascript
I only know Javascript and a little python, and was coding a discord bot
learn typescript
very similar
way better
i can teach you for the low price of $20/hr
Can typescript be used for discord bots? If so epic
typescript is javascript but with types
Interesting
let i = 10;
console.log(i);
Anyway never made an account
Where colors go :(
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
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;
}
Cool cool
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
I like it
Anyway yeah never made an openai account, I would but the fact it asks for my phone number is ridiculous
Not gotten a single spam call on my 3+ year phone number i intend to keep it that way
i dont think signing up to websites like this gets you spam calls
signing up to
websites gets you spam calls
but companies like openai will get sued if they share your number without you letting them
If openai was still a non profit I would give it
if openai was still a non profit you wouldnt be able to sign to chatgpt since it wouldnt exist 
Pretty much, I could see them charging for api calls but not the subscription bs
Anyway it's pretty late for me gn all
Mhh, still not that messy
Ok, nevermind
typescript will require extra boilerplate but great for keeping every value type consistent
a
i wouldnt call it boilerplate
typescript saves you a lot of time when you have more than 5 files 
javascript is hell when there's a lot of files
especially if you are working on someone else's code
true true
Used my phone number for ridicilous shit
never gotten a single spam call
I think it aint about the number I think its just a grudge against openai
Does bro actually think that openai are going to sell his number
wait this isn't general
mb
Should I learn xaml or gui
All we need is guns and God
Sunday school is Christian daycare I think 💀
XAML is used for windows UI development. Especially native
Yeah I know
I’ve used it
I didn’t like it 
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
Watch the stream here:
https://piratesoftware.live
#Shorts #Twitch #Programming
Ruff is stealing Black's job
Why do java devs wear glasses?
Because they cant C#.
ahah 😐
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
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
To each their own opinion
:(
Gambling is kinda lame tbh
Like
Get a life
Living is kinda lame tbh
LOL!!
Without coding you wouldn’t be able to go on discord
Without skiing you would be able to go on discord
Coding > skiing
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
you come into my house, antagonize me without provocation and call me lame
Honestly, hes just tryna do rage bait
I know 💀
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💀
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
L im trying to make portfolio as a practice and this is the result
Not done yet tho
I forger what words should I put inside the web
So far the only frustration I get from css is not remembering wtf does class i made does and not remembering stuff
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
That just test and practice
Is being full stack developer fun?
I want to create an world box mod with 10000x speed
Create it then
i have to learn to program first
Umm... no
good luck 💀
It will go about as fast as it would at 100x speed
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
Don't worry, I have Mappa workers
Just found out you can do commits to the past so you can keep github streak even if you missed
in JS?
Yah
This Ig. When I did a course in web development I was told to just not use var
But also tbh to watch skiing u need coding
i mean it is good to know but you still should just not use var
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 
backwards compatiability
var was made first
and it sucked
let was added relatively recently
but they cant change it
yeah im talking about the bad design of var 
this be weird tho ig
I suppose
Clyde
thats clyde 👽
i hate javascript but whenever I try another language I just end up back at js and its all I know someone help 
Literally me and Python
So uh
How do I make a site people will want to use
How do I advertise
And how do I set up Adsense
not that they want to use, but that they need to use
Right, but needing something leads to wanting
promote it on the dark web or smth
always works
Stop cooking @opaque ingot
I somehow don't wanna learn js because of how much hours I need to watch from tutorials
I don't think I've watched a single tutorial, just the grace of stackoverflow and documentation
But I started about 4 years ago and I still have no idea what a library is
I should have taken your warnings more seriously
Lol
Bro you must have witnessed that term atleast once on stack overflow 😭
Noone wants to learn js and noone wants anything to do with js
Thats just how js is
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
I’m aware, made my own gravity and jumping system
and collisions
Barebones atm but does the job
Yeah, working on it, I’m just using inbuilt physics for my placeholder
This is literally just a square on a cube, proof of concept
inbuilt collisions are very inaccurate on 2d for some reason
characters always go in the ground a bit
which fucks up movement
anything with gravity too does that
NCMS not working
As a practicing modeler I am a spy from far away lands to spy on you coders and scripters
Why?
too problematic
i too code sometimes
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
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
Ok thank you
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
MORE FUCKING POWERPOINTS
Almost lost my damn mind trying to figure out why Tailwind font weight doesn't work on buttons 
Turns out I forgot to rebuild it
thats because it is
I swear most of opencl should be under some abstraction
its so feature rich everything is fucking difficult to use
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
hi, i want to import my python file, but only 1 python file work, why??
Bc python for crabs
Use binary code, crab
This is better
Then your craby python
Elaborate
Super mega real, absolutely based takes
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 💀
C by far
🥚 Putting it in the fridge
@vagrant aurora
very poggly designed language https://gleam.run
overflows and divide by zero dont cause errors is debatable
but everything else is very pog
It sure seems nice based on what the main page is saying, though syntax looks a bit funky with stuff like <> and |>.
its erlang syntax
Tbh, I barely know anything at all about what that is.
<> 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
_Omg they made literally everything read like LINQ.
_
By the time you render something meaningful in opengl you could learn how to initialize vulkan
And get 27 headaches a day
Just saying
Ngl
Looks absolutely fucking sick
No thanks 💀
Better one
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
noice
poggar
Using the same in my game
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
based godot user detected
You handle shit correctly on the spot
Instead of nulling and handling the null value later
I like to use nulls
Yeah but nulls cause exceptions
These languages wanna force you to handle everything so crashes become rare
I see that c# goes by same way, at least more and more ide warns (which is just disabled)
I would be fine with not having null if there was none 🤣
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
Why would you use wix
Tech teacher made me
Me and the indian dude begged for html
You have a bad tech teacher
The teacher ignored our begging
Im in the 8th grade so idk
Might just be it would be useless for the others
But why must I be forsaken with this
My 8th and 9th grade tech teacher taught me html, css and python
yeah the portuguese school system wants me to fail
why tech teacher why
We spent most of 7th grade on excel
It was
Hurting of my soul
In 8th grade we were learning how to use a fucking browser
But you know the material in the rest of the classes was 4 years ahead of the american schools
Gotta love modern education
"allright guys, let me show you this powerpoint on how to use chrome, which youve been using since probably before you could talk"
wix should either die or upgrade their tools
things like framer and webflow are way better
and even wordpress is waaaaaay better
Honestly wordpress is really fucking good if used correctly
Afaik Wix is always just bad
This is literally me with videogame stuff like save files. Video game devs fr gotta start integrating git into their save file systems. xD
The bottom one is literally me
That's a screenshot from my file explorer give it back
I'm trying to find out how to change the 3DS charging port
hack god's computer and change the source code so your 3ds chargin port is fixed
😎 👍
bro took changing the source code personally
No, seriously
There is a way to change the port
😭 damn that was rude
Kizul Emeraldfire , nothing is ever really easy:) take a look at this guide. Right around step 7 and 8 do you see the port clearly. It is soldered unto the logic board. So if you are pretty good with soldering small components onto a board, it should be a straight forward repair. The part is... - Nintendo 3DS
Yeah my 3DS makes a popping sound and the screen flashes for a second
Its cooked 😭😭😭
you are not allowed to google for people
this chat is now stackoverflow
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;
}```
when you cant debug on local so you have to keep pushing debugging and changing shit
Ah yes, I love me some bog foxes. xD
the best kind of foxes
I want to replace the port with a USB C
One of those 3DS consoles I picked up a while back had a faulty charge port. It worked intermittently and the console would charge fine otherwise so instead of spending $0.75 on the proper replacement part, I figured it would be more fun to see if I could make it functionally better.
TL;DW: Solder the USB port to the PCB, desolder the original...
I want to replace the port with a USB C
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
No.
okey :,C
Unfortunately sending an unknown link in a programmer chat isnt gonna yeld a lot of results
But thats just my oppinion
It's a Google forms link
Look man Ive been faking knowing how to program for weeks dont blow my cover
Yes, master coder
Yes fellow coder
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
Lol
Yeah I swear, everything Khronos has made could have been a million times simpler
I want to kill microsoft teams
Oh no not what I mean
I mean its new reading assignement feature Is shit
I spent 10 minutes on a word
Because it said I was reading wrong
WPF?
Isn‘t that incredibly old?
I thought it‘s usage is getting faded out
Teach me your ways, master
wpf: lets use xaml for rendering, should be fast
Well it's not new but it's still the best choice for some UI development on windows
But it’s not cross-platform, right?
Nope, Avalonia makes it cross platform tho
Avalonia is poorly documented, though
Although the XAML is very similar to WPF XAML
So I guess experience carries over
it is when you use things like WPF
not really when you using good languages
as long as you are not using eclipse you are doing good 
I recomend 0,255,255 instead of cyan
very good colour
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
Congratulations 🎉👏 a Bitcoin miner
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)
Lol
its just stupid how we are stuck to these very old standards because no one is brave enough to change
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
wha
I'm Emperor X
Just realised the C: drive looks like an emoticon and I cannot unsee it now qwq
It's good that I don't use Windows. IwI
What are using that your drives are not named??
MacOS?
Fair.
Mac🤮s
