#dev-general

1 messages ยท Page 366 of 1

cinder flare
#

what the fuck

static zealot
#

wait is that not a thing in kotlin?

tranquil crane
#

kekw

static zealot
#

only java?

winter iron
#

divide by float then change to int

old wyvern
#

use templates

prisma wave
#

"tHaT lAnGuaGe iS a MiNeFiElD"

static zealot
#

lmao

tranquil crane
#

that statement is also a minefield

cinder flare
tranquil crane
#

jesus

forest pecan
#

ur mom is a minefield

cinder flare
#

I do not understand why that mess is required

tranquil crane
#

I'll take that as a complement

forest pecan
#

lol

prisma wave
#

it is possible to write shitty code in any language ๐Ÿฅฐ

winter iron
old wyvern
#

bm join

prisma wave
#

whoops

old wyvern
#

Sure

tranquil crane
#

ready for the hundredth fastest in a row?

winter iron
#

@cinder flare the last 2 tests had decimals and when u divide int by int u lose the accuracy

prisma wave
#

shortest this time

#

i bet

cinder flare
#

I had 0% for the last two though

forest pecan
#

LMAO

cinder flare
#

like wtf

prisma wave
#

oh

winter iron
#

ye

prisma wave
#

shortest is banned

#

๐Ÿ˜ฆ

tranquil crane
#

shortest isn't even an option

old wyvern
winter iron
#

because u lost the accuracy from int division

tranquil crane
#

ez

#

there are 12 inches in a root

ocean quartz
#

Oh god

tranquil crane
#

take that, metrics

static zealot
#

don't you guys love that they give you the exact thing you have to do in the example?

cinder flare
#

why in the fuck can't I pow in kotlin grrr

static zealot
#

Math.pow()

#

just use that one

forest pecan
#

wait

#

is this shortest

#

what is it

#

shortest code?

#

like smallest?

prisma wave
#

yes

forest pecan
#

kk

static zealot
#

no its not shortest

#

its fastest

forest pecan
#

oh

static zealot
#

says at the top

winter iron
#

idk how to round

#

in kotlin

#

:/

oblique heath
#

much round many wow

steel heart
#

use java

#

ez

tranquil crane
#

my code is god awful

#

and I love it

steel heart
#

I must say I do feel the very same

tranquil crane
#

imagine rounding a number to the first decimal place by doing this

if (bmi.toString().length < 3) {
    console.log(bmi + ".0");
} else {
    console.log(bmi);
}
steel heart
#

yeah I usually hardcode it so just add every possibility and then map it

tranquil crane
#

ah string.format was a good idea

static zealot
#

wait I'm confused. how is 25.0 rounded to the nearest tenth? isn't it suppose to be 30?

#

or nearest tenth means if its 25.1 it will be 25.0

#

or if its 25.6 it will be 26 ?

cinder flare
#

let's go #4

#

what blitz?

#

it wants one decimal place

oblique heath
#

rounded to the nearest tenth means one decimal place yea

prisma wave
#

COME ON haskell

static zealot
#

oh I see

cinder flare
#

so like 25.67 is 25.7

winter iron
#

i cant believe idk how to fucking round

prisma wave
#

it keeps printing as an int

winter iron
#

this is so cringe

oblique heath
#

these aren't sig figs lmao

static zealot
#

english ... xD

ocean quartz
#

Star and sensei, share code

