#dev-general

1 messages ยท Page 267 of 1

static zealot
#

to all that

ocean quartz
#

Fuck was running out of time, couldn't delete all the spaces i had

static zealot
#

why does it say clashing when I'm clearly not

oblique heath
#

you're always clashing

hot hull
#

Ctrl f " " ""

oblique heath
#

i'll be back for more coc soon

hot hull
#

Kinky

static zealot
#

Matt

ocean quartz
#

Yeah?

static zealot
#
    val input = Scanner(System.`in`)
    val inputer = input.nextLine().split(" ").map { it.toInt() }``` == ```    val i = readLine()?.split(" ")?.map {it.toInt()}```
ocean quartz
#

Fuck was running out of time, couldn't delete all the spaces i had

static zealot
#

oh

#

ok

#

didn't see that

#

my bad

#

well I mean I didn't have time to finish at all xD

distant sun
#

I misread the question tbh

ocean quartz
#

I had it finished, then was reducing the characters when i noticed i also had to do median

#

So took a while

static zealot
#

o

#

o

#

that's cool

#

look ^ xD

#

when did that become a thing?

#

oh yesterday. cool

distant sun
#

o

static zealot
#

@half harness @old wyvern joining?

half harness
#

yes

stuck harbor
#

oh nice barry

half harness
#

1 minnnn

#

waaait for me

distant sun
#

was it package the task for maven to build a jar?

half harness
#

my computer slow

stuck harbor
#

i would join but im downloading battlefront 2

static zealot
#

yes Gaby

stuck harbor
#

its free yeet

static zealot
#

mvn package

#

ye I know iwanio.

#

I'll be downloading it tonight

stuck harbor
#

whats the difference between gradle build and gradle publish hm?

static zealot
#

aparently I only have to download 17% to be able to play

stuck harbor
#

its not the full game tho

#

its the demo

static zealot
#

ah I see

stuck harbor
#

ive installed this game so many times lol

#

its a good demo

#

but not really

static zealot
#

xD

#

so guess we're starting?

#

@pallid gale when you get online. Barry is deleting the COC message a bit to fast. Make it maybe 1 more minute? if you can of course. thanks

half harness
#

pls short

#

pls short

#

NOOo

ocean quartz
#

Ofc it's reverse..

half harness
#

lmao

static zealot
#

I mean

half harness
#

this is too easy

stuck harbor
#

haha nice

#

reverse is good

static zealot
#

its just minutes to seconds isn't it?

#

wait actually no

#

its hours to seconds

half harness
#

???

static zealot
#

oh nvm

#

thought from the first one that its 6 hours to 3600 seconds

#

but its not that lmao

half harness
#

submitted

#

didn't even add a line of code

#

just used what was already there

static zealot
#

wait you're laying

half harness
#

?

static zealot
#

liar

half harness
#

there was already sout

static zealot
#

how did you get 100% ?

half harness
#

i just did everything in sout

static zealot
#

what's sout?

half harness
#

like 6 characters

#

system.out.println

#

7 charactesr actually

static zealot
#

what?

half harness
#

and i had to remove the string already inside it

#

i removed the stuff already in the system.out.println and added 7 letters/numbers/symbols

static zealot
#

ok but what do they have in common ? xD

half harness
#

;-;

#

i thought

#

just look at it

static zealot
#

oh got it

#

lmao

half harness
#

lol

#

matt hurry up

#

lol

ocean quartz
#

I hate reverses

half harness
#

show code blitz

static zealot
#

Matt its just n*n*100

half harness
#

SH

#

๐Ÿ˜ญ

static zealot
#

or n^2*100 would work as well

half harness
#

๐Ÿฅณ ๐Ÿ’ฉ

ocean quartz
#

Boring

oblique heath
#

Math.pow(n,2)

hot hull
#

Pow pow

oblique heath
#

pew pew

half harness
#

i like shortest and reverse

#

fastest is ew

ocean quartz
#

Tbh i only like shortest

half harness
#

reverse

static zealot
#

lmao

#

hmm

half harness
#

this ones harder

#

a lot harder

static zealot
#

ye I got no idea

half harness
#

wait

distant sun
static zealot
#

wait

#

its easty

#

what you talking about

#

lmaoo

#

Gaby got any plugins?

distant sun
#

good point

static zealot
#

k

#

this is like 8 characters

#

in kotlin lmao

half harness
#

OH

#

THIS IEZ

static zealot
#

more like 12 actually

half harness
#

hmm

#

i know how to do it

#

but idk how to code it

static zealot
#

ugh k do it then

ocean quartz
#

Oh

#

Thought it was all correct lmao

half harness
#

yess

#

got it

static zealot
#

lmao Matt

ocean quartz
#

Ah, i see

static zealot
#

share code

#

please

half harness
#

matt share code

#

._.

static zealot
#

ye Matt

#

close

half harness
#

@oblique heath ;-;

oblique heath
#

;-;

ocean quartz
#

That's why i hate reverse, it's not always just numbers like math stuff, it's weird combinations

#

My solution made sense for the first 2

half harness
#

reverse is better than fastest tho imo

old wyvern
#

is it finished?

ocean quartz
#

Waiting on ivan

old wyvern
#

link

half harness
#

no

ocean quartz
#

Shortest > fastest > literally anything else > reverse

old wyvern
#

uh

#

what

#

no

#

shortest is the worse

oblique heath
#

oof

static zealot
#

one more if anyone wants to join

#

after that you'll have to make them for yourself xD

oblique heath
#

๐Ÿ˜ 

half harness
#

ill just go watch yt

old wyvern
#

start

half harness
#

start

ocean quartz
#

Yay

old wyvern
#

oh ffs

#

Litrally all 3 times I played

static zealot
#

Binary fuck

#

is there a method in java or kotlin

oblique heath
#

i dont have nitrotho D;

static zealot
#

to transform binary to decimal?

half harness
#

ok i give up

static zealot
#

ugh

#

I want Binary to int

#

fuck I'm a bit lost

#

had to do something else

#

wait what we got to do?

distant sun
#

How bad is to throw an exception just to stop the code there and send the exception message to a player ??

#

I found a plugin that does that and I want to change it -.-

ocean quartz
#

160 has been the smallest i can think of

static zealot
#

149

#

got here

#

welp 147 it is then

old wyvern
#

๐Ÿ™‚

static zealot
#

readLine Matt

ocean quartz
#

Python

old wyvern
#

๐Ÿฅฒ

ocean quartz
#

Forgot about that yeah

oblique heath
#

i cant submit my clash!?

#

o

static zealot
#

welp gl boys. got to go do something else

oblique heath
#

bye ๐Ÿ˜ฎ

old wyvern
#

another one?

static zealot
#

I mean we can just give up

#

well me

#

at least

#

because Python is just going to win

#

lmao 84

old wyvern
#

ok ill stop using python

static zealot
#

well I mean I don't even get what it wants

#

so fuck this

old wyvern
#

||get mean of chars, get the char for the floored value of that||

#

ay ivan xD

hot hull
#

@ocean quartz If you do any work on chat, mind just testing the reply stuff for me <3

oblique heath
#

yeeee

hot hull
#

Why did I read that as yeet Ivan

oblique heath
#

i think our tactics combined could get even an even lower count

#

don't yeet me ๐Ÿ˜ฆ

static zealot
#

and what the hell is the lenS for?

#

ah

#

length of S

#

lmao

old wyvern
#

its not really needed xD

static zealot
#

ye I know

hot hull
#

Quick question fellas

#

Anyone ever played with making custom uis using maps?

#

If so, what's the limitations on clicks, if you can even detect it

old wyvern
#

How would one properly interact with it tho?

oblique heath
#

i dont think you can click on the map at all, you probably can only detect if a click has happened

old wyvern
#

If you keep 1 itemframe per button, that might work

oblique heath
#

oh i thought he meant like holding in his hand

hot hull
#

There's gotta be a hacky way of getting the mouse position

oblique heath
#

actually.... just spitballing,

#

you can summon an item frame relative to the player's perspective

#

and see where they click in the air

hot hull
#

Yea and have the cursor

old wyvern
#

You could kind of with yaw and pitch

#

You do some sort of raycast to find the exact collision point

oblique heath
#

you wouldnt even need to raycast

hot hull
#

Such good ideas

oblique heath
#

as long as the position of the item frame was constant relative to the player

ocean quartz
#

So close, 95 chars

hot hull
#

Has noone seriously done this before?

oblique heath
#

it seems like a lot of effort

obtuse gale
#

LivingEntity#rayTraceBlocks or World#rayTrace both return a RayTraceResult which you can get the exact Location from

hot hull
#

Well yea, hella worth it tho

oblique heath
#

true

#

it'd be pretty cool to have an interactive menu hovering by your side in-game

hot hull
#

Fellas, I know what we're gonna do tommorrow

obtuse gale
#

"we"

hot hull
#

Me*

static zealot
#

ye no idea what I did

ocean quartz
#

If it didn't ask for the length i would have done it with 84 char as well

#

But had to do an empty readline

oblique heath
#

we ready to start?

#

i'll take that as a yes ๐Ÿ˜Ž

static zealot
#

again

#

fuck this shit

hot hull
old wyvern
#

Can we restart?

static zealot
#

xD

old wyvern
#

Im sick of shortest

static zealot
#

just play yugi

#

no idea how to convert decimal to binary eaither

#

why do I suck so much

prisma wave
#

Integer.toBinaryString iirc

static zealot
#

ye

#

found it

#

thought I have to make my own method

prisma wave
#

I mean you could

#

But yeah it already exists

old wyvern
#

Are you using kotlin?

static zealot
#

ye

old wyvern
#

toString(2) should work on numbers

static zealot
#

matt if you want to shave off 2 characters next time use print xd

oblique heath
#

i cri

#

why is bash so confusing

ocean quartz
#

True

static zealot
#

I should really spend a few days learning methods because I know very few and I just hope IIJ would recommend them lmao. well when I press TAB I just go thru them and hope they do what it sounds like they do

old wyvern
oblique heath
#

starting in ~20 seconds

old wyvern
#
fun main()=println(readLine()!!.toInt().toString(2).sumBy{it-'0'})
ocean quartz
#

How? ;o

old wyvern
#

to didnt need the to char array

small sigil
#

how to add comment line to config.yml file

oblique heath
#

#this is a comment

old wyvern
#

and the final to int could have been reduced

static zealot
#

put # at the beginning

#

oh we started in 2

half harness
#

or that

static zealot
#

its time for revenge?

ocean quartz
#

Oooh interesting

static zealot
#

hmm

#

ok I think I got this

#

nvm

oblique heath
#

:)

static zealot
#

ye got it

#

lmao

#

my brain just told me nah you're stupid its not that

#

so I was like realy?

oblique heath
#

xd

old wyvern
#

xD

oblique heath
#

v

#

lets pray for a harder one

#

starting

old wyvern
#

ffs

static zealot
#

xD

old wyvern
#

like srsly

#

fr

static zealot
#

k this is broken

obtuse gale
#

i need help

compact perchBOT
#

There is no time to wait! Ask your question @obtuse gale!

obtuse gale
#

when I turn on my microwave wifi craps out

static zealot
#

done

#

20% not bad

#

for 19 chars

oblique heath
#

dammit

#

not this hard D:

old wyvern
#

Why did one guy arrive at time 0

#

๐Ÿ™ƒ

oblique heath
#

some guy was already past the goal

old wyvern
#

CoC be breaking physics

#

dammit

oblique heath
#

the total distance was 6000 and they were at like 6200

oblique heath
#

oho

old wyvern
#

No more shortest

#

Thank you

oblique heath
#

fine

old wyvern
#

xD

oblique heath
#

time to be speedy

old wyvern
#

@static zealot join

oblique heath
#

"return whether the number is odd or even"

#

watch it be that

old wyvern
#

eh its not usually that easy

#

atleast not in public games

oblique heath
#

we had that one reverse

#

*=1.5

old wyvern
#

Had one public question that wanted us to do a some path finding xD

oblique heath
#

D:

#

thats spooky

old wyvern
#

like im p sure everyone quit

oblique heath
#

invert a bst

#

in a functional language

#

๐Ÿ™‚

old wyvern
#

There you go

#

๐Ÿฅฒ

oblique heath
prisma wave
#

H

oblique heath
#

stort

wind bolt
#

Toml

ocean quartz
#

OMG

static zealot
#

OMG?

ocean quartz
#

He's part of Yatopia lmao

static zealot
#

TrimphChat finally working?

#

who?

ocean quartz
#

The argument guy, that efe sent

static zealot
#

ah

half harness
#

lol

#

rip

prisma wave
#

Wtf

#

I thought I recognised the name

#

๐Ÿฅฒ

ocean quartz
#

Also i like how his argument for Kotlin being worse than Java is literally "i suck at making things work"

prisma wave
#

We have been SILENCED

surreal quarry
#

decent crusade

#

but we all got banned smh

half harness
#

I didn't even say anything-

prisma wave
#

harsh

half harness
#

well besides for ๐Ÿฅฒ

prisma wave
#

1 warning before a ban

half harness
#

I can't believe saying ๐Ÿฅฒ is bannable

#

;-;

prisma wave
#

Yikes

ocean quartz
#

Kek, can't believe it's the one and only Yatopia guy

#

Him and mr ivan

static zealot
#

idk who Yatopia is so

#

.. xD

ocean quartz
static zealot
#

AH

#

About The Most Powerful and Feature Rich Minecraft Server Software!

ocean quartz
#

As Kenny said

Yatopia, "The combined power of Paper forks for maximum instability and unmaintainablity!" - Messy, tossed salad of people that haven't even really understood the patch system.

static zealot
#

xD

prisma wave
#

whoops

old wyvern
#

who is Yatopia

#

oh

obtuse gale
#

Classic LuckPerms dev-api support

> help IllegalStateException: The LuckPerms API is not loaded.
> are you shading the luckperms api into your plugin?
> No
> implementation 'net.luckperms:api:5.2'
surreal quarry
#

Classic

static zealot
old wyvern
#

People seemed to hate that on tuinity discord

ocean quartz
#

And on paper

old wyvern
#

xD

surreal quarry
#

bad

ocean quartz
#

They legit had the entire nms in their github repo before

old wyvern
#

something about ivan skidding or something

#

Lemme check

half harness
#

Any good example of having separate modules for different versions

#

on github

#

?

ocean quartz
#

Wtf does modules have anything to do with github?

half harness
#

no imean

#

the code public on github

surreal quarry
#

i think crazycrates might be different versions for each module but i forget

prisma wave
#

yeah it definitely is

half harness
#

oo

#

othx

prisma wave
#

had to add particle support to every version in a $10 commission ๐Ÿฅฒ

ocean quartz
#

Modules fingerguns

half harness
#

๐Ÿ˜

surreal quarry
#

he wants like versioned modules

half harness
#

wait

#

whats the R1 mean in v1_11_R1

prisma wave
#

Revision 1

ocean quartz
#

5 out of 8 repositories i have in the org have modules lmao

prisma wave
#

There's usually only 1

half harness
#

its not v1_12_2_R1?

#

for 1.12.2

ocean quartz
#

Depends

#

1.12.2
NMS Version: 1_12_R1
Bukkit Version: 1.12.2-R0.1-SNAPSHOT

half harness
#

whered u find that?

old wyvern
#

Not yatopia but seems to be archived now

obtuse gale
#

Ivan huh....

half harness
#

how do I get CraftWorld

#

to work

#

buildtools ๐Ÿ˜ญ

obtuse gale
#

yes, run buildtools

half harness
#

ok

#

time for my computer to die for the next 4 hours

ocean quartz
#

Yatopia is a big mess that ivan and that guy did

#

Like i said they had the entire nms there

#

Ready to get a dmca takedown

obtuse gale
#

lmao

prisma wave
#

lmao

ocean quartz
old wyvern
#

xD

prisma wave
#

Who thought that was a good idea?

surreal quarry
#

this man has like 6 paper forks in here

#

lmao

ocean quartz
#

People on paper were yelling at them lmao

old wyvern
#

Last time I saw him here, he switched out a few immutable collections with sets in papi somewhere saying its a memory leak

#

๐Ÿฅฒ

prisma wave
#

?????????????

old wyvern
#

was in vc

#

with clip

#

xD

prisma wave
#

I'm sorry what

old wyvern
#

Check voice chat logs, might be there

#

I mean the text channel

#

not sure if they merged tho

#

he did pr them

prisma wave
#

Tf

#

I thought be was one of the "clever ones"

old wyvern
#

No idea

#

Oh he replied in just the voice channel I think

#

welp

prisma wave
#

@old wyvern does return do nothing if it's not the last expression?

old wyvern
#

return doesnt do control flow

#

Its a function that returns a IO Action

#

๐Ÿฅฒ

ocean quartz
#

Also, will elara have something similar to list.forEach {}?

old wyvern
#

Yea

#

Not the brace at the end tho

unkempt tangle
#

Does anyone still remember poker night at the inventory?

ocean quartz
#

If you can, please make continue work on it xD

old wyvern
#

That might be weird to add since forEach would just be a std lib function

#

and the argument is just a function

#

What could maybe be done is adding inline functions that can do control flow?

#

I guess

#

So you could essentially have something like continue()

ocean quartz
#

An example i saw for kotlin was continue@forEach which, would be interesting where it was only allowed on certain functions

old wyvern
#

Kotlin allows that?

#

I thought it was return@forEach?

ocean quartz
#

Yeah, continue@forEach doesn't work, but i wish it would

old wyvern
#

Hmm would continue() be good enough?

ocean quartz
#

I think so

old wyvern
#

Awesome

cobalt tangle
#

I need help to voteparty

ocean quartz
cobalt tangle
#

Thanks You!!

unkempt tangle
#

Anyone got some ideas for a new plugin?

#

I'm done so far with the projects I started with.

#

But basiclly the term done is not correct.

#

Cuz you are never done.

prisma wave
prisma wave
#

That seems difficult to do

prisma wave
old wyvern
#

No I meant as in rather we would straight up inline it

prisma wave
#

But we don't have a continue statement anyway

old wyvern
#

Yea

#

It would be a return

#

Just sugar for return

#

Hmm

#

I mean now that I think of it it could be bad

prisma wave
#

yeah

old wyvern
#

Like ending up with functions that return out of nowhere

prisma wave
#

It's messy

#

I mean

#

continue in a forEach is just the same as returning from the function

old wyvern
#

Yea

#

Matts suggestion was to allow continue to work like return

#

Atleast in the context of foreach

ocean quartz
#

My suggestion was to allow it to work like on a normal for

prisma wave
#

but continue is the same as return

old wyvern
#

Yea comtinue reads better I guess

ocean quartz
#

Does it do the same as a return?

old wyvern
#

In case of forEach

#

Yes

#

Normal for, no

#

Or rather any normal loop

#

We only have a while loop as as a loop language construct rn

#

Other loop is a recursive func

prisma wave
#

Well

#

Most of the time an imperative continue could be replaced with map and filter

ocean quartz
#

Oh okay
Basically all i wanted was something like:

list.forEach {
  if (it.something()) {
    doThings()
    continue@forEach
  }

  doSomethingElse()
}

Instead of

list.forEach {
  if (it.something()) {
    doThings()
  } else {
    doSomethingElse()
  }
}
surreal quarry
#

for like web apps and stuff at least

old wyvern
#

O.o

surreal quarry
#

and like it hooks to your github so when you push to master or whatever branch you want it will build it for you automatically and deploy it

#

pretty nice

prisma wave
#

Idk

#

I'm not sure introducing a whole new keyword* is a good idea

ocean quartz
#

That's fair

prisma wave
#

On the one hand, break and continue are more imperative than declarative
On the other hand, we want it to be multi-paradigm

#

Sooo

#

๐Ÿ˜

#

Idk

obtuse gale
#

resolved - 3 months later

oak raft
#

whats the skeleton spawner worded id for 1.16.4

obtuse gale
#

SPAWNER

oak raft
#

skeleton spawner tho

obtuse gale
#

d;spigot material%spawner

ruby craterBOT
obtuse gale
#

The spawner is a single block

#

Then it would be the BlockState that contains the entity info

#

Or BlockData

#

Idk lol

half harness
#

OH

#

FEFO

#

ur ON

obtuse gale
#

Surely it's got to be the BlockState tho

#

Sup dkim

#

d;spigot CreatureSpawner

ruby craterBOT
#
public interface CreatureSpawner
extends TileState```
CreatureSpawner has 4 super interfaces, 18 methods, and  1 extensions.
Description:

