#dev-general

1 messages · Page 221 of 1

static zealot
#

that too

obtuse gale
#

top notch

ocean quartz
#

Yes

old wyvern
#

mfToolkit

hot hull
static zealot
#

well that's the biggest lie I've ever told myself. And I did it a lot of times. still doing it

normal talon
#

But doesnt minecraft plugin already create a good plugin.yml

hot hull
#

:what:

steel heart
#

It’s fine

obtuse gale
#

It creates a great one!

#

It's fantastic

steel heart
#

That’s a sin

obtuse gale
#

I'm a sin

hot hull
#

kinky

#

Remember, if you don't sin a little, jesus died for nothing

static zealot
#

can we play some clashofcode or whatever that is called?#

#

someone make a game please.

prisma wave
#

absolutely

static zealot
#

@hot hull make a game

hot hull
#

Not on pc anymore, and it's broken for mobile so

prisma wave
#

😦

static zealot
#

that's sad

steel heart
#

Same

static zealot
#

I'm just going to lose against EM

prisma wave
#

lol

static zealot
#

Matt is on phone as well 😦

prisma wave
#

smh

hot hull
#

What's sad is it's 6pm and I'm already lying in bed

prisma wave
#

anyone?

#

@old wyvern @onyx loom

steel heart
#

@obtuse gale

#

@surreal quarry

#

@remote goblet

#

@lavish notch

static zealot
#

@static zealot

steel heart
#

@light venture

prisma wave
#

i stg we need to have an official tournament of this some time

lavish notch
#

?

prisma wave
#

clash of code

light venture
#

...

lavish notch
#

Why ping me?

static zealot
#

join clash of code

light venture
#

i cant code '-'

static zealot
#

its not an optio

#

n

#

doesn't matter

light venture
#

oh god

prisma wave
static zealot
#

better for me bcz I won't lose

prisma wave
#

lmao

steel heart
#

Me

#

Clash of code

#

Or ban

static zealot
#

join or eat dirt

steel heart
#

@pallid gale join us lol

static zealot
#

xD

lavish notch
#

bet elara isn't in this

ocean quartz
#

@ocean quartz

static zealot
#

matt is on phone

#

we can't ping him

#

bcz he can't join

prisma wave
static zealot
#

🙂

surreal quarry
#

i can’t join not at home

prisma wave
#

smh

ocean quartz
#

Is that a challenge? Gonna join and play it on my phone

prisma wave
#

good

prisma wave
#

somone @ocean crag role

#

AAH

#

sorry

static zealot
#

xD

prisma wave
#

sorry

static zealot
#

LOL

prisma wave
#

why not

light venture
#

imma do

#

great

#

at this

prisma wave
#

lol

ocean quartz
#

Oh need to login, nvm

prisma wave
#

😦

static zealot
#

@compact perch join

#

@quick lava you seem like you'd know how to code. join

light venture
#

@quick lava is hotter

#

ngl

prisma wave
#

@everyone

loud gyroBOT
#

The 'everyone' mention is disabled so you can't annoy people.

prisma wave
#

dont care

ocean quartz
#

Fun fact, Barry is a great dev, it coded itself into existence

light venture
#

dont make ppl shit themselves

prisma wave
#

?

#

ok let's go

light venture
#

i thought

#

it was gonna be a kahoot

#

but its like actual code

prisma wave
#

lol no

light venture
#

oh fuck

prisma wave
#

xd

ocean quartz
#

Lmao

static zealot
#

wait

light venture
#

efefury me vs u

static zealot
#

do I just make

light venture
#

yes

static zealot
#

do I just print from end to start?

light venture
#

neither

static zealot
#

xD

light venture
#

i cant code either

static zealot
#

I don't get the question. The example is not much

#

right box

#

@obtuse gale

lavish notch
#

reverse it

static zealot
#

no

#

...

#

you did 0%

#

you need to code here

#

you could chose the language

#

you want

light venture
#

oh gods

#

im stuck on python hello world

static zealot
#

xD

#

you can change it

#

even after you started

#

thats an example smh

light venture
#

why groot coming up

#

tf

prisma wave
#

multiple tests

static zealot
#

yo

#

those are example

prisma wave
#

to make sure you don't just print the answer lol

static zealot
#

and tests

#

to make sure your program works

#

lol

light venture
#

ah

steel heart
#

You get an input string and then you have to print it I believe

light venture
#

u passed?

steel heart
#

accordingly

light venture
#

few

prisma wave
#

another W for haskell

light venture
#

ha i still got 3 chances!

prisma wave
#

lol

static zealot
#

wait I have to use just 1 println?

#

can't use a lot of prints? xD

prisma wave
#

it has to work for every possibility, you can't just print out the answers

#

i think it does some extra tests to make sure you don't just do that

steel heart
#

Let me join next one

prisma wave
#

good

steel heart
#

