#dev-general

1 messages ยท Page 254 of 1

obtuse gale
#

Do you have your knife license?

errant geyser
#

The Birmingham Boi will get you

stuck harbor
#

ew birmingham

#

runs

errant geyser
#

NOT ME

half harness
#

uh

prisma wave
#

big mistake

onyx loom
half harness
#

how come if I try reacting to a message my discord shakes?

#

;-;

onyx loom
stuck harbor
#

okay the TV license is just a tax sheesh kalm

prisma wave
onyx loom
#

โ˜น๏ธ

errant geyser
#

Hasn't that been advised to be removed?

#

The TV license

stuck harbor
#

but the BBC needs money

onyx loom
#

fuck the bbc

prisma wave
#

โ˜น๏ธ

errant geyser
#

They get enough as it is

stuck harbor
#

they are what my parents watch on TV and what i used to

errant geyser
#

Kali the BBC aren't that bad

stuck harbor
#

they are 'unbiased'

prisma wave
#

in theory

#

which is good

errant geyser
#

No news outlet is unbiased

onyx loom
#

who needs tv in the first place ๐Ÿ™„

stuck harbor
#

some people think they are right wing, some people think they are left wing

#

who cares, get ur news from spotify instead

onyx loom
#

yes

stuck harbor
#

thats right, spotify

prisma wave
#

import elara/news

onyx loom
#

spotify news good

#

"unbiased"

stuck harbor
#

if they are biased to all sides, that makes them unbiased

errant geyser
#

Display it on your HiFive after downloading it from the Internet using a script you made

#

I'm assuming you all know about the BBC HiFive Inventor?

#

Theyre actually decent, if you get rid of the Doctor Who stuff

stuck harbor
#

ohhh ive seen ads for that

errant geyser
#

Which technically i cannot tell you how to do

#

But you should do it

stuck harbor
half harness
#

Anyone have any explanation?

errant geyser
stuck harbor
half harness
#

I can react to other messages

prisma wave
half harness
#

JUST NOT THAT ONE MESSAGE!!!_ _

errant geyser
prisma wave
#

you're famous

#

doxxing yourself

errant geyser
#

Who?

prisma wave
#

idk

stuck harbor
#

hwhat

#

do u work for the BBC?

errant geyser
#

My CS teacher worked with the BBC to design and make it

onyx loom
#

o

stuck harbor
#

(they have java devs in manchester btw :)))))

onyx loom
#

ur a cool kid

stuck harbor
errant geyser
onyx loom
#

o

#

๐Ÿ˜Š

errant geyser
stuck harbor
#

my GCSE CS teacher was just a fat wanker who typed at like 5 wpm in python and only did kahoot quizzes

#

that was a bit rude

errant geyser
#

Probably accurate though

stuck harbor
#

he used IDLE

#

all the time

#

on light theme

errant geyser
#

I'm lucky to have that good of a teacher

half harness
#

IDLE ftw

onyx loom
#

idle ๐Ÿคข

stuck harbor
#

all CS and IT teachers ive had have been dicks

#

surprised that im in this field lol

#

when all my physics teachers have been lovely

half harness
#

physics ๐Ÿคข

prisma wave
#

the thing is, everyone smart enough to be a CS teacher doesn't want to because private industry pays much more

#

so

half harness
#

๐Ÿ‘€

stuck harbor
#

yeah lol

onyx loom
#

we get the shitters ๐Ÿ˜”

#

its true tho

stuck harbor
#

my old GCSE ICT teacher was a failed rock band guitarist

#

fun fact

onyx loom
#

i had to have a PE teacher for CS lessons in year 10 or smth

stuck harbor
#

he also taught music

#

also yes, i did ICT and CS at the sime time, i was sad

onyx loom
#

gamer life

errant geyser
#

My CS teachers are both really nice, over qualified guys

#

Kek

#

Computer Science

