#⌨coders-cave

1 messages · Page 15 of 1

barren shale
#

bro i didnt study for my cal 2 and i got an A-

orchid frigate
#

I'm straight A+ in your mom tho

sly schooner
#

I'm like 20 and I have like 5 years of unity experience (Including coding on my own and not just copy pasting from tutorials and from stackoverflow) and am still bad at coding

orchid frigate
barren shale
orchid frigate
barren shale
#

haydot has been programming for like 100 years and he still sucks

orchid frigate
#

The more you tell yourself your good

#

The better you will become

#

Confidence is key

barren shale
#

that's what i told ur mum last night

orchid frigate
#

And write an os in it

#

Loser

barren shale
#

oh so you made your own language and made an os in it?

#

i've already made my own language

orchid frigate
#

I'm.planning it

#

Rn

barren shale
#

imagine not having your own language

#

😂

sly schooner
#

I have definitely improved since 2019, but I'm looking at my skills objectively

orchid frigate
#

İ already know how to do it tho

barren shale
#

its 2023 bro

orchid frigate
#

İt's called avalanche

#

İt's on my github

barren shale
#

ewlanche

orchid frigate
#

Unfinished

barren shale
#

bro made it 3 days ago

sly schooner
#

It's 2023, it's time for AI to do all your job while you're drinking coconuts in the Bahamas

barren shale
#

this is empty bruh 💀

orchid frigate
#

Yes İ made it in a week

#

İ havent updated the github too

#

There is more

#

Plus it's not my first one

#

İdiot

barren shale
#

but do you have a project with 8000 lines of code?

orchid frigate
#

💀

barren shale
#

hours of planning

orchid frigate
#

Probably if else.statements

barren shale
#

hours of engineering

#

its called speciesbox 2 you stoopid

orchid frigate
#

Soeciesew 2

#

Probably sucks too

barren shale
#

if sb players saw you say that they would cancel you

orchid frigate
#

İdc about getting canceled

barren shale
#

they would bean you

orchid frigate
#

The internet sucks anywau

barren shale
#

the bean hammer

orchid frigate
#

They can try

orchid frigate
#

How many OSs have you made

barren shale
#

0 because i dont waste my time

#

how much money have you made programming?

#

0 because you suck

orchid frigate
#

İ don't try hard programming yet

barren shale
#

you just suc XD

barren shale
#

(like me)

orchid frigate
#

Sure

#

How long do you spend programming a day?

barren shale
#

depends

#

sometimes 0

#

sometimes 10 hours

orchid frigate
#

İ spend that long a week or two even 💀

barren shale
#

because you dont have speciesbox to code

orchid frigate
#

Try hard

barren shale
#

nope

#

its fun

orchid frigate
#

İ have avalanche to work on

barren shale
#

ew

orchid frigate
#

All 0.people using it depend on me

barren shale
#

🤮

orchid frigate
#

You know how many instructions it has?

#

Like 20 i think

orchid frigate
#

İt also has labels

orchid frigate
#

Does your language have two types of labels?

#

Didn't think so

#

İ won this argument btw

#

İ decided

barren shale
#

k

jolly field
#

💀

barren shale
quartz pumice
#

@orchid frigate Im trying to make a cross-compiler but got *** Configuration x86_64-pc-none not supported what target did you use?

#

I was using a hack that used normal gcc to compile the kernel and just stripped everything but the function I wanted but that was just a bandaid I need to do a cross compiler now

#

I cant use i686-elf target because the kernel starts with 64 bits not 32

#

it looks like its doing the same thing over and over, now that I actually got it to compile

orchid frigate
#

Look in the description

#

Is all the commands to set up a cross compiler

#

Don't try to figure it out yourself

#

You will just make it harder for yourself

quartz pumice
#

ok

#

but its building rn do I just ctrl+c?

orchid frigate
#

Uhhh where did you get the info from

quartz pumice
#

gnu docs

#

where else

orchid frigate
#

Damn you.went that far

#

Goddamn

#

I like it

quartz pumice
#

yeah im used to docs

#

gnu is on the easier side to read

orchid frigate
#

I mean if.you think you did it right

#

You don't need to

quartz pumice
#

I dont think I did

#

its like frozen

orchid frigate
#

Then stop it

#

No reason to wait

#

Follow the steps in the video

#

Or just cpy paste the commands

#

No need to follow them really

#

But just so you know this takes a while

#

Like 20-30 minutes

#

The final few makes that is

quartz pumice
#

ok

orchid frigate
#

Did you make the bootloader for the kernel

quartz pumice
#

ye

#

executes just fine

orchid frigate
#

Can I see some code

quartz pumice
#

bruh

#

src/boot.asm

#

goes into protected long mode after reading the second sector and jumps to it