It’s a debacle that em wins

prisma wave
#

yea it's a bit tricky at first

#

haskell wins

steel heart
#

Among us?

light venture
#

mhm

steel heart
light venture
#

im lost

#

rofl

hot hull
#

Playing with randoms is lame

#

Only way is if you have a full lobby of friends on vc

old wyvern
#

@prisma wave you guys still playin?

static zealot
#

ye

prisma wave
#

yep

static zealot
#

6 minutes left

old wyvern
#

link?

static zealot
#

wait in kotlin, replace replaces just the first or all values?

old wyvern
#

first

static zealot
#

oh yeah

#

replaceALL just like in js

old wyvern
#

link hex

static zealot
#

oh this answer is the best

#

xD

old wyvern
#

xD

#

link me

static zealot
#

ugh

#

can I just give the link

old wyvern
#

we need a bot for this

prisma wave
#

cc @pallid gale

old wyvern
#

clash of barry

prisma wave
#

😳

static zealot
#

wait

#

replace does replace all

#

replaceFirst

#

replaces first

#

think I got it

#

yep

#

it works

#

not the prettiest and smalest

#

but it works

#

Haskell

prisma wave
#

haskell

static zealot
#

wait

#

oh this was based on time

#

I was going to say is it based on characters

prisma wave
#

yea not size

static zealot
#

but nah

prisma wave
#

lol

static zealot
#

well I was going to ask if they count messages

#

as well and spaces and new lines

#

xD

#

jesus

#

yugi just joined

old wyvern
#

lol

static zealot
#

and did 100%

#

well

prisma wave
#

nice

static zealot
#

stil beat him

#

lol

#

xD

#

wait reversed is a thing huh? xD

old wyvern
#

yea

prisma wave
#

yeah lol

static zealot
#

I rly need to go back thru all methods and stuff

old wyvern
#

kotlin has functions for every damn thing

prisma wave
#

kotlin has a crap ton of extension functions for things like this

static zealot
#

because I forgot most things

#

well not most

#

but some

onyx loom
#

🙂

static zealot
#

look its a wild @onyx loom

prisma wave
#

join

#

or else

static zealot
#

yes

#

join

#

or else

onyx loom
#

nah 💯

static zealot
#

@onyx loom

prisma wave
#

😦

static zealot
#

join we said

onyx loom
#

playing ps4

prisma wave
#

dont care

#

join

#

clash > ps4

static zealot
#

understandable have a great day

onyx loom
#

😐

#

if it ever gets released kek

static zealot
#

ye I'm so excited for a game I'll never play 😦

onyx loom
#

o

#

ive heard about that lmao

old wyvern
#

20 years?

#

wait what?

#

So when did this game start developement?

onyx loom
#

berlin airport was started 20 years ago

static zealot
#

yooo

#

what the hell

#

its 7 pm

#

thought its already 11 pm

onyx loom
#

but maybe cyberpunk has too 🤔

light venture
#

i gave up

#

in the end

prisma wave
#

😦

static zealot
#

jesus christ its so dark outside

light venture
#

i cant even print hello world in python

onyx loom
#

print

static zealot
prisma wave
#

print("Hello World")

static zealot
#

well I can't go out

prisma wave
#

yooo

#

the gang

static zealot
#

I'm locked in

#

until tomorrow

#

lol

#

if I want to kill someone

#

xD

prisma wave
static zealot
#

I have covid

#

well had

prisma wave
#

o

onyx loom
#

ok fine

hot hull
prisma wave
#

thank you

old wyvern
#

Were you asymptomatic?

hot hull
#

@prisma wave

onyx loom
#

ill have a couple games seems as tho im waiting for my friend to come back

prisma wave
static zealot
#

yes

hot hull
#

😏

static zealot
#

my whole family was. just my mom had some problems

#

but not bad

#

and got better very fast

onyx loom
#

hello!

static zealot
#

k we can start

#

Kaliber joined

prisma wave
#

ok

#

awesome

static zealot
#

its all we needed

prisma wave
#

haskell time

hot hull
#

Y'all boutta get recked

static zealot
#

k

prisma wave
#

ooo

static zealot
#

oh shit

#

more math

onyx loom
#

basically all of it is math

#

ok whats the odds of kotlin having a simplify function

prisma wave
#

pretty sure it doesn't im afraid

onyx loom
#

☹️

#

gonna pr the stdlib and add it now

hot hull
#

Yea keyboard input on mobile doesn't work at all

prisma wave
#

rip

#

rip

#

this is tricky tbf

onyx loom
#

lots of checks by the looks of it

prisma wave
#

o it's shortest too

#

smh

static zealot
#

no its not. I just can't do it for some reason they don't allow for lloop

#

3 minutes and I can't get my for to work xD

onyx loom
#

i just got a stack overflow i think kekw

hot hull
#

It was a simple question, y'all just stupid

