#dev-general

1 messages · Page 126 of 1

obtuse gale
#

now gradle is the default type

topaz bay
#

@remote goblet kot.lin.

heady birch
#

@topaz bay Largest SLOC youve ever written?

topaz bay
#

¯_(ツ)_/¯

heady birch
#

install statistic pluginininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininin

topaz bay
#

I have the plugin

#

And I know you see me playing overwatch dammit

#

total source of odin is 5.8k

#

the parser is 1.9k

remote goblet
#

overwatch is a stressful game

#

especially when you lose 9/12 comp matches because europeans are braindead

heady birch
#

it is my goal to get 100k lines in a program one day

topaz bay
#

That seems pretty pointless

heady birch
#

Maybe

#

@topaz bay Does oding have inheritance

topaz bay
#

tf is oding

#

dont you ever disrespect him like that

remote goblet
#

should be capitalized

heady birch
#

odin

#

nido

#

Any way to acheive this

remote goblet
#

idk why but i thought odin was 5 letters long

heady birch
#

If I want comment commentable on all commentable (ICommentable) objects

onyx loom
#

Java is much better at having a bigger boilerplate
@ocean quartz thats a big kekW

remote goblet
#

intelliJ

#

is currently shitting itself

topaz bay
#

innit

heady birch
#

sxtanna

#

is it bad to just have interfaces for the sake of it

#

say

#

2 objects might have getOwners()

#

and I want

#

Ownable

#

is that worth it

onyx loom
#

@obtuse gale nice 👍

obtuse gale
#

:)(:

topaz bay
#

@heady birch eh

#

Its sort of a case by case thing

heady birch
#

give me examples of cases

topaz bay
#

Thats not what that phrase means

heady birch
#

just explain it

#

lol

topaz bay
#

It means its a decision you make on a case by case basis

heady birch
#

ok my case

topaz bay
#

Not something you would just apply everywhere

heady birch
#

Photo

#

Airframe

#

both can have Comment

#

makes sense they both implement ICommentable

topaz bay
#

Does it though?

#

Do you ever store them as icommentable?

heady birch
#

no

topaz bay
#

Are they ever generically accessed as icommentable?

heady birch
#

but it guarentees some consistency

#

no

#

which is why im questioning it

topaz bay
#

Not really though...

#

If theres no logic to it, there doesnt really need to be an interface for it

heady birch
#

😋

#

and it looks hella neat

topaz bay
#

How does that make sense?

#

Also the naming pattern ICommentable is trash

#

It should really just be Commentable or Commented

heady birch
#

Actually IQuiteLikeIt

quiet depot
#

then go to c#

topaz bay
#

Interfaces should be named what they are

#

Or what they provide

heady birch
#

ok it is a temporary naming pattern 🙂

frigid badge
#

Actually IQuiteLikeIt
lmao

remote goblet
heady birch
#

poor

#

you can autowire the properties

topaz bay
#

You have a serious issue of applying spring patterns to every situation

#

Spring is not the pinnacle of JVM programming

remote goblet
#

why the fuck

#

did it do that emoji

heady birch
#

😮

#

Sxtanna have you ever tried spring?

obtuse gale
compact perchBOT
#
Available FAQ Answers:
**Dependency, luckperms, materials, nojquery, notowner, optimize, papibot, particles, paste, placeholders, player, plsnoarrowcode, requirements, roleperks, site, solid, sounds, spigot, spigotid, startuplog, tagess, tryandsee, welcome-screen, yaml```
obtuse gale
#

smh

static zealot
#

well you see

#

the thing is it actually doesn't exist

#

xD

#

=faq

compact perchBOT
#

@static zealot,

FAQ • Invalid Usage

=faq <key>
=faq <add/edit> <key> <message>
=faq delete <key>
=faq raw <key>
=faq list
?<faq key>

prisma wave
#

?kotlin-dependency

compact perchBOT
#
FAQ Answer:

Dependency Injection
Dependency injection is when we pass a class through other class constructors to access that specific class in those other classes.

class Main : JavaPlugin() {
    
    override fun onEnable() {
      val other = Other(this)
      
      other.method()
    }
    
    fun myMethod() {
       /* Some code goes in here */
    }
}
class Other(private val main: Main) {

    fun method() {
      main.myMethod()
    }
}
prisma wave
#

"Main"

obtuse gale
#

?java-dependency

compact perchBOT
#
FAQ Answer:

Dependency Injection
Dependency injection is when we pass a class through other class constructors to access that specific class in those other classes.

public class Main extends JavaPlugin {

    @Override
    public void onEnable() {
        Other other = new Other(this);
        other.method();
    }

    public void myMethod() {
        /* Some code goes in here */
    }
}

public class Other {
    private final Main main;

    public Other(final Main main) {
        this.main = main;
    }

    public void method() {
        main.myMethod();
    }
}```
prisma wave
#

also they're called functions in kotlin not methods

#

smh

obtuse gale
#

wait they are lol?

prisma wave
#

yes

#

fun

static zealot
#

xD

obtuse gale
#

Like i knew thats what fun stood for but liek

#

function reminds me of js

quiet depot
#

lol @remote goblet, your issue is that you're connecting to an sftp server, via ftp

#

they're completely different protocols

prisma wave
obtuse gale
#

oof

quiet depot
#

fn ftw

obtuse gale
#

I mean it makes more sense than method

prisma wave
#

ew

heady birch
#

^^^ rust

obtuse gale
#

but like

prisma wave
#

rust bad

heady birch
#

fn cool(even_cooler: CoolStruct) {
}

obtuse gale
#

kotlin good java bad rust bad?

static zealot
#

when do you know a plugin is to big in size? xD

prisma wave
#

it's never

quiet depot
#

i like rust's mut

heady birch
#

when > 5mb for premium

static zealot
#

Like my plugin only has 4 commands and a few other things and its already 1.6Mb

quiet depot
#

what

remote goblet
#

lol @remote goblet, your issue is that you're connecting to an sftp server, via ftp
@quiet depot i'm aware

quiet depot
#

what are you doing blitz

heady birch
#

const mut number: i8 👀

quiet depot
#

if you're aware, then why is the issue still there?

static zealot
#

just a random plugin xD

sonic fractal
#

Can someone gelp

#

help

topaz bay
#

rust is trash

quiet depot
#

with what?

sonic fractal
#

deluxechat have dependieces?

quiet depot
obtuse gale
#

most of that 1.6mb will just be the kotlin stuff wont it?

static zealot
#

ugh kotlin

heady birch
#

rust is not trash

obtuse gale
#

It wont be all the features in ur plugin

heady birch
#

maybe it would be less trash

sonic fractal
#

where is deluxecht channe;

quiet depot
heady birch
#

with runtime trait checking

quiet depot
#

maybe you should just write code in the correct paradigm for the language you're working with

static zealot
#

I have a plugin that adds a join/leave message also a /fake join/leave command and a /give and /give all command xD

heady birch
#

yes piggy

#

hard to get used to

#

we are a team dedicated to porting popular Springs Framework to Skript

static zealot
#

wtf?

prisma wave
#

what

obtuse gale
#

what

static zealot
#

where is that?

heady birch
#

Lol

quiet depot
#

neat

heady birch
#

Slogan for my new company

#

lol

prisma wave
#

i hate you

static zealot
#

xD

quiet depot
#

do it

#

no balls

heady birch
#

does skript have an api then

quiet depot
#

yes

#

well, I'd assume

heady birch
#

hmmm

#

it must

quiet depot
#

loads of skript addons exist that extend the language

heady birch
#

yeah

sonic fractal
#

Wht

heady birch
#

Hi

topaz bay
#

trash

quiet depot
topaz bay
#

delete the whole planet

heady birch
#

sxtanna

onyx loom
#

im down

topaz bay
#

I should do that at some point...

onyx loom
#

deleting the planet sounds great

heady birch
#

i can write something in spring and still spend half the time talking here and be done quicker than anything written by hand

topaz bay
#

link my account, not delete the planet

#

Although, that would be nice...

heady birch
#

N.java remains

static zealot
#

:)))