prisma wave
#
let toString(Any[] list) => {
    return "[" + list.join(", ") + "]"
} 
``` the most beautiful thing ive ever seen
onyx loom
#

๐Ÿ˜ฎ

prisma wave
#

fuck the github main branch

#

just saying

surreal quarry
#

[\w\d]{3,16} is nickname regex right

prisma wave
#

think so

haughty whale
#

I gotchu just etransfer the fee and I'll send it out

errant geyser
#

LARRY

haughty whale
#

O/

errant geyser
#

I'll pay you in definitely real Internet points

haughty whale
#

That works too

errant geyser
#

Noice

#

I only need about three thousand litres

#

No follow up questions

haughty whale
#

Ok ๐Ÿ‘Œ

errant geyser
#

Thanks bb

prisma wave
#

Emacs

#

Lisp

#

My arch nemesis

#

I thought we changed the file extension to stop that

#

But NO

#

It never leaves

surreal quarry
#

its like a visual bug i think

#

cause if you click it it says like no files found

onyx loom
#

Emacs Lisp will soon dominate the world and elara will be overshadowed

prisma wave
#

Not if I have anything to say about it

errant geyser
#

Emacs Lisp shall die

#

Hopefully

lunar cypress
#

why? thonking

old wyvern
obtuse gale
hallow crane
#

v nice

#

@pallid gale do you know stuff about the 1.16 chat api regarding hex colors

quiet depot
#

cube is a yaml dev

hallow crane
#

ive had this issue where resetting bold doesnt work

#

oh

obtuse gale
quiet depot
#

by me

hallow crane
#

i needa talk to clip then

#

i spoke with him b4 but he said he didnt know

#

but he solved it in dchat

quiet depot
#

clips ded

trim bear
#

oh no

obtuse gale
trim bear
#

Hey look it's that @obtuse gale person who got mad with me because I didn't understand how to read the LuckPerms highlight

obtuse gale
#

the LuckPerms highlight

trim bear
#

Y'know the website highlighting a section

obtuse gale
#

hey look its the guy that uses eclipse typing in dev general

#

About the section that was not only highlighted but I literally linked

#

lol

trim bear
#

I use Atom what you on about

ocean quartz
#

Vim ftw

obtuse gale
trim bear
#

Oh yeah

obtuse gale
#

also that argument doesnt change anything lol atoms no better afaik

trim bear
#

I use Eclipse for MC Coding because I'm new.

#

But I use Atom for bots

obtuse gale
#

what do you code bots in?

trim bear
#

py

obtuse gale
#

ah

#

pycharm cursed_fingerguns

quiet depot
#

sublime >

wind bolt
#

Psa

little hamlet
#

Does anyone have any idea if its possible that if you boost a discord server you get special perm on the server? Like DiscordSRV does alot of discord-> minecraft and viceversa but idk if it has this feature

obtuse gale
#

Booster role?

#

If you're using LuckPerms you can set a perm with booster context

#

Like on the default group idk, and it will only apply to those that boost the server (i.e. to those that have the booster context as true)

viscid charm
#

Was it fulltime $?

hot hull
#

Monthly iirc

#

or biweekly, one of the two

viscid charm
#

how much was it approx?

hot hull
#

I legit don't know Pepper, this was like half a year ago

viscid charm
#

how much do u think it was around?

hot hull
#

Again, no clue

viscid charm
#

How much uc harge?

hot hull
#

Depends on the project

#

I usually don't get paid hourly since everyone get's scared of how much it'll cost

viscid charm
#

same

#

how much would u charge for a say a mines plugin?

#

Ur aware of prisons right?

hot hull
#

I am aware yes, however if it ain't latest I don't want it

viscid charm
#

Latest?

hot hull
#

And mines plugin is very vague, depends on the features

#

Latest version yes

viscid charm
#

1.16?

#

o lol rip

old wyvern
little hamlet
viscid charm
#

I am big 1.8 fan

hot hull
#

Removed legacy support from my actions lib cause fuck that

old wyvern
#

ew

#

xD

viscid charm
#

u cant havee as many players on 1.16

hot hull
#

Got annoyed when it was spazzing out on latest due to it being a thot

old wyvern
#

Most servers dont anyway

obtuse gale
#

Yeah you can do that with DSRV & LP @little hamlet

viscid charm
#

and if ur not a dev good luck running server with custom shit on 1.16

little hamlet
#

o perfect thanks

viscid charm
#

then constantly updat,e then dupes and shit

#

rip :P

little hamlet
#

Quick question does DSRV really breaks if server is reloaded?

old wyvern
#

There arent any active dupes rn im p sure

hot hull
#

I truly am hoping 1.17 has a better performance

old wyvern
viscid charm
#

i hope it odesnt so people stick to 1.8 xD so i dont needa update

obtuse gale
#

So, don't /reload and you're good to go

hot hull
little hamlet
little hamlet
old wyvern
#

Debatable

obtuse gale
#

WorldEdit, WorldGuard, LuckPerms, DSRV, Quests, slimefun, Towny, blah blah blah....

hot hull
#

It's not that bad, but it's getting worse because they keep adding useless shit, instead of addressing performance issues

obtuse gale
#

Literally thousands of plugins go nuts when /reloading

old wyvern
#

Yea Towny especially really fucks up

obtuse gale
#

especially the big ones

old wyvern
#

Adds weird db values

viscid charm
#

yea but hoesntly man 1.8 alloweeed people who arent loaded to run servers and profit of em good

old wyvern
#

Like multiple references to a resident in towns causing it go into safe mode

viscid charm
#

cus how else are u gonna get devs?

old wyvern
#

which then teleports all npcs to spawn

#

Fun

little hamlet
#

I have WE WG LP and Quests non of them have ever break for me when i reload from console the server, i am a new "dev" so learning about this stuff

viscid charm
#

on top of that the constant shit breaking after version updates and shit

hot hull
#

It's not all about profit

obtuse gale
old wyvern
#

xD

#

Yea wasted so much time coz of that

hot hull
#

You also do realize you're missing out on 6 years+ worth of features

viscid charm
#

i can guarentee u, finding a dupe on one of my servers vs a random 1.16 server

#

would be 100x easier

old wyvern
#

Probably not

little hamlet
#

But then if you say that if a server restarts DSRV goes nuts then if server crashes or anything DSRV dies thats a bit sad / sucks

old wyvern
#

If anything that is just through patches from the long time since it has been out

hot hull
viscid charm
#

What plugins did funnycube make btw?

obtuse gale
#

Reloads are fuckery

hot hull
little hamlet
obtuse gale
#

And I can tell you neither WG, WE nor LP work fine when /reload

#

Nah full restarts are a bliss

#

Running /reload or /plugman reload break shit

quiet depot
hot hull
#

You shouldn't even have plugman installed

viscid charm
#

plugman unload and load <- is always better than plugman reload from waht I have seen

#

well i dont use plugman i use somehting else

#

but unload load seems better than reload to me

obtuse gale
#

It's quite literally the same process lol

little hamlet
#

Well thanks for the help Oliver ๐Ÿ˜„

dry coral
hot hull
#

Fuck no

#

It takes like 3 seconds to restart a server

#

You'll live

dry coral
#

that adds up

hot hull
#

setup hotswapping

dry coral
#

i frankly dont care and will use plugman on my test server because it's a test server used for quickly checking if features i changed/added worked

hot hull
#

Well yea, aslong as you aren't doing any data storage it's fine fingerguns

prisma wave
#

Execution took 3.439168ms
Managed to shave a few ms off so far

onyx loom
#

congrats

prisma wave
#

thanks

onyx loom
#

few ms very important

prisma wave
#

gonna be difficult to do much more tho

#

that can't be right

onyx loom
#

changing from kotlin to go because of jvm gc problems when go is doing the exact same ๐Ÿ™„

#

unless jvm gc is even slower lmao

prisma wave
#

i mean go is still a lot faster

#

it executes almost instantly compared to the 1-2s JVM startup time

#

but

#

that seems too much

frail glade
#

It's always ready to.... go go go.

prisma wave
#

wow

#

that's actually unbelievable

#

using a pool to cache Contexts and avoid reallocations brought the average time from 4-5ms to 0.8ms

prisma wave
frail glade
#

What contexts

prisma wave
#

elara contexts

#

where scope, variables, parameters, imports etc are stored

onyx loom
#

o

#

thats more like it

frail glade
#

Ahh

wanton sentinel
#

How to run in debug mode on IntelliJ

prisma wave
#

click debug button

wanton sentinel
#

So i can edit code and it update in the game at the same time

prisma wave
#

piggy has a guide for that

wanton sentinel
#

Yeah but im not using gradle

prisma wave
#

i cba to find the link but google "piggypiglet hotswapping"

wanton sentinel
#

Or spigot

prisma wave
#

oh

#

just debug then

#

and you can rebuild and it should auto update

wanton sentinel
#

Aight

#

Is there a quicker way?

prisma wave
#

wdym?

wanton sentinel
#

My project is very very big

prisma wave
#

not really

#

IJ building isn't the fastest thing in the world

#

maybe consider JRebel, but that's ludicrously expensive

wanton sentinel
#

oh

quiet depot
#

you don't need gradle to hotswap

#

my guide still applies

#

and jrebel is more expensive than ij ultimate last time I checked

#

it's simply not worth it

quiet depot
#

or any language that isn't elara

#

build your poc in go

#

then from there on out, build in elara

prisma wave
#

poc?

quiet depot
#

proof of concept

prisma wave
#

oh

#

yeah, you have a point. I'm not gonna go overboard

#

but I like optimising

quiet depot
#

okie

#

hows the videos coming along

prisma wave
#

havent been able to record anything, but i can tomorrow

#

johnny has been giving some feedback for the slides which is good too

half harness
#

Any good config file lib or something that isn't too complicated ๐Ÿ™‚

frail glade
#

ConfigMe, Triumph config, Configurate

half harness
#

thx

steel heart
#

Bukkit config (:

shadow wasp
#

if I am using maven modules for nms abstraction, is it okay for the nms modules to depend on the spigot plugin? Something about having spigot module depending on nms and nms depending on spigot doesn't sit right, don't know why

lunar cypress
#

cyclic dependency, that won't work

quiet depot
#

you could skip 2 for speed but that'd create security problems

prisma wave
#

Yeah in theory

#

although most of the time, skipping 2 would just defer the problem to somewhere else

quiet depot
#

you're not skipping 2 per se

#

you're just doing it earlier

#

at compile time

prisma wave
#

oh well there is no compile time at the moment

oak raft
#

the rumor is bm is here and im a big fan so now im here

prisma wave
#

That would work once we get proper type inference

#

but so far, it's just dynamically typed

quiet depot
#

D:

prisma wave
#

I know, gross

quiet depot
#

haven't I given you the dynamically typed languages lecture

prisma wave
#

Probably

#

I'm not a fan either, so I'm making it as static as possible

#

and eventually we will add type inference + compiler

steel heart
#

Arenโ€™t dynamic typed languages good?

quiet depot
#

no

#

the key point is a true statically typed language can also be typed dynamically as a side effect

#

forcing a language to only be dynamic is unnecessarily limiting

steel heart
#

JavaScript?

quiet depot
#

yes

#

bad

prisma wave
quiet depot
#

sounds good

prisma wave
#

you could theoretically have "perfect" type inference for function parameters for example, by just looking at the methods that are used and constructing a contract from that

#

Anyway, the next thing I did was adjust how values are returned. Consider the following code ```rust
let blah = blah()
return blah
x()