#

oh fuck me its private

#

public now

#

oh nothings pushed

orchid frigate
#

Uhhh how do you go from real to long mode

quartz pumice
orchid frigate
#

Cuz in the code you just straight to long mode

quartz pumice
orchid frigate
#

Yes but

#

You never actually go into it

quartz pumice
#

the github is outdated

#

sry

orchid frigate
#

You use rax?

#

Do you switch to protected or long

#

Cuz it says protected there

#

Ahh 64bit

#

I see

#

So long

#

What's at 7300h?

#

Do you plan on putting the kernel there

quartz pumice
orchid frigate
#

Oh

quartz pumice
quartz pumice
#

im making a pr rn

orchid frigate
#

Just so you know the linking process after that sucks

#

I spent like a week figuring this out

#

Getting to actually run the kernel will suck too

#

But after that you will get to have alot of fun

quartz pumice
#

😊

orchid frigate
#

Also something to consider is

#

Using grub instead of your own bootloader

#

It's just a bit better

#

Or limine

quartz pumice
#

id rather gnu grub

orchid frigate
#

I kinda prefer limine as it's a bit more modern

orchid frigate
quartz pumice
#

oof

#

yeah limine looks really cool

orchid frigate
#

It is really fucking good

#

But it's way of delivering info.to you is really simple

#

Only problem is setting up a file system with a different bootloader becomes

#

Kinda complicated I think

#

I havent done it

#

So idk

quartz pumice
#

ill just stick to my own until I get everything working

#

also are you using blochs @orchid frigate

#

I keep having problems where it implodes before even reaching my bootloader

orchid frigate
#

No

#

I used it for a little

#

But realized how outdated it is

#

And switched to qemu

quartz pumice
#

yeah it feels really old

orchid frigate
#

Trust me it's waaay better

#

Qemu is epic

quartz pumice
#

I was using qemu from the start

#

I only tried out blochs for its debugging shit

#

qemu can debug with gdb tho so its definitely wayy better

orchid frigate
#

I never debugged my os

#

Kinda missed out tho cuz it would have saved me alot of stress

#

And triple faults

quartz pumice
#

ye

#

I spent an entire afternoon trying to fix what blochs said was broken before realizing the address of the instruction was in bios reserved ram

#

okay im gonna start compiling gcc again

orchid frigate
#

@quartz pumice have you considered switching to rust

quartz pumice
orchid frigate
#

The second edition?

quartz pumice
#

whatevers there I was following

orchid frigate
#

So yes

#

Don't follow it it uses a custom bootloader made by him

#

Thats unfinished

quartz pumice
#

yeah, I didnt understand anything he was doing so gave up on it

orchid frigate
#

And I don't like it because it misses some things and makes others out of your control

#

Yes alot of stuff behind the scenes

#

Ever explained

#

The first one is better

#

It sets up a grub bootloader

#

And a rust kernel

quartz pumice
#

sounds nice

#

I only plan on having rust support, not actually being written in rust because I dont know the language

#

when I followed the tutorial I just thought I did

#

I didnt even know c then

orchid frigate
#

Oh you don't know rust

#

Then dont

#

You need to know all the basics of rust to make a kernel in it

#

And it has a shit ton of basics

#

Generrally the reason I prefer it over c is because of how much fuller it feels

#

Like without the std you.still have pretty much the entire language because you.still.have access to it's core library

#

It's also.way more modern

quartz pumice
#

yeah its definitely cool

rose pawn
#

Stop # flood 🙄 okay you ###### ####

quartz pumice
#

bruh gcc build taking so long 😭

#

is it like, millions of lines or something

#

thats only explanation

#

@orchid frigate it didnt build gcc, x86_64-elf-addr2line x86_64-elf-c++filt x86_64-elf-ld x86_64-elf-objcopy x86_64-elf-readelf x86_64-elf-strip x86_64-elf-ar x86_64-elf-elfedit x86_64-elf-ld.bfd x86_64-elf-objdump x86_64-elf-size x86_64-elf-as x86_64-elf-gprof x86_64-elf-nm x86_64-elf-ranlib x86_64-elf-strings it only made those