topaz bay
#

@heady birch ofc you can...

#

because thats the point of spring...

quiet depot
#

N.java is something that should be deleted

topaz bay
#

Thats like...

#

The ENTIRE point of spring

#

xD

heady birch
#

geniune question

ocean quartz
#

N.java gives me nightmares

heady birch
#

why dont you like it?

#

N.java is only version 1

topaz bay
#

I never said I don't like Spring?

heady birch
#

I thought you did

#

Nevermind then

#

N.java

#

is a feat of human engineering

#

The ultimate solution to dependency injection

topaz bay
#

Wrong

heady birch
#

Ok

topaz bay
#

injekt is better

heady birch
#

Picocontainer

topaz bay
#

not sorry

quiet depot
#

guice > all your shitty alternatives

heady birch
#

guice is worse

quiet depot
#

only because you don't know how to use it

topaz bay
#

guice is trash

#

And I 100% know how to use it

quiet depot
#

i was talking to niall

#

nvm

#

I can't enlihish

#

i just cant

heady birch
#

i agree with sxtanna

#

after I added it to kiteboard

#

and deleted it

#

pico container did the job just as good

quiet depot
#

because you didn't fully utilise guice

heady birch
#

yeah i did

quiet depot
#

:doubt:

ocean quartz
#

I have never used but out of the box i find guice pretty hard to understand

heady birch
#

I even used a Provider

remote goblet
#

10%

quiet depot
#

lol

#

a provider

heady birch
#

0

quiet depot
#

you call that full utilisation

ocean quartz
#

jsch

remote goblet
#

i have no clue what im doing, shut up

heady birch
#

yeah well I dont want 5mb addons just to do some stupid assisted inject

#

when I can make my own factories

prisma wave
#

5mb

quiet depot
#

wAHHt?

topaz bay
#

???

heady birch
#

¿¿¿

#

ok

#

more like a couple kb

sonic fractal
#

I just asked general question does it have dependecies

obtuse gale
#

link ur spigot

#

so we know you actually paid for the plugin

quiet depot
#

read the spigot page lol

#

it literally says it's dependencies

sonic fractal
#

Rlly

#

In the pics

#

Or text

quiet depot
#

both

sonic fractal
#

Is my browser stupid

#

I don't see one

#

Or I'm idot

quiet depot
#

likely pebcak

#

not the browser

sonic fractal
#

likely pebcak
?

quiet depot
#

problem exists between chair and keyboard

ocean quartz
#

pebkek

quiet depot
heady birch
#

like annoying thing is

sonic fractal
#

No wait

heady birch
#

PhotoComment

#

ProfileComment

sonic fractal
#

Papi doesn't work on bungeecord

#

It doesn't work on proxy

quiet depot
#

well

#