cinder flare
# winter iron i cant believe idk how to fucking round
val number:Double = 0.0449999
val number3digits:Double = String.format("%.3f", number).toDouble()
val number2digits:Double = String.format("%.2f", number3digits).toDouble()
val solution:Double = String.format("%.1f", number2digits).toDouble()```
#

stackoverflow saves the day

winter iron
#

ye i got it know

#

but

#

like

steel heart
winter iron
#

i would have been done 6 mins ago

#

๐Ÿ˜ฆ

#

fucking rounding

#

who even rounds numbers

#

bro

#

just lose more accuracy

#

xd

cinder flare
ocean quartz
#

For me what took the longest was reading that giant text

winter iron
#

i skimmed that shit

ocean quartz
winter iron
#

xd

cinder flare
#

ohhhh

#

I seee

#

i presumed it was on by default lmao

winter iron
#
val bmi3 = String.format("%.3f", bmi).toDouble()
    val bmi2 = String.format("%.2f", bmi3).toDouble()
    val bmi1 = String.format("%.1f", bmi2).toDouble()
#

also

#

thats not needed

cinder flare
#

see im just a fucking dumbass and had to learn how to use When on the fly

winter iron
#

u can just use the last one

cinder flare
#

i did and it didn't work

#

stack overflow told me to do it so I did it

#

ยฏ_(ใƒ„)_/ยฏ

winter iron
#

val a = String.format("%.1f", bmi)

#

thats what i used

forest pecan
#

i forgot about integer divison

#

lol

#

i was like wtf why am i getting zero?

#

lmao

steel heart
cinder flare
#

I got like 15 digits of number and I was like... oh

forest pecan
#

also why 703

#

lmao

#

whats so special about 703

winter iron
#

meaning of life

steel heart
#

lol

errant geyser
#

Conclure u got a pupper now or just found a cute pic?

forest pecan
#

||
public static float calculateBMI(int weight, int feet, int inches) {
int height = feet * 12 + inches;
return Math.round(703 * ((float)(weight) / (height * height)) * 10.0) / 10.0f;
} ||

#

always had one

steel heart
cinder flare
#

oh those are multiplying pulse

#

i thought you were casting to float lmao

#

wait you were?

#

im so confused

forest pecan
#

i was

#

cause weight/height * height

#

is integer divsion

steel heart
#

ye

winter iron
cinder flare
#

ah I see I didn't know why you put weight in parens

steel heart
static zealot
#

welp I did it... xD

#

also I chose (My last play). doesn't that mean I should get 15 more seconds?

ocean quartz
#

Aight my last one

prisma wave
#

same

old wyvern
#

same

steel heart
#

cap?

old wyvern
#

what cap?

oblique heath
#

please give us reverse at least once

#

oh mighty coc gods

ocean quartz
#

I wanted shortest but Yugi removes them ๐Ÿ˜ข

prisma wave
#

nope

#

ofc not

steel heart
prisma wave
#

nah not this time

#

what the hell does this mean

steel heart
#

lol

#

promising

static zealot
#

yeah I think my last one was the other one lmao

#

to much thinking

#

for today

old wyvern
#

I have no idea what this is

static zealot
#

you get strings like this one @-|20||10|-@

#

you need to get the amount of numbers

#

that ar between | |

steel heart
#

regex pog?

static zealot
#

yeah regex would probably help a lot

forest pecan
#

omg

#

i made it big brain

#

lol

#

i made a big brain solution

#

||
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (in.hasNextLine()) {
in.nextLine();
}
int count = 0;
for (int i = 0; i < n; i++) {
String test = in.nextLine();
count += test.chars().filter(ch -> ch == '|').count();
}
System.out.println(count/2);
}
||

#

(code is above, don't look obv)

#

no regex needed xD

cinder flare
#

#2 babbyyy

#

regex gang is easy land

forest pecan
#

smh you dont even need it

#

lmfao

cinder flare
#

my solution is more resilient

forest pecan
#

its really not

#

lol

#

poor dkim

cinder flare
#

easier to change if the pattern changes lol

forest pecan
#

well its smart

#

lmao

cinder flare
#

very true, I did not think of it that way

#

but I did learn some kotlin!

obtuse gale
cinder flare
#

i mean, like a little bit

forest pecan
#

fefo do u know any kotlin?

cinder flare
#

I spent like 6 minutes on the last one learning how to use the when statement correctly

static zealot
#

what the hell is the method to get the size of a Sequence? Or is there no method for that

cinder flare
#

sequence#count()

static zealot
#

oh count

cinder flare
#

I used it in mine lol

errant geyser
static zealot
#

I just did #toList lmao

#

and got the list's size

cinder flare
#

ah i see

#

stonks

obtuse gale
#

I would say even more than dkim lol

steel heart
#

lol

static zealot
#

Well I think this is all for me for today

forest pecan
cinder flare
#

damn Matt's regex is kinda thicc and extra lol

steel heart
#

he is regex pro

cinder flare
#

"\\|(?<number>\\d+)\\|" vs "(\\|[0-9]{1,}\\|)"

#

though i guess number is probably easier to read haha

static zealot
#

btw {1,} you could've just used +

#

instead

cinder flare
#

oh rly?

#

i just read the regexr cheatsheet very quickly

static zealot
#

I think they do the same thing

onyx loom
#

count is so pog

ocean quartz
#

Also I like how after the time pressure if gone you can find super simple solutions

val pattern = "\\|(?<number>\\d+)\\|".toRegex()
println((0 until n).map { pattern.findAll(input.nextLine()).count() }.count())
#

Why did it not add spoiler

forest pecan
#

its borkne

cinder flare
#

cause it has code

forest pecan
#

yea

#

*broken

surreal quarry
#

cant spoilerize code blocks

#

i guess

cinder flare
#

my brain is not large enough to understand #map lmao

ocean quartz
#

That's dumb

tranquil crane
#

It's spoilered for me but I'm on mobile

onyx loom
#

o

cinder flare
#

lmao

#

the haskell bois at the end

forest pecan
#

๐Ÿฅฒ

tranquil crane
#

Is there a code golf mode

oblique heath
forest pecan
#

L

cinder flare
#

F

static zealot
#

he just quit

#

at the beginning

forest pecan
#

ragequit

oblique heath
#

it was too hard

#

too many characters

old wyvern
#

im confused

surreal quarry
old wyvern
#

are there multiple |x| stuff?

forest pecan
#

they arent encased i dont think so?

#

not sure

#

i dont think they are encased tho

#

just |x| multiple times per line

cinder flare
old wyvern
#

Yea I messed up then

#

rip

steel heart
#

rip

forest pecan
#

F

cinder flare
#

33% oof

prisma wave
#

why the hell

old wyvern
#

big F indeed

#

wait what

#

how?

cinder flare
#

a few only had one per line

old wyvern
#

lol

forest pecan
#

wat

half harness
steel heart
#

wait bm you did it in haskell?

prisma wave
#

dude i spent about 10 minutes debugging that and i forgot that | was a special character in regex

prisma wave
cinder flare
#

bro same

#

regexr gang ftw

old wyvern
#

bm

forest pecan
#

smart gang

cinder flare
#

and then you had to escape the \ in the string too

old wyvern
#

you need overloaded strings

#

or text.pack

prisma wave
#

how come

forest pecan
#

you could just count the number of pipes

old wyvern
#

regex is part of Text

#

not String

prisma wave
#

๐Ÿ˜ฆ

forest pecan
#
class Solution {

    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        if (in.hasNextLine()) {
            in.nextLine();
        }
        int count = 0;
        for (int i = 0; i < n; i++) {
            String test = in.nextLine();
            count += test.chars().filter(ch -> ch == '|').count();
        }
        System.out.println(count/2);
    }
}
cinder flare
#

java kinda ugly

prisma wave
#

it was kinda working

#

until i corrected the regex

old wyvern
#

weird

steel heart
#

pulse learn python ๐Ÿคก

cinder flare
#

i wanted to try ruby a few times haha

forest pecan
cinder flare
#

i don't know enough gimmicks yet though

forest pecan
#

another one?

cinder flare
#

nah im beat

steel heart
#

uh sure

cinder flare
#

im gonna go learn what map can do

forest pecan
#

just beat?

steel heart
#

map is pog

cinder flare
#

and try to force my brain to comprehend it

steel heart
#

isnt like similar to Stream#map

forest pecan
#

are you proud

#

dad

prisma wave
forest pecan
#

/s

prisma wave
#

it's exactly the same

#

lol

steel heart
forest pecan
#

you want it for the whole project

#

dont u

#

lmao

steel heart
#

yeah basically but kotlin doesnt enforce you to stream in order to map

#

so sadly java bad

prisma wave
#

regrettable

cinder flare
#

problem being I don't understand Stream#map either lmao

forest pecan
#

maps shit basically?

#

to index

#

or key, value

#

etc

old wyvern
#

You map each value to another value using a function

steel heart
#

Idk for instance
Stream.of("string","mama")
.map(str -> str.hashCode())
.forEach(System.out::println)

this would print the hashcode of string and mama

prisma wave
#

apply a function to every value in the list, make a new list of those new values

forest pecan
#

for example if you had a class User and each user had a UUID and you wanted all the UUIDs given a Collection of User, you could use Stream#map to map a value from the User class to an actual stream

#

then collect it using Stream#collect

steel heart
#

Function<K,V> is like a consumer but it returns a value

forest pecan
#

Also works for building maps and stuff

#

ya

oblique heath
#

so map is basically

List<V> v_list
for(K : List<K>)
  v_list.insert(function(K))
prisma wave
#

yes

#

exactly

cinder flare
#

I think I just need to see the possibilities of what all you can do

steel heart
#

val o: K -> V

#

๐Ÿ˜ฎ

heady birch
#

how to make a non-secondary constructor?

prisma wave
#

f# syntax

prisma wave
heady birch
#

compiler hacks?

prisma wave
#

pretty sure thats the issue anyway

#

nah

heady birch
#

oh wow how the htables turned

#

lombok

prisma wave
#

kotlin compiler actually supports stuff like this so it's not a hack ๐Ÿ™‚

forest pecan
#

everyone quick

#

shade lombok

heady birch
#

link me

forest pecan
#

make sure to shade lombok with kotlin too

heady birch
#

to the right plugin

cinder flare
#

i already do throw shade at lombok, like every day

forest pecan
prisma wave
#

id "org.jetbrains.kotlin.plugin.spring" version "1.4.31"

heady birch
#

NO

#

Yes

forest pecan
heady birch
#

Would be nice if RECORD class suppiort

surreal quarry
#

someone add lombok to terrible-plugin

forest pecan
#

support lombok

surreal quarry
#

i dont think we've covered that yet

forest pecan
#

lol

#

yea

#

wait

#

you need to shade the tunity jars

#

and paper jars

#

and everything inside too

half harness
#

why

forest pecan
#

James

#

lol

cinder flare
#

tuinity adds api features?

surreal quarry
#

we shade all dependencies including the 1.8 spigot api and groupmanager

#

๐Ÿ™‚

forest pecan
#

Yes

jovial warren
#

pog

#

Krypton now has ticking

#

time is now ticked

surreal quarry
#

nice

forest pecan
half harness
#
abstract class Command(jda: JDA) : CommandHandler(jda) {
    abstract val command: String
    abstract val name: String
    abstract val aliases: Set<String>
    abstract val description: String
    abstract val arguments: Set<CommandArg>
    abstract val type: CommandType
    abstract val minArgs: Int
```any opinions?
also i already applied this to all my cmds so unless theres something 
a) horrible
b) small and easy to fix/change
I won't change it :p
half harness
#