onyx loom
prisma wave
#

smh

hot hull
#

I know you are but what am I 😎

prisma wave
#

none can beat haskell

#

none

hot hull
#

Elara worse than Haskell confirmed?

prisma wave
#

yes

#

ima make food 1 sec

onyx loom
#

@prisma wave what the fuck is this

old wyvern
#

ey

onyx loom
old wyvern
#

clutch

#

||my $a=$n,$b=$d;my $temp;while($a!=0){$temp = $a;$a=$b%$a;$b=$temp;}my $r=($n/$b). "/" .($d/$b);print $r;||

onyx loom
#

readable

old wyvern
static zealot
onyx loom
#

yea we tried similar things blitz

static zealot
#

well it did tell me

#

that I can't use for or while

#

that I can only use expressions

old wyvern
#

you needed to iterate backwards blitz

#

You would print for all common factors there

prisma wave
onyx loom
#

disgusting

#

remove this disgusting sight

prisma wave
#

It's pretty clean when it's not minified

static zealot
#

another round? XD

hot hull
#

@obtuse gale Almost 7 pm

prisma wave
#

Do 1 without me

onyx loom
#

if thats my first haskell encounter, i dont wanna see anymore of it

hot hull
#

Np

prisma wave
#

smh

prisma wave
#

I spent like 2 minutes removing all the spaces and this is what I get

#

No appreciation

old wyvern
#

I dont know a thing about it but ill google shit up just to annoy

#

😂

heady birch
#

wait for me

onyx loom
#

pls no

old wyvern
#

@heady birch join

prisma wave
#

monads

#

Side effects

onyx loom
#

ing

heady birch
#

Am I in?

onyx loom
#

yes

heady birch
#

Good

onyx loom
#

gtg

static zealot
#

welp

#

oh no

#

what in the

#

ye I think this is just you guys. I ain't got a clue what's happening there

#

wait a minute

#

nvm

#

I got it

heady birch
#

it swaps chars or whatever i got bored

static zealot
#

yep

#

but I can't just do replace.replace

#

xD

#

and he gets 100% xD

old wyvern
#

😂

#

kotlin

#

map

static zealot
#

OH

#

welp gtg

steel heart
#

Why can’t we have lambdas for single public abstract methods from abstract classes

prisma wave
#

java is good

#

Presumably because they could have constructors

#

And most of the time they would

#

So it would be pointless to add support when you could only use it in very specific scenarios

lunar cypress
#

the question is why would you make an abstract class with just one abstract method

prisma wave
#

^

steel heart
#

