#dev-general

1 messages ยท Page 259 of 1

desert horizon
#

pffft

hot hull
#

I still don't know what Tardis means

quiet depot
#

time and relational dimension in space

#

or something

#

relative I think actually

hot hull
#

So scifi shit

quiet depot
#

not relational

ocean quartz
#

Tbh that coding contest was super fun, we should do one on HC

surreal quarry
#

That guy did so much documentation and i bet everyone still comes to his discord to ask questions lol

quiet depot
#

don't think it has a discord

desert horizon
#

It's a time traveling shit that can change its look (Although it is broken and stuck to a blue police phone booth) and that is larger on the inside than outside @hot hull

quiet depot
#

shit!1!

#

i mean it is a pretty old model ig

surreal quarry
#

Hccce v2

desert horizon
#

"Time And Relative Dimension In Space"

surreal quarry
#

I was like tier 2 when that happened damn

desert horizon
#

The TARDIS (; "Time And Relative Dimension In Space") is a time machine and spacecraft that appears in the British science fiction television series Doctor Who and its various spin-offs.
The TV show Doctor Who mainly features a single TARDIS used by the central character the Doctor. However, in the series other TARDISes are sometimes seen or use...

quiet depot
#

the tardis itself isn't broken

desert horizon
#

Piggy was right

ocean quartz
static zealot
#

:))

quiet depot
#

just the chameleon circuit

prisma wave
#

^

#

Imagine not knowing Dr Who lore

quiet depot
#

a native brit like yourself must be well versed

prisma wave
#

Of course

desert horizon
#

Kurzgesagt often used it as an easter egg in their videos.
Whenever there was space or ocean could you see it float around in the bg

quiet depot
#

a channel of culture

desert horizon
#

Didn't know that the Tardis has a "perception filter"... That explains some stuff

prisma wave
#

yeah lol

#

Stops people from noticing it

desert horizon
#

The name TARDIS is a registered trademark of the British Broadcasting Corporation (BBC).[6] The police box design has also been registered as a trademark by the BBC, despite the design having been created by the Metropolitan Police

#

Lol

quiet depot
#

lol

desert horizon
#

So when we say TARDIS should we actually say TARDISโ„ข๏ธ

#

And wtf? They copyrighted a product that exists for centuries now?

#

You mean german?

#

I barely watch them (neither english nor german)

quiet depot
#

tbh despite the channel being obviously german, I'd be surprised if the original script was actually german

prisma wave
desert horizon
#

But one I found impressive was the video about what happens if you nuke a city... Like damn

#

It's all natural desasters together and 5 times worse

ocean quartz
#

Well since the english channel has 11M more subscribers than the german i would say that's the original lol

stuck harbor
#

lol

desert horizon
#

@ocean quartz Kurzgesagt started as a german youtube Channel. Hence the name "Kurzgesagt - In a nutshell"

#

As the first word is german for the "In a nutshell"

quiet depot
#

why does german have a word for in a nutshell oof

desert horizon
#

They then switched to english, probably to gain a bigger audience, and now started with german again by the help of FuNK

#

Kurzgesagt can also mean "In summary" I would say

#

Or "basically"

quiet depot
#

are you german andre?

#

i should probably know this

desert horizon
#

Just a word to summarize things

quiet depot
#

ah

desert horizon
#

;P

#

Yeah. Kinda

prisma wave
#

rip cant record for a while, background noise is too high

lunar cypress
#

I could see kurzgesagt as "Briefly put" too

#

Or something similar

stuck harbor
#

they used to be called 'in a nutshell' so i assume that is correct

lunar cypress
#

Yeah sounds better, just thinking about literal translations

#

Bcs in a nutshell isn't a collocation in German

stuck harbor
#

fair

steel heart
#

@prisma wave so if I use guice, do I have to use annotations if I want to distinguish between 2 dependencies of the same type?

lunar cypress
#

Yeah that's the usual way

prisma wave
#

probably

steel heart
#

Hmm okay just have a final class with a sea of annotations then?

lunar cypress
#

Why nested annotations

#

Well I guess it can make sense

#

But how many do u need thonking

steel heart
#

Idk I just wanna try it for a bigger project

#

You know what, Enum

obtuse gale
#

null can be used as class loadeR????

#

what?????

half harness
#

whats a class loader

obtuse gale
#

A class loader is an object that is responsible for loading classes.

#

๐Ÿ™‚

half harness
#

what is an object that is responsible for loading classes?

obtuse gale
#

A class loader

#

lol

half harness
#

;-;

#

what is a class loader

obtuse gale
#

hmm let's say it's what takes care of bringing the compiled .class files into the JVM

prisma wave
#

^

#

Also

#

I just found the first plugin I ever wrote

#

It's not good

obtuse gale
half harness
#

besides the static getplugin

obtuse gale
#

besides the static everything

half harness
#

oh jeez

#

why is registerevents static?

prisma wave
obtuse gale
#

jfc

#

@SuppressWarnings("unused")
lmao

half harness
#

@SuppressWarnings("unused") WHAAT?

prisma wave
#

I don't speak C++ but the documentation is pretty clear

#

It probably means for internal use though

obtuse gale
half harness
#

lol

#

huh

prisma wave
#

Yeah

#

I distinctly remember my thought process there

stuck harbor
#

what the

prisma wave
#

Because you can't add 2 ChatColors (eg gold and bold) I decided that would be a good idea

stuck harbor
#

translateAlternateColorCodes is a function my guy

obtuse gale
#

lol

hot hull
#