also i should probably make those variables not abstract

#

and just put in constructor

#

lol

prisma wave
#

yeah looks fine

surreal quarry
#

thats hideous change everything about it now thanks please and thanks of course

forest pecan
#

thats hideous change everything about it now thanks please and thanks of course

half harness
static zealot
surreal quarry
#

i always do abstract for that stuff dkim

half harness
#

those go in arguments @static zealot

static zealot
#

ah makes sense

#

lmao

prisma wave
#

abstract probably better

half harness
static zealot
#

just edit the message to ping me

half harness
#

oh

prisma wave
#

not that there's a huge difference

forest pecan
#

use brigad for jda

#

:kekw:

half harness
static zealot
#

@half harness please do share the code with me after. I was to lazy to make my own lmao

jovial warren
#

[Watchdog (I'm watching you)] lol

surreal quarry
#

use slashcommands feature branch

static zealot
#

and just did it with the message listening

static zealot
#

yeah I did it in kotlin

half harness
#

and using.. my.. code..? ๐Ÿ‘€

static zealot
#

if it works it works lmao

half harness
#

I'm finally becoming a decent dev ๐Ÿฅณ

surreal quarry
#

it doesnt work kekw

half harness
#

๐Ÿ˜‘

#

i didn't test it yet tbh

#

sooooooooooooooooooooo

static zealot
#

actually I think I've actually seen something on github

#

before

half harness
#

oop

forest pecan
#

sry kid

half harness
#

but-

#

before-

static zealot
#

:))