Why not (:

lunar cypress
#

Because there's only disadvantage to it

lavish notch
#

Might anyone know how to add essentials api to a project? (Gradle)

hot hull
#

Same as you would add any other dependency

prisma wave
#

clash?

#

i have resorted to doing it with randoms

#

im scared

hot hull
#

You'll get rekt

#

I played with randoms and I got 3 chinese dudes who completely obliterated the challenge

prisma wave
#

exactly

#

they're like

#

professionals

#

someone has their actual photo as a profile picture 😱

hot hull
#

You're fucked if that's the case

lavish notch
#

@hot hull You tell me what I am adding then lol

prisma wave
#

i came third

#

not awful

hot hull
#

@lavish notch The dependency is on their gh

steel heart
#

I still think lambas of abstract classes would be awesome when it’s applicable

prisma wave
#

elara will support this

#

kind of

#

and by that i mean elara doesnt have abstract classes

hot hull
#

Get rekt losers

steel heart
#

Thanks for the awesome support em

#

Splendid

prisma wave
#

my pleasure

#

there is also another language which does not have abstract classes

#

known as haskell

#

Couldn't match expected type ‘[Int]’ with actual type ‘IO [Int]’

#

i no longer like haskell

obtuse gale
#

HOW do you not!!!!???

#

You just don't have ENOUGH CLASS to APPRECIATE its BEAUTY

prisma wave
#

side effects are necessary in any program

#

stupid haskell

ocean quartz
hot hull
#

oOMPa loompa

ocean quartz
#

Don't sleep deprive and code, kids

hot hull
#

Laughs in being a lazy piece of shit

prisma wave
#

😭

#

it's not a story anyone sane would tell you

lunar cypress
#

it's not like anyone could

#

nobody knows what the fuck a monad is

prisma wave
#

yeah i've seen them mentioned many times

#

no idea what it is

#

replicateM seems to be a monad

lunar cypress
#

IO is a monad as well

prisma wave
#

scary

#

words cannot express how much pain I felt trying to get a list of user inputs that weren't IO Strings

#

and apparently it's impossible

lunar cypress
#

who needs user input anyway

#

breaks purity

prisma wave
#

purity is overrated

#

clojure doesn't care about purity

lunar cypress
#

:fingerclojuremoon:

old wyvern
lunar cypress
#

Thibaud needs to stop writing me emails

static zealot
#

give me your email and I'll write you an email as well.

hot hull
#

Clean enough?

static zealot
mellow topaz
#

even cleaner

hot hull
dawn hinge
hot hull
#

Leave Topfu.

dawn hinge
mellow topaz
#

think about having -2245/4096 MB Memory

old wyvern
#

Isnt using both @NotNull and @Contract with that contract reduntant? @hot hull

hot hull
#

It is, but looks better

old wyvern
#

No it doesnt

hot hull
#

It does, shut up

old wyvern
#

Choose 1, not both

hot hull
#

Many people would argue with that

old wyvern
#

Like?

steel heart
#

Contract is good if the return may vary else nullary notations is nice

old wyvern
#

Also the you might want to clone the list so the contract applies

#

the default one

#

ah nvm its immutable

prisma wave
#

I don't think you need to send messages synchronously

#

Also remove the contract

hot hull
#

From what I've seen it fucks the order of the list BM

#

if it's async

hot hull
prisma wave
#

What list

hot hull
#

wdym what list

old wyvern
#

frost what did you use to send it async?

hot hull
#

an async scheduler

prisma wave
old wyvern
#

its handled sequentially in the other thread right?

hot hull
#

the message list BM

prisma wave
#

Oh

#

it shouldn't do?

old wyvern
#

mhm

#

unless he used multiple tasks

hot hull
#

It shouldn't, but it does lol

prisma wave
#

It'll just get added to the packet queue afaik

hot hull
#

Might be fixed on newer versions, but this is for 1.8 so..

prisma wave
#

🥶

hot hull
#

You can't respond with that, your 4head is still on 1.8 aswell

prisma wave
#

but I don't have contract annotations everywhere so...

#

I used my first kotlin contract the other day though

#

It was cool

hot hull
#

Gonna call the cops on you for doing bussiness illegally

prisma wave
#

smh

#
internal fun CommandSender.mustBePlayer() {
    contract {
        returns() implies (this@mustBePlayer is Player)
    }

    if (this !is Player) {
        throw CommandRequirementNotSatisfiedException(Errors.MustBePlayer)
    }
}
``` hot
hot hull
#

CommandRequirementNotSatisfiedException

#

I don't like this at all

returns() implies (this@mustBePlayer is Player)
onyx loom
#

👍

mellow topaz
#

why is it, that I get an error when I add ```json
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>${mongodb-driver-sync.version}</version>
</dependency>

high violet
#

!paste

#

=paste

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
HelpChat Paste

mellow topaz
#

I had to refresh maven

#

xD

normal talon
hot hull
#

Leave.

normal talon
#

Wut

hot hull
#

@obtuse gale It really isn't

old wyvern
#

I agree with passing whatever you need

#

But

#

The issue here is

steel heart
#

You don’t create direct injections because that would lead to a long arg constructor

hot hull
#

You're probs a dude who puts all your shit in like 3 classes at most

old wyvern
#

A lot of people who come here are beginners who mostly use static instances being passed around

hot hull
#

With your logic, that'd be the only reasonable way of passing shit around

frigid badge
#

Frosty you clearly don't understand what he's saying

old wyvern
#

teaching a person the SOLID principles and to pass the proper instances, especially when they dont properly understand OOP is not an easy task

#

if you want to do that

#

go right ahead

hot hull
#

Lemmo, I do.. what I'm saying is, as Conclure mentioned, by his logic your constructor would be massive if you passed only what you needed

old wyvern
#

Have a look at what people come with

frigid badge
#

I mean the constructor wouldn't be that big and if it is you clearly have a design flaw

#

but yes ideally you'd only pass what you need. I agree with Yugi though on that the people here don't even understand OOP so it's hard to take "big" steps and hence why people give more easy solutions

steel heart
#
class Bomp {
  private Object obj, obj1, obj2, obj3;
  Bomp(Object obj, Object obj1, Object obj2, Object obj3) {
    this.obj = obj;
    this.obj1 = obj1
    //etc
  }
}```
@obtuse gale I think it’s very obvious your explicit design has some flaws. I’d rather use getters and have 1 providing class bootstrapping all the necessary instances which you need to pass around.
#

Change my mind

#

What are you talking about

frigid badge
#

let's keep this civil alright

old wyvern
#

Calm down

hot hull
#

I honestly am so confused as to what you're on about, you do you fingerguns

distant sun
#

fr

steel heart
#
class Bomp {
  private Object obj, obj1, obj2, obj3;
  Bomp(Object obj, Object obj1, Object obj2, Object obj3) {
    this.obj = obj;
    this.obj1 = obj1
    //etc
  }
}```
If you’re bound with this design, keep it in that way I won’t touch your code atleast
frigid badge
#

could you elaborate on why you dislike this

steel heart
#

You’ll end up with an immense constructor

#

And also unnecessary tangle

frigid badge
#

since when is 4 objects a big constructor?

frigid badge
#

And clearly if a class has so many dependencies it clearly isn't following SRP

steel heart
#

That’s why you should be using 1 providing class for your dependencies not injecting them all explicitly

#

What is?

frigid badge
#

but why would you give so many redundant objects to an object

steel heart
#

It’s an example

old wyvern
#

Hes right about Dependency Inversion @steel heart

frigid badge
#

If I want you to make a screwdriver, and I provide you with screwdriver parts but also car parts and airplane parts

#

isn't that like really useless

steel heart
#

not rly

old wyvern
#

Im pretty sure the point of the example in the faq was just to lower the entry point for new people who are very common in that channel

steel heart
#

Anyway I don’t have time for someone who wants to inject everything explicitly

frigid badge
#

I've tried explaining it before to people and they didn't understand lol

old wyvern
#

^

heady birch
#

Oh right I see

steel heart
#

Show us the good practice then

frigid badge
#

let's just have you guys agree to disagree before this turns badly

heady birch
#

I missed the start of conversation but prefer

class TheClass {
  public TheClass(final Server server, final Logger logger) {
  }
}```
Over passing a Plugin
steel heart
#

I’d pass plugin

frigid badge
#

yeah those are just examples though prob

heady birch
#

Yeah probably a bad example

#

And you can test TheClass much easier like that

steel heart
#

Actually Bomp it depends when you’d explicitly inject it and implicitly inject it with a container class

#

Like Niall brought up, JavaPlugin would be a good example

steel heart
#

For instance

#

well yeah the main plugin class

#

For argument sake you’d probably inject your main plugin class rather then each instance contained in it by itself explicitly

prisma wave
#

What

#

is happening

steel heart
#

It would be pretty stupid explicitly injecting all stuff let’s for instance say you want to access the plugin manager, server, logger, what not etc.
You wouldn’t put all those things in your constructor.

#

Your constructor would be fucking wide if you would realize

#

Exactly

prisma wave
#

if you're still bickering about that faq, bear in mind it's intended for beginners who only know static

steel heart
#

But apparently that’s what your argument is all about

prisma wave
#

Sure it might be a bad practice, but it's a simple example sooo

old wyvern
#

Exactly

prisma wave
#

you must be new

#

Good luck with that lol

#

To the discord

#

Most of the beginners we have here will ask how to make variables

frigid badge
#

nah not the discord but the mc community lol

prisma wave
#

^

steel heart
#

Biggest problem is that people try to learn Bukkit/spigot before java

heady birch
prisma wave
#

You can't teach proper code structure before they know what a constructor is

steel heart
prisma wave
#

Agreed @heady birch
Risky... Edited message incoming?

#

Ever heard of Haskell

old wyvern
#

😂

prisma wave
#

now HOLD ON

#

Haskell encourages ELEGANT and PRAGMATIC design

steel heart
#

Isn’t it like 101% functional

prisma wave
#

yes

prisma wave
#

People change

old wyvern
#

lol

steel heart
#

Mobile ain’t working with that

prisma wave
#

it'll be fine

obtuse gale
#

its been a while

prisma wave
#

what

#

it's low level in that it compiles to native

old wyvern
#

Want to know the language everyone likes?

#

E

prisma wave
#

but i wouldn't say it's low level like C or asm

#

L

obtuse gale
#

F

old wyvern
#

A

prisma wave
#

R

obtuse gale
#

G

old wyvern
#

A

prisma wave
#

^^

hot hull
#

EA Sports

obtuse gale
#

Timmit games

old wyvern
#

The Glorious Elara

obtuse gale
#

F is a modular, compiled, numeric programming language, designed for scientific programming and scientific computation. F was developed as a modern Fortran, thus making it a subset of Fortran 95. It combines both numerical and data abstraction features from these languages. F is also backwards compatible with Fortran 77, allowing calls to Fortra...

prisma wave
#

everyone be like "OOP bad FP good" and "FP is too difficult!!" and elara be like "hi"

#

🙂

hot hull
#

Coming out in the fall of 3020

prisma wave
#

f#

#

ocaml

#

ML

#

haskell

#

clojure

obtuse gale
#

F*

prisma wave
#

anyone else joining this "clash of code" game

#

Non type-variable argument in the constraint: Num (t1 -> t2)
(Use FlexibleContexts to permit this)
• When checking the inferred type
it :: forall t1 t2. (Num t1, Num (t1 -> t2)) => t2

#

classic mistake

obtuse gale
#

bruh therres no way im getting anywhere near winning with this little people

#

and with these people

#

someone bad join pls

prisma wave
#

im on a shitty laptop so you have a chance

#

lol

obtuse gale
#

@ frosty

prisma wave
#

any

old wyvern
#

Any Bomp

prisma wave
#

you can choose

obtuse gale
#

Oh it’s like binary search

prisma wave
#

uh

#

not always

#

it's just little challenges

obtuse gale
#

you got 36 seconds

prisma wave
#

good luck typing code on mobile

obtuse gale
#

Nah yea I aintvtryna do more if that tonight

#

I’ll play tomorrow

prisma wave
#

ok

obtuse gale
#

imma slow this whole game down

old wyvern
#

oof shortest

#

ffs

prisma wave
#

i've said it before but we need to have a helpchat clash of code tournament at some point

#

😬

#

python or kotlin wins

heady birch
#

"can YOU design the NEW ecloud 2?"

prisma wave
#

ok

obtuse gale
#

ok ive got working code now to make it small

#

oh it doesnt always work rip

#

its like 9 lines long as well lol

prisma wave
#

haskell has let me down

obtuse gale
#

bruh the final test in the only one failiung

prisma wave
#

||uppercase||?

#

that's what it was for me

obtuse gale
#

o

#

my code size is @ 234 rn lol

#

but it works at least 🌈

prisma wave
#

nice

#

😦

#

shortest mode BIASED

old wyvern
#

welp

#

ikr

#

There should be some form of normalization

obtuse gale
#

lol code size is like 210

#

tf is that bm

prisma wave
#

minimized haskell

#

it's actually kinda readable when you format it properly

obtuse gale
#

mine works thats all i care about

old wyvern
#

lol

obtuse gale
#

its like triple the size of urs but its fine

obtuse gale
#

i coudlve made it smaller if i made it ugly

#

like inline all my variables

prisma wave
#
main = do
  str <- getLine
  print (length (filter (\x -> x `elem` "aeiouAEIOU") str))
  return ()
#

nice

old wyvern
#

bm join

prisma wave
#

sec

#

laptop being slow

old wyvern
#

ah

prisma wave
#

im in

#

what is this

obtuse gale
#

^

hot hull
#

Indeed what is this

obtuse gale
#

bruh if we have bob and ericas how the fuck to we get jack

#

who the fucks jack

#

and who invited him

hot hull
#

These variables are confusing the shit out of me

prisma wave
#

ghweiufhwifuwh HASKELL

#

missing parentheses

old wyvern
#

xD

steel heart
#

So assembly or Haskell or clojure?

prisma wave
#

all of them at once

steel heart
#

Asseleraskellojure

obtuse gale
#

done.

#

bm share code

prisma wave
hot hull
#

ez

prisma wave
#

nice

hot hull
#

My code is atleast clean smh

obtuse gale
#

it at least works forsty

hot hull
#

Fucking disgusting

System.err.println("$rb $cb $re $ce")
    println("${(rb+re)/2} ${(cb+ce)/2}")
old wyvern
#

xD

#

welp

obtuse gale
#

'forsty'

hot hull
#

I'm dissapointed AJ

prisma wave
#

do yugi's

steel heart
#

Btw

hot hull
#

start

old wyvern
#

ffs again

prisma wave
#

shortest 🙄

obtuse gale
#

aHHH

normal talon
#

How many bits of memory do you need to create int ? And what about long ? Enter two numbers separated by one space!

obtuse gale
#

😏

normal talon
#

what do they need

steel heart
#

"Yellow ${var} Lore"
Is this the same as
"Yellow "+var+" Lore"

normal talon
#

I typed
1280
and 160

hot hull
#

bruh what the fuck is this lmao

prisma wave
#

32 & 64 @normal talon

#

int is 32 bit, long is 64

#

can we do a new one

normal talon
#

ooh

prisma wave
#

i cba to do this

obtuse gale
#

same

normal talon
#

I understood the question wrong

#

thanks

prisma wave
#

np

obtuse gale
#

if we all fail do we all win

hot hull
#

yes

prisma wave
#

hopefully

obtuse gale
#

lets go

#

first place

hot hull
#

Oh yea it's length

obtuse gale
#

how tf frosty in front

old wyvern
#

longs and doubles each represent 2 values each on the jvm

#

🎃

obtuse gale
#

I was faster, and ive got less characters

#

this is bullshit**.**

hot hull
#

Doesn't say how many chars you got for me

obtuse gale
hot hull
#

probs why kek

obtuse gale
#

i should of just had one sysout

prisma wave
#

ez 1st

normal talon
#

is byte smaller than char ?

hot hull
#

What a small char difference BM :kek:

prisma wave
#

ikr

#

@normal talon i might be wrong here, but it depends. ASCII is usually 1 byte, the same as byte but with unicode it's 2 bytes i think

#

so i think on modern systems yes, char is bigger

normal talon
#

ah okey thanks

prisma wave
#

@old wyvern

#

@obtuse gale

obtuse gale
#

AHHHH

hot hull
#

What'a color rate lol

#

ohh

distant sun
#

@ me when you finish

onyx loom
#

dont

obtuse gale
#

how tf am i meant to know thi

distant sun
#

shut up bish @onyx loom

onyx loom
#

🙁

#

not the b word!

hot hull
#

Am I dumb or? import java.awt.Color;

steel heart
#

Lol

hot hull
#

I assume I'm dumb

steel heart
#

I wish clash of code was integrated into our ides

#

Would be so much nicer

distant sun
#

fr

quiet depot
#

once I’m done with docdex might work on a coc api

steel heart
#

OO

hot hull
#

bruh what am I missing here

steel heart
prisma wave
steel heart
#

Epic

#

But not so epic

prisma wave
#

i gtg 😦

#

i'll be back soon

#

maybe

obtuse gale
#

thx frcsty

obtuse gale
#

bruh whyd you all do it weird ways

#
fun main() {
    val input = Scanner(System.`in`)
    val col = Color.decode(input.nextLine())
    println(col.red)
    println(col.green)
    println(col.blue)
}```
old wyvern
#

its just hex tho 🤷‍♂️

hot hull
#

I'm dumb so 🤷‍♂️

obtuse gale
#

i mean you helped me get it lol

hot hull
#

huh

prisma wave
#

Haskell was throwing

#

Compiler errors left right and center

distant sun
#

@prisma wave show code

prisma wave
#

Mine didn't work

old wyvern
#

The what xD

hot hull
#

Mine still best :))