Represents a captured state of a creature spawner.

half harness
#

i have question

obtuse gale
#

@oak raft see that

#

It's the block's BlockState (after changing things from it you call BlockState#update)

half harness
#

If I have compileOnly 'com.github.dmulloy2:ProtocolLib:4.5.1' in my cps project, and then shade my cps project into a plugin, will it work?

#

no ones online right now ๐Ÿ˜ญ

obtuse gale
#

Yeah, I mean after all plib isn't shaded in

ocean quartz
half harness
#

hows this?

#

MATT

#

UR ON TOO

ocean quartz
#

I am also always on

half harness
#

can u look at my code

#

๐Ÿ™‚

#

its only 1 class

ocean quartz
#

Not a single final

onyx loom
#

matt got the most fucked sleep schedule

ocean quartz
#

I do

half harness
#

I have a question

ocean quartz
#

I go to sleep at 6am and wake up at 2pm

onyx loom
#

๐Ÿฅฒ

half harness
#

o

onyx loom
#

night owl

obtuse gale
onyx loom
#

i fixed my sleep schedule today and here i am at 3am breaking it again ๐Ÿ™ƒ

ocean quartz
#

I no longer believe in a normal sleeping schedule

half harness
#

If I do this: ```java
public void a() {
final String e = "j";
b(e);
}

public void b(String c) {
String d = c + "d";
}

ocean quartz
#

Try and see it

half harness
#

;-;

oak raft
#

I need to put this into a config

half harness
#

๐Ÿค”

ocean quartz
#

Wtf is that?

half harness
#

lol

#

i fixed it

quiet depot
#

fun fact you forgot to make a plugin.yml

oak raft
#

?materials

compact perchBOT
half harness
#

uh

#
package me.dkim19375.clickspersecondlib;

public class test {
    public static void main(String[] args) {
        final String a = "a";
        b(a);
    }

    public static void b(String c) {
        c = c + "d";
        System.out.println(c);
    }
}
#

my whole class

quiet depot
#

well that's not what was linked lol

half harness
#

891 ms

#

;-;

ocean quartz
#

Reassigning parameters ๐Ÿ˜ฌ

half harness
#

how do I have libs in java?

obtuse gale
#

@oak raft that doesn't change the fact that it is one single SPAWNER Material and the entity it spawns (alongside many other properties) is defined in the BlockState (being CreatureSpawner)

half harness
#

like how can I get the classes

oak raft
#

so how do I change the blockstate

half harness
#

in spigot it just has to be in plugins folder

#

what about pure java?

obtuse gale
#

getBlockState

#

Change the things

oak raft
#

no dude

obtuse gale
#

Yes dude

oak raft
#

im trying to have someone win a skeleton spawner in crazycrates

obtuse gale
#

how get buffered image from map

#

help

oak raft
#

im not making a plugin

obtuse gale
#

Well how the fuck am I supposed to know that lmao

oak raft
#

I TOLD you

obtuse gale
oak raft
#

ok wrong channel my bad

half harness
ocean quartz
#

Why is everything static?

half harness
#

๐Ÿ˜ฌ

ocean quartz
#

If you don't know, then why use it?

obtuse gale
#

whats with the custom map implementation

#

dkim you ought to reconsider actually learning how to program in Java

#

More often than not when people ask you "why this" or "what's that for" you respond with "idk"

#

You don't do things "just because", the things you do must have an underlying purpose that explains why you made the things the way they are or why you took certain design decisions

half harness
#

for jitpack how can I add something on there that requires a dependency?

#

my project requires protocollib...

#
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.comphenix.executors:BukkitExecutors:1.1-SNAPSHOT.
ocean quartz
#

You can't

half harness
#

oh

#

ok

#

๐Ÿ˜ฆ

ocean quartz
#

Also i like how you just ignored Fefo's message xD

half harness
#

oh

#

oops

onyx loom
#

"oops"

half harness
#

๐Ÿ˜ฌ

quiet depot
#

jesus

#

your responses are so consistent

half harness
#

lol

quiet depot
#

it's not something to be laughing at

#

it just makes it look like you don't take anything seriously

onyx loom
#

he has 5 words in his vocabulary, leave him alone ๐Ÿฅฒ

quiet depot
#

we can't help, and it's unlikely we'll continue to help if you don't take it seriously

half harness
#

alright

runic willow
#

Hello

half harness
#

hello

runic willow
#

I'm having some errors on console using deluxe menu

half harness
onyx loom
#

hey @ocean quartz u wanna know why my sleep schedule is fucked again?
ive procrastinated homework all day and now that its 4am ive decided to do it. it took me 20 minutes to complete it ๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜

i hate myself

regal gale
#

Burn it

onyx loom
#

goodnight ๐Ÿ™ƒ

obtuse gale
compact perchBOT
#

There is no time to wait! Ask your question @obtuse gale!

obtuse gale
#

Yeah just lemme read ur mind real quick

ocean quartz
#

?help

compact perchBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

obtuse gale
obtuse gale
#

kinda terrified rn, gotta type like a crap ton of code without testing it

surreal quarry
#

why

obtuse gale
#

cos to get to the stage in which id test it it takes ages and i dont think theres any way i can simulate it without spending the tiem changing the code that it will take to write it

surreal quarry
#

ah tuff

obtuse gale
#

Unit testing though cct

surreal quarry
#

im gonna go crazy

#

ive been using i3 for so long and am back on windows to do something and i keep trying to switch windows with like winkey + jkl;

#

and it keeps locking the computer or bringing up voice assist lmao

obtuse gale
#

welp

#

im at the point in my code where i can do something hacky or refactor half the plugimn

surreal quarry
#

refactor better

#

hacky easier

obtuse gale
#

yes

#

Its not really that hacky ig

#
rightClicked.location.getNearbyEntitiesByType(ItemFrame::class.java, 5.0).filter { itemFrame -> 
                if(itemFrame.hasMetadata("position")) return@filter false
                val position = itemFrame.getMetadata("position").first().asInt()
                return@filter numbers.toList().contains(position)
            }```
#

me:Tries to type double

#

Intellij

surreal quarry
#

DefaultBaseAbstractDoubleCreationUtilityFactoryInterfaceImplementation

obtuse gale
#

lmao gonna feel good closing all these tabs one im finished with this project

surreal quarry
#

yes you are

#

best feeling

obtuse gale
#

Free what

obtuse gale
#

server world files

#

Ssssssuuuuuuuurrrrrrrreeeeeee

#

what else would it be

hot hull
#

@quiet depot how do you add a dependency from a libs folder in gradle?

quiet depot
#

yes

hot hull
#

wdym yes

quiet depot
#

yes

#

it's on my tutorial weeb

hot hull
#

If I open google PC go boom

quiet depot
#
repositories {
  flatDir {
    dirs 'libs'
  }
}```
#

then

#

compileOnly 'jar-name'

#

e.g.

#

compileOnly 'spigot'

#

no .jar at the end

#

NO

#

that's not it

#

it's

#

compileOnly name: 'spigot'

#

I think

hot hull
#

thanks

prisma wave
#

you can also just use compileOnly files('file-path.jar')

hot hull
#

piggy's way is cleaner

prisma wave
#

If you say so

#

Mine is less verbose

steel heart
#

no it isn't :[

prisma wave
#

It is

#

Cuz you don't need the repo

steel heart
#

I'm just alluding you could call file('x.jar'') but also you'd have to declare the path then inside the file()/files() function

hot hull
#

So I just had to remove some features from a plugin

#

It used lombok

#

Guess what I did first second

steel heart
#

as opposed to just having to declare the name of the jar

jovial warren
#

xD

hot hull
#

How dare thy call me a fool

#

You trynna start a crusade young man

jovial warren
#

do not present me with hollow accusations

#

for it is thee who crafted the absurd suggestion that the procedure of the response provided by PiggyPiglet was by some means "cleaner" than that of Brister Mitten

#

wow that took me a bit of time to write lol

old wyvern
#

ShAkeSpor

hot hull
#

Worth it tho bardy

jovial warren
#

lol

#

@prisma wave never knew you played hollow knight

#

I was dragged onto that game by someone I know because they play it, and I haven't played it since lol

prisma wave
#

it's amazing

#

such a good game

jovial warren
#

yeah it is

#

it was funny to laugh at my friend getting annoyed when she took a few days to kill this one boss lol

prisma wave
#

lmao

#

yeah it's very difficult

jovial warren
#

it was the flying thingy

prisma wave
#

there are a lot of flying ones lol

jovial warren
#

there's probably a lot of flying thingys so that probably doesn't help lol

prisma wave
#

yeah not a lot

#

after like 80 hours of playing ive almost finished the entire game

jovial warren
#

I used to just tell the enemies that they have no friends, no family, and that no one cares about them lol

prisma wave
#

that's usually true lol

#

theyre all pretty much zombies

jovial warren
#

I mean, they are controlled by AI, and AI don't have families or friends or people who care about them so...

prisma wave
#

also true

jovial warren
#

anyway, changing the subject, ever heard of Hack The Box btw?

prisma wave
#

Yeah never done it though

#

i think i did the entry thing a while ago and then got bored

jovial warren
#

I started doing it the other day, and while it's fun, it's about as annoying as programming is

#

literally yesterday, it took me about half an hour to find out there was a hidden input tag on the register page that, when changing the value to 1 instead of 0, would give your new account admin privileges

#

it was literally highlighted in red as well on view source

#

wow took me a while to find out the name of this service

#

another box I did, literally just found exploits in elastix, got the password, and then had to ssh into root with that password

#

security at it's finest amirite

#

password-protected SSH

#

I mean, could be worse, you could run sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config >> /etc/ssh/sshd_config && sudo sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/g' /etc/ssh/sshd_config >> /etc/ssh/sshd_config

#

please though, no one run that

prisma wave
jovial warren
#

(first one enables root login with SSH, second one allows empty passwords to be used with SSH)

jovial warren
hot hull
#

life

prisma wave
#

nothing really

#

just that command is very long

jovial warren
#

yeah because it's two separate commands to replace two separate things

#

there's probably a better way, but idk sed that well

#

sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g;s/#PermitEmptyPasswords no/PermitEmptyPasswords yes/g' /etc/ssh/sshd_config >> /etc/ssh/sshd_config

#

oh also, interesting fact, I just found out it's Wikipedia's 20th birthday today

prisma wave
#

wow 20 years

hot hull
#

I have a question fellas

#

What's an appropriate hourly pay for someone that's at my stage of plugin development

#

There is

#

You'd be surprised once you get into the right people group

obtuse gale
#

What's the best way to handle updates for a live discord bot

#

Like just shutting it down? Or is there a better way

lunar cypress
#

I mean depends on what technologies it uses

#

iirc, discord.py for example has a hot reloading system

#

or at least its command library

prisma wave
lunar cypress
#

Well any reasonable answer to that from your work perspective is immediately going to get rid of your job opportunities in the scope of this server and similar

hot hull
#

Elaborate Johnny :p

lunar cypress
#

If you are professional, deliver good results and generally treat it like real work, then the amount you should charge usually exceeds what people in this community and similar have to offer

#

ignoring that I'll agree with BM

prisma wave
#

yeah it's pretty rare to find people paying more than $15/hr in this community, unless it's a really big server

hot hull
#

I'll just go with 10 then

lunar cypress
#

yep. If you want a proper well-paid job you need to look at bigger servers, although there are some bad apples there as well

hot hull
#

Well I mean I doubt I'd ever even be considered if I apply on a larger scale server

lunar cypress
#

generally though a real company with multiple employees is going to pay you more than a private 15 year old individual

hot hull
#

Well yea that's logical

#

Imagine having more than 1gb of ram usage by IJ

old wyvern
#

?

#

lol

#

yea deffo

prisma wave
#

.elara

#

yes

obtuse gale
lunar cypress
#

Definitely not trivial

frail glade
#

I would agree with Gian.

prisma wave
#

why tf you using a switch with a single case

lunar cypress
#

good indicator that you shouldn't be using a switch

#

because switch is static

#

ideally you'd have a dynamic system

#

not saying if-else chanining is better

prisma wave
#

^

oblique heath
#

genuine question here, in efefury's case would it be fine to make a hashmap of <Integer, customClassName> for which the custom class is abstract and has a function for the appropriate response to the slot number

#

or is there some cleaner way of doing something like that

steel heart
#

yes utilizing polymorphism could be beneficial

lunar cypress
#

yes, that would be a fairly simple improvement

#

You separate the actions that have nothing to do with each other and it becomes trivial to add more behaviour

#

And you have freedom in how you model the action hierarchy

obtuse gale
#

bro tf is polymorphism

#

is this some kinda geometry shit im too dumb to understand or something

steel heart
#

Uhm

obtuse gale
#

I just wanted to make minecraft plugins ๐Ÿฅฒ

steel heart
#

Well
List<List<?>> would be 1 example

obtuse gale
#

so something inside something lol?

prisma wave
#

tf

#

what

obtuse gale
#

lmao im polymorphisming with ur mum

steel heart
#

Yes?

#

Isn't

prisma wave
#

polymorphism is an object having multiple forms

lunar cypress
#

polymorphism is when you call a method on one variable but it might do different things depending on the actual underlying type.

steel heart
lunar cypress
#

So for example an abstract method is always polymorphic

obtuse gale
#

o

prisma wave
steel heart
#

the elements in the list could be any subclass of List

oblique heath
#

why not use the traditional Animal.feed() example

steel heart
#

Shape[]

oblique heath
#

Animal.feed() might do different things depending on which type of animal it is

obtuse gale
#

now

steel heart
#

Iterable<Object>

obtuse gale
#

Graphics2D#drawLine(0,0, (128 * percent).toInt(),(128 * percent).toInt()) makes this but only to a certain percent depending on the percent decimal

oblique heath
#

replace percent with 1-percent?

#

use parentheses*

obtuse gale
#

will that actually make it work? That wont change the start location will it?

oblique heath
obtuse gale
#

yeah no

#

that just inverses the percent of the first image

oblique heath
#

oh i think i misunderstood you

#

you want the line to be drawn partway right

#

not just flipped around

obtuse gale
#

yeah

#

depending on percent

#

for example

oblique heath
#

i see

obtuse gale
#

in the above example if percent is .5 it makes this

#

tbh that doesnt look like a perfect 50% but its close enough for me

oblique heath
#

then you do 128,0,(128*percent).toInt(), 128 - ((128*percent).toInt()))

#

or it might be the other way around, where you flip param 1 with 2, and 3 with 4

obtuse gale
#

now my IJ has stopped running scratch files .-.

#

the params are x1,y1, x2,y2 btw

oblique heath
#

ah then you might need to do it flipped

obtuse gale
#

my IJ has just decided to stop working

#

so idk

#

oh

#

yerah that works

#

im dumb

oblique heath
#

i'm fairly new to sql setups and i'm worried there might be a better way to organize how i have my player permissions than to have all of them for all my (infinitely many) servers in a single table (like somehow splitting them up per-world), but i dont see how i'd do that

hot hull
#

Ah yes that makes sense

not a map MAP

#

uppercase map is the material

#

๐Ÿคฆ

old wyvern
#

@oblique heath uh wasnt starting a game xD

oblique heath
#

too bad >:)

old wyvern
#

Just tried to launch a game with a bot

oblique heath
#

you've commited

old wyvern
#

commited what?

oblique heath
#

treason

old wyvern
#

what? xD

oblique heath
#

tREASON

#

55 characters ๐Ÿ˜Ž

quiet depot
#

@old wyvern apply for dev smh

#

oh you already have oof

#

guess i better go through those

half harness
#

๐Ÿ‘€

onyx loom
#

yugi bad dev instant decline

half harness
#

im 100% gonna get declined

old wyvern
old wyvern
#

Also, ill try to publish the clash thing so cube can add to barry

#

first cleaning it out

hot hull
#

Why must spigot be so gae

quiet depot
#

@old wyvern is it node?

old wyvern
#

yes

quiet depot
#

nice

winged mica
#

What is the liskov substitution principle?

onyx loom
#

?solid

compact perchBOT
lunar cypress
#

It's very basic. If I have a variable foo of type A somewhere and B extends A, then I should be able to replace the variable type to be B and everything should still work

oblique heath
#

basically all rectangles are squares squares are rectangles

old wyvern
#

all rectangles are squares
uh

#

xD

steel heart
#

all objects are objects

old wyvern
#

no like all rectangles are not squares xD

onyx loom
#

kek

steel heart
#

All Yugis are Yugis believe it or not

oblique heath
#

dammit

half harness
#

๐Ÿ˜ฑ

oblique heath
#

you know what i meant ๐Ÿ˜ข

onyx loom
#

we sure did

#

all rectangles are squares ๐Ÿฅฒ

oblique heath
#

๐Ÿ˜ 

prisma wave
#

lopl

steel heart
#

Yes but what if rectangle is cube

onyx loom
old wyvern
oblique heath
#

i meant that all squares can be treated as rectangles

old wyvern
#

Oh that wont apply with liskov tho afaik

#

Everything irl doesnt translate

oblique heath
#

why not D;

obtuse gale
#

A square is just a special case where width = height

old wyvern
#

A rectangle would have an associated width and height, a square would have both of them equal
so if square would be a rectangle, setWidth and setHeights contract would have to be broken to allow a square

oblique heath
#

they wouldnt be broken they would just both set / get to the same variable

#

setting a square's height does the same as setting it's width

old wyvern
#

Ok lets think about it this way

obtuse gale
#

Just think of it as two triangles

old wyvern
obtuse gale
#

Meshing is fun

old wyvern
#

Imagine you got some implementation of Rectangle

#
Rectangle r = ....```
#

ok?

#

now

#
r.setWidth(100);
r.setHeight(200);
System.out.println(r.getWidth());

What should be the expected answer?

steel heart
#

100

#

or?

old wyvern
#

Yes

#

But if it was a square like mentioned earlier

#

It would have returned 200

steel heart
#

Now for some reason, a random spigot noob uses reflection and it returned 69

oblique heath
#

well i mean it's still a square

#

ye you wouldnt get what you'd expect but

#

i still don't get why that wouldnt follow the substitution principle

old wyvern
#

Its because its not replaceable

steel heart
#

liskov substitution principle is smart

#

it covers several problems my man

obtuse gale
#

Problem is that you're thinking of a square as something special, but in reality a square is just a special case for a rectangle in which the width is the height, just like a circle is a special case for an ellipse in which both radii are the same

#

When working with the maths a square is treated no different than a rectangle, it just allows for some math shortcuts

old wyvern
#

Im saying while yes it is a special case of a rectangle irl, but doesnt apply when using liskov

oblique heath
#

alright i think i get that

#

thank you fefo ;o

old wyvern
obtuse gale
#

But you shouldn't have a special implementation for square

old wyvern
#

Theres a quote from a course

oblique heath
#

๐Ÿ˜ฆ

steel heart
#

Well LSP may not always be applied excessively. Like

old wyvern
#

That is not excessive

steel heart
#

no

old wyvern
#

Thats the proper usage

#

Your contracts are different

#

lmao

steel heart
#

It wasn't related to your post

#

or whatever

obtuse gale
#

Also what the fuck

steel heart
#

fuck the what

lunar cypress
#

The Liskov Substitution Principle doesn't state what type you should use for your variable but that it shouldn't break when you replace it with a subtype

surreal quarry
#

does liskov apply for API interfaces. I have an API thats all interfaces and I only expose that to people, and then in my plugin I have the implementations, and I pass the implementations where I need them because I have added different methods that I use, but people using the API don't need

lunar cypress
#

You're all overthinking this too much

#

Choosing an abstract type over a concrete type falls more into Dependency Inversion

obtuse gale
old wyvern
#
 because of what you think the implementation is supposed to do

Its not the implementation

#

its the interface that defines what the implementations would do in whatever way

steel heart
#

interface specifies behavior or a functionality

old wyvern
#

setWidth should be setting width

obtuse gale
#

Unless the specification states that it should modify the width and width only

old wyvern
#

Fefo thats the point, it shouldnt be setting height at that point

obtuse gale
#

In which case it would disallow the possibility of a square class extending that rectangle class

#

Then you can't have a square class extending the rectangle one

#

Because it doesn't allow it

old wyvern
#

Which is why square isnt fully substitute with a rectangle

old wyvern
#

You cant

#

It makes sense irl, ik

#

But it doesnt always work the same in this terms

obtuse gale
#

"irl" wat

old wyvern
#

As in, in practice

#

like in math

#

A square would be a special case of rectangle

obtuse gale
#

Because it is

quiet depot
#

<> pls

steel heart
#

Raw types are awesome /s