forest pecan
#

maybe 4 now if we are geneous

#

but still 3

static zealot
half harness
static zealot
#

lmao

half harness
#

ok

#

thats a lot better

#

xD

#

although I didn't want to use it

#

dont ask y

surreal quarry
#

this is so hot

static zealot
#

dkim its not that I don't trust your code but this one is already made and if I start changing it now I won't want to change it again

steel heart
#

slashcommands lib james?

#

or just normal command framework thing?

surreal quarry
half harness
surreal quarry
#

just something i slapped together today

#

it just wraps the feature branch for it

#

jda

steel heart
#

omg

#

thats

#

gorgeous

surreal quarry
#

i love it

half harness
#

it's just that jda utilities doesn't have everything i want

#

such as changeable prefixes

#

u have to pick one when building jda instance

static zealot
half harness
#

iirc

jovial warren
#

oh also, Krypton also has watchdog

half harness
#

and you can't change

prisma wave
#

pr or shut up?

half harness
#

or have different ones for each server

static zealot
#

what library did you use to make the bot?

surreal quarry
#

jda

static zealot
#

oh hmm

jovial warren
#

Krypton has a thread that will stop the server if the tick time gets over a certain threshold

surreal quarry
#

they have a slash commands feature branch thats pretty good

half harness
#

jda ftw

static zealot
#

JDA

half harness
#

y u go hmm then

static zealot
#

someone recommended ktor or whatever it was

half harness
static zealot
#

called

jovial warren
#

slash commands good, but the API for them is terrible

half harness
#

oh

surreal quarry
#

he was just asking cause the slash commands im pretty sure

static zealot
#

yeah I didn't know slash was in jda as well

half harness
#

ye jda has slash commands branch

#

iirc

jovial warren
#

Ktor is a web library

half harness
steel heart
#

I like slash commands api lol

static zealot
#

maybe on the utilities ?

static zealot
steel heart
#

or like the web thingy is nicoe

jovial warren
#

man, Krypton actually has ticking now

static zealot
#

I knew ktor is a thing. didn't know if its the bot api or whatever it is

jovial warren
#

this is amazing

surreal quarry
#

ktor is just a web library

static zealot
#

yeah I just didn't bother googling

#

to make sure lmao

surreal quarry
#

so you can use it for slash commands cause thats json based if you dont have a lib for it

jovial warren
#

a very idiomatic web library (@prisma wave)

winter iron
#

whats the difference between implementation and compileOnly again? I think its compileOnly doesnt compile the dependency to final jar

static zealot
#

also OVH finally restored my VPS so now my bot is online non stop