obtuse gale
#

frosty literally told me how to do it lol

old wyvern
#

Converted and wrapped in Color to unwrap

distant sun
#

^

obtuse gale
#

I just scrolled down the suggestion list of Color til i found something that looked right

hot hull
#

Yugi, I told you, I'm dumb

old wyvern
#

welp

hot hull
#

another? Or we waiting on BM

heady birch
#

Color.decode

old wyvern
#

If there are enough people we can do another

hot hull
#

There's like 4 of us no?

distant sun
#

let's go bishes

prisma wave
#

I'm out rn so can't play for a bit

#

I'll probably be back in like 40 minutes

#

Ish

old wyvern
#

Alrighty

#

I guess 3 people for now

#

or wait 4

#

aj is in too I think

hot hull
#

This man removed shortest :kek:

obtuse gale
#

ye

#

ew

#

shortest good

old wyvern
#

Yea got sick of it

distant sun
#

the f

prisma wave
#

Bruh I tried to play on mobile and it didn't even let me sign in

#

Smh

hot hull
#

ez gg

obtuse gale
#

AHHH

hot hull
#

Everyone just dead I see

obtuse gale
#

indeed

onyx loom
#

yup

hot hull
#

Look at these fuckers not even finish in time

obtuse gale
#

i feel like im just dumb with this lol ive got no clue why this isnt wokring