What the fuck is that

obtuse gale
#

BM uncovered

prisma wave
#

Yeah

#

๐Ÿฅฒ

obtuse gale
#

Components owoSquidCool

prisma wave
#

even when I was dumb I knew that's a bad idea :)

half harness
#

ChatColor

#

alt + 2 + 1

#

ye su can

winter iron
#

ยงยงยงยงยง

half harness
#

ChatColor.RED + "" + ChatColor.BOLD

#

ez

#

or ChatColor.translateAlternativeColorCodes

#

oh jeez that took a while to type

prisma wave
#

Yes exactly

#

That's why I made my genius constants

half harness
#

OR ChatUtils.convert

half harness
prisma wave
#

Idk why people don't do that more often

obtuse gale
prisma wave
#

It's a good idea

half harness
#

"constants"

prisma wave
half harness
#

lol

winter iron
#

pick and mix

half harness
#

my discord so laggy

#

discord should have fps monitor ๐Ÿ™‚

stuck harbor
#

oof

prisma wave
#

๐Ÿฅฒ

half harness
#

๐Ÿ˜ญ

prisma wave
#

Smiling face with tear

#

can we have a big conversation please

half harness
#

yes

#

@prisma wave

#

so

prisma wave
#

still a long way away from tier 8

#

๐Ÿ˜”

half harness
#

whens ur birthday :)))

#

๐Ÿฅณ

#

iirc u said it was soon

#

ill buy u a birthday cake ๐Ÿ˜„

prisma wave
#

Lmao :(

#

March 24th

half harness
#

oh

#

thats not soon

prisma wave
#

It's kind of soon

#

2 months

half harness
#

liar ๐Ÿ˜ 

prisma wave
#

Close enough

half harness
#

:C

prisma wave
#

When's yours

half harness
#

june

#

๐Ÿ™‚

#

in the spring tho ๐Ÿ‘€

#

hey oliver

obtuse gale
#

when

#

what time of the day

half harness
#

um

#

idk

#

about time of day

obtuse gale
#

pleb

half harness
#

-_-

#

4:92

obtuse gale
#

good

prisma wave
#

you mean 4:-31 ?

#

That's an overflow joke btw

#

It sucked

half harness
#

um

obtuse gale
#

setLenient(true) so that's 5:32

prisma wave
#

๐Ÿ˜

half harness
#

wut

prisma wave
#

Whenever you don't understand something, just reply with neutral_face

#

Works for me fingerguns

obtuse gale
#

how much time will it take to clone the whole openjdk jdk repo

#

place your bets

prisma wave
#

2 minutes

obtuse gale
#

liar

prisma wave
#

Depending on internet speed

#

Ok

#

What's the answer

#

Do I win

obtuse gale
obtuse gale
prisma wave
#

we'll find out soon?

obtuse gale
#

probably

#

depends how long it takes kekw

ocean quartz
#

Was trying to find the first version of my first plugin but i don't think i have it anymore

#

Fun fact, my first plugin was better than its following updates lmao

stuck harbor
#

lol that's not great

hot hull
#

My first plugin was FrozenSpawners

ocean quartz
#

I had an alright plugin, then saw everyone had static stuff on plugins so was like "maybe this is better that way"

obtuse gale
#

LMAO

#

NOO

hot hull
#

Fun fact, Scholtes was in a call with me guiding me when I was making that plugin, I knew 0 java, and never looked at a plugin before

obtuse gale
#

that doesn't sound like fun

#

it is a fact

half harness
#

oh who was it, I think his name started with J

#

well someone was in call

#

and i was java nubb

#

and they helping me

#

:))

hot hull
stuck harbor
#

I'm over here not even knowing what my first language was

obtuse gale
#

English probs

#

most likely

stuck harbor
#

nah it was JS

obtuse gale
#

oh no

ocean quartz
obtuse gale
#

npcmd
that shortcut tho

ocean quartz
stuck harbor
#

imported the wrong chatcolor yeet

ocean quartz
#

Everything is bad, public static fields, package private instance lmao

stuck harbor
#

I read that as package private insurance and I thought u were going into a geiko sponsor segment

obtuse gale
#

that's one uuh

#

that's one long class

#

not the longest I've seen

#

decent

ocean quartz
#

Have you seen grief prevention (i think) main class?

obtuse gale
#

I have not

stuck harbor
#

jesus

#

GP need to understand the 4 pillars of OOP

half harness
obtuse gale
#

I know I have shared this before but kekw

prisma wave
#

synchronized method

prisma wave
#

means that 2 threads can't call it at once

stuck harbor
#

what are the chances of that in a spigot plugin tho

prisma wave
#

unlikely

obtuse gale
#

I mean depends on the plugin PES_SadShrug

obtuse gale
#

But in the average Joe plugin it's very unlikely

ocean quartz
stuck harbor
#

my main classes are usually just a list of a bunch of listeners and commands

obtuse gale
ocean quartz
#

Is that supposed to be a "one class plugin challenge"?

stuck harbor
#

lol

obtuse gale
#

No, it has other classes

#

look at the package

#

the naming bruh

ocean quartz
#

shopGUIS

stuck harbor
#

PackageOne, PackageTwo, are the best names I can think of for packages ngl /s

ocean quartz
#

Omg this is the author of dangerous caves

obtuse gale
#

PlayerCountDown is the only class well named

obtuse gale
ocean quartz
#

Good thing someone picked it up and forked it

obtuse gale
#

I was asked to downgrade this plugin from 1.14 to 1.12 ๐Ÿฅฒ