surreal quarry
#

it doesn't shade

#

if its compileOnly

winter iron
#

ah ok

surreal quarry
#

its provided at runtime, for example paper api or something

half harness
#
        CommandClientBuilder builder = new CommandClientBuilder();
        
        // Set your bot's prefix
        builder.setPrefix("!");
        builder.setAlternatePrefix("+");
        
        // Add commands
        builder.addCommand(new CoolCommand());
        
        // Customize per-guild unique settings
        builder.setGuildSettingsManager(new MyBotsGuildSettingsManager());
        
        CommandClient client = builder.build();
        
        new JDABuilder(AccountType.BOT)
            // ...
            .addEventListener(client) // Add the new CommandClient as a listener
            // ...
            .buildAsync();
```jda utilities has fixed prefix ๐Ÿ˜ข
static zealot
#

oh that's nice

#

yeah I think I'll just use the utilities dkim

winter iron
#

so things like kotlinx coroutines should be implementation and paper-api is compileOnly?

steel heart
#

jda is big dodo when u can use discord4j

surreal quarry
#

yes sensei

winter iron
#

Kool

steel heart
#

sensei if a dependency should be in ur jar when outing (shaded), then implementation

#

if you just rely on it and some other plugin provides the class (or the server) then compileOnly

winter iron
#

yah yah

#

๐Ÿ™‚

steel heart
#

yo olivo

simple kestrel
#

Hm I've never used discord4j

#

Hi

static zealot
#

hello sir

steel heart
#

welcome to the cool kids

static zealot
#

or

#

whatever you consider yourself

#

lmao

#

cool kids club

#

ckc

#

hmm that sounds bad

steel heart
#

yeah its da crib tho

static zealot
#

the coc club is better

#

damn we were like 10 playing coc today

#

I just realised

#

took me an hour

#

lmao

half harness
#

hmm.. seems good...

except that the cpu is 11 years old and is worse than a 2.50ghz cpu

#

(note that this is my pc, my laptop has 1ghz cpu lol)

oblique heath
#

what cpu is it

#

11 years sounds like a 4th gen

#

or something

#

wait no

static zealot
#

he has celeron

#

on his laptop

half harness
#

my pc has intel i5

oblique heath
#

what gen

half harness
#

idk

oblique heath
#

i5 is not really that important lmao

half harness
#

intel i5 3450

oblique heath
#

ok 3rd gen

#

honestly fine

steel heart
#

hey I found this nokotlin

oblique heath
#

old desktop core iXs are decent, even 3rd gen

steel heart
#

i have i7

static zealot
#

someone give me the & symbol

half harness
#

if you count 20 fps in hypixel lobby

steel heart
#

but my pc is still dodo

static zealot
#

not this one

half harness
#

๐Ÿคข

static zealot
#

the other one t

#

that chatcolor translates to

half harness
#

?

oblique heath
#

well your 20 FPS is not because of your cpu

onyx loom
#

it really depends on what u do with it

static zealot
#

ty ty

oblique heath
#

it's because of your poopy integrated gpu

half harness
#

lol

#

not true

oblique heath
#

dkim are you using integrated graphics

half harness
#

i know someone that has worse igpu than me but better cpu and gets like 150 fps

#

yes

#

i am

oblique heath
#

it's your gpu

half harness
#

oh

#

maybe its bc old gpu

#

old everything

#

๐Ÿคฎ

oblique heath
#

the cpu is fine but the gpu on it is... not so fine

half harness
#

ic

#

ok

oblique heath
#

also how does someone have a better cpu than you but a worse igpu

#

that doesn't add up

pale shell
#

honest question who started convincing everyone to use kotlin?

half harness
#

i just googled "gpu a vs gpu b"

#

๐Ÿคท

oblique heath
#

what was his gpu

half harness
#

i forgot

#

it was a long time ago

#

lol

half harness
#

and someone else

onyx loom
#

sx ๐Ÿ™‚

oblique heath
#

well either way you realize integrated gpus are literally inside the cpu right

half harness
#

although he hates kotlin now

forest pecan
#

Sxtanna

onyx loom
#

๐Ÿ˜”

pale shell
#

brister hates kotlin?

oblique heath
#

so it's not possible to get a worse igpu inside a newer cpu

half harness
#

yes

static zealot
#

no

forest pecan
#

why did Sxtanna leave again?

pale shell
#

wtf

static zealot
#

well he didn't

forest pecan
#

i wasnt there

onyx loom
#

he didnt leave ๐Ÿฅฒ

#

worse ๐Ÿฅฒ

forest pecan
#

could someone describe what happened

half harness
static zealot
#

he's the one who forced me to learn it before java Untouched

#

but he moved on

#

that's why I don't trust him anymore

pale shell
#

so brister convinced everyone to learn Kotlin now hes onto a new language?

half harness
forest pecan
#

i wasnt here when he was here, what happened?

obtuse gale
#

how to add cooldown in deluxe menu gui ?

static zealot
#

even when he'll finally launch the yt tutorials I won't watch them

half harness
#

and you'll see how he changed

steel heart
#

kotlin is so 2020

#

lol

obtuse gale
#

sorry

onyx loom
#

i dont think he hates kotlin because java and kotlin are still his main languages for his projects afaik, but he prefers more functional stuff now

forest pecan
#

could someone explain what happened with Sxtanna tho?

forest pecan
#

cause i wasnt there

onyx loom
#

dw pulse ๐Ÿฅฒ

forest pecan
#

when he left

steel heart
#

Sxtanna was somewhat toxic

onyx loom
#

lets not go there

forest pecan
#

Dms?

#

conclure

steel heart
#

ended up dooding him

forest pecan
#

were you there when it happened

steel heart
#

I did read

#

it

#

idr much tbf

half harness
#

lol

forest pecan
#

hes joking

#

lol

simple kestrel
#

Hi Pulse

forest pecan
#

Hi

half harness
forest pecan
#

lol

half harness
pale shell
static zealot
onyx loom
#

@prisma wave lets clarify this

onyx loom
#

do u HATE kotlin?

pale shell
#

LOL

steel heart
#

omg

steel heart
#

fucking

steel heart
#

whywhwyhy

half harness
#

oops

#

wrong reply

onyx loom
#

might wanna add <> to it ๐Ÿฅฒ

steel heart
#

jesus discord sucks

half harness
simple kestrel
#

So I've been learning React for about a week now. It's quite neat ngl

half harness
#

lol

static zealot
#

lmaooo

forest pecan
#

lol

half harness
#

blitz what did u send

prisma wave
#

oh boy that's a lot of links

forest pecan
#

React is pretty cool

prisma wave
#

worst language

onyx loom
#

lol

onyx loom
#

intriguing

forest pecan
#

ikr

onyx loom
#

that was a genuine question, i hope it was a genuine answer

steel heart
#

right?

prisma wave
#

ok but why has nobody mentioned wiki.brister mitten yet

static zealot
prisma wave
steel heart
#

yep

onyx loom
#

๐Ÿ™‚

static zealot
#

fuck paper then

#

lmao

static zealot
#

I'm going to switch to Krypton

#

its way better

#

and its written in kotlin

steel heart
prisma wave
#

that is correct yes

steel heart
#

kotlin bad

prisma wave
#

kotlin is nice

onyx loom
#

pog

prisma wave
#

but kinda lacking

steel heart
#

tbf

#

html

#

perfect programming language

oblique heath
#

i disagree

#

CSS has much better type safety

prisma wave
#

o:html

half harness
#

you just wasted 10 seconds by reading this entire message thats actually not useful for anything but wasting your time which is where this message has been made for and apparently my message worked and wasted another 10 seconds of your life because you continued reading the message which means ive got your interest but believe me there isnt anything in this message or is there maybe there is and you just read competely over it and maybe not and you just spend another 20 seconds searching for it but there isnt anything special so ive jebaited you now you have to live with the fact that ive wasted another 10 seconds of your life and the fact that ive jebaited you ๐Ÿ™‚

forest pecan
#

the best language is ELARA!!!!

steel heart
#

well css isnt as declarative right?

#

or mb it is

prisma wave
#

it is

steel heart
#

anyways

#

css is ugly

prisma wave
#

all markup languages are declarative

forest pecan
#

@half harness

#

go die

prisma wave
#

they describe something, rather than doing something

forest pecan
#

i saw that

half harness
forest pecan
#

lol

steel heart
#

oh realluy

#

cant u define some more stuff than just describe

old wyvern
oblique heath
#

they mark stuff up

steel heart
#

and like mutate variables, isnt that a thing

prisma wave
#

i dont think anything is mutable

#

even something like SCSS would still be declarative

static zealot
steel heart
#

hmm oh nvm u can override

#

thats stupid

#

I love mutability

half harness
#

reddit?

forest pecan
#

guys

#

dkim is a simp

steel heart
#

lol true

forest pecan
#

exactly

#

couldn't be me

steel heart
#

idk but dkim is objectively a simp

half harness
#

WHAT

#

HOW

#

WHAt

forest pecan
#

Simps for his 3 only braincells

half harness
#

explain

forest pecan
#

๐Ÿฅฒ

half harness
#

._.

ocean quartz
#

Everyone is a simp

half harness
#

oop

steel heart
#

no

forest pecan
#

Who do you simp for Matt

steel heart
#

pulse cannot be a simp

ocean quartz
#

My fiance

forest pecan
#

Oh Sheeeet

#

i didnt know lol

ocean quartz
#

Dkim simps for 1.8

steel heart
#

if pulse would have been simping rn then he would jerk off to that lol character or smtng tbr

ocean quartz
#

Ahri is a hottie though

half harness
#

what is a name thats common in arrays, sets, and lists?

forest pecan
#

lol

prisma wave
#

collection

forest pecan
onyx loom
#

disctionary map ๐Ÿ™‚

steel heart
#

:]

half harness
#

whats a good name for a kt file with extension functions for arrays, sets, and lists?

#

CollectionFunctions? ๐Ÿค”

ocean quartz
#

Collections

forest pecan
#

Matt do you want to hear ahri death sounds

#

lol

half harness
forest pecan
#

Only league players would understand

steel heart
#

DkimsProExtensionFunctionsProviderOfArraysSetsListsAbstractImplFinal

forest pecan
#

lmfao

ocean quartz
forest pecan
#

Hm let me give that a try

#

OH SHIT LMAO

#

the first second i heard it i was like

#

i'm glad im not living in russia

#

๐ŸŒš

static zealot
#

lmao

#

I do ivan*

oblique heath
#

xd

static zealot
#

lmao

sweet cipher
#

hmm what type of things?

oblique heath
#

things that cost $5

sweet cipher
#

So you'll pay me $5?

oblique heath
#

sure if you do something for me

sweet cipher
#

I'll give you $5?

oblique heath
#

no

#

$10

sweet cipher
#

hmm

#

Thats too expensive for me

#

Its a good deal. Just not for me.

oblique heath
#

fair enough

half harness
#
        Thread().run {
            val scanner = Scanner(System.`in`)
            while (scanner.hasNext()) {
                if (scanner.nextLine().equals("stop", ignoreCase = true)) {
                    println("Stopped")
                    exitProcess(0)
                }
            }
        }
```better way to do this?
steel heart
#