hot hull
#

add 1 to your number

#

share code Gaby

distant sun
#

the example was fucked up, I swear

#

no 😦

hot hull
#

do it plz

obtuse gale
#

bro tf

#
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.base/java.util.Scanner.nextLine on line 1651
at AnswerKt.main on line 15```
distant sun
#

is the same as yours lmao, I thought that I have to sort them alphabetically and by length lmao

hot hull
#

oh lol

distant sun
#

didn't read the first line where it says what you have to do ..

#

remove the check after N @obtuse gale

obtuse gale
#

what

#

frosty told me to add one to N now its ewrroring

hot hull
#

I was confused as first cause I was always missing the last line, took me a min to figure out why

obtuse gale
#

I blame frost

#

y

distant sun
#

there is an if for a new line

obtuse gale
#

I have that

distant sun
#

yes, remove it

hot hull
#

Yugi dead?

distant sun
obtuse gale
#

ok i timed out

#
fun main(args : Array<String>) {
    val input = Scanner(System.`in`)
    val N = input.nextInt()
    val sb = StringBuilder()

    var a = true
    for (i in 0 until N) {
        val line = input.nextLine()
        if(a){
            a = false
            println(line)
        }else{
            sb.append(line + "\n")
        }
    }
    println(sb.toString())
}``` Thats what i was tryna do lmao
hot hull
#