ocean quartz
#

No money can buy that

hot hull
stuck harbor
#

if kotlin could compile to a bunch of java versions with too many issues, why would people not use kotlin?

#

iwan confused

ocean quartz
stuck harbor
#

which part is ambiguous to you?

ocean quartz
#

bunch of java versions with too many issues

hot hull
#

The entire thing

stuck harbor
#

lol

#

well I should probably just use google anyway

ocean quartz
#

Is that a question? Are you asking if Kotlin compiles to multiple Java versions?
if so, then no, you have to provide a target version

obtuse gale
ocean quartz
#

Though there isn't any difference of which java version it compiles to

lunar cypress
#

It matters, not really because of the java version but rather because of the classfile/byte code version

#

But as with most non-java jvm languages you can mostly ignore this since they rarely need more than java 7

#

You basically only get the VM improvements by using higher versions

#

Wait, no, not even that's an argument because you can run older byte code with newer vms

#

So there only is a benefit if the language people explicitely make use of new features

obtuse gale
#

why tf can't I get ** glob to get files recursively

sly sonnet
#

Hi. Why wont it set displayname to value i set?

ItemStack lead = new ItemStack(Material.LEASH);
ItemMeta lmeta = lead.getItemMeta();
epmeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', "&d&lCHANGE &f&lLOCATION"));
epmeta.setLore(Collections.singletonList(" "));
enderpearl.setItemMeta(lmeta);
half harness
#

what is epmeta ;-;

sly sonnet
#

๐Ÿคฆโ€โ™‚๏ธ

#

it's a ItemMeta from other item

half harness
#

oh

#

k

sly sonnet
#

Just me being dumb

half harness
#

so that code should remove all the item meta

#

if I'm correct

sly sonnet
#

if i don't set anything to it it just does nothing, because there is nothing to change

prisma wave
#

name your variables properly and you won't have this problem fingerguns

sly sonnet
#

it was just me being blind

#

for few moments

wanton sentinel
#

Anyone good with CSS?

#

I have a slight issue

#

So, i'm making keyframes for my circle that's been made in CSS

#

and I am unable to move my circle downwards

forest pecan
#

when you leave a brute force over night

#

and then it throws an exception at like 3 am in the morning

#

then you go back down and see the error and be like

onyx loom
#

๐Ÿคจ

hot hull
#

The fuck is you brute forcing

oak raft
#

Frosty

#

do u have a vps

forest pecan
#

trying to bruteforce a music disc in a world

#

lol

hot hull
#

Nein

forest pecan
#

cause my friend's music disc

#

on my smp server

forest pecan
#

got stolen

#

lol

hot hull
#

Lmao

forest pecan
#

it was pigstep and he was super upset

#

kekw

#

i got an eofexception

#

at like 3 am

obtuse gale
#

@charred viper ur dms are off

charred viper
#

oh sorry

half harness
#

Why didn't the devs that make protocollib make it shading

#

instead of a dependency?

prisma wave
#

idk

#

ask them

half harness
#

-_-

tranquil crane
#

ProtocolLib is a pretty thicc library

#

If it was only a few kb it would make sense to shade it but it's a big boy

half harness
#

lol

surreal quarry
#

size doesnt matter with pdm

prisma wave
#

that is true!

#

i approve of this message

tranquil crane
#

pdm doesn't matter with pdm fingerguns

surreal quarry
#

it will be even better with relocations !

prisma wave
#

we don't talk about those

tranquil crane
#

just relocate 5head

surreal quarry
#

true

prisma wave
#

ughghgh i hate git merges

#

so much

#

5 minutes of carefully choosing what to merge

obtuse gale
prisma wave
#

and i still get this shit

surreal quarry
#

um show it where the symbol is?

prisma wave
#

๐Ÿฅฒ

surreal quarry
#

the error is clear

prisma wave
#

is there a way to just

#

revert a git branch to a certain commit

#

that has to be possible

#

like dont try and merge anything

#

just reset it

surreal quarry
#

maybe git reset

prisma wave
#

worth a try

surreal quarry
#

you might be able to provide it with a commit hash or smth

prisma wave
#

i broke it

#

time to delete and clone again

onyx loom
#

oof.

forest pecan
#

i want to post a video

#

but its dangerous

#

lol

#

if you click on it discord panics

steel heart
#

Lol

#

Java tutorial (:

steel heart
#

Wow

static zealot
#

it doesn't show the errors anymore, like it doesn't highlight them

#

I have to hover over the variable to see it would error

distant sun
#

py and it's * for string repeat is so annoying at COC

surreal quarry
half harness
#

hi

#

i have question

#

anyone know what the keybind is to show the completer thingies

#

in intellij

#

so that i can see it before i start typing

obtuse gale
#

ctrl space?

half harness
#

thx

#

i tried alt space

obtuse gale
#

ya no

half harness
#

lol

#

I can't believe I spent 6 hours of my day working on a plugin commission for free ๐Ÿฅฒ

#

oh wait

#

commission = paid

#

๐Ÿค”

obtuse gale
hot hull
#

Lol

obtuse gale
#

Check your Gmail

#

2 new email s

regal gale
#

And then I finally realized interacting with client-sided entities in plugin development is a pain in the butt...

unreal briar
#

you need to keep track of em yourself

prisma wave
distant sun
#

Ye ik

old wyvern
#

CoC tonight?

hot hull
#

u want sum coc?

old wyvern
#

๐Ÿ‘€

#

Clash, yes. Not talking about the type you were hoping for

prisma wave
#

yes

old wyvern
#

๐Ÿ˜Ÿ

dawn hinge
#

:(

regal gale
#

Ahem... i just sent that link this morning lmao

#

Also, yeah, it's horrible too :(

stuck harbor
#

oof

#

very sad

prisma wave
#

I saw that coming :))