considering that specific question, I'm gonna assume you have bought the plugin, and aren't just asking pre-buy questions

#

you're going to have to link your account if you want any further support

sonic fractal
#

Kk

obtuse gale
#

Anyone got an anti-swear regex thing?

#

probably one that just like prevents people from doing things like

#

f.uCk

quiet depot
#

consider using a similarity algorithm instead of regex

errant geyser
#

Couldn't that be fooled by using a tonne of random symbols and capitolising the characters that make up your curse word

remote goblet
#

i think i do

#

i did this in discord.js

function swearCheck(message) {
  let regex = new RegExp('[^!@#$%^&*]*(fuck|shit|bitch)[^!@#$%^&*]*');

  if (message.content.toLowerCase().replace(/\s/g, '').match(regex)) {
    message.delete();
  }
}
``` if that helps ![EmiShrug](https://cdn.discordapp.com/emojis/720398744742527019.webp?size=128 "EmiShrug")
topaz bay
#

scunthorpe problem

heady birch
#

ew

topaz bay
#

i wrote a swear filter in go

heady birch
#

(javacript)

topaz bay
#

It is magical

obtuse gale
#

ahhh

#

I think I enabled something I shouldnt of lol

#

whats with all these gh emails

hot hull
#

If I have a Number, how should I handle when the number is a plus or minus? since I can't do + - 1

obtuse gale
#

you cant do + - 1?

hot hull
#

I mean how would + - 1 make sense? wouldn't it just do + 1 and - 1

#

Meaning it'd be 0

#

or would it take the last operation?

obtuse gale
#

well 1 - 1 is 0

hot hull
#

Well no shit sherlock

obtuse gale
#

so whats the problem lol

#

or are you tryna do

#
  • 1 + 1
hot hull
#

I have a calculation, and rn it's jut +, but I want to make it so it takes an input, which is a Number meaning you can define + or - infront of it

obtuse gale
#

yes

hot hull
#

Yes what

obtuse gale
#

make it take an input?

#

lol?

quiet depot
#

what

#

just use Integer.parseInt?

hot hull
#

How does that solve my issue?

obtuse gale
#

ints can be negative?

#
frcstysShittyCalculation(-1)
frcstysShittyCalculation(1)
fun frcstysShittyCalculation(input:Int){

}```
topaz bay
#

...

quiet depot
#

what even is your issue

#

I'm so confused

obtuse gale
#

^

hot hull
#
input example: (-1, 0)
inputs: Number incrementX, Number incrementY

int x = posx (+-) incrementX
int y = posy (+-) incrementY
obtuse gale
#

o

hot hull
#

the (+-) part is what confuses me

obtuse gale
#

if its a negative make it not a negative ez

quiet depot
#

I still don't understand lol

obtuse gale
#