Currently, the `return` was implemented by panicking, which causes the stack to be unwound (similar to throw an exception). The function simply looks for a panic, catches it, and extracts the returned value.
This was very wasteful, as the "panic, defer, recover" loop introduces some overhead on the stack. 
So instead, I made each expression return a value with a boolean to mark whether it was being returned or not. Then the function call can just check for that boolean, and if it's true, it stops executing. This saved about 0.5ms I noticed
#

lol

steel heart
#

Wait can statically typed languages be dynamically typed? Is this the case for java?

quiet depot
#

yes

#

java can be dynamically typed

#

just use Object everywhere

steel heart
#

Oh yeah thatโ€™s true

prisma wave
#

although it would be a lot messier

quiet depot
#

it would

steel heart
#

wouldnโ€™t var accomplish the same thing or is it just inferred?

prisma wave
#

because you'd need to either cast, or use reflection

#

var is just inference

steel heart
#

Hmm okay nice

quiet depot
#

wew

#

time to compress a 106GB backup

prisma wave
#

๐Ÿ˜ฎ

quiet depot
#

I think I've got all my important files ready

#

for the switch to linux

half harness
#

thats gonna take you years

#

to compress

quiet depot
#

it will

#

using 7z on ultra, lzma2 with a 384MB dictionary size