regal gale
#

At least there's a man out there who wants to teach us about life, that's cool

old wyvern
#

o lol xD

regal gale
#

@prisma wave a question

#

How many coding languages have you been familiar so far?

prisma wave
#

Depends how you define familiar

regal gale
#

That will be by how much you know and coded with it

prisma wave
#

I can reliably use Java, Kotlin, Go and Python

#

But simple things I think I could do in most languages with enough time

regal gale
#

What about JS

prisma wave
#

Oh yeah

#

Forgot JS existed lol

#

I don't use it very often but I can use it

regal gale
#

Oh ok

#

I only know mid-way of js too

prisma wave
#

JS is a pretty simple language though

regal gale
#

I spent 100% of my current weeks for Java ._.

#

I barely even touched Kotlin thus far

#

yes, I'm horrible ._.

prisma wave
#

nah that's fine

#

you don't need to know loads

regal gale
#

Even though I used to code Kotlin on a plugin before

lunar cypress
#

Your skill as a programmer is not defined by how many different languages you know

prisma wave
#

^

regal gale
#

Wise word, bro

prisma wave
#

Focus on knowing 1 reliably

#

that's gonna be more valuable than knowing loads

regal gale
#

Quick question: Is Atom sometimes feel annoying for you guys? ._.

prisma wave
#

I don't use Atom

lunar cypress
#

Well it's the truth. There are people who like learning new languages whenever they get the opportunity and there are people who will learn a new language when they've had enough of the previous one or need something different. Both are equally valid

regal gale
#

It loaded up so slow for me, even on a 16 gb ram

#

Even 3x slower than VSC

regal gale
#

In this area, it's a dread chaos...

lunar cypress
#

Me too

#

There's so much shit I want to learn

prisma wave
#

@regal gale why use Atom?

lunar cypress
#

Looking forward to haskell and prolog in uni

prisma wave
#

Yeah I'd love to know how to use Haskell properly

#

Prolog sounds cool tool

lunar cypress
#

Someone I know works with Differential Datalog, a Datalog (Prolog-based) dialect and it blows my mind a little

regal gale
#

Heard that it has a cooler interface than any normal text editors

#

And proper function

distant sun
#

Atom is meh

regal gale
#

It's meh sometimes yeah...

distant sun
#

All the time*

#

Is like a light ide

quartz light
#

for some reason deluxe tags dont work?

distant sun
#

Wrong channel

quartz light
#

Were do i type it?

distant sun
quartz light
#

thnx

regal gale
#

I don't think it's "light" from my definition because of slow boot-up time ._.

distant sun
#

Comparative to iij

#

Havent used it too much

#

@prisma wave any idea why I got no exp from like 10 COCs?

#

Does public games not give exp?

prisma wave
#

I have no idea

distant sun
#

stupid thing

prisma wave
prisma wave
#

I understand the concept but I don't see how that translates into an actual program

#

No

obtuse gale
#

are there any plugins where i can have players spawn anywhere between -2k 2k and 2k -2k or similar?

lunar cypress
#

I've seen one use for type checkers/linters

prisma wave
#

That makes sense

#

quite niche though

lunar cypress
#

For sure

#

Generally it's good for solving logic based problems

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 Paste - Usage
โ€ข Hastebin

ripe zinc
#

anyone know why'd I would be getting this error for every new kotlin gradle project i create

#

happens when i try to sync

hot hull
#

@quiet depot I keep forgetting, should my interface be within the implementations package, or outside of it?

#

Not sure what makes more sense

quiet depot
#

outside

hot hull
#

tnks

#

I updated the page a tad, it's pretty basic now, but cleaner I guess

#

If you wanna take a peak fingerguns

quiet depot
#

is it responsive?

hot hull
#

yes

quiet depot
#

cuz im on ipad

#

okie

marble rose
hot hull
#

It's a completelly different style on mobile

#

Wait for someone to help you then

marble rose
#

aight

quiet depot
#

the footer is missing

#

itโ€™s empty

hot hull
#

I removed the footer on mobile

quiet depot
#

oh

hot hull
#

If it's showing up I messed something up

quiet depot
#

doubt it

#

landscape ipad

#

probs big enough for pc ver

hot hull
#

Just checked, it's correct yea

#

60 rem is limit so shouldn't be

quiet depot
#

it looks better but iโ€™ll have a look when i get on pc

#

also use bootstrap measurements for device sizes

#

not 60rem

#

or just use bootstrap

hot hull
#

I just set it so it looks good

quiet depot
#

gtg

hot hull
#

If the device is large enough no worries if it uses pc mode

quartz light
#

does deluxe tags work on 1.16.4?

hot hull
#

Probably, wrong channel tho

quartz light
#

ok but i put it in the other channels and no one help

hot hull
#

Then wait for someone to help

ripe zinc
#

not even 5 messages up

#

and someone did the exact same

static zealot
#

o

stuck harbor
#

damn I can't play I'm not at home

#

