#⌨coders-cave
1 messages · Page 53 of 1
you really don't like to settle, huh?
Yes
I will finish something and then rewrite it because I don't like the language I wrote it in
Plus everything I think is situational in terms of time, meaning that today I may have a shit ton of work and say I will stop coding for this year and the next day be completely free and decide to start learning 3 languages at once
But rust has been on my radar for....well ever since I first started learning about coding so it's gonna be something that keeps me awake at night if I don't lol
Anyway, it's hard af for what Im reading
I'd like to settle to learning opengl and c++ for a while but someone needs to upkeep amp
I'm debating between focusing on OpenGL or DirectX over the summer.
I'm gonna focus on mainly windows and C++ early on.
🐔🥜🥩👖🌭🥊
chicken, peanut, meat, pants, hotdog, boxing glove
i use opengl
Imagine having to use locks
And shit like that
Instead of just using a high level language
Cant relate

dude
high level still needs locks
so you dont fuck up your files
race condition exists you know 
good answer 
its usually the case for async
but sometimes file operation are heavy
like yo mama
(first time made yo mama joke)
sometimes you just have to use a thread

Damn that's good for a first time.
thanks 
@barren shale translator pog
😳
Pog
Someone gotta fix the translations
coder man is now translator man
nice
today gentleman
i forgot something important
forgot about something called an event
shit i was working on my crap with arbitrary promises knowing some helpers exists

and now i finally fixed it
yay to myself
knowing that nobody will be impressed not even my parents will appreciate it 
still yay to me wooo
I just did something cool to @bitter sedge that's coming soon to this server 
nice
just found the worst programming language to be created
Malbolge () is a public domain esoteric programming language invented by Ben Olmstead in 1998, named after the eighth circle of hell in Dante's Inferno, the Malebolge. It was specifically designed to be almost impossible to use, via a counter-intuitive 'crazy operation', base-three arithmetic, and self-altering code. It builds on the difficulty ...
Why do bugs occur
because either the code written sucks and isnt bug proof
or
the code itself makes an error
you know what i must say
i was a bit...to harsh on unity
so i might try it again
this has nothing to do with the fact that openGL is hard af
just wanted to clarify that
if it doesn't occur its not bug
the most hated bugs is an internal error from a lib
same
Buy a Raspberry Pi and get going.
I have a pc
Getting it fix and my exams are in 5 days
I don't have time to go get it when it gets fixed
And i never found a raspberry pi in syria
Searched everywhere
Importing would be the only option then, but it's probably best to wait until after the exams.
Good luck with those.
spent an hour finding why one of my function is blocking forever
turns out i forgot to resolve the promise that the function is awaiting
Its ok
Ive spent days on bugs that were 1 character away from being right

Like the time u had x++ instead of y++ in the loop
same, many times
between 1 character and 1 whole line, its usually frustratingly simple
im still not quite sure if my blackjack AI plays properly with aces, and its just 1 line to change
been like a week now
i keep swapping 1/11 and checking how it behaves
my editor is crap
Ace count as 1
?
counts as both, but the AI needs to know how to use it correctly since it can be both
yes, basically when the AI has a card value of 10 or below, the ace counts as 1
or i think

thats where i start getting confused lmao
when the ai needs to use it as 1 and when it swaps over to 11
which happens mid round
Just use math
the worst part of code
Calculqte the probability of all cards
😢
that sounds like a backwards way
i just need to figure out how/when to use 1 vs 11
and then the AI is pretty much finished lol
i havent noticed other problems
Does it always play the best move
blackjack is hella simple
theres not a lot of options lol
"do i want another card or to stand/hold these"
so i think it plays perfectly
aside from the damn aces
Just an if statement dude
If biggestcard > 10 then 1
Else 11

Wait
What if theres two aces

Is that 2 or 22
i want to say aces are 11 as long the dealer is below 10
at or below 10
that way he goes to 21 or below
after that aces are small to be managable