half harness
#

;-;

quiet depot
#

for reference that uses about 19GB of memory to compress

half harness
#

ram?

quiet depot
#

yes ram

half harness
#

lol

prisma wave
#

is there much point compressing it at all?

quiet depot
#

I'm uploading this over sftp to my laptop & nuc

half harness
#

filezilla

#

ftw

quiet depot
#

no

half harness
#

ok

quiet depot
#

I would never use filezilla for something like this

half harness
#

then wut

quiet depot
#

not sure tbh

#

I'm going to change my statement

#

I would never use filezilla.

#

winscp โค๏ธ

half harness
#

ew

#

winscp takes forever to download 1 mb

prisma wave
#

filezilla is pretty wack

quiet depot
#

oof this uses a lot of cpu

#

wtf it's not even running hot

#

100% cpu usage and it's under 70

half harness
#

70 what?

quiet depot
#

70 of the only respectable temperature unit, which is used in every day society

half harness
#

thats cold

#

Fahrenheit?!

normal talon
#

celcius ?

half harness
#

lol

#

ok

prisma wave
#

fahrenheit is the worst thing to ever be invented

#

don't @ me

half harness
#

ok

normal talon
#

@prisma wave

#

true

prisma wave
#

๐Ÿ™„

quiet depot
#

imperial system is the worst thing to ever be invented

prisma wave
#

^

hallow crane
#

I don't get to control what my country has adopted and uses on a regular basis

quiet depot
#

too bad yako

#

you get the blame for it anyway

#

when I say you, not you in particular, all americans in general

normal talon
quiet depot
#

even the ones who live in solitary with their treasured si units

prisma wave
#

you're all guilty

quiet depot
#

they're still american

#

still guilty

normal talon
#

still

hallow crane
#

if I was the Mr president it would change

#

but im just a guy out of 300 million

quiet depot
#

is the official title actually mr president?

#

I thought "president" itself was the title

hallow crane
#

I think so

#

no I just said that to be cute

normal talon
#

not so cute

hallow crane
#

but people call him Mr president

quiet depot
#

that's like calling the queen mrs queen elizabeth

#

actually that doesn't even sound so bad

hallow crane
#

yeah

prisma wave
#

There's nothing cute about being american ๐Ÿ˜ฉ

normal talon
#

still not right

hallow crane
#

Americans have dentists

normal talon
#

it's the high magisty queen elizabeth

prisma wave
normal talon
hallow crane
#

nothing in particular

prisma wave
#

sure...

normal talon
#

and the bill is like 20.000 dollar

hallow crane
#

what @normal talon

normal talon
#

#FreeHealthCare

hallow crane
#

no

hot hull
#

Still no DMs sad_fingerguns

hallow crane
#

insurance

prisma wave
#

shame

#

mention you're proficient in elara and everyone will come running!!

hallow crane
#

true tho no free health care

normal talon
prisma wave
#

wack

quiet depot
#

lots of dead people recently too

#

that's kind of an eh

hot hull
#

I meant commission DMs, not hi's

prisma wave
#

hi

normal talon
#

Who likes to contribute to my plugin. You do all the work and I upload the plugin?

prisma wave
#

if fun != nil

normal talon
#

nil ?

prisma wave
#

nil

normal talon
#

tf is dat

quiet depot
#

null

prisma wave
#

like null but quirky

quiet depot
#

if you wanted it to be quirkly

#

if fun ~= nil

prisma wave
#

ooh what language uses that again?

quiet depot
#

lua

prisma wave
#

or did you make it up

#

gross

quiet depot
#

lol

prisma wave
#

haskell uses /= which is almost ok

#

but

#

that's just wrong

quiet depot
#

it's really not ok

lunar cypress
#

Well ~ is associated with not

hallow crane
#

did u invent Lua

quiet depot
#

yes

hallow crane
#

good for you

quiet depot
#

obviously

lunar cypress
#

Yes :)

prisma wave
#

congratulations

#

you both invented it

quiet depot
#

no no I was saying yes to him asking if johnny invented it

#

johnny is the sole maintainer of lua

prisma wave
#

oh

#

of course

#

that makes sense

hallow crane
#

oh

#

of course

#

that makes sense

normal talon
#

tf is lua

quiet depot
#

yep johnny has been working non stop on lua since 1994

hot hull
#

sins?

quiet depot
#

yep

#

johnny sins isn't just an astronaut or a doctor

#

or a fireman

#

or a police man

#

or my step dad

#

he's also a programmer

prisma wave
#

he's a lua maintainer???

#

wow!

#

it all makes sense now

normal talon
#

my mothers boy friend

hot hull
#

A man of many talents

normal talon
#

my sisters step brother

#

also he is an actor

#

teacher

quiet depot
#

yeah did you know he does porn?

prisma wave
#

no way

#

really?

quiet depot
#

yeah

normal talon
#

Yea

quiet depot
#

really is a man of many talents

normal talon
#

Big fan