`Do you always want it to increment?

quiet depot
#

do you want the absolute value, i.e. ignoring if it's a negative?

obtuse gale
#

Because if the input is negative it will de-increment

#

so just de-negative the input ez

hot hull
#

No, I want to have a plus if it's a positive and a minus if it's a negative

quiet depot
#

...

#

just use a +

#

5 + -5 = 0

hot hull
#

See that's what I was asking, thank you

frigid badge
#

basic math lol

obtuse gale
#

but that will become a negative

#

wont it

heady birch
#

no

#

0

quiet depot
#

frosty this is really, really basic math

obtuse gale
#

cos a + and a - will become negative

hot hull
#

Lemmo, it's java who the fuck would know that

quiet depot
#

it's not java

hot hull
#

shut up

quiet depot
#

this concept applies to math at it's most basic form

frigid badge
#

that's universal math

#

just like - - = +

#

e.g. 5 - -5 = 5 + 5

#

kindergarten shit

hot hull
#

Okay mr smart ass

obtuse gale
#

I can still remember back in year 7 when the teacher drew up a fucking graph like
+- = -
-+ = -
++ = +
-- = +

heady birch
#

5 - - 5 = 10

frigid badge
#

-5 - -5

#

more minuses guys!

obtuse gale
#

=5

#

no

frigid badge
#

0

obtuse gale
#

0

heady birch
#

null

frigid badge
#

NaN

#

NiL

#

undefined

#

null

obtuse gale
#

fukn nerds

heady birch
#

None

#

Unit

#

void

obtuse gale
#

Nothing?

#

is that a thing

heady birch
#

probably somewhere

obtuse gale
heady birch
#

Cool

quiet depot
#

Nothing?
is that a thing
no... no, thing, no thing, nothing

heady birch
#

im gonna forever pronounce it no-thing

frigid badge
obtuse gale
#

java bad

topaz bay
#

I love Nothing

#

Its very useful

prisma wave
#

Nothing is awesome

frigid badge
#

java bad
@obtuse gale who said that's java tho

quiet depot
#

except font awesome

obtuse gale
#

who said I was talking about your screenshot

prisma wave
#

😏

frigid badge
#

smh

obtuse gale
#

I couldve just been stating javas bad

onyx loom
#

bm has started a religion

frigid badge
#

but you didn't

onyx loom
#

the kotlinism religion

heady birch
#

i still gotta figure out rust

prisma wave
#

It's a great religion

onyx loom
#

i agree

prisma wave
#

We have our lord and saviour Jetbrains

heady birch
#

in the way traits work

onyx loom
#

🙏

obtuse gale
#

whats the best way to fully lock someone from WASDing? Just cancel player move event

prisma wave
#

and the prophet Andrey Breslav

onyx loom
#

what a wise man

frigid badge
#

@obtuse gale yeah and probably sending packets to make the client think it's inside an invisible box

obtuse gale
#

:what:

prisma wave
#

He could beat James Gosling in a fight easily

quiet depot
#

whats the best way to fully lock someone from WASDing? Just cancel player move event
@obtuse gale mount them to an immovable entity

obtuse gale
#

hm

#

such as?

prisma wave
#

Armor stand

hot hull
#

Pig

#

And disable it's ai

topaz bay
#

I seriously don't understand this

frigid badge
#

35$ for 75 mbps

topaz bay
#

$35 more for < 1/10th of the speed

onyx loom
#

what

frigid badge
#

overpriced as fuck

onyx loom
#

wait and how much is the gigabit?

topaz bay
#

right now, our entire bill is $80 + fees for some devices

#

thats gigabit + tv + land line

#

And to get a lower speed of internet, it would be $35+ more

onyx loom
#

what

#

the fuck

topaz bay
#

The logic... hurts

obtuse gale
#

how caan I teleport a player behind another player

topaz bay
#

multiply the player's direction by -1, remove the y, and add that to the player's location

frigid badge
obtuse gale
#

wdym remove the y

frigid badge
#

y = 160
destroy y

obtuse gale
#

like just set it to 0 lol?

frigid badge
#

no

#

make it -69

#

😛

topaz bay
#

yes, set it to 0

obtuse gale
#

I dont get it lemmo

#

explain why thats funny please

frigid badge
#

no

obtuse gale
#

p l e a s e e x p l a i n

topaz bay
#

Unless ofc you actually want to teleport them behind the player's head

obtuse gale
#

well yeah

#

thats what I wanna do lol

#

like

#

one sec

#

imma go do art

topaz bay
#

then just... dont remove the y...

#

we dont need art

#

its just math

obtuse gale
#

yes you do

frigid badge
#

looks more like pron

obtuse gale
#

also do ij ust multiply the entire vector by -1 or what?

#

looks more like pron

frigid badge
#

arrow up your ass

topaz bay
#

omfg...

#

just do what I said

#

4head ass

obtuse gale
#

you send multiploe the direction by -1

#

so like the entire vector object?

topaz bay
#

FUCK

obtuse gale
#

oof

#

imma get yelled at

topaz bay
#

Literally just do it bruh

#

Take exactly what I said

#

And fucking do it

obtuse gale
#

val loc = this.location.direction.multiply(-1)

#

??

topaz bay
#

Read what I said

obtuse gale
#

val loc = this.location.direction.multiply(-1).add(this.location.toVector())

topaz bay
#

dear god in heaven

frigid badge
#

lmfao

#

I mean aj3 just do it and find out

obtuse gale
#

lol

frigid badge
#

you'll get to the correct answer eventually

topaz bay
#

Thats just literally not what I said

obtuse gale
#

multiply the player's direction by -1, remove the y, and add that to the player's location

topaz bay
#
val origin = targetPlayer.location

val destination = origin.add(origin.direction.multiply(-1.0).setY(0.0))
onyx loom
#

imma get yelled at
@obtuse gale did u expect anything less?

obtuse gale
#

If you pester sx enough he will spoonfeed you

#

also for reference

#

Sx got a warning from BAAS saying too many caps

topaz bay
#

fucking dumb

frigid badge
#

=warnhistory @topaz bay

compact perchBOT
#
Warning History

I found nothing on @topaz bay

obtuse gale
#

nerd

heady birch
#

idk cancel packet

obtuse gale
#

lol what

jovial warren
#

ooh I wonder who's HARD-CODED CLIENT ID THAT IS

jovial warren
#

honestly

jovial warren
#

anyone wanna test out my bot btw?

topaz bay
#

trash bot

errant geyser
#

KatBot™️ is superior

remote goblet
#

Lil Ori can kinda update his own jar file

#

Which is kinda cool?

storm coyote
#

I have a corrupted world with player data files resetting so if someone has extensive knowledge I'd like to get in contact.

The world file that got corrupted along with essentials. Essential player files are there but when players login essentials reset so homes are gone.

remote goblet
#

Welcome to essentials cafeshy

storm coyote
#

Essentials wasn’t the cause of this

#

Essentials also got corrupted along with it

regal gale
#

@errant geyser since you need the sauce so badly, I will share it ._.

#

All of that stuff is only 5 lines long anyway

obtuse gale
#

Anyone know how hard it would be to sync the movement of a player to the movement of an NPC

#

ie player moves forward NPC moves forward

quiet depot
#

what the fuck

#

so print(5 + " things") isn't valid python, but print(0.0 or False) is

#

this language just keeps on getting worse

obtuse gale
#

lol

regal gale
#

py didn't automatically convert stuff for you to recognize it

#

That's a thing I hate

quiet depot
#

that's not a problem

#

I'd be fine with that, if it were consistent

#

but it's not consistent

regal gale
#

I mean, it bothers me ofc

#

I always make that mistake a lot

quiet depot
#

strings, ints, floats, etc can't be converted to each other without explicit casts, but booleans happen to be the exception, where type coercion just magically happens

regal gale
#

Yeah...

#

Do you have any idea why 0.0 or False is valid? 🤔

#

I looked at it for a while and I don't get it

quiet depot
#

in a binary represenation, 1 = true, 0 = false

regal gale
#

Yeah, but 0.0? :p

quiet depot
#

it's a float

#

still equal to 0

old wyvern
#

It is consistent

quiet depot
#

how

old wyvern
#

following values are interpreted as false: False, None, numeric zero of all types, and empty strings and containers (including strings, tuples, lists, dictionaries, sets and frozensets)

#

All other values are interpreted as true.

quiet depot
#

I wasn't talking about the type coercion within booleans itself being inconsistent, I was talking about type coercion in python being inconsistent

#

why can it happen in booleans, but not strings?

#

so print(5 + " things") isn't valid python, but print(0.0 or False) is

regal gale
#

@obtuse gale also

#

Check Listener :)

#

It helps

quiet depot
#

I find it diabolically stupid that a language like python, doesn't have consistent type coercion, when that'd actually make the language even simpler, which is the only thing it's got going for it.

old wyvern
#

Thats only for boolean operators coz of how their result is returned I guess

#

The result isnt necessarily a boolean

quiet depot
#

ah that's true actually, and/or return one of the operands, not necessarily the boolean value. Regardless of this minor fact though, type coercion in python as a whole is inconsistent, due to this odd boolean semantic.

old wyvern
#

I guess they really wanted a shorter version of ternary or something for some reason lol

obtuse gale
#

like the player move listener?

#

or were u talking about something else

foggy pond
#

Just found out that saveConfig() in spigot deletes the comments in the config.yml

#

Whyh

topaz bay
#

because it uses snakeyaml

foggy pond
#

lameyaml

#

uGHDUghdaugbad that's annoying

topaz bay
#

yaml is trash anyway

foggy pond
#

I mean I was just pointing out that I found out now even tho I have been programming w spigot for like 2+ years

quiet depot
#

comments at the top of the file (header) are preserved

foggy pond
#

It is still a big yikes

obtuse gale
#

doesnt saveDefaultConfig keep comments?

#

or does that have other side effects

topaz bay
#

save default config literally just copies the file from the jar

foggy pond
#

But if I have set() something in the config, won't saveDefaultConfig() overwrite the changes

#

yeah

obtuse gale
#

o

topaz bay
#

save default will only save the file from the jar if the file doesnt exist on the disk

foggy pond
#

saveConfig() is bs

#

I mean can't I make another method to save the file

#

lol

topaz bay
#

dont use yaml?

foggy pond
#

I wanna use yaml for my config file thoe

topaz bay
#

Use a different library then?

foggy pond
#

Yeah I know, I'll probably do that but yikes

heady birch
#

Like how would you do such in rust:

#

Command

#

HelpCommand

#

usually id store all sub classes into a Collection<Command>

heady birch
#

bump

#

bump

topaz bay
#

dude.... google it

quiet depot
#

wrong channel oops

heady birch
#

bump

obtuse gale
#

bump

heady birch
#

bump

obtuse gale
hot hull
#

bump

heady birch
#

bump

analog crater
#

bump

heady birch
#

Like how would you do such in rust:
@heady birch bump

obtuse gale
#

bump?

heady birch
#

bump

#

Like how would you do such in rust:
Command
HelpCommand
usually id store all sub classes into a Collection<Command>

#

justin beiber

obtuse gale
#

bump

quiet sierra
obtuse gale
#

anyone can?

quiet sierra
#

I can't

obtuse gale
#

also wrong channel

quiet sierra
#

oof

hot hull
old wyvern
#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat - Usage
Hastebin

old wyvern
heady birch
#

uh

#

yeah

#

why does that seem way simpler than i imagined

#

lol, thanks

old wyvern
#

lol

heady birch
#

I love rusts enums

onyx loom
#

@hot hull that image is incorrect

#

no one secretly loves intellij while showing love to eclipse

heady birch
#

Hello kaliber

onyx loom
#

everyone loves intellij, hates but eclipse

heady birch
#

how are you this fine morning

onyx loom
#

hello niall

#

im great how about urself on this fine morning

heady birch
#

not bad thank you

hot hull
#

@onyx loom Love can be onesided tho

onyx loom
#

true

remote goblet
#

@remote goblet i found you
@quiet depot lies I'm not skilled

steel heart
quiet depot
#

@remote goblet don't worry, skilled rank means nothing on that server

hot hull
#

@steel heart Nice pfp

jovial warren
#

did somebody say it's rate my code time?

remote goblet
#

Ah good, that is me then

jovial warren
#

WARNING: Could cause severe eye strain, blindness, nausea, or other unwanted side effects

#

this is what you call a great example of: "Oh well, it works"

#

love how I've just killed the chat lol

topaz bay
#

🙃

prisma wave
#

🤔

topaz bay
#

This is why you dont do 3am programming

obtuse gale
#

I dont wanna like change my theme or whatever but I want the connected == and =/= things lol, anyone know how id edit my thing so that works

topaz bay
#

It could have been so simple

#

Theyre called font ligatures

obtuse gale
#

ah

topaz bay
#

big

heady birch
#

@topaz bay Sxtanna

#

Have you any idea what happens if I shift a u8 to far

topaz bay
#

?

heady birch
#

None

topaz bay
#

????

heady birch
#

I answered my own question

heady birch
#

coming from java rust feels different

#

no managers no services 😦

#

but i love the syntax

prisma wave
#

you poor soul

#

idk how you can survive without AbstractFactoryProviders 😦

jovial warren
#

AbstractSingletonFactory

#

"singleton factory"

heady birch
#

its nice to get away from it all

#

not too many design decisions to make

jovial warren
#

I heard Rust's compiler picks up on a lot of things

heady birch
#

yeah really useful

#

makes nice diagrams and stuff

jovial warren
#

there's like normal mode which will tell you about things, and then there's DIY mode

heady birch
#

diy mode? 😮

jovial warren
#

yeah where it basically says nothing and lets you figure out why it's going wrong

heady birch
#

lol

topaz bay
#

too... many... design decisions...

#

Thats literally just you trying to apply spring patterns to everything

jovial warren
#

lol

heady birch
#

maintainable

jovial warren
#

Spring patterns shouldn't be applied everywhere

#

they're called Spring patterns for a reason

topaz bay
#
class Iter(val list: List) {
    var index = 0

    fun hasPrev: Bit {
        => index > 0
    }

    fun hasNext: Bit {
        => index < list.size() - 1
    }

    fun getPrev: All {
        val value = list.get(index)
        index--

        => value
    }

    fun getNext: All {
        val value = list.get(index)
        index++

        => value
    }
}
#

Now THIS is maintainable

jovial warren
#

what dis

topaz bay
#

lol

heady birch
#

lol

#

most of the time im joking

#

such as

#

looks like go

#

but

#

I'm getting used to rust

topaz bay
#

Wow.... surprised neither of you pointed out the logic flaw...

#

Completely missed my entire joke

#

;(

hot hull
#

You need brain for that Sx

#

Much brain

heady birch
#

index-- after access?

#

lol

#

☹️
/|
|
/ \

topaz bay
#
fun hasNext: Bit {
    => index < list.size() - 1
}
#

this is wrong...

heady birch
#

and the others

topaz bay
#

No, those are correct xD

heady birch
#

Really?

#

but dont you get the value..

#

then change the index after

steel heart
#

@hot hull yeah :p

topaz bay
#

Thats how... iterators work

prisma wave
#

Imagine not having generics

#

Frigga has them

#

They just don't work

#

Ez

hot hull
#

I mean atleast they're there

prisma wave
#

Exactly

#

it's the thought that counts

errant geyser
#

lol

topaz bay
#

fuck generics

frail glade
#

Does anyone have a decent time utils class I could check out? Just need to do some calculations on getting timestamps in the future and whatnot.

#

Probably will end up making my own, I'm just feeling lazy today.

topaz bay
#

just use java.time ?

heady birch
#

This

#

Vs

#

This

#

Nvm you cant do that

eager fern
#

lol

hot hull
#

Ngl Niall it suits you, since there's a pub mentioned

pliant badger
#

How will i ever know if my code is garbage?

#

asking for a friend

topaz bay
#

Ask for opinions here

#

We will definitely tell you

#

royal we, cause I'm referring to myself

pliant badger
#

Alright

errant geyser
#

Sx will rip you a new one

#

Quite literally

pliant badger
#

Well last time i followed your advice and i didn't connect to a database directly anymore

#

i learned something about connection pooling and stuff

topaz bay
#

@errant geyser with love

#

😉

errant geyser
#

Sure, that's what it is

topaz bay
#

I demand competence, and I will fight to the death for it.

errant geyser
#

I would not want to live near Washington tho fr, I feel like you would go for a door to door search to tell me a certain class is aids and then stab me 127 times

topaz bay
#

jesus

#

wtf

#

I don't have the patience to knock on people's doors

onyx loom
#

any patience to go outside?

#

i thought minemen dont go outside

topaz bay
#

Absolutely fucking not

#

Its hot outside

#

gross

onyx loom
#

gross indeed

#

anything above 18 degrees is a nono

topaz bay
#

what the HELL

#

Thats fucking cold

onyx loom
#

celcius

#

cold = good

topaz bay
#

I know its celcius

onyx loom
#

even if Fahrenheit id prefer that 🙃

topaz bay
#

Its still cold

#

27 would be my cut off point

onyx loom
#

i dont mind hot weather if im outside

#

but, when do i ever go outside

errant geyser
#

Bro hot weather is ass

#

I'd rather be cold than warm

onyx loom
errant geyser
#

I do not want to associate with that photo

onyx loom
#

y not

#

imgflip.com

#

i totally did not use a meme generator 🙃

errant geyser
#

Because the clothes they're wearing are awful

onyx loom
#

😂

errant geyser
#

Who actually dresses like that

onyx loom
#

theyre roadies what do u expect

errant geyser
#

oi blud come down Birmingham end yea I'm gonna fuck u up yeah me and the homies gonna stab you yeah your gon be dead blud if you fuck wid us

onyx loom
#

🙂

#

thats totally how i talk

analog crater
#

I do not wish my extended family to be represented by the birmingham roadmen

errant geyser
#

@onyx loom u from Birmingham boi?

onyx loom
#

yes sir

errant geyser
#

Dayum

onyx loom
#

tbf its only the select few that actually talk like that

#

the real roadmen

errant geyser
#

Surprised you've not been jumped by four guys in puffer jackets in a black Vauxhall corsa with the shittiest little exhaust on it

onyx loom
#

cant get jumped if ur apart of them 😉

errant geyser
#

Fair enough

onyx loom
#

jk jk

errant geyser
#

My school is full of these idiots happy now barry?

onyx loom
#

its funny cus this guy i went to school with on the last day stole a car and rocked up infront of the school with a corsa

#

well i think he stole the car anyways

errant geyser
#

🤦

onyx loom
#

probably did

errant geyser
#

I'd imagine so

onyx loom
#

yep me too

#

just another day in birmingham

errant geyser
#

The uk is strange

#

It's like some areas are super nice and clean without being cringey about it, and others are just shitholes

onyx loom
#

yeah i could give u 2 examples in birmingham rn

#

well the nicer part is just the outer skirts of birmingham, as ud expect

jovial warren
#

hey did anyone know that Java is actually licensed under GPL v2

old wyvern
#

OpenJDK yes

jovial warren
#

that's made my day

#

got it from the JDA discord

hasty shard
#

Uhm, so I'm trying to make a Spigot plugin for my Minecraft server. I have some default files for a language system I'm building. I want to copy these default files with the folder structure into the plugin's directory.

#

that's the structure

prisma wave
#

What are you asking?

hasty shard
#

how would I go about doing that?

errant geyser
#

copyResource(pathtowhatever, false)

#

Path excludes src/main/resources

hasty shard
#

        Stannia.instance.saveResource(Stannia.class.getResource("languages/").toString(), false);```