bruh what

obtuse gale
#

the a was just me forgetting the % 2 == 0 thing

hot hull
#

Java wins again fingerguns

prisma wave
#

Imperative kotlin code always looks so horrible

hot hull
#

That spacing tho

#

@old wyvern You aight?

old wyvern
#

yo

#

is it over?

#

rip

steel heart
#

Imperative code is nice

prisma wave
#

Not in kotlin

#

it looks so out of place

quiet depot
#

yo bm i found the changelog for 5.0.0

prisma wave
#

oh cool

quiet depot
#

they're adding better kotlin support

prisma wave
#

What's new?

#

huh

#

Lemme have a look

quiet depot
#

oh also ditching cglib

steel heart
#

cg?

quiet depot
#

code generation

#

it's an instrumentation api

prisma wave
#

That's good

steel heart
#

Why is that good

quiet depot
#

cglib is really old

prisma wave
#

The kotlin stuff doesn't seem too significant, Multibindings always worked fine for me anyway

#

^

steel heart
#

Hmm only thing is that guice is making my jar fat

quiet depot
#

guice doesn't add that much

#

~0.76mb

#

if you properly exclude deps

prisma wave
#

Arguably worth it

quiet depot
#

does cglib already use asm?

#

or is it standalone?

prisma wave
#