#
higanbana@Higanbana:/bin$ x86_64-elf-gcc
-bash: x86_64-elf-gcc: command not found```
#

im gonna reinstall the entire os and retry

quartz pumice
#

okay I got it now

orchid frigate
#

The path to it

orchid frigate
#

If I didn't have to set it up every time I reinstalled Linux I would have gone through every Linux distro by now

radiant agate
#

Java is a bit trippy for me

cunning summit
#

a sane person has entered chat

quartz pumice
#

make * -j12 built in a few minutes

quartz pumice
#

But it worked after I tried again so

rose pawn
#

Would it count as "mod harrasment" if i said moderation in this server can suck ass sometimes?

hardy field
#

You're allowed to have an opinion

#

Just don't go too far into it

cunning summit
rose pawn
#

Mod casually removes punishment from a random user he knows

#

During this i got a classic "troll" warn while i was complaining about the moderation

#

This same mod warns him

#

Like what? 💀💀💀

#

Aye you seeing this????

barren shale
#

@main crescent you might wanna look into this if this was true

main crescent
barren shale
main crescent
#

Just did it, thanks for the reports aye

distant wraith
#

No, if you ask me

rose pawn
#

The "troll" warns are so dumb

#

Mods bend the meaning of the term and warn anyone who does something they dont like

distant wraith
#

🤷

#

That's how it is nowadays

orchid frigate
#

Looking at some of my old projects on my github I realise

#

The code is shit

#

I wonder if I will be able to rewrite them better now

#

That I partially know what I'm doing better

orchid frigate
#

When did I write this

#

Why do I not remember

#

Did I get Alzheimer's or smt

cunning summit
rose pawn
#

ffs hire ppl who give 25+ yr old vibes not some random kids who begged to be a mod

#

(Im not claiming to be 25+)

cunning summit
#

requirements to be a worldbox staff member:

  1. Be unprofessional
  2. Have a pulse
rose pawn
#

If worldbox server was a country the imcompetence would be higher than my country (turkiye) and thats sayijg something

distant wraith
barren shale
#

ban pls

rose pawn
cunning summit
distant wraith
hasty loom
cunning summit
#

isn't that just perlin noise

#

perlin noise is related to this channel

orchid frigate
#

@distant wraith I have been wondering

#

what does your name mean

#

specifically the hexadecimal part

distant wraith
orchid frigate
#

is it a memory address to something specific

barren shale
#

obviously not

#

its just a random address in the heap

#

what a stoopid noob

knotty root
#

Decafa

#

could you stop

jolly field
knotty root
jolly field
knotty root
#

You dumb or something

jolly field
cunning summit
jolly field
cunning summit
#

YOU WERE NOT BORN IN SPAIN

#

YOU DON'T SPEAK SPANISH

jolly field
#

No screaming please

cunning summit
#

I'M NOT SCREAMING

jolly field
#

Indoor voice

cunning summit
#

I'M ACTUALLY MAKING VERY LITTLE NOISE RN

cunning summit
jolly field
#

CALM DOWN

cunning summit
#

OTHER THAN MY KEYBOARD PRESSES, IT'S VERY QUIET HERE

jolly field
#

YOU STFU AND CALM DOWN

#

NO ONE IS YELLING

cunning summit
#

WHAT

jolly field
#

QUIET!!!!!!

cunning summit
#

I'M AS CALM AS A CALM SEA

cunning summit
jolly field
#

CALL DOWN ALREADY

cunning summit
#

I AM CALM

barren shale
#

me when

main stag
#

bro blocked shieyno and decafa

cunning summit
#

him blocking me is a favour

#

i won't have to see "x blocked messages" and he won't respond to me

#

so it's a big dub for me

jolly field
#

🧌

main stag
barren shale
#

i block people who ping me a lot so i dont get their pings >:)

main stag
#

you outsmart trolls

jolly field
#

Perfectly balanced as everything should be

orchid frigate
#

@barren shale what is your opinion on

#

Multi-continental bee colonies invading the Sahara desert

#

???

cunning summit
#

he's just a very toxic and angryy man lol

#

WHO PUT THE SWEDISH FLAG

#

WHO PUT IT THERE

#

I DON'T LIKE DENMARK EITHER

#

DISCLOSE YOURSELF

#

AARMENIA?

#

GREECE?

#

THAT'S BASED

#

WHY ARE THERE FLAGS

#

STOP THE FLAGS

main stag
#

bro sounds schizophrenic

#

@cunning summit wanna know my favorite island

cunning summit
main stag
#

Java

#

also my favorite coding language

cunning summit
main stag
#

(I know nothing about Java)

cunning summit
#

the best island is lítli dímun

#

and the best programming language is lua

main stag
#

best member in this server is Dakata

cunning summit
#

completely false

#

i could not find a more deluded person if i tried

#

it don't be

main stag
#

this is a Javanese man

#

I paid him to tell you

cunning summit
#

oh

#

i thought he meant java the language

#

he's still wrong

#

but not as offensively wrong

orchid frigate
#

Your bees are dying out there fighting for you

#

Against the small-pack indian scorpion colonies

#

And you are on discord doing nothing

#

Smh

orchid frigate
cunning summit
#

nah i have

#

i'm sat right here

rose pawn
#

Hey i just found out mods have a #message logs channel that archive every message ever posted

#

Thanks to the mod that leaked it!

#

There is also a ban appeals and mod mansion channel

rose pawn
barren shale
cunning summit
#

i'm not sure about the legality of saving deleted messages

#

it probably isn't legal lol

rose pawn
#

Idk

#

!ban mastef

#

Jk mastef

#

Just kidding bro

humble wasp
#

you are very late

humble wasp
hardy field
#

Pretty sure Discord says in it's Terms of Service that messages sent get logged anyways

cunning summit
#

also does this server even disclose that messages are being logged

main brook
#

imagine the amount of messages it's handling

#

man my cheap ass instance would die

main brook
#

its already public

#

deleted message are your fault if you're not fast enough or a bot is reading it

#

but prolly the reason discord needs you to verify your bot for message intents

#

darn you discord

barren shale
#

You cant delete messages

#

Theres an audit log

#

Every message on discord is saved for all eternity

jolly field
main brook
#

if i point gun at you, you give me permanent storage and i will release your memory

wet girder
#

Anything you send gets logged first by discord and then we log everything discord allows us

#

Then we have #🦾join-logs that log leaves and joins. Another 1.5 million

#

But my point being we log everything done in the server because we have the right to do so. Moderation would be impossible without it

#

And the stuff we log is minimal compared to what discord logs

#

Discord logs every time you open a channel, start typing, end typing, what ips you connect from etc.

#

we just log what messages you delete and if you join or leave

#

Oh wait yeah we also log name and pfp changes

west wadi
#

guys i am quite interesting in knowing how to get datas among those creatures that are in the map by python or something else and if it is ok i want to know how the bot work while changing image into map i have try to do it by using Python's pyautogui but took to long to creat a map about using an hour

#

can't send a video or i will show you how it work

wet girder
#

Have you managed to decode the map file?

#

If so then modifying the creature data is simple af

west wadi
#

don't know how to decode it😩

#

have no experience in how to decode file can you tell me how to do it or where to know how to do itaye

wet girder
#

This website can do it for you if you don't want to code it yourself

#

I can give you some tips how to do it yourself tho if you want

#

Also the repo for the website might help too

west wadi
#

yesss thank you i really want to know how to encode files thanks a lottttt

#

👀

wet girder
#

These are how decoding and encoding worldbox maps works in @bitter sedge , no idea of it still works but it should guide you to the right direction

Decode in @bitter sedge

await attachment.save(f'map.wbox')

if (os.path.getsize(f'misc/{attachment.filename}') == 0):
    await ctx.message.channel.send("Cannot decode empty file!")

with open('map.wbox', 'rb') as map_file:
    #base_encoded = base64.b64decode(map_file.read())
    map_file2 = zlib.decompress(map_file.read())
    enc = 'utf-8'
    z = map_file2.decode(enc, "ignore")
    map_file.close
with open('cov.txt', 'w') as map_z:
    map_z.write(z)
    map_z.close()
zipfile.ZipFile('cov.zip', mode = 'w').write("cov.txt", compress_type = zipfile.ZIP_DEFLATED)
b = os.path.getsize("cov.zip")
if b > 8388608:
    await ctx.send('**Map too large**')
    return
await ctx.send(file = discord.File('cov.zip', filename = 'cov.zip'))
os.remove('cov.zip')
os.remove('cov.txt')
os.remove('map.wbox')
print(f'decoded by {ctx.author}')

Encode in @bitter sedge

await attachment.save(attachment.filename)

if (os.path.getsize(f'misc/{attachment.filename}') == 0):
    await ctx.message.channel.send("Cannot encode empty file!")

if os.path.exists('cov.zip'):
    with zipfile.ZipFile('cov.zip', 'r') as zipObj:
        zipObj.extractall()
    with open('cov.txt', 'r') as file:
        i = file.read()
        file.close()
    with open('cov.txt', 'wb') as file:
        encoding = 'utf-8'
        r = i.encode(encoding)
        e = zlib.compress(r)
        d = base64.b64encode(e)
        file.write(e)
        file.close()
    b = os.path.getsize("cov.txt")
    if b > 8388608:
        await ctx.send('**Map too large**')
        return
await ctx.send(file = discord.File('cov.txt', filename = 'map.wbox'))
os.remove('cov.txt')
os.remove('cov.zip')
print(f'encoded by {ctx.author}')
glossy flicker
#

when button clicked
add gun()
{}

my code guys

west wadi
#

❤️❤️❤️aye aye thank you!

distant wraith
wet girder
#

2 file opens

#

One for reading and one for writing

barren shale
#

Python smh

main brook
rose pawn
#

What about eu saying users should be able to delete their logged messages if they want?

#

Is that true

#

Btw how does the logs channel look like? Does a bot just copy paste every message thats posted

main brook
#

yes

#

usually its a webhook because

#

higher rate limit

main brook
wet girder
#

Your messages aren't considered personally identifiable information so the eu directive afaik doesn't apply

west wadi
wet girder
#

it's just some random name

main brook
#

just do ctx.channel

#

or heck you can even just ctx.send

#

very inconsistent

#

also that crap would get race condition

wet girder
west wadi
#

strange

lime marsh
main brook
barren shale
wet girder
#

could be

barren shale
#

look at me carrying all the worldbox bots smh my head

rose pawn
#

Smhmh

jolly field
#

I wish there was a channel that was for coders

#

Like it could be called coder cave or something

#

And there could be this guy called hamza who blocks everyone for some reason

#

I think I’m on to something ngl

humble wasp
#

why does bro hate hamza

#

and by hate I mean wdym block everyone for no reason

jolly field
#

hint hint

main brook
main brook
#

no hamza bad

jolly field
#

Cause ham=good

main brook
#

simp

jolly field
crystal summit
#

Can someone explain python CSV manipulation better than the internet?

west wadi
#

so

#

what is the point

#

don't see something special

magic oriole
#

If you want a Markov Algorithms code dm me

jolly field
#

Ngl coders cave should be made into a channel

main brook
#

ig

#

its easier on CSV files

#

than a raw text csv

main brook
#

@orchid frigate teach me rust

jolly field
#

@orchid frigate you don’t know me but on April 14th say no to the question asked by cloudrider

orchid frigate
#

did you forget the tabs or is it because of discord

#

either way add tabs

#

please

orchid frigate
#

tell me how much rust do you know

main brook
#

ownership

#

asynchronous

#

other things not even a single thing

#

i don't even know the primitive

#

or what the :: is used for

orchid frigate
#

ah ok

#

lemme write a small program as a start]

main brook
#

alright

#

make it like basic output to terminal and input

#

so i can get the gist

#

like "what's your name" type of basic

orchid frigate
#
use std::path::Path; //The "::" is used to access members of a data structure that dont require an instance or a "self" or when calling a function with whatever the <> brackets were called 

fn main(){
  let mut hello: String = "Hello Rei".to_string(); //"Hello Rei" is a &str which isn't a String so we need to convert it
  println!("{}", hello); //Formatting has to be done this way, otherwise it throws an error
}
#

difference between &str and String is that &str is kinda like the buffer

#

its the less evolved and optimised version

#

String is the std structure

#

it has wayyy more uses and different ways to manipulate

#

let is basically var

#

and mut is saying that this veriable is mutable

#

everything else basic in the language is pretty much the same as other languages with different syntax

main brook
#

yeah i got that part

orchid frigate
#

and things only start getting complicated when you get to iterators and macros

main brook
#

dw ill scrap the source code to learn

#

also about that &str

#

the heck is that

#

is it basically like bytes?

orchid frigate
#

yes

main brook
#

oh ok

#

got it

#

make sense

orchid frigate
#

its like an iterator of the bytes

main brook
#

yes

#

make sense tbh

#

can i create a string like

#

String("hi") tho

orchid frigate
#

no

main brook
#

how do instantiate a class

orchid frigate
#

String::new("Hello");

orchid frigate
#

another thing I should mention

main brook
#

WHATTT

orchid frigate
#

The thing that replaces classes is structures

#

structures in this language are

#

insanely advanced

main brook
#

HELL YEAH

#

i love this already

#

boilerplate

#

yeah b*tch

main brook
#

can you give me a structure example

#

@orchid frigate what's difference between String::from and String::new

barren shale
#
use crate::vectors::Vector3;

pub trait WorldObject {
    fn get_signed_distance(&self, point: Vector3) -> f32;
    fn get_position(&self) -> Vector3;
}

pub struct Sphere {
    pub position: Vector3,
    pub radius: f32,
}

impl WorldObject for Sphere {
    fn get_signed_distance(&self, point: Vector3) -> f32 {
        let distance = self.position.distance(point);
        let signed_distance = distance - self.radius;

        return signed_distance;
    }

    fn get_position(&self) -> Vector3 {
        return self.position;
    }
}

pub struct Cube {
    pub position: Vector3,
    pub size: Vector3,
}

impl WorldObject for Cube {
    fn get_signed_distance(&self, point: Vector3) -> f32 {
        let o = point.subtract(self.position).abs().subtract(self.size);
        let ud = o.max(0.0).length();
        let n = o.x.min(0.0).max(o.y.min(0.0)).max(o.z.min(0.0));

        return ud + n;
    }

    fn get_position(&self) -> Vector3 {
        return self.position;
    }
}

pub struct Ground {}

impl WorldObject for Ground {
    fn get_signed_distance(&self, point: Vector3) -> f32 {
        return point.y;
    }

    fn get_position(&self) -> Vector3 {
        return Vector3 {
            x: 0.0,
            y: 0.0,
            z: 0.0,
        };
    }
}
orchid frigate
#
struct Foo{
    a: String,
    b: i32
}

impl Foo{ //Implement functions for Foo
    pub fn new(a: String, b: i32) -> Self{ //Self if big S is the data type
        Self{a: a,b: b} //Whenever you dont put ; at the end of a line that means you are returning whatever is in the line
    }

    pub fn foo(&mut self) { //We are not creating a new instance of Foo so we need to have an existing instance in the form of self
        
    }
}
orchid frigate
#

new creates a new instance

#

without the &str

#

from creates with the &str

barren shale
#

isnt that obvious

#

damn rei you dumb

orchid frigate
#

so new just makes an empty string

orchid frigate
#

I just wrote mine

barren shale
#

that's not a random struct

#

can your structs do this?

orchid frigate
#

I never asked them to do something so useless

main brook
barren shale
#

bruh

orchid frigate
#

if you have such knowledge in graphics

main brook
#

i already got better at rust

orchid frigate
#

why not do graphics

barren shale
#

that's not knowledge in graphics

orchid frigate
#

real graphics

barren shale
#

and graphics is dumb

#

🤮

#

also a sb 2 to make

main brook
#

talk about ironic

barren shale
#

that's just a meme algorithm that allows you to do stuff

orchid frigate
#

also in rust you have really good error management

#

in the form of Option<> and Result<>

barren shale
main brook
#

elaborate

barren shale
#

yeah you never get errors in rust

#

its kinda like magic

#

code compiles 200% of the times

#

with no errors

#

smh

orchid frigate
#

your just mad c# doesnt have them

#

smh

barren shale
#

i dont need a babysitter to tell me what works and what doesnt

orchid frigate
#

Options because of <> can have any data type in them

#

So uhhh they are kinda hard to explain

#
struct Foo{
    name: Option<String>
}
impl Foo{
    pub fn new(name: String) -> Self{
        if name.is_empty(){
            return Self{name: None} //None means that we basically return Null
        }
        Self{name: Some(name)}
    }
}
#

Its basically being able to return null

#

without null

#

much safer

#

Result is the same

#

but instead of having to return None you return whatever you want

#
struct Foo{
    age: Result<u32, String>
}
impl Foo{
    pub fn new(age: u32) -> Self{
        if name < 18{
            return Self{age: Err("Too young".to_string())} //
        }
        Self{age: Ok(age)}
    }
}
main brook
#

got it

west wadi
#

so strong......

tidal elbow
#

that first self return wouldnt return

#

you should try bevy, hella good

tidal elbow
barren shale
#

no string is ever mutable

#

strings are arrays

#

and arrays are not mutable

orchid frigate
#

all you really need to know is String = better &str

#

atleast on a beginner level

orchid frigate
#

I dont see any mistakes tho so

orchid frigate
#

well just add return

main brook
#

ayo watch me wreck this basic coding class

#

imma pull up with vscode dark mode and every possible C++ redistributable

#

on a windows 8

#

with 2gb memory, 2 core cpu running on 2ghz max

#

and its not even mine

#

and it can't even run new C++ after 2015

#

because im missing service pack 1

summer stone
#

Hola

summer stone
orchid frigate
#

What have you not used in a long time

#

Tabs?

wet girder
#

2 hour long scrum meeting causes desire for blood ngl

rose pawn
#

Must be hRd

timid field
#

All of that just to print "no maidens" 💀

#

How tf did the Rollercoaster tycoon dev manage to make their game with assmebly

#

Without the comments but still

distant wraith
quartz pumice
#

btw I didn't know this before I started assembly, but you don't need the malloc function, you can just start addressing memory

#

And another tip, if you look at godbolt alot of languages actually store variables by decrementing the stack pointer

#

And also, if you use a register to address memory it's a lot faster (plus easier for dynamicicity)

#

Like inc [rax] instead of inc [0]

rose pawn
jolly field
#

Mod mansiom

devout cipher
#

Pur

half warrenBOT
#

User reported to the proper authorities!

unreal sinew
#

Who

tidal socket
#

MzxzM#8762

unreal sinew
#

I’m trying to find it

#

Like where

tidal socket
#

Some discord clients show hidden channels

unreal sinew
#

Oh

#

I don’t think he’s fr unless he’s actually fr

somber plume
tidal socket
#

This would be a Clint not approved by discord and would be against tos

somber plume
tidal socket
#

Mute and put them under review?

unreal sinew
rose pawn
#

What????

#

Yall mods get a life

#

Who reported me???

#

no i didnt

#

Copy paste exists

#

I cant even read the channel name

#

And this

tidal socket
rose pawn
#

Btw thanks for telling me there are clients that show hidden channels

tidal socket
#

Thank you for stating your case this won’t last much longer

tidal socket
rose pawn
#

Were you gus discussing this in mod channels???

tidal socket
jolly field
placid stone
#

They have seen things

#

And they don’t wanna see anymore

jolly field
#

Walk it off

earnest sparrow
#

Hi

humble wasp
#

dude is literally using rock paintings to find news

jolly field
distant wraith
#

Furry femboy Zezzy uwu

knotty root
#

zezoca fall part 1

#

(no fishe)

rose pawn
#

I get it

#

My find is worthless thanks for constantly reminding me

#

Everyone knows that channels existence so well that everytime i send it to #general ppl get suprised

humble wasp
#

ill keep it reminding you ☎️

humble wasp
#

simply do not do them at all 🥐

humble wasp
rose pawn
humble wasp
#

ah

maiden escarp
humble wasp
#

what

maiden escarp
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

humble wasp
#

i can only speak english 😔

maiden escarp
#

One message removed from a suspended account.

meager python
meager python
rose pawn
#

Come join me and my homies in #🔨ban-appeals

sleek smelt
orchid frigate
#

In reality assembly is simpler than any programming language because it doesn't have almost any features

#

Also I'm pretty sure assembly can use the same tools to make shit as C like the same object files

#

So writing high level assembly is like writing more complicated C

barren shale
#

Its very inefficient to write code in assembly

#

Thats why no one does it

#

Its not hard

#

You just need to remember the instructions

#

And you need a brain

nocturne drum
orchid frigate
#

Or any other language

#

Other than Virtual assembly ™©®

tawdry craneBOT
barren shale
#

Someone already wrote it

orchid frigate
#

You need logic to use their logic

#

You don't just call random functions until it works

#

Unless you want to

barren shale
#

you need to understand what the function does

#

not how it works

#

to use it

sleek smelt
#

You could, but you could also just use duplo blocks instead

#

So why bother?

quartz pumice
sleek smelt
#

then again, ive quite literally not left secondary school

fading obsidian
#

assembly is cringe

sleek smelt
main brook
sleek smelt
#

im doing CS GCSE's, hoping to do it for A levels

main brook
#

im just doing gigs

#

for cheap prices

#

cause heck nobody wanna hire me

#

being a programmer at young age is a curse

sleek smelt
fading obsidian
sleek smelt
#

there are no past papers

barren shale
#

lmao kiddos

sleek smelt
rose pawn
#

Check if:
(Secondary school == Middle school) = True

barren shale
#

but cool

sleek smelt
rose pawn
#

Shut up dude

fading obsidian
rose pawn
#

Sorry no offense

barren shale
#

can you form a coherent sentence in arabic?

#

i dont think so

sleek smelt
rose pawn
#

Turkish?

fading obsidian
sleek smelt
#

but they never taught me arabic

rose pawn
#

Skill issue

sleek smelt
#

I was literally born in tripoli

barren shale
rose pawn
#

Ben türkçeyi konuşurum aga

barren shale
sleek smelt
rose pawn
#

100 de 100 türkğm sen anca amerikalı gurbetçi ol

barren shale
#

عربي > تركي

fading obsidian
sleek smelt
fading obsidian
#

mokada oya katakarane

rose pawn
barren shale
fading obsidian
barren shale
sleek smelt
rose pawn
#

Arapçayı yemişim

barren shale
fading obsidian
rose pawn
#

Arapça türkçeden nah iyi

barren shale
rose pawn
#

Arapça konuşçağıma yunanca konuşurum ulan

#

Arapça dil mi

barren shale
#

reported

sleek smelt
# barren shale unlike your dad smh

Funny coming from the 27 year old neckbearded fatty sitting in his greasy chair he shat in 10 days ago, awake at 2 am when his wagie shift at mcdonalds begins tomorrow

sleek smelt
barren shale
#

i didnt ask who would that not be

rose pawn
#

No hamza

barren shale
rose pawn
#

Turkish is superior

sleek smelt
barren shale
#

not really

fading obsidian
#

anyways, who knows how to create a list in python?

barren shale
#

or

fading obsidian
sleek smelt
barren shale
#
urmum =[]

as the other dude said

quartz pumice
barren shale
#

proper way of doing it

#

its more readable

#

ok you cant say that here

#

smh

rose pawn
#

OMG

#

OMG

sleek smelt
rose pawn
#

OMG BAY PAS

barren shale
#

no ur gonna get warned

#

so delete it

fading obsidian
rose pawn
#

By pass

#

Dont report him he will be fine

sleek smelt
rose pawn
#

No dont delete

fading obsidian
#

close call

sleek smelt
#

i used a swear word

barren shale
#

nothing happened

sleek smelt
#

womp womp

rose pawn
#

Im not encouraging people to do disallowed actions

barren shale
#

you can say fuck

rose pawn
barren shale
#

but if people dont know its there

sleek smelt
#

i can say the fuck word, but not the funny bodily part

barren shale
#

they wont look

sleek smelt
#

soo true

rose pawn
barren shale
sleek smelt
#

anyways, do you use python @barren shale ?

fading obsidian
sleek smelt
#

but they just seem dumb as shit

fading obsidian
#

you know what is usefull

barren shale
#

you should always use enumerate to loop through a list

sleek smelt
#

maybe map(), but enumerate is just a shitty for loop

fading obsidian
#

f string and execute

sleek smelt
#

why even use enumerate

#

you can achieve the same with a counter and a for

barren shale
#

for loop does not give you the index

sleek smelt
barren shale
#

so you would need to create a range to get the index

fading obsidian
sleek smelt
#

for x in y:
count = count + 1

#

there we go

#

congrats

sleek smelt
#

and is far less confusing

barren shale
#

yeah but no

#

you are just rewriting what is already there

fading obsidian
barren shale
#

and map just maps a function on a list of things

#

just dont use python

#

its c tier

#

unless ur using it for AI or data science

sleek smelt
sleek smelt
fading obsidian
#

what language should we use?

sleek smelt
#

what is C sharp and C++ useful for then?

barren shale
sleek smelt
#

because ik most libraries just repackage c sharp code

barren shale
#

dont listen to @orchid frigate

sleek smelt
#

to use in python

barren shale
#

he is tpying up something stupid

orchid frigate
barren shale
sleek smelt
barren shale
#

C is a different language

#

than C#

sleek smelt
#

O

orchid frigate
#

Better

barren shale
#

Worse

sleek smelt
#

so C#, C++, and C are different languages entirely?

barren shale
#

yes

orchid frigate
sleek smelt
#

Why do they all share C then?

orchid frigate
#

I'm sick of this

rose pawn
barren shale
#

shut up

orchid frigate
#

I think

sleek smelt
orchid frigate
#

I'm better

sleek smelt
#

Not wrong

rose pawn
barren shale
#

no youre not

rose pawn
#

Wrong !

barren shale
#

ive seen your code

orchid frigate
#

Your not one to judge

barren shale
#

yes i am

#

im a god tier programmer

orchid frigate
#

You are cringe

#

So your opinion doesn't matter

barren shale
#

im the only one who is not cringe

sleek smelt
barren shale
rose pawn
#

Did you ever help me with my code??? Hamza did you?

barren shale
#

did you ever ask?

sleek smelt
rose pawn
barren shale
#

no

#

when

rose pawn
#

Back when i was asking for constant fixes

fading obsidian
#

should i learn java?

rose pawn
#

With my web scraper

barren shale
#

ew

fading obsidian
#

why?

barren shale
orchid frigate
barren shale
orchid frigate
barren shale
sleek smelt
barren shale
rose pawn
orchid frigate
sleek smelt
orchid frigate
#

To program in

rose pawn
#

Even i know web scraping

barren shale
#

its the most fun language

rose pawn
#

You shpuld automatically know it

barren shale
#

i dont know how to do it

orchid frigate
rose pawn
#

WEB SCRAPING

#

DEAFASS

orchid frigate
#

Anything web is cringe

rose pawn
#

Ur cringe

barren shale
#

but im making a discord bot with it

rose pawn
#

Web = data oughoughggggg

orchid frigate
#

Stfu you don't know shit

barren shale
#

and i've made windows apps and mobile apps with it

rose pawn
#

Data 😋😋😋😋😋😋

barren shale
#

you can basically do anything

sleek smelt
rose pawn
#

Yum i like knowing when is the most common hour for ppl to post animations on an animation app 🤓🤓😋🤓😋🤓

knotty root
#

I learned how to do an SQL injection

#

Nice

orchid frigate
#

Idot

barren shale
knotty root
rose pawn
#

Rei always helped with my web code

#

Rei > hamza > dakata > this other guy

orchid frigate
barren shale
#

guess what

#

since you dont think im the best

#

your opinion

#

does not matter

orchid frigate
#

@rose pawn your literally nothing don't speak ever again

barren shale
#

smh

orchid frigate
fading obsidian
knotty root
#

Dog

orchid frigate
orchid frigate
barren shale
fading obsidian
rose pawn
#

Put it into democracy then

fading obsidian
knotty root