:(

static zealot
#

I can't play

#

I'm at home but can't join xD

prisma wave
#

I'll join soon

static zealot
#

gaby idk if I'm going crazy or something but we can't join. well at least me. there is no join button.

distant sun
#

looks like I needed one more line ..

#

idk blitz

static zealot
#

probably because its public or something.

old wyvern
#

another one?

#

โญ• ๐Ÿ‡ญ

distant sun
#

@prisma wave

#

@obtuse gale

#

@hot hull

#

go?

static zealot
#

@obtuse gale what you doing? xD

distant sun
#

wtf am I doing

old wyvern
#

one more?

hot hull
#

Busy Gaby

distant sun
#

string.split(" ").map { it.toInt().toChar() }.joinToString("") @obtuse gale

#

@old wyvern

hot hull
#

Wanna finish this before I forget how to structure it

distant sun
#

what is this lol

hot hull
#

A project

distant sun
#

this mf lol

#

not you frosty

hot hull
#

I'll join later if y'all still doing it

#

oh

prisma wave
#

If this is a confirmed feature it looks great

#

Java twitter posted it so I hope so

#

ooh I think it is

#

Project Amber is the group of JEPs including all the new QoL features

distant sun
#

o

hot hull
#

What would be a clean way of indexing stuff, I have a certain type, which is used as an identifier, however that would mean that there can't be duplicate types, so would having an id (perhaps) system be clean enough, or should I implement a different type of system?

prisma wave
#

what's the context?

hot hull
#

Not relevant I don't think, let's just say storing objects in a map

#

(type being used as key)

old wyvern
#

that would mean that there can't be duplicate types Why so?

hot hull
#

Since if there's two of the same types, it'll overwrite

old wyvern
#

MultiMap

#

or map of set or list

hot hull
#

Well yea, but then I'd need an additional index

#

Which defeats the point does it not?

#

only 1 value should be assigned to a specific type

old wyvern
#

hmm Why does the identifier identify multiple items?

#

What differentiates the items?

hot hull
#

right now it's an enum type, items are differentiated by their actions

prisma wave
vestal hedge
#

Hey guys, so I have a MySQL problem.
I have to calculate a total price for an order via MySQL queries. That is all fine, and I have done that. But when the column totaalprijs is higher then 500, the column needs to be multiplied by 0.9. But only if it is higher then 500. Does any one has an idea how to do that?
Would really appreciate the help ๐Ÿ™‚
Query:

SELECT 
    b.factuur_id,
    k.bedrijfsnaam,
    SUM(br.prijs * br.aantal) - (SELECT 
            COALESCE(SUM(k.prijs), 0)
        FROM
            `bestelling_has_korting` AS bhk
                LEFT JOIN
            `korting` AS k ON bhk.korting_id = k.id
        WHERE
            bhk.bestellingen_id IN (SELECT 
                    id
                FROM
                    bestellingen b2
                WHERE
                    b2.factuur_id = b.factuur_id)) AS totaalprijs
FROM
    bestellingen b
        LEFT JOIN
    bestelregel br ON b.id = br.bestellingen_id
        LEFT JOIN
    klanten AS k ON b.klanten_id = k.id
WHERE
    b.factuur_id = '6'
GROUP BY b.factuur_id;
frigid badge
#

why do you want to do this using sql tho lol

#

and please always make programming related stuff in english, no reason to write your database in dutch.

#

should only localize your frontend

distant sun
#

probably some assignment from school, lemmo

vestal hedge
#

Yup, it's for school And indeed school makes us do it via mysql

#

But indeed, I should've made the columnnames and all in english. Thanks for that tip

frigid badge
#

anyway about the issue

#

use IF function

vestal hedge
#

I am thinking something with an IF statement, but not sure

frigid badge
vestal hedge
#

Yeah I have it ( finally lol ). I used the IF statement wrong. I have it working now ( finally ) !

frigid badge
#

ah alright neato

vestal hedge
#

Lots of sub queries lol but wadever

frigid badge
#

good luck with your assignments

half harness
frigid badge
#

yeah really unoptimal

vestal hedge
#

Thanks man

frigid badge
#

but if it's for school it's purely to show them that you know how to use sql

#

in practice you don't do stuff like this

#

rarely atleast

vestal hedge
#

Yup, if I would've done this in a real world case, Such things shouldn't be done in SQL. But it is for school so indeed just to show I can do it

onyx loom
half harness
#

lol

vestal hedge
#

It's an assignment for making 'real world queries' people in the administration office would use daily. So yeah...

frigid badge
#

yup

lunar cypress
#

Have you seen the types of sql queries they do in huge corporate code bases? This is not unrealistic

prisma wave
#

they'd probably have an ORM to do that though, right?

lunar cypress
#

You can't express a query like that with an ORM I dont think

frigid badge
#

sure in older codebases it's more frequent

#

but nowadays nah

#

and if they really want such complex queries they wouldn't be using sql anyway.

heady birch
#

You really cannot do that with an ORM (as far as I'm aware) and retain the performance or maybe even a fraction of the performance

frigid badge
#

some ORMs can but yes not done simply

quiet sierra
prisma wave
#

Sounds like you should be using Gradle

#

Or Elara Build Tool โ„ข๏ธ

onyx loom
#

when

prisma wave
#

idk

#

1k XP away from tier 8

onyx loom
#

pog

prisma wave
#

Anyone fancy a long discussion about something?

onyx loom
#

keep talking

#

talk to urself ๐Ÿฅฒ

prisma wave
#

I think that's too far

#

imagine talking to yourself just to gain some meaningless xp and a new colour

#

that sounds like such a waste of time

half harness
#

hm

#

I'm 3k exp

#

:C

prisma wave
#

i definitely wouldn't do something like that, would you?

half harness
#

nOpE

prisma wave
#

no of course not! it sounds ridiculous

#

I mean, who would be that desperate?

#

surely not me

stuck harbor
#

programmers are very normal people trust

half harness
#

hmmmmmmmmmmmmmmm hmm mhm

#

Hm

prisma wave
#

6

This needs some unpacking.

First, your core mistake: System.Char.ToUpper is a function. It takes a char and returns another char. It doesn't somehow "update" its argument to a new value.

let x = 'a'
let y = System.Char.ToUpper x // y = 'A', x = 'a'.
In the above code, I give name y to the result of the function. The value of y is 'A', but the value of x is still 'a'. After calling the function, x hasn't changed.

From this mistake, all the rest follows.

Second, List.iter is a function that, for every element of a list, makes something "happen". It doesn't replace each element of a list with something new, nor does it create a new list. It just makes something happen for every element. The simplest example of such "something" is printing out to console:

List.iter (fun x -> printfn "%i" x) [1; 2; 3] // Prints "1", then "2", then "3"
Notice that this function takes two arguments: the function that represents the something that need to happen, and the list from which to take the elements. In your question, you seem to be missing the second argument. How would List.iter know which list to use?

The first argument of List.iter needs to be a function that returns unit. This is a special type in F# that basically means "no value". When a function returns no value, it means that the only reason for calling it was to make something external happen (known in functional programming as "side-effect"). This is why List.iter requires the function to return unit - it's extra protection from accidentally supplying wrong function, just as you did, actually: the function you provided returns char. This is why you receive the error that you receive.

#

whoops

#

copied from stackoverflow and accidentally pasted here

half harness
#

wtf

prisma wave
#

my bad! ๐Ÿ˜…

half harness
#

๐Ÿ™„

#

๐Ÿฅฒ

prisma wave
#

i mean

#

ive posted the first half

#

i might as well finish it

half harness
#

๐Ÿ˜ 

#

gimme

onyx loom
#

"who would be that desperate for xp" thonking

half harness
#

hmmm

#

wtf

prisma wave
#

sorry

quiet sierra
#

Experience

frigid badge
#

=disablexp @prisma wave

prisma wave
#

๐Ÿ˜ฆ

#

waiyg

onyx loom
#

im sure it was an accident!

prisma wave
#

is that rela

regal gale
#

Lmao

prisma wave
#

no

#

no

frigid badge
#

no xp farming smh.

half harness
#

๐Ÿ‘€

#

๐Ÿ‘€

prisma wave
#

i wasn't farming

frigid badge
#

I'll re-enable it in an hour

prisma wave
#

i was just posting a long stackoverflow answer in case anyone was interested

#

wait

#

does that actually do anything

#

no

#

this is unnaceptable

half harness
#

I was just going to say "Isn't xp farming bannable"

#

and by bannable I meant punishable

prisma wave
#

don't think so!

half harness
#

๐Ÿ™„

prisma wave
#

nothing in the rules about it

#

therefore im innocent

half harness
#

lol

#

wait

#

u got xp

#

tho

#

#bot-commands

regal gale
#

Gimme exp :(

onyx loom
#

nice bait lemmo

prisma wave
#

oh

#

phew!

frigid badge
#

lmao

onyx loom
#

kek

half harness
#

๐Ÿ‘€

frigid badge
#

dkim ruining it

half harness
#

๐Ÿ˜

frigid badge
#

smh

half harness
#

srry

#

๐Ÿ˜”

onyx loom
#

keep posting the answers from stackoverflow bm! i was quite intrigued from those posts to say the least!

prisma wave
#

oh really?

half harness
#

oh boy

regal gale
half harness
#

ur actually going to get tempmuted for that ;-;

stuck harbor
#

lol

onyx loom
stuck harbor
#

2nd yeet

half harness
#

i dont get that

stuck harbor
#

๐Ÿ™ƒ

onyx loom
#

๐Ÿ˜

quiet sierra
#

fear me

onyx loom
#

what the frick thonking

stuck harbor
#

i do the first in C++, but i mainly use the second

quiet sierra
#

I define classes with the second type

regal gale
prisma wave
#

allman good

half harness
#

๐Ÿ˜ฆ

prisma wave
#

i love allman

#

it's objectively better

onyx loom
#

objectively ๐Ÿ‘€

half harness
#

my plugin is on version 1.4.0

#

when should I go to 2.0.0?

onyx loom
#

now

half harness
#

like, what needs to happen

#

in order for it to be able to go to v2

onyx loom
#

just say u changed some things, but never really and go to 2.0

half harness
#

or else ima be like 1.231.2

prisma wave
#

major changes

half harness
#

like...

onyx loom
#

rewrite

half harness
#

oh

#

ok

onyx loom
#

breaking stuff

half harness
#

o

vestal hedge
half harness
#

wut is dat

onyx loom
#

basically dkim
x.x.x
major -> minor -> revisions iirc

old wyvern
#

Allman is the root of all evil

prisma wave
#

go on then

half harness
#

rewrite.updates.bugfixes

prisma wave
#

wow

#

do you have a source for that claim?

ocean quartz
old wyvern
#

Me

onyx loom
#

since like last month ๐Ÿ™‚

ocean quartz
#

Yikes

onyx loom
#

u can say i switched to the dark side

half harness
#

show code

#

๐Ÿ™‚

ocean quartz
#

You did ๐Ÿ˜ข

half harness
#

๐Ÿฅฒ

onyx loom
#

๐Ÿ˜ˆ

prisma wave
#

allman is a good style

onyx loom
#

its just personal preference at the end of the day

old wyvern
#

I deny

prisma wave
#

Heard that one before

#

it's actually objectively good vs objectively bad

#

and we all know which is which ๐Ÿ™‚

old wyvern
#

Yes, k&r objectly good

prisma wave
#

false

#

but please

#

back up your "claim"

#

with facts and evidence

obtuse gale
#

hello

#

I'm new to plugin dev

#

When I turn on my server, it says [06:57:53 ERROR]: Could not load 'plugins/DodgeballV2.jar' in folder 'plugins': uses the space-character (0x20) in its name

prisma wave
#

ok

obtuse gale
#

Couldn't find help anywhere :(

stuck harbor
#

get the space out of the name

#

๐Ÿ‘read๐Ÿ‘the๐Ÿ‘stack๐Ÿ‘trace

obtuse gale
#

there aint any spaces in the plugin name or the plugin folder

#

I use intelliJ with spigot api 1.16.1 and paper 1.16.1

stuck harbor
#

well uhh are u sure?

#

cause ur server seems to dissagree

obtuse gale
#

lemme check

#

I think i have a space in plugin.yml

stuck harbor
#

i would recommend that u send us ur plugin.yml

#

=paste

compact perchBOT
#
HelpChat Paste

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

obtuse gale
#

XD

#

Please bear with me, I'm a total no-no head

old wyvern
#

Eric Allman has been currupting the minds of young developers all over the world with his silly brace style. Some say it has caused epilipsis and a mass case of hysteria in the past. It is the work of sinner and devil workshippers and must be taken down in the name of the roman cat- wait no. It just looks weird.

stuck harbor
#

yeah that style is ugly af

#

apart from in C++ but C++ is ugly af anyway

hot hull
#

Y'all trynna start a crusade

stuck harbor
#

where?

hot hull
#

wdym where

stuck harbor
#

where are u crusading?

hot hull
#

Where u from

stuck harbor
#

the UK

old wyvern
#

THE UK

stuck harbor
#

yeah it sucks

#

but eh

ripe zinc
# regal gale

when intellij auto indents it does the 2nd, any way for it to the first?

stuck harbor
#

i cant help it

stuck harbor
#

don't let it

#

it must do the 1st

#

the best one

ripe zinc
#

huh?

obtuse gale
ripe zinc
#

im asking for it to the first ๐Ÿ˜›

stuck harbor
#

i mean the second

ocean quartz
stuck harbor
#

im dumb

#

it must do the 2nd

old wyvern
#

Dont

stuck harbor
#

best one

old wyvern
#

Yes

stuck harbor
#

anyhoo imma go use JSX and React

#

wheeeee

prisma wave
#

please do the 1st

stuck harbor
#

noh

old wyvern
#

No

stuck harbor
#

allman style bad

old wyvern
#

Do not

ripe zinc
#

uni forces me to do the first

prisma wave
#

good

#

they sound like a good uni

ripe zinc
#

but i cbf half the time fixing the auto indents from intellij

onyx loom
hot hull
#

Well I don't use allman, but I like it sometimes

stuck harbor
#

linux kernel variant is the best

old wyvern
obtuse gale
#

@stuck harbor I can't thank you enough, I was struggling with this since 5 hours

stuck harbor
#

no problemo

prisma wave
#

In the common interest of "experience points" please forward any additional questions to me, I will respond in full sentences.

#

Have a nice day! :)

ripe zinc
errant geyser
#

@prisma wave how gay are you on a scale of one to senpai

#

You didn't specify they had to be relevant questions

prisma wave
#

For legal reasons I cannot answer that question

errant geyser
#

Dang and blast

prisma wave
#

However I would like to clarify that the answer is greater than one

#

Please interpret that information however you like

prisma wave
#

Hello!

#

How are things going for you today

#

I am typing!!!

#

That's unfortunate

#

How come?

#

You don't need to code something every day

obtuse gale
#

Yes you do

#

It's the law

prisma wave
#

Oh okay

#

my mistake

errant geyser
#

Fefo, you can't use Google shut ya face

onyx loom
#

i havent coded anything in like 2 weeks ๐Ÿฅฒ

obtuse gale
#

Tsk

stuck harbor
#

tut tut

#

code daily

prisma wave
#

Consider learning Go and PRing to Elara if you are ever in need of something to do

errant geyser
#

I'm never letting that go :)

obtuse gale
#

I love you too

errant geyser
#

UwU

errant geyser
onyx loom
#

smh

prisma wave
#

Can you be Experience support too

errant geyser
#

As you wish

prisma wave
#

Why thank you

#

I am exceedingly close to Level 70

onyx loom
#

oh boy cant wait for ur name to be yellow!

stuck harbor
#

nice

#

I want yellow :(

prisma wave
#

me too

#

it will be amazing

onyx loom
hot hull
#

Oh katsu is alive

stuck harbor
#

katsu curry is ๐Ÿ‘Œ

prisma wave
#

I agree!

#

In fact I agree so much I'm going to write an entire sentence reiterating my point

#

I am in agreement of you

onyx loom
#

damn thats crazy

stuck harbor
#

nice

onyx loom
#

so much passion for katsu curry

prisma wave
#

thank you

#

absolutely

#

I am so passionate!

onyx loom
#

i wouldnt suppose this was for "experience points" at all, it cannot be with that much passion!

prisma wave
#

my 2 passions are katsu curry and helpchat experience points

#

well, as a matter of fact it is both!

onyx loom
#

o

prisma wave
#

as the phrase goes, I am "killing 2 birds with one stone"

#

of course they're not real birds

stuck harbor
#

I concur, as I, also, like katsu curry

onyx loom
#

of course not! killing birds would be very sinful and could cause catastrophic damage to the environment!

#

no one wants to live in a world where birds would go extinct because u killed birds!

prisma wave
#

exactly!

#

it would be a disaster

#

however, as I am not an ecologist I will concede that I do not know of the true impacts of killing birds

#

for example, it could in fact be beneficial for all we know!

#

therefore I will refrain from doing so to prevent any potential damage, while conceding that I am not aware of any positive or negative effects

onyx loom
#

๐Ÿ˜ณ

prisma wave
#

it may also be immoral to kill birds, which is another reason why we should not do it

#

but that is not important

onyx loom
#

a positive could be that we get free food!

prisma wave
#

That is true!

#

But could this food be worth the difficulty of killing a bird?

#

they are very hard to catch

#

and often small, so the food might not fill you up

#

which is of course a major issue

errant geyser
#

I feel like I'm about to be curried

onyx loom
#

idk man u seem to be good at killing 2 birds with 1 stone

#

stones are quite small objects, which means that you have good aim, allowing you to easily kill birds!

prisma wave
#

I believe for the moment, until proper research has been done into the moral and ecological implications of killing 2 birds with a single stone (which sounds rather difficult), we should refrain from doing so

#

It is difficult to throw stones at birds

#

they fly away rather quickly

#

and are small

#

even with good aim, there is a lot to consider

#

if you are too loud they will fly away

onyx loom
#

i aint even gonna lie

prisma wave
#

some birds only come out at night

#

etc

errant geyser
#

Thats why you use a nuclear bomb

onyx loom
#

i was walking on a road and i was looking at my phone and i almost stepped on a bird

prisma wave
#

lmao

errant geyser
#

Kill thousands of birds with one nuke

onyx loom
#

i fully felt the bird on my shoe

prisma wave
#

that sounds more practical

#

??

#

how

onyx loom
#

idk man ๐Ÿคฃ

#

the bird mustve had depression and just had enough of life

prisma wave
#

poor guy

#

he was stuck at level 69

#

that's enough to make anyone depressed

onyx loom
#

๐Ÿ˜”

prisma wave
#

๐Ÿ˜”

onyx loom
#

that is some deep pain

errant geyser
prisma wave
#

Hmm

#

I suggest you go and find some studies into the effects of killing birds with nuclear weapons

#

I am not an expert but it sounds like they might return from the grave as "zombie birds"

errant geyser
#

It makes their corpses mutate into humans

prisma wave
#

maybe I am just being paranoid

errant geyser
#

Its a good idea really

prisma wave
#

i am not sure

#

i think we should be careful

errant geyser
#

Who doesn't need overpopulation, famine and death?

prisma wave
#

that is true

#

the benefit of killing birds is that the skies would be clearer

#

and the trees would stop falling down

#

however if trees never fell down, eventually there would be no room left

#

and we might eventually be suffocated by large amounts of trees

#

I am not sure that is worth it

onyx loom
#

give the trees to the amazon rainforest!

prisma wave
#

but I am sure there are many studies into this

#

that is a good plan!

onyx loom
#

save the rainforest!

prisma wave
#

i think you might be on to something there

#

yes of course

onyx loom
#

it seems that nukes are good after all

prisma wave
#

we kill the birds, take our trees and ship them over to the amazon

onyx loom
#

amazing plan ๐Ÿ‘

prisma wave
#

how do you transport trees?

onyx loom
#

get that big ass russian plane

#

ez

prisma wave
#

we would probably need a big boat

#

or that

#

it sounds quite expensive either way

#

maybe we should sell 50% of the trees, and ship the other 50%

onyx loom
#

just print money bro

prisma wave
#

that way we can afford the shipping costs

#

oh yeah of course

#

my bad

#

that makes things much easier!

onyx loom
#

there is absolutely 0 impact of printing money

#

why have governments not thought of this

prisma wave
#

0 impact of killing birds either

#

I believe germany thought of it in the 1920s

#

not sure why they stopped

#

maybe all the money printers were too expensive to run

onyx loom
#

true

#

printing too much money costs too much money

errant geyser
#

Become Nigeria

prisma wave
#

exactly

errant geyser
#

Print money and crash your economy

#

What's not to love

prisma wave
#

A small price for killing the birds

onyx loom
#

f them birds

prisma wave
#

hold on

#

I think we've forgotten something

#

where does the 1 stone come into this?

#

404 experience points to go

#

nice

onyx loom
#

Error

#

experience points has not been calculated correctly.

obtuse gale
#

Hello

#

Devs

#

Fellow devs

prisma wave
#

Oh hey fellow developer

surreal quarry
#

hello fellow person who writes code

obtuse gale
#

Also known as (a.k.a) programmer

#

Alias coder

lunar cypress
#

How do you do fellow devs ๐Ÿ˜Ž

obtuse gale
#

Alias developer

prisma wave
#

"coder" ๐Ÿคฎ

onyx loom
#

hey! this is my github page! i am a self-learned professional coder who excels in languages such as python and javascript!

prisma wave
#

i excel in languages such as excel

#

i am quirky and trendy

#

hire me

onyx loom
#

damn thats crazy

errant geyser
#

@prisma wave congrats gamer

prisma wave
#

thank you

#

thank you for the assistance as well