#

Tried this

prisma wave
#

what in the

errant geyser
#

Uh whut

#

Is that a static instance I see

#

Also that is just

#

No

prisma wave
#
saveResource("languages/", false);``` *should* do it, but it's possible saveResource doesn't work with directories, can't remember off the top of my head
hasty shard
#

Think I tried that too

#

        Stannia.instance.saveResource("/languages/", false);

So I had this, but removing the first slash did something

#

However it just created the directory, it didn't copy the files inside it

prisma wave
#

i see

#

well

hasty shard
#

and yes, katsumag, it's a static instance

errant geyser
#

Ur StAtIc InStAnCe BaD

prisma wave
#

this won't fix your problem but it's a good practice don't use static

hasty shard
#

well what do you propose I do?

errant geyser
#

Di

#

Damn it gaby

versed ridge
#

?java-dependency

compact perchBOT
#
FAQ Answer:

Dependency Injection
Dependency injection is when we pass a class through other class constructors to access that specific class in those other classes.

public class Main extends JavaPlugin {

    @Override
    public void onEnable() {
        Other other = new Other(this);
        other.method();
    }

    public void myMethod() {
        /* Some code goes in here */
    }
}

public class Other {
    private final Main main;

    public Other(final Main main) {
        this.main = main;
    }

    public void method() {
        main.myMethod();
    }
}```
errant geyser
#