okay
Already made perfect tic tac toe ai
And good ConnectFour AI
Because it takes like 5 hours to solve and im not gonna run my laptop for 5 hours
blackjack seems similar difficulty to those i think
maybe a bit easier since its basic math rather than combinations
why does that matter
the value of cards should matter for sure but why the number of them
You have to check for every card that you can possibly get
what
no
you pull random cards from a deck and add them up
theres no need to check the whole deck
thats the point
I know
Thats why you can't play it perfectly
You can pla your best
But its still gambling
To play your best
You have to check every possiblity
And choose the best
Yea
i understand now
i would not want to code a way to visualize this
oof
This is using your brain
I think its called counting
But a computer is much faster thanyour brain
At bruteforce
this is telling you all the different if statements youll need for perfect ai
not fun
What is the best gadget to use for coding
comfortable keyboard
Oh lol
Dont dump the mouse
sometimes mouse is a nuisance
Than windows keyboard
true
you just have to get the
comfortable setup
for development just comfortable gadget
if you can get 2 monitor
one for code one for stack overflow
and decent pc
for production
get THE BEST CPU AND RAM
or you'll die with memory overflow
Depends on what ur doing
true
i died at the startup of ml
turns out my biggest fear is there
math
I have 2 Intel Xeon 5570s, 20GB of ddr3 ram. it's amazing for programming 
im using my mom laptop for programming
which is slow when opening firefox and vscode at the same time
Best for programming is a Linux distro and an editor like vim (or at least with vim bindings)
Id rather be more comfortable than more efficient
Thats why i never use things like vim
Ive tried it and started to get the hang of it
But never liked it
i like vim
for me its because i can't install linux because its not my laptop
this is me everytime ```js
let bad_songs = {};
for(music of musics) {
if(remembering_bad_memories && music.is_playing()) {
bad_musics[music] = bad_memory
};
};
lol
It is more convenient in many ways compared to Windows and doesn't force bloat onto you. The terminal is very useful once you got the hang of it and you can use whatever UI you want (or none at all).
Ive used both
I prefer windows
Probably cuz i play games a lot
Btw windows updates are not necessary if you know how to disable them
I only update when there are security updates
hi, who can help me with a python?
How can I make a bot ping a certain user?
I know this one-message.author.mention
but this is completely different
basically
discord.User.mention
also discord.User is your user object
@robust sand
thanks ❤️
np
if you wanna use specific user you have to get the the user
use Client.get_user(id)
if you also want info about the user, fetch the user. Getting user is pretty limited
basically cached or http
i personally cache my objects
since intents is a thing now and very enforced, caching have never been a bit complicated
also what other info would benefit more from fetch_user than get_user

last time i used get_user it gave me basically no info and I needed like creation dates and shit
why did I just watch this video
In this video we will take an in depth look at the fast inverse square root and see where the mysterious number 0x5f3759df comes from. This algorithm became famous after id Software open sourced the engine for Quake III. On the way we will also learn about floating point numbers and newton's method.
0:00 Introduction
1:23 Why Care?
3:21 The Cod...
just why
Sure I'm making a game engine but I didn't want to break my brains with this sort of math yet
yet I just did
Seems kinda useful 
Instead of calculating the distance to determine who is first, second, third
They just did (x1-x2)^2 + (y1-y2)^2
Without the square root
Since you dont need the distance you just need to rank the distances
fascinating
Notice how he uses * 0.5 instead of / 2
Because division is slower than multiplication
Rooting slower than squaring
I cant type 
This will also save a couple of micro seconds
Board based games AIs like stockfish for chess
Represent the board in bytes
And use bitwise and shit like that
Because its faster
you never know if you'll program something for old micro processors when this is useful
Things get really complex when you go for the fastest
Something like stockfish which is basically bruteforcing millions of moves
Ifs useful for it
But ur calculator app that looks like shit wont benefit from it

Sure it is
I have all of my projects on a harddrive somewhere
Since 2015
My first C# app

Warning: shitcode
I don't have lots of projects worth saving or well I have one, amp
I dont think ive ever deleted a project
Its like 100 gbs

I think i have a calculator app somewhere there
I have like 10 shitty python calculators and all deleted
well the last one was actually decent
I really do yes
Well I'm starting to work more on different projects than calculators
now that I'm shifting away from python
python feels just boring
well not really, it's good for scripting but I don't want to make scripts
Nothing data structure related
Ye
I like the syntax but c/c++ fits my needs better
lol
sounds like an annoying problem lol
Im bad at making NNs from scratch
I need tensorflow
Which is python
Or u get the bad C# binding

lol
My friend tried to make me learn C# instead of python but to this day I don't really know the use of it
The use of what
C#
Probably the best way to make windows applications
And ASP.net is pretty good for web dev
So just windows apps basically
Yes thats its best use
Web dev is good
Probably not best
And they are going to add stuff for ML
I wont get nans any more

Nice
not special
you got a free trial with a limited amount of tokens
will expire on september 1
Congrats
dude
get_user() -> discord.User
fetch_user() -> Coroutine[None, None, discord.User]
its the same
creation date is just
.created_at
for most objects
no no its basically for every object
then I guess I fucked up something
indeed sire
well atleast it worked when I fetched ao good enough
try fetching dozens of user every time and see what http code you get
Sounds like a very unusual configuration of ram sticks.
Yea xd
2x8 and 1x4 ?
I have 3 slots left I think
don't have ddr3 ram
Which CPU(s)?
2x Intel Xeon 5770 (or something close yo this number)
Yeah, odd setup, but pretty cool.
that's why I bought it lol
and it was also cheap
some guy who knew nothing about computers sold this for pretty cheap in Finlands Ebay and I was looking for cheap pcs
My FirePro S10000 would fit right in, in terms of oddity. :P
But last released drivers are for Windows 8, so probably some trouble to get it to work.
i have create a key and value database that's so heavy its slower than normal file operation

A crime against humanity.
sortof weird
usually this chat is alive
but today
not much messages
i wonder if other people are having existential crisis
Or maybe they're just busy with work, university, school or whatever else.
I'm busy the whoke day atleast
fair
Yes they are.
I'm also very sleep deprived so thinking isn't working too good
everyone do be making ancient artifacts
and here iam
just writing and reading to a file
as a server
<incident id="rep_nobike" properties="type+=crime; popularity=1; visibility=1; stage=1; avoidPolice=0; solvableBySpeedCamera=True;" >
<scene id="nobike" background="HouseBackground" properties="timeToReact=600;">
<suspect id="biker" properties="aggressiveness=0.1; weapon=e_fist; prison=1; isActive=1; spawnArea=inside;" actionOnIgnore="opinionOnSuccess+=2; opinionOnIgnore+=-2;" actionOnEnd="opinionOnSuccess+=2;"/>
</scene>```
quick patch is always fun
just added 2 new incidents at my incident pack for 112 operator mod
only took 8 mins :D
it's xml
since it's game's mod,
yup nope
fair
Well
<incident id="rep_nobike" properties="type+=crime; popularity=1; visibility=1; stage=1; avoidPolice=1; solvableBySpeedCamera=False;" >
<scene id="nobike" background="HouseBackground" properties="timeToReact=600;">
<suspect id="biker" properties="aggressiveness=0.1; weapon=e_fist; prison=1; isActive=1; spawnArea=inside;" actionOnIgnore="opinionOnSuccess+=2; opinionOnIgnore+=-2;" actionOnEnd="opinionOnSuccess+=2;"/>
</scene>
</incident>
<incident id="rep_rnbike" properties="type+=crime; popularity=1; visibility=1; stage=1; avoidPolice=1; solvableBySpeedCamera=False;" >
<scene id="rnbike" background="HouseBackground" properties="timeToReact=600;">
<suspect id="biker" properties="aggressiveness=0.1; weapon=e_fist; prison=1; isActive=1; spawnArea=inside;" actionOnIgnore="opinionOnSuccess+=2; opinionOnIgnore+=-2;" actionOnEnd="opinionOnSuccess+=2;"/>
</scene>
</incident>```
You'll wonder why it took 8 mins
since it's just Copy and Paste
this is why
you also have to translate it XD
"incident.rep_nobike.description": "a Biker driving Prime mover without having License.",
"incident.rep_nobike.kama": "Biker",
"incident.rep_rnbike.rep_rnbike": "Prime mover in sidewalk",
"incident.rep_rnbike.description": "a Biker driving Prime mover at Sidewalk.",
"incident.rep_rnbike.kama": "Biker",```
and
``` "incident.rep_nobike.rep_nobike": "원동기 면허 미소지",
"incident.rep_nobike.description": "면허를 소지하지 않은채로 원동기를 운전하고 있습니다. 즉시 처단해야 합니다.",
"incident.rep_nobike.kama": "바이커",
"incident.rep_rnbike.rep_rnbike": "원동기 인도주행",
"incident.rep_rnbike.description": "원동기를 인도에서 주행하고 있습니다. 즉시 처단해야 합니다.",
"incident.rep_rnbike.kama": "바이커",```
hope it won't touched Rule just beacuse I spoke KOREAN in here
seems hard to me 
since mobile suck
i found what i thought a good text editor
later to found out its very buggy
yes
imagine writing ```js
var
and then realized you have to use `let` or you will fuck everything up
then you delete the var
then when you type again
let l
this happened
i can basically frick my whole code
with just a few backspace
like when 3 lines suddenly merged into one line
oh crap i left the port open
i hope nobody will attack my wifi 
XDD
Wtf is rdr3
Some noob shit i bet
And why u sad
red dead redemption 3

Whats rdr2
Very rude
Has anyone here seen Edwino’s post in game suggestions
I(and Edwino) want to know how hard that would be to code into the game
a lot of it is relatively easy as individual tasks/features
putting it all into one cohesive mod and maintaining it is a big task though
and theres bound to be problems/bugs along the way, for example "Use of inter-species buildings, come on, i dont see a harm in a human living in the skull building of the orcs."
this is something i experimented with before but more along the lines of inter-species cities, there were weird bugs
i wish there was a crossbreed
Ok
today i shall make nothing
fix one bug on the project and spend whole day gamin
nice
swag
I fix computer by smashing it
And it fixes game too
You should try
Alt f4 works too
thats literally the emergency exit irl
imagine the building stopped working
and everything broke
i mean
You have your own language bro
if your program freezes
you fix it by pressing alt+f4
in real life scenario it's like
the building electricity stopped working
and everyone have to go through the exit
or emergency exit
or both
I remember i was playing Minecraft when I was like 11 and program freezed so i just spammed my keyboard lol
same lol
my mom used to tell me
if you train hard enough you can do it
but my pc broke when i train it
i tried to open dozens of chrome tabs to build strength to open minecraft
it crashes alot and actually broke it
me very smort
shit i gotta stay overnight improving and fixing my program lol it's due tomorrow😂
≠
It's more human readable and it's a flex.
Hi
101010010101001010101001010101010101010101001010101010010101010101010100101101010101
what?
its the coders cave
what?
NO BINARY?
idk its to much
github pro
mongodb $200 credit
digital ocean 100$
.me domains
.codes domains
canva pro 1year
@barren shale here https://education.github.com/pack
the benefit
Yea i saw it
You have to be in highschool at least
Hmm, if I go to programming vocational school could I get that 
It says highschool
To qualify for student benefits, you must:
Be currently enrolled in a degree or diploma granting course of study such as a high school, secondary school, college, university, homeschool, or similar educational institution.
Have a verifiable school-issued email address or upload documents that prove your current student status.
Have a GitHub user account.
Be at least 13 years old.
Idk if whatever that is youre talking about count
Highschool...

gotta remember to try to get in next semester
In syria yes
You get a baccalaureate degree
My baccalaureate exams are in 2 days

Entering colleges is dependent on how well you do in these
230+/240 for med school
I need 228-230 to get to computer science college
You can only get 2 baccalaureate degrees
So basically you have 2 tries to get the grades you want

This reminds me that I have physics to study
Ty
lol
When the hardest physics exam you will probably ever do is one day before your birthday
Sad moment indeed

Hi
Hello
Haydot
Reading from the learning openGL book is hard
Help with physics exam
Because I have to translate c++
Ok
So
When gravity is applied
Things tend to go down
Not that physics
Hermonic escilators
Electricity
Magnets
Electrons and photons
Uhhhhh
That physics
Electricity is uhm
idk about that
although what i know is electron and photons
magnets are made of metal charged with electricity i guess
Not all magnets are
To make a magnet you need a magnetic field
A strong one
Magnet fields can be produced from electricity or magnets
Best way to produce a magnetic field from electricity is using a coil
But thats the simple stuff
Theres the generator and the engine shit too
I had those a year ago
ah yes
recursive
update: i finally made the ui works
now it works sortof cool
but the back is messy

Do you know what electrification is ?
Electrification force
not in english atleast
today i uninstalled my linux with gui
its useless since i can just uss my mom's laptop
and the GUI take so much memory
do you know that discord devs small pp
they delete accessor to localstorage every time discord loads
Hi
hi
dont worry we all do
Like makes your pc un usable
been there
probably everyone who likes tinkering with their pc has done that. I've broken my windows installation 3 times and broke gnu once somehow
I've never broken any hardware though which is a plus
One time I broke a ryzen card by using shaders

i beg your pardon?
umm
anyone know c#?
I know tiny bit of C# but Hamza and Haydot know it
i know nothing
Same
I know c#, I play musical instruments.
lmao
lmao
lmao
Nice chain
I do if you want to ask a question
dying noisy
I just remembered i was making a phone
That tells you the market place prices in a game
Just found it on my phone
Totally forgot about it

So How did you guys become coders?
By coding
I just started coding with the help of tutorials
nothing else works really
or well there are other ways but most learn coding that way
doesn't really need to be even easy. Just makes your life easier
To find the language that suits ur need
I mean just dont pick a hard one
Doesnt have to be easy
So Tutorials? You didnt Need to get A Cs Degree?
But if u pick something hard at the start you might get bored
nope
I started coding years ago and am only now going to CS school
Youtube is your best friend
Ah So Do you guys plan on getting a bachellors degree On a tech related subject?
Im doing my final year of highschool exams
Trying to get 230/240 to go to CS college
Im trying 
I am probably gonna get engineering degree on software development
Cause Im In Grade 8 And Planning to become a Computer programmer or a Software engineer Is There any thing i should know?
but I might go to university instead and try to get CS doctorate lol
Just start coding
I am in 9th grade and own and maintain @bitter sedge just for reference what you can do without any kind of school for the topic
Is Python A Good Language to start learning?
I started with it and I can recommend it
What do you want to make
Games
Software
Ai
Random shit
Websites
Idk theres a lot
im planning on maintaining websites
Then JS, maybe html and css too
You can just use JS frameworks too 
Which can be a lot of languages
but yeah html and css
HTML and CSS are the necessary stuff
Do i Need to learn All The languages in coding?
Or do i Just need to learn A Couple of coding languages
There are like hundreds of programming languages
you should first master one then move to others
You should watch this
https://www.youtube.com/watch?v=ysEN5RaKOlA
Learn to code with a free 7-day trial to Team Treehouse:
https://treehouse.7eer.net/c/1296848/228915/3944?subId1=yt-learnwebdev
⌨ Get my mechanical keyboard (Ducky One 2 Horizon) -- https://amzn.to/3kMYDSQ
00:00 Intro
00:50 What is Web Development
01:05 How Websites Work
01:37 Front-End And Back-End
02:43 Code Editor
03:27 Basic Front-End
03:3...
I have summer job next week made by university designed to teach web dev and they told to watch this before next week
Ok ok thanks for the Info
If i want to work for companies or get to a coding school do i need to get an internship?
Do someone have a web recomendattion for React course?
Internships are a scam
you don't need to but ofc it helps
Working for free 
Ive never did a course on anything
Just come up with an idea and try to do it
Stackoverflow and documents will help you
And youtube videos ofc
You will get more experience because you are doing it yourself
And its free
Youtube videos are confusing sometimes
I don't even know how to start with React
This is the first app i made with flutter
From 0 experience
In flutter and dart
Didnt know anything about it
Ok thanks For the info
that's lit
But tbh flutter is made by Microsoft
And its really fucking well documented
And has really good videos on the internet
Oh not Microsoft
Its Google
Same thing 
Its unfinished thats why theres a weird bar with an arrow on the bottom side
i always wanted to make a web games
but the account system hits me hard 
I dont know some sort of http things
That is make me want to read documentation everytime i use things
idk what im talking about
well first
i watched a russian man
funny shits to watch
one day he uploaded how to python
and that's when it all started, the big bang
Good video for anyone intrested to start programming
https://youtu.be/t32BNi3NEYA
Compiled?!?
Why aren't you just using python interpreter like normal people
i think he wants to be d i f f e r e n t

Why would u use python
If you want to be different
Its like the most used language
also im bored
i reinstalled ubuntu like 5 times this week
im sortof bored and since i can't use my mom laptop to work on my current project i basically have nothing to do
for me it doesn't give any performance boost though
its just hiding my shitty code
yes that's why I wouldn't compile it
makes it just harder to get the code running
I can just do python3 main.py to run amp
ez
well im planning to use it for like a cli app
and for some reason i like hiding things
also because i dont want people judging me for using python in a cli app and not use a binary file

also since i dont wanna learn C

nice
Why would anyone judge you for using Python? It's a great language, very well suited for many applications.
Class.
MS documentation.
But why?
It's a very easy language. It's definitely useful and has it's merits but it's just easy. It's also very slow.
I still don't recommend shying away from it no matter your experience. It's a really powerful language and it definitely has a lot of advantages (it's dynamically typed, those 4 glorious data structure types, it can natively parse json (which C++ can't, which still annoys me), it's really easy so if someone is new to the language on a project, it's not long before they're up to speed). Just don't plan on it sticking around like C++. It's really good and will remain so for a long time but something better and even more beginner friendly will take over and dominate the market.
yeah
you should remember though to not use python for everything
it sucks for anything not involving data science lol
@unkempt shell is written 100% in Python but I am not sure if I am happy about it ngl
not chad
sorry chad
I meant @bitter sedge
Ah.
I haven't used anything other than python for discord bots
But if I do finish that old project, I'll probably move it to JS.
I am too lazy to learn new language for discord bots and I'd need to rewrite about 5k lines of code
Damn.
I'm currently reading DirectX documentation.
Because SDL doesn't like my PC.
I am trying to code atm but it is almost 30c inside which is way too much in Finland so I am so hot that I can't think
Oh.
It's pretty nice where I'm at.
But if you're not used to warm then it bullies you
Just like cold bullies me.
As long as water isn't vaporizing in my stomach, I'm fine.
But if it's 60°f, it's all over.
damn
PyGame is pretty fast
But python isnt

Just a normal 300 by 300 loop takes so much longer than other languages
PyGame suck for me
"noob its too easy"
"its easy why bother learning"
"php is harder than that"
"ha i can do the same thing its easy"
and other known mocking
its sortof meh
i like it but not the same feeling when learning other languages
Okay, wrong question. Why would you care what others think/say?
i dont know i have anxieties
Either you can do your project in Python or you can't. What they say doesn't matter.

well yeah i know it doesn't matter but still though my head is thinking on its own
In the end, you can learn to program in some language and carry over much of what you learned into another.
judgemental people yes
You clearly talk about programming with wrong people
I've met only few programmers that are judgemental and say bad stuff
Jupe nub
i guess my brother is one of them 
i can speak different languages
lol
If u write shit code
but i can't understand it
lol
I can speak finnish and englidh :)
I can speak arabic and english
You haven't seen my code
haven't seen mine either
well technically I can talk a bit in swedish but not enough that I'd say I can speak it
I have
i can speak most languages
but i can't understand it 
oh yeah that, not a good image of me. I can write better code but I just didn't with that thing
i just use github to ease transferring things
Im a man
I have my github linked to discord but I don't have public repos
why the doc is not showing
i have some
okay
3D Donut
I am trying to find code I can send but I have none
most coding i've been doing has been to amp
I still dont have the code as a donut
i don't know C# so i find this mildy awesome
Heyo

hi
Hi there
Heya
that was a poem generator???
Does anyone want to be my friend???
Acoustic poem
yes
Even better
I really want to be friends
interesting

Incase you dont jnow what an acoustic poem is