ugly

#

what

#

the

half harness
#

lmao

steel heart
#

you hate yourself rly

half harness
#

mhm

steel heart
#

well

#

it works fine Ig

#

just dont share the scanner over threads

half harness
#

wdym

steel heart
#

well its not thread safe

surreal quarry
#

i think he means don't share the scanner over threads

surreal quarry
#

but im not sure

steel heart
surreal quarry
#

i think he means that too

steel heart
#

how predictable someone figured

sweet cipher
#

It wasn't clear enough

half harness
#

A Scanner is not safe for multithreaded use without external synchronization.
sooo how do i fix this?

steel heart
#

you dont need it to be

sweet cipher
#

External synchronization

steel heart
#

assume the scanner usage is internal to one thread

half harness
#

plz just spoonfeed me

steel heart
#

I dont have a spoon 2day

half harness
#

:c

#

aw man

surreal quarry
#

i hav fork

sweet cipher
#

There is probably lots of google answers

steel heart
#

^

#

when u successfully grow your brain to 5head level so that u can answer dkims questions

sweet cipher
#

Using Scanner in a Thread? or something.

#

A google bot would be pretty cool like dkim suggested lol

half harness
#

=google

sweet cipher
#

No more leaving discord

half harness
#

i give up

#

wait

sweet cipher
#