prisma wave
#

wow

#

amazing

hallow crane
#

what happens when github goes down

#

does the world burn

quiet depot
#

what exactly does that word mean

prisma wave
#

haolebs

#

strange

hallow crane
#

I'm on MOBILE

quiet depot
#

I'd call it interesting

prisma wave
#

autocorrect

quiet depot
#

when github goes down they open the arctic vault and release the penguins

prisma wave
#

Uh oh

hallow crane
#

oh I have code there

prisma wave
#

I think most of us do

hallow crane
#

most ppl do

#

yea

normal talon
#

it has been 2 months since I applied for my role stuff

quiet depot
#

the penguins restore order to the world

normal talon
#

almost*

quiet depot
#

feels bad cozy

hallow crane
#

what role

quiet depot
#

artist

hallow crane
#

oh

quiet depot
#

that's cube's responsibility cozy

hallow crane
#

does music count as artist

quiet depot
#

annoy him

#

yes yako

#

i think

#

idk

#

I guess we'll just say if it sounds shit or not

hallow crane
#

Sick

normal talon
#

It has the drawing thing

prisma wave
#

what about ascii art?

#

i could probably get it based on that

quiet depot
#

if it's revolutionary

normal talon
#

`Artist (Drawing/GFX/Video Creation):

  • Link to portfolio of past
    projects (10+ Examples).
  • Proof that you own
    said work.`
hallow crane
#

it has the word art

prisma wave
#

exactly

#

it would be revolutionary

hallow crane
#

math is art

normal talon
#

math is brain damage

quiet depot
#

math is not brain damage

hallow crane
#

life is art, I'm living. give me the role

quiet depot
#

math is great

prisma wave
#

im thinking something like this, so i've got a config.yml right? what if, we put the name of the plugin at the top in big ascii art

#

how's that for revolutionary?

normal talon
#

it is fun if you understand it

hallow crane
#

big brain

quiet depot
#

1 step of the way there bm

#

just a few more thousand to go

prisma wave
#

great

#

better than nothing

quiet depot
#

well is it though

#

with one step you're committed to that route

#

or else you've wasted time

#

tbh I'd rather be stuck at the drawing board

hallow crane
#

I used to do graphic design before I had a life

quiet depot
#

I used to

normal talon
#

___ _____ _ _ ___ ___ ___ / __|_ _| | | | _ \_ _| \ \__ \ | | | |_| | _/| || |) | |___/ |_| \___/|_| |___|___/

quiet depot
#

I can't finish that sentence because I still don't have a life

prisma wave
#

woah!

#

that's incredible art!

#

i can see why you have the artist role

normal talon
#

who does

quiet depot
#

he doesn't have it

prisma wave
#

you do

#

oh

#

lol

normal talon
#

-_-

prisma wave
#

nevermind

#

I can see why you applied for the artist role*

#

๐Ÿ™‚

normal talon
#

xd

steel heart
#

What does compileClasspath do? Like compared to implementation and compileOnly etc

prisma wave
#

something weird

normal talon
#
                                  .-. .-')               _ .-') _  _ .-') _               
                                  \  ( OO )             ( (  OO) )( (  OO) )              
 ,--.      ,-.-')  ,--.            ;-----.\  ,--. ,--.   \     .'_ \     .'_   ,--.   ,--.
 |  |.-')  |  |OO) |  |.-')        | .-.  |  |  | |  |   ,`'--..._),`'--..._)   \  `.'  / 
 |  | OO ) |  |  \ |  | OO )       | '-' /_) |  | | .-') |  |  \  '|  |  \  ' .-')     /  
 |  |`-' | |  |(_/ |  |`-' |       | .-. `.  |  |_|( OO )|  |   ' ||  |   ' |(OO  \   /   