idk

quiet depot
#

hopefully it does, don't want guice getting bigger

prisma wave
#

Yeah I guess it would

#

Otherwise they wouldn't have ASM bundled?

quiet depot
#

didn't know it had asm

#

that's why I was asking if cglib used it

prisma wave
#

oh

#

I'm pretty sure it does

#

The wording implies asm was always present

lunar cypress
#

pretty much everything uses asm

steel heart
#

Is it better than mixin?

quiet depot
#

mixin isn't a competitor to asm

#

mixin uses asm

steel heart
#

Oh lol

quiet depot
#

and I'm not a fan of mixin personally

#

I see it just as bad as lombok

steel heart
#

Why ?

lunar cypress
#

don't they have completely different purposes though

steel heart
#

I mean it’s not a compiler hack like Lombok ?

#

Or is it?

quiet depot
#

it's not

steel heart
#

Thought it was pretty solid and powerful

quiet depot
#

I just feel that mixins should be a language feature, and not implemented at runtime

#

it just feels wrong

steel heart
#

Oh well I guess

quiet depot
#

I might need to reevaluate my opinion on mixin tbh

lunar cypress
#

that's less of a criticism of mixin and more of a criticism of java

#

I mean as far as I can tell there are use cases where you simply don't get around messing with bytecode at runtime

#

and if mixin makes that easier for you in some situations, well, good

steel heart
#

Hmm yeah, what are the alternatives if I don’t want to use mixins? Byte buddy?

#

And asm or what it’s called

quiet depot
#

or just none at all

#

java is a perfectly capable language without mixins

steel heart
#

Well I can’t change final fields without bytecode manipulation?

quiet depot
#

yes you can

steel heart
#

And extend package private classes?

quiet depot
#

yeah that requires manipulation

#

I think

lunar cypress
#

so you are literally building on the language

steel heart
#

Wait does the change final field thing works for constants as well?

quiet depot
#

yes

steel heart
#

Ooo

#

Why did I not know this

quiet depot
#

pretty sure you can change final shit with just the reflection api

#

otherwise, look into unsafe

steel heart
#

Ah yeah ofc

prisma wave
#

Yeah you can with reflection

#

Just have to change the field modifiers

lunar cypress
#

no not always

prisma wave
#

oh?

lunar cypress
#

constants such as strings primitives and even enums I think can never be changed

#

also changing field modifiers doesn'T work anymore

quiet depot
#

by reflection*?

prisma wave
#

oh because they get inlined?

lunar cypress
#

yes

prisma wave
#

ah didn't know that

hot hull
steel heart
#

But a normal object constant would be changeable

lunar cypress
#

and in the newer versions you can't use reflection on the reflection classes themselves anymore

quiet depot
#

well in that case, look into unsafe if that's the kinda thing you want to do conclure

lunar cypress
#

I would go as far to argue that bytecode manipulation is less hacky then messing with unsupported reflection

prisma wave
#

^

lunar cypress
#

Unsafe is even worse

steel heart
#

Hmm okay

#

I mean unsafe can’t be that bad

quiet depot
#

look at the name

#

"unsafe"

prisma wave
#

Yeah the clue's in the name

steel heart
#

Except that

prisma wave
#

Unsafe is your absolute last resort

quiet depot
#

I mean generally you can say "if I need to use unsafe, then I probably need to reevaluate my idea"

prisma wave
#

Indeed

quiet depot
#

the only case I'm aware of where unsafe is somewhat warranted, is in object mapping

steel heart
#

Ah well then

quiet depot
#

but even then, it's not necessary

lunar cypress
#

it is not, no

prisma wave
#

Shouldn't be

quiet depot
#

gson is just fine without unsafe

prisma wave
#

Beans have no arg constructors

#

Yeah I've never needed to use unsafe for anything other than messing around

lunar cypress
#

if you want to mess with memory addresses you know also have the foreign memory api which is officially supported

wooden atlas
#

The method max(Collection<? extends T>, Comparator<? super T>) in the type Collections is not applicable for the arguments (Collection<capture#1-of ? extends Map.Entry<OfflinePlayer,V>>, Comparator<capture#2-of ? super Map.Entry<OfflinePlayer,V>>)

Someone help ? thepig

steel heart
#

Johnny

hot hull
wooden atlas
wooden atlas
quiet depot
#

@hot hull doesn't commandsender have a method for sending multiple messages?