What did you name it

#

Thanks

prisma wave
#

I believe in the actual jar, there are no "directories", so you can't just copy one in the same way

hasty shard
#

So Spigot supports DI out of the box?

prisma wave
#

either hard code the names, or do some hacky JarInputStream stuff (looping through each entry and copying if the name matches)

versed ridge
#

That's a java thing

prisma wave
#

^

ocean quartz
#

DI isn't spigot stuff is Java

prisma wave
#

DI is nothing specific to spigot

hasty shard
#

Well, I've only used DI with Spring

#

I know that

prisma wave
#

in spigot most people use "classic" DI, or Guice

#

Guice is nice for bigger projects, but bumps the jar size up a bit

hasty shard
#

Yeah, Spring isn't ideal for Spigot plugins

prisma wave
#

which you may or may not care about

hasty shard
#

But that code snippet the bot posted works out of the box? 🤔

prisma wave
#

should do

#

I mean

#

it's pretty simple

topaz bay
#

that is way too close to my name

#

I might sue you now

prisma wave
#

I thought that lmao

errant geyser
#

That is an example of DI, yeah

#

Hey sx

hasty shard
#

Good luck, Sxtanna

errant geyser
#

BM wanted to ask you if you could stab him 128 times rather than 127

#

I that a thing you do or?