But you've spent so much time looking!

half harness
#

wouldn't it not matter

#

since im making the scanner in the same thread

#

that im using it in

prisma wave
#

there's nothing to fix

half harness
#

so its not async

prisma wave
#

yes it is

half harness
#

how

prisma wave
#

how isn't it?

half harness
#

idk

steel heart
#
Consumer<String> consoleHandler = str -> {
  
};
Thread t = new Thread(() -> {
  Scanner scanner = new Scanner(System.in);
  while (scanner.hasNext()) {
    String line = scanner.nextLine();
    consoleHandler.accept(line);
  }
});
t.setDaemon(true);
t.setPriority(Thread.MIN_PRIORITY);
t.start()

pretty sure its similar to this in java

#

or smtng

#

but anyways

half harness
#

ur making the scanner in the thread

steel heart
#

keep that idk shouldnt have mentioned the not thread safety

#

yeah

half harness
#

โ“

prisma wave
#

thread safety doesnt matter if youre only accessing it from 1 thread...

half harness
#

im not using it in another thread

#

just that one thread

steel heart
#

it works fine my statement was purely a warning tbf

prisma wave
#

then it's perfectly fine

half harness
#

iuahsiudhisauhdiaushdikjwashdiuashdiuasdiuajkdp9oiqawjuihdjsad

#

u guys confused me so much that i naturally opened up mc

prisma wave
#

actually

half harness
#

hey its open

prisma wave
#

the Thread().run{} looks wrong

#

thats not gonna do what you think it will

half harness
#

oop

steel heart
#

yeah better start it instead

prisma wave
#

you want thread {}

half harness
#

its been working tho

half harness
ocean quartz
#

C o r o u t i n e s

half harness
sweet cipher
#