(|  '---.',|  |_.'(|  '---.'       | |  \  | |  | | `-' /|  |   / :|  |   / : |   /  /\_  
 |      |(_|  |    |      |        | '--'  /('  '-'(_.-' |  '--'  /|  '--'  / `-./  /.__) 
 `------'  `--'    `------'        `------'   `-----'    `-------' `-------'    `--'      
quiet depot
#

compile classpath means it's available to the program at compile time

prisma wave
#

๐Ÿ‘€

quiet depot
#

i.e. compileOnly

normal talon
#

that is my rapper name

quiet depot
#

and implementation

#

and api

#

anything above or equal to compileOnly

steel heart
#

Okay so compileClasspath and compileOnly function equally the same?

normal talon
#

wtff

wispy anvil
#

Hi guys, may i get some help with plugins for free here?

normal talon
#

I have a lesson at 18:30

prisma wave
#

no, my rates are $18/hour

quiet depot
#

wait is compileClasspath actually a keyword in gradle?

normal talon
prisma wave
#

yeah

quiet depot
#

I thought you were talking about intellij

#

nvm

#

no fucking clue what it does

prisma wave
#

i always thought it was used internally

#

you can see it in the gradle tab

#

idk

quiet depot
#

yeah that's what I thought he was talking about

prisma wave
#

it exists in gradle though too i think

#

maybe

steel heart
#

Yeah

ocean quartz
quiet depot
#

don't use it

#

only things you will ever need are compileOnly, api, and implementation

steel heart
#

hmm so runtimeOnly doesnโ€™t have a usage?

prisma wave
#

$20/minute for Premium Deluxe support

ocean quartz
#

Monthly subscription

prisma wave
normal talon
#

per minute tf

prisma wave
#

time is money

#

it also encourages them to hurry up rather than arguing with everyone

quiet depot
#

what on earth could runtimeonly be used for

normal talon
#

one time kits

quiet depot
#

practically

prisma wave
#

probably nothing?

#

buildscripts arent even preserved at runtime most of the time so...

#

This is where you declare dependencies which are only required at runtime, and not at compile time.

#

what

#

is it just a marker?

lunar cypress
#

Can be relevant for other components as well

#

E.g. testing, although there you have an own configuration for that

prisma wave
#

oh i guess

#

i can't see it being particularly practical though

lunar cypress
#

Well take tests

#

Often times you'll want to have the testing engine as a runtime dependency

prisma wave
#

surely it's just a marker though? it wouldn't actually do anything

lunar cypress
#

In this case it does

#

Because you run the tests with gradle

#

Same thing with gradle run I would assume

prisma wave
#

i guess

#

idk im confusing myself here

#

wouldn't you just use the test configuration for that?

ocean quartz
#

So I have an abstract message to join in all the components, add hover, click, and parse papi placeholders, however i just realized that the system i have is not great, since a normal message will only require 1 player, but since private messages required both sender and recipient to parse placeholders i need to change this
My idea was to have the abstract message required 2 players by default and have recipient nullable, then normal messages would pass null to it
Any thoughts on this?

obtuse gale
#

Ok

hot hull
#

Hey fellas, anyone wanna hop on my server for a sec, I need data fingerguns

surreal quarry
#

How is that confusing

half harness
#

what kind of data

surreal quarry
#

Probably player data

hot hull
#

InetAddress' to be exact fingerguns

prisma wave
#

sounds like a virus

surreal quarry
#

True

hot hull
#

Just your IP and shit, cba to continue today tho

surreal quarry
#

Next thing you know he leaks your IP

#

And its downhill from there

prisma wave
#

yeah not risking that

ocean quartz
stuck harbor
#

yeet

surreal quarry
#

How? Lol

hot hull
#

Lol BM

ocean quartz
#

I don't know, it makes no sense

surreal quarry
#

Where is author coming from

hot hull
#

Gotta get money somehow if people don't dm for commissions yknow

half harness
surreal quarry
#

Like whatโ€™s providing the value

surreal quarry
half harness
#

ah ok

stuck harbor
#

kotlin confusing

prisma wave
#

can't that happen if you try and reference it in an init block before its initialised or something?

half harness
#

agreed

prisma wave
#

yeah

#

author *ChatPlayer this would be better

surreal quarry
#

I feel like Iโ€™ve read that you can do it with reflection and set it to null

prisma wave
#

you can yes

#

but without hacks

#

it's possible in a few situations

surreal quarry
#

Ah ok

onyx loom
# stuck harbor kotlin confusing

this is basically the exact same as java with <Type> <name> but in kotlin its <name>: <Type>, however the type can be inferred in kotlin

#

its just reversed, nothing confusing about that lol

stuck harbor
#

brain hurts

onyx loom
#

u should try kotlin fingerguns

#

ull have no regrets reversed_fingerguns

ocean quartz
#

It's a val

prisma wave
#

yeah it's trying to warn you about that

#

it's not final in that it can be extended

#

and overridden

steel heart
#

Iโ€™m dropping java 8 support now, itโ€™s fine right cuz lts has run out?

stuck harbor
#

wut

onyx loom
#

yes

#

absolutely fine

prisma wave
#

because iirc, the init block will be called before constructors, so author might not yet be initialised

onyx loom
#

ur 7 versions behind kek

ocean quartz
#

Ooooo

#

I found the issue

#

Copying code and renaming things is the issue

steel heart
prisma wave
#

yeah that's what it is

#

i think

#

that's why it does the warning probably

#

idk, it's something like that

#

i can't remember the exact details

steel heart
#

Yeyeye

ocean quartz
prisma wave
#

classic

prisma wave
# stuck harbor kotlin confusing

you want confusing?

switch t := c.Invoking.(type){
        case *VariableCommand:
            variable := t.findVariable(ctx)
            if variable != nil && !variable.Mutable {
                c.cachedFunc = fun
            }
        }```
stuck harbor
#

aaa

#

go bad

surreal quarry
#

Is that go?

prisma wave
#

yup

surreal quarry
#

Gross

onyx loom
#

thats a yikes

prisma wave
#

๐Ÿ™„

onyx loom
#

even java makes a switch nicer than that

ocean quartz
prisma wave
#

go switch is better

#

because it's like when

#

kind of

#

you can switch types

onyx loom
#

yes

stuck harbor
#

is java 11 the most up-to-date LTS version

surreal quarry
#

When is better

onyx loom
#

but still looks disgusting

stuck harbor
#

k good

prisma wave
onyx loom
#

am i wrong

surreal quarry
#

Yes use 11

prisma wave
#

i'd like to see java be this fast

steel heart
#

Technically java could add a switch that support class types

switch (getClass()) {
  case Object.class: {

  }
}``` does this exist in kotlin?
prisma wave
#

that wouldnt work

surreal quarry
#

You would use when but i think so

prisma wave
#

because the switch bytecode instruction only works with constants

steel heart
#

Fucking java

onyx loom
#

๐Ÿ™‚

#

when

#

๐Ÿ˜

ocean quartz
#

Wouldn't that be the equivalent to this?

when {
  this.javaClass == Object::class.java -> {
  }
}
prisma wave
#

much cleaner than go!

#

so much nicer!

onyx loom
#

yes

prisma wave
#
switch this.(type) {
  case Object:
    //blah
}```
stuck harbor
prisma wave
#

8 bad

#

11 good

onyx loom
#

15 even better

stuck harbor
surreal quarry
#

Nice

half harness
#

maven

stuck harbor
#

yeah maven bad

#

its maven & java so this server is gonna kill you

half harness
#

ridedPlayer

ocean quartz
#

Side effects on constructor ๐Ÿคฎ

half harness
#

lol

surreal quarry
#

This is yikes

half harness
#

commandexecutor in javaplugin fingerguns

#

idk

half harness
ocean quartz
#

Single responsibility principle

half harness
#

so my idea good?

#

or bad

ocean quartz
#

Bad

half harness
#

๐Ÿ˜ฆ

#

ok

#

y

surreal quarry
#

Have a class for each thing you need. A class for each command, a class for main etc

steel heart
half harness
#

ok

ocean quartz
#

@obtuse gale Why do you do this to me?

stuck harbor
#

is that bad?

ocean quartz
#

Really bad

stuck harbor
#

ah

onyx loom
#

if null

steel heart
#

4/10

half harness
#

nullcheck

ocean quartz
#

NPE should be handled, never caught

steel heart
#

Catch Throwable in onEnable aBES_LennyFace

prisma wave
#

if you catch NPE you're dead to me

ocean quartz
#

^

onyx loom
#

catch a KNPE

prisma wave
#

๐Ÿคฎ

surreal quarry
#

KotlinNPE

prisma wave
#

ENPE fingerguns

#

that's more like it

surreal quarry
#

Well ideally elara wont ever NPE. The compiler should just fix my code

#

But ok

steel heart
ocean quartz
onyx loom
#

there is never a reason for u to catch npe

steel heart
#

Noob Pointer Exception

steel heart
surreal quarry
#

Also use a lambda

prisma wave
stuck harbor
steel heart
#

Did

#

You

#

Just

#

Say

#

That

distant sun
surreal quarry
prisma wave
#

#(fun %)

stuck harbor
#

oh that weird arrow thing i copy from stack overflow sometimes

#

okay ๐Ÿ™‚

#

im kidding ill google it

surreal quarry
#

Lmao

#

Just null check

#

Go fix

stuck harbor
#
Lambda expressions are similar to methods, but they do not need a name and they can be implemented right in the body of a method.
#

fun

prisma wave
#

anonymous functions

#

easy

stuck harbor
#

that name makes more sense now

lunar cypress
#

Is this a lambda then? js function() {}

steel heart
#

Lol

prisma wave
#

it's an anonymous function

#

maybe not a lambda

#

idk

stuck harbor
#
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    numbers.add(5);
    numbers.add(9);
    numbers.add(8);
    numbers.add(1);
    numbers.forEach( (n) -> { System.out.println(n); } );
  }
}
```yeet
steel heart
#

Ah god

prisma wave
#

System.out::println

#

๐Ÿ™‚

steel heart
#

Stream.of

lunar cypress
#

lambda => anonymous function but not anonymous function => lambda?

ocean quartz
#

@obtuse gale Why do you use a Consumer<BukkitTask> for the schedule?

prisma wave
#

all my homies use ```rust
[5, 9, 8, 1].forEach(n => print(n))

lunar cypress
#

(run println [5 9 8 1])

prisma wave
#

nice

ocean quartz
#

Runnable lambda would make much more sense there, you don't use any bukkit task specific things nor consumer specific things

lunar cypress
#

Can we get shorter

#

surely APL can PepeLaugh

ocean quartz
#

() -> {}

prisma wave
#

putStrLn (show [5, 9, 8, 1])

#

eh

lunar cypress
#

what's this now

ocean quartz
#
Bukkit.getScheduler().runTaskTimer(plugin, new Consumer<BukkitTask>() {
  @Override
  public void accept(BukkitTask task) {
    if (ridedPlayer.getPassengers().isEmpty()) {
      ridedPlayer.setGlowing(false);
    }
  }
}, 0, 4L);

To

Bukkit.getScheduler().runTaskTimer(plugin, () -> {
  if (ridedPlayer.getPassengers().isEmpty()) {
    ridedPlayer.setGlowing(false);
  }
}, 0, 4L);
prisma wave
#

poorly written haskell

distant sun
#

You mean haskell?

prisma wave
steel heart
#

Clojaskell

ocean quartz
#

The second scheduler you use cancel, so probably not

stuck harbor
#

yeet

steel heart
#

Use BukkitRunnable reversed_fingerguns /s

#

No it has its uses

#

Might have been me

ocean quartz
#

Don't use it in a scheduler, but you can use it on it's own

steel heart
#

If you want to cancel your task inside and outside BukkitRunnable might fit you better but no lambda

#

And lambda iirc is somewhat more optimized

ocean quartz
#

Good you are a little less dead to us now

lunar cypress
#

it's.... very weird

prisma wave
#

sounds amazing

surreal quarry
#

If i have like

blah.forEach { first, second -> 
    myMethod(first, second)
}```
Is that the same as like ```kotlin
blah.forEach(ClassName::myMethod)```
Whatโ€™s the difference between the two?
lunar cypress
#

I can't find it right now but last time I looked at it I was terrified

stuck harbor
#

oof

distant sun
#

entityType == null what

#

Uh

#

d;javadocs

ruby craterBOT
#
Javadocs:
โ€ข jdk                     โ€ข 1.14.3
โ€ข jda                     โ€ข 1.14.2
โ€ข 1.16.4/latest/spigot    โ€ข 1.14.1
โ€ข 1.16.3                  โ€ข 1.14
โ€ข 1.16.2                  โ€ข 1.13.2
โ€ข 1.16.1                  โ€ข 1.13.1
โ€ข 1.15.2                  โ€ข 1.13
โ€ข 1.15.1                  โ€ข 1.12.2
โ€ข 1.15                    โ€ข 1.12.1
โ€ข 1.14.4                  โ€ข 1.12
distant sun
#

No guava, welp

#

d; Enums

ruby craterBOT
#

There was no direct match for that query, did you mean any of the following?: dynenum menu enumsyntax menuitem beans

distant sun
#

aham

steel heart
#

@quiet depot hmm is jdk 8? If so, is there any possibilities of adding jdk 11?

#

Consider java 8 died

quiet depot
#

itโ€™s 8

compact perchBOT
distant sun
#

Add guava :*

steel heart
#

Ye what u need help with?

quiet depot
#

go to that page conclure

#

leave a comment

distant sun
#

what does that method do

steel heart
#

Okay sure ty

distant sun
#

Enums#getIfPresent

#

is from guava

#

Enums.getIfPresent(EntityType.class, args[0]).orNull()

onyx loom
#

does docdex not have guava/gson support?

surreal quarry
#

It does i think

onyx loom
#

d;guava

ruby craterBOT
#

There was no direct match for that query, did you mean any of the following?: guard canvas pgpdata data area

distant sun
#

it has gson and guice

onyx loom
#

o

distant sun
#

Why are all results lowe case @quiet depot

steel heart
#

d;guice

ruby craterBOT
#

There was no direct match for that query, did you mean any of the following?: publickey source choice dragsource uiresource

surreal quarry
distant sun
#

it returns an Optional<EnumClass>

#

you dont need #toUpperCase

#

What is entity?

#

Do you spawn one?

#

well you use || so if any is null it will send the message

#

d;spigot entitytype%sheep

ruby craterBOT
distant sun
#

Mhm

#

Show the full code

#

No, link

stuck harbor
#

@obtuse gale ๐Ÿ‘ sign ๐Ÿ‘ your ๐Ÿ‘ commits

distant sun
#

Hm

stuck harbor
#

always sign them

#

if u set it up right, its automatic

#

and I have no idea how on windows

distant sun
#

What should work

#

What if you print args[0]ยฟ

stuck harbor
#

that's good

distant sun
#

Lol what

#

Mhm ok

stuck harbor
#

NPE on line 69 nice

#

also nice test server spawn

#

mine is just a hill

distant sun
#

use getPlayer after checking if the entity is null

#

if (entityType == null)
player = getPlayer()

if (entityType == null && player == null)
sendMessage()
return true;

#

Or

distant sun
#

if (entityType != null)
run code
return true;

stuck harbor
#

a sign of good code

distant sun
#

Cant always use "if not return"

stuck harbor
#

when comments are also confusing, yeet

distant sun
#
  • get the entity type
  • if entityType is not null spawn an entity etc and return
  • get a player by its name
  • if player is null send usage message and return
  • do the thing on a player
onyx loom
#

// doing the thing for entity nice

#

rewrite

#

always rewrite

distant sun
#

Would also be an idea to check if the entity is not something like exp orb

#

btw compare the uuid of two players instead the object itself

#

full error?

#

gj

stuck harbor
#

uh

#

check if the argument is an entity. If it isnt, that means it's a player

#

so then u can separately do the player and entity code

#

uh wht

#

oooh that

onyx loom
#

2 NPEs

#

classic java

stuck harbor
#

uh google 'how to sign git commits windows' assuming u use windows

distant sun
#

AIOOB

surreal quarry
#

ride player fingerguns

onyx loom
#

smh just get a better pc

#

no lag

#

array index out of bounds

#

ArrayList pepega

distant sun
#

Dont access an index that doesnt exist

onyx loom
#

check array size

surreal quarry
#

AntiObjectOrientedBoolean

distant sun
#

lol

stuck harbor
#

does that let u basically teleport to another player without their consent?

surreal quarry
#

you should

onyx loom
#

you should

stuck harbor
#

fair

onyx loom
#

lets get the old motto back

#

kotlin good java bad

surreal quarry
#

java bad

prisma wave
onyx loom
#

very fast

stuck harbor
#

nanoseconds

onyx loom
#

micro

stuck harbor
#

if only gradle was that quick

prisma wave
#

if gradle was written in Go it would be

#

but no

#

they had to use "Groovy"

hot hull
#

Gotta be groovy

#

Bois, I got a commission!

prisma wave
#

nice

onyx loom
#

congrats

hot hull
#

Already finished it tho

stuck harbor
#

what the

#

quick

old wyvern
#

Thats what she said

hot hull
#

Gotta wait for mc to open so I can see if it works

#

What the fuck Yugi

old wyvern
stuck harbor
prisma wave
#

outstanding

#

we have created python

old wyvern
#

๐Ÿ˜‚

lunar cypress
#

Ew

onyx loom
#

outstanding

prisma wave
#

why thank you

onyx loom
#

np

#

johnny just a hater, dont listen to them bro ๐Ÿ˜ค

prisma wave
#

haters everywhere

old wyvern