prisma wave
#

hold up

#

@topaz bay this was your idea?

topaz bay
#

???

errant geyser
#

What u on about mr mitten

prisma wave
#

what are you on about

#

is the real question

errant geyser
#

Hold up

#

One sec

#

That ^

prisma wave
#

yeah

topaz bay
#

wtf

prisma wave
#

nvm

topaz bay
#

is happening

hasty shard
#

good question

prisma wave
#

it's probably best if we/I stop talking now

#

huh

topaz bay
#

yall talking shit?

#

I'll slice you bitch

prisma wave
#

how many times?

errant geyser
#

That's what I was referring to

#

Smh

prisma wave
#

I see

#

Well

#

it's probably best if we/I stop talking now

topaz bay
#

Im so lost...

errant geyser
#

Great

onyx loom
#

🤨

prisma wave
#

have you guys

#

Ever heard of

#

kotlin?

onyx loom
#

KOTLIN

#

yes sir

topaz bay
#

what the fuck

errant geyser
#

Honestly keeps me alive

onyx loom
#

its great

errant geyser
#

Imagine Java

topaz bay
#

What are you covering up??

prisma wave
#

JAVA BAD

onyx loom
#

nothing lmao

prisma wave
#

OI OI

errant geyser
#

Nothing you should worry about

#

Keep it going

onyx loom
#

kotlin good java bad?

prisma wave
#

ok I propose a competition

topaz bay
#

...

prisma wave
#

To find out who hates Java the most

errant geyser
#

Gradle good Maven bad

topaz bay
#

This is 9/11 level conspiracy

prisma wave
#

Wise words

topaz bay
#

I demand an explanation.

prisma wave
#

Java is behind all of this

errant geyser
#

Java, it killed BMs family

prisma wave
#

and burned my house down

topaz bay
#

No

prisma wave
#

I hate java