G o o g l e

steel heart
#

B I G B R A I N

half harness
#

2 SECONDS OFF

#

NOOO

sweet cipher
#

Why did you want 65?

half harness
#

no ๐Ÿคฆ

prisma wave
#

cant be

steel heart
#

69

sweet cipher
#

Oh I see you have to account for rounding, 66?

half harness
half harness
steel heart
#

dkim
Thread t = new Thread(() -> {});
t.run();
is like
Runnable r = () -> {};
r.runt()

#

so yeah

#

start

half harness
#

runt

prisma wave
#

thread {}

#

lowercase

half harness
#

ill test this in a few mins

#

after i play some hypixel

#

lol

prisma wave
#

then you dont need to .start()

half harness
#

ah

#

ok

steel heart
#

oh kotlin infers it lol

prisma wave
#

no, it's just a helper function

ocean quartz
#

Thread is so ugly

half harness
#

bm come back to kotlin ๐Ÿ˜ญ

steel heart
#

hm

half harness
steel heart
#

helper function?

half harness
#

error

prisma wave
#

import?

half harness
#

fixed

prisma wave
#

smh

prisma wave
half harness
#

๐Ÿ˜ค

steel heart
#

dkim u play the pit?

half harness
#

no

#

thats duels

#

i get like 15 fps in pit

steel heart
#

lol noob

half harness
#

ok ill be afk for like 5 mins while i play a round of bridge

prisma wave
#

no you wont

#

get back here

#

now

half harness
#

btw is queue dodging against hypixel rules?

prisma wave
#

why would we know that

sweet cipher
half harness
#

ok i won

steel heart
#

utility function

half harness
#

they rage quit

#

awesome

ocean quartz
steel heart
#

HMM kotlin and all these features

half harness
steel heart
#

why is it overwhelming

half harness
#

im developing skills

#

and knowledge

ocean quartz
#

Who cares about Hypixel

half harness
#

no one

steel heart
#

I mean

#

hypixel is nice

#

my favorite emote

half harness
#

1.8 hater likes hypixel?

steel heart
#

well

#

I dislike version 1.8

ocean quartz
steel heart
#

I have no contradictions against no cooldown pvp

half harness
#

conclure ur confusing me

#

do u like 1.8 or not

steel heart
half harness
#

yes or no

steel heart
#

I dislike that people use 1.8

half harness
#

oop

#

bye

steel heart
#

you see its a fkn old version

half harness
#

what if 1.8 was released 1 month ago

#

would u like it

steel heart
#

but 1.8 pvp (no cooldown pvp) is something I have an interest in

sweet cipher
#

1.16 pvp takes years though, and I don't have time for that

half harness
#

decades*

steel heart
#

dkim

#

yes but thats a totally different story

oblique heath
#

you can recreate no cooldown pvp in 1.16

half harness
#

but

#

30% of why i hate 1.16

cinder flare
#

blitz with no squidward pfp is a trippy feeling

half harness
#

IS ITS KB

#

ITS KB

#

IS SO

#

BROKEN

ocean quartz
sweet cipher
#

I like 1.16, just not pvp

steel heart
#

Although I really think minecraft should add dinosaurs

sweet cipher
#

I agree

half harness
#

:dino

#

oh

#

theres no dino emoji?

#

๐Ÿ˜ฆ

oblique heath
#

minecraft already has dinosaurs

cinder flare
sweet cipher
#

Dead ones

oblique heath
#

^ dinosaur

sweet cipher
#

Forgot about that lol

steel heart
sweet cipher
#

But why would you choose that as the picture

cinder flare
steel heart
#

I mean like actual dinos lol

half harness
#

@sweet cipher do u pvp

oblique heath
#

i have never used that as my pfp

sweet cipher
#

I play hypixel sometimes when I have time

oblique heath
#

though it's not out of the question

cinder flare
#

i know it was a hot meme cause your pfp is a duck

half harness
#

we should 1v1

steel heart
#

dkim I take u easy in 1v1 ๐Ÿ˜„

sweet cipher
#

lol

half harness
#

ill probably lose

#

but

#

it'll be fun

steel heart
#

let me toggle ghost client ๐Ÿ˜„

half harness
#

๐Ÿ‘

half harness
sweet cipher
#

Let me just set up a server real quick and you can 1v1 me on there

steel heart
#

if I win you get to add me as friend on hypixel else I get to add you, deal?

sweet cipher
#

ooh tough conditions

half harness
#

mhm

#

im taking a big risk

#

๐Ÿ˜ฌ

sweet cipher
#

What about a tie?

half harness
half harness
sweet cipher
#

Same but its dead lol

half harness
#

just private

sweet cipher
#

I just run one on my computer whenever I need to test things

half harness
#

aaaaaaaaaaaaaaaaaa

steel heart
#

hm?

#

anything wrong?