#

it's true

topaz bay
#

IM about to kill his fucking family

errant geyser
#

Did you not read the inspirational reddit post

prisma wave
#

I wrote about it on r/kotlinmemes

topaz bay
#

sub fucking sucks

prisma wave
#

UHHH

errant geyser
#

Ok that is a sin

ocean quartz
#

My potato brain took way too long to do this holy shit (making it so it won't scroll past the amount of items it has)
This is ugly af
if (getPage() * 9 + getPageSize() > getPageItems().size() + 9) return false;

prisma wave
#

are we gonna have a problem

#

@ocean quartz magic numbers

#

smh

ocean quartz
#

It's testing, I use magic numbers to make it work

errant geyser
#

I think we might have to stab him 129 times

prisma wave
#

😮

topaz bay
#

I dont think you realize how amazing I am at not forgetting things

errant geyser
#

U guys ever feel like Java is the reason you cant sleep at night so are stuck calling an internet stranger senpai for a few hours?

topaz bay
#

And I guarantee you I will bother you until the day you die

#

If I dont get an explanation

prisma wave
#

Java is responsible for every single disease known to mankind

#

This is the truth

#

My family are dead because of Java

onyx loom
#

🙂

prisma wave
#

DON'T SMILE

errant geyser
#

I look forward to it Sx, since you will never get an explanation, and I'm scared of what blocking you would produce

onyx loom
#

oh yeah sorry

#

java 😠

prisma wave
#

🤬 🤬

errant geyser
#

Java STINKY

#

Maven awful

#

Eclipse 🤢

topaz bay
#

I'd honestly rather just block you all than to actually bother you about it

onyx loom
#

man wtf is happening

topaz bay
#

Much easier

errant geyser
#

Danke

prisma wave
#

I think we should start a gofundme to buy us all Java themed punchbags

onyx loom
#

yes pls

errant geyser
#

Imagine someone actually donates tho

prisma wave
#

you never know

#

The kotlin gods might be smiling upon us

errant geyser
#

True, true

topaz bay
#

kinda hot ngl

onyx loom
prisma wave
#

hold on

#

You blocked ME?!??

onyx loom
#

lol

prisma wave
#

big mistake

onyx loom
#

hes probably a java user anyway

prisma wave
#

yeah probably

#

he's just jealous

onyx loom
#

infact

#

odin 🤢

prisma wave
#

🤮

onyx loom
#

i got him good with that

ocean quartz
#

Damn

onyx loom
#

🙂

prisma wave
#

sxtanna - OWNED ✅

topaz bay
#

Are they talking shit

#

@ocean quartz defend me.

#

LOL

prisma wave
#

wow

ocean quartz
#

I have no idea what's going on, i don't even know how to defend xD

prisma wave
#

can't even do it himself

#

disappointing

onyx loom
#

imagine calling for backup in a fight

prisma wave
#

the great sxtanna is weak

onyx loom
#

not so great

prisma wave
#

not any more

#

he really fell off

topaz bay
#

@ocean quartz just like... cut them or something

#

Maybe a jab in the throat

#

That tends to startle people

ocean quartz
#

Aight let me get a knife

prisma wave
#

I'll startle you

topaz bay
#

Thank you

errant geyser
#

Oh dear god what have I started

#

I went to read a reddit DM and came back to this

onyx loom
#

idek why sx is mad

errant geyser
#

¯\_(ツ)_/¯

prisma wave
#

holy crap they added this thing to mobile ¯\_(ツ)_/¯

#

this is the best thing they've ever done

#

(╯°□°)╯︵ ┻━┻

loud gyroBOT
#

┬─┬ ノ( ゜-゜ノ)

onyx loom
#

slash shrug

prisma wave
#

¯\_(ツ)_/¯

regal gale
#

¯\_(ツ)_/¯

static zealot
#

(╯°□°)╯︵ ┻━┻

loud gyroBOT
#

┬─┬ ノ( ゜-゜ノ)

static zealot
#

what? xD

regal gale
#

I already noticed this thing like 2 weeks ago

old wyvern
#

(╯°□°)╯︵ ┻━┻

loud gyroBOT
#

┬─┬ ノ( ゜-゜ノ)

old wyvern
#

┬─┬ ノ( ゜-゜ノ)

regal gale
#

Meanwhile, I'm learning japanese ._.

errant geyser
#

Same!

old wyvern
#

koun o

errant geyser
#

Duolingo is pissed at me for missing my session today tho

topaz bay
#

japanese

onyx loom
#

the real question is hows bms slovenian 🤔

prisma wave
#

Uhhhhhhhh

errant geyser
#

U given up on that yet BM?

prisma wave
#

Someone change the subject

#

I kinda got bored

#

And since frosty tried kotlin I just couldn't be bothered

errant geyser
#

Yugi isnt that "you"? Idk what the o means tho

old wyvern
#

I have no idea

prisma wave
#

seems

old wyvern
#

was google translated for "Good Luck"

prisma wave
#

weebs*

#

bonne chance

errant geyser
#

Oh really

old wyvern
errant geyser
#

BM I despise anime and most Japanese things except their music. Japanese metal is sick

prisma wave
#

Is that your motivation?

errant geyser
#

Oh, idk. I thought that meant "you something"

#

Yeah it is

prisma wave
#

I mean it's better than the people wanting to watch un-dubbed hentai

errant geyser
#

Oh kill me now

#

WHY

old wyvern
#

Why is hentai a thing?