#dev-general
1 messages · Page 483 of 1
probably a merge commit or something
[ (a,b,c) | c <- [1..10], b <- [1..c], a <- [1..b], a^2 + b^2 == c^2] ```is this kind of a nested loop?
Kind of
Yeah
you could do the same thing with a nested loop
res = []
for c in range(1, 10):
for b in range(1, c):
for a in range(1, b):
if a**2 + b**2 == c**2:
res.append((a,b,c))
lucky :: (Integral a) => a -> String
lucky 7 = "LUCKY NUMBER SEVEN!"
lucky x = "Sorry, you're out of luck, pal!" ```whaaaaaa
reminds me of c++ templates
cool asf
sameee
use imgurrr
botted?
I have
quite often
it's been around for a while
🤤
SFINAE 🤤 variadic templates 🤤
14,168 out of the blue and in such a short period of time sounds very sus..
because that version is months old
Should've seen my 40k FJ on charlie's site
oh wow the discord web ui has been updated
they were legit users ofc
everyone knows fj good
Well yes
pattern matching is incredible
it gets better than that
you can pattern match everything
Compact mode 😫
You should be shot
hey that's me!
it is indeed
Emily be like
Yeah but look at the other ones in comparison
bmiTell :: (RealFloat a) => a -> String
bmiTell bmi
| bmi <= 18.5 = "You're underweight, you emo, you!"
| bmi <= 25.0 = "You're supposedly normal. Pffft, I bet you're ugly!"
| bmi <= 30.0 = "You're fat! Lose some weight, fatty!"
| otherwise = "You're a whale, congratulations!" ```
lmfao
I guess I'm emo
My bmi used to be around 15, which was super dangerous, put up some weight and now I'm around 17/18, still under but getting there
15? jesus christ
Yup, used to be very skinny
I'm like 1.87~1.90 & just above 50kg 🥲
that's 14 apparently
I'm 172cm 55kg
Smol
Yeah sad
haskell programmers are very talented at insulting people
haskell is an insult
Oh yeah Frosty how's the jogging going 🌝
Shut
Heh
When I finish with school for this year, I'm gonna start
Oh nice nice
I should start doing something
When is that
"Tomorrow" 🥲
Yeah biking is neat
I got like 3-4 weeks of exams left
press x to doubt
🥲
x
cough @prisma wave java tutorials
Where's my job offer
Soon they said
late
The pings look the same
lol have they made the pings in italic emily or ami tripping?
oh nvm ur whole message in italics
Lmao
Damn that's impressive, i tried leaving my house a few days a week
"tried" :kek:
impressive
I gotta pretend
🏅
I'm still here not knowing what the Temperature is outside 🥲
I have a 2x2 widget on my phone for that
Oh the weather outside is frightful
It's gonna rain today which is nice
nein I need sun
QQQQQQ
Can't be fucked to have an umbrella
Ugh i hate summer, it's already starting to get hot
how did my haskell program run basically instantly when compiled with -O2?
Compile time optimizations :pog:
mad
seems like O2 is mega super ultra compiler optimisations
with the cost of longer compile times
didn't take longer than it took to run without optimizations
didn't take half as long actually
ghc kinda crazy
I don't know about Haskell but at least in C and C++ the difference in compilation times w/ and w/o optimizations aren't really noticeable unless we're talking about massive projects
Hey I need help with something
so I want code for moderation bot, music, and fun commands but I can't find github codes that i could just download change the prefix add the token and boo ya
Yeah I had to confirm that
But it’s weird
He didn’t know your name is Alex
So mad sus
imagine anyone knowing who you are 🥲
Imagine giving a fuck if people from across the world know your name
Or anyone for that matter
https://i.imgur.com/6PgoZxk.png
Anyone know why only the settings menu is atom one dark?
Editor -> Color style?
yep
ill try restarting IJ
also some of the buttons are white
which blind me
alr fixed it, but what is this: https://i.imgur.com/taNmDkW.png
pops up almost every time i open IJ
and i press apply
IJ bug
IJ bad
no
Ikr, Netbeans ftw!
no, notepad++
hi matt
obviously
Heyo
IDEs bad
why am i banned from HC
eh
isn't factions like smp
sorta
idk what factions is
if its not pvp related
why is it on 1.8
ew
It is
What?
Wow, Dkim actually doesn't know about factions?
But what does that even mean lmao
Why am I banned from HelpChat?
no, ive only heard of it :p
I KNOW right???
what?
What are you talking about? lol
I'm banned from the HelpChat Teamspeak server?
Factions servers are competitive PvP servers that let players team up by creating and joining different clans. Players within the same faction work together to gather resources, build bases, protect their land and recruit new members. Separate factions on the server can either choose to forge alliances and support each other, or become enemies and fight.
ah so its like a mixture of pvp and smp, right?
theres a TS?!?!?!
With a shit ton of plugins added usually and $837382 jars
How did you just edit that message without it saying you edited it?
Afaik that hasn't been used for years lol
I use teamspeak a lot?
But no one else does
its UI sucks compared to discord
Lol, like there is a an actual UI, it's as old as it gets
ok thats fake news
i happy. i fixed more bugs
I just gotta work out how to remove the old blocks, @prisma wave you know how to do this or nah?
imgur?
just upload the img?
i was just going to say "imagine not using sharex/lightshot" lol
half the time theres a 30 second ad, and its just a pain, especially on mobile to upload to imgur
no i mean upload it directly here
wheras with image perms u can just copy and paste the image
ya'll know eachover?
bruh the new discord color
Yeah
Which color?
was just going to ask in JDA discord but it just got raided.. so ill ask here lol
lmao
Runtime.getRuntime().addShutdownHook(thread(false) {
if (jda.status == JDA.Status.CONNECTED) {
println("Stopping the bot!")
jda.shutdown()
println("Stopped")
}
})
```will this work? I don't want an error
because I don't want to stop it when its already stopped
try it and see?
or should i just wrap in a try/catch
?tryandsee
;-;
wat
I mean why
wdym
if i exit out
forgetting to use stop command
im just looking in the code
of JDA
Qbasic is awesome
Sorry, was asleep, but yea. that would work. Just need to make sure any relocation applied to the bootstrap module is shared to the isolated classes as well. Same goes for classes that need to be downloaded internally as well (https://github.com/SlimJar/slimjar/issues/12), i.e relocations applied to slimjar need to be applied to that as well at runtime
Aaaah I see
🥲
that's really immature
idc
you SHOULD care
why
huh?
I need one of those programmable calculators
yo I thought pattern matching was local to the scope!!!
I remember making ping pong on my friends
"smart casting in java" has been made redundant ☹️
I was using java, 16 and it had smart casting
if (thing instanceof ClassType theThing) {
}
the end of an era 😩
well surely that's not in the scope, it's not within the curly braces
woah there
F
just be older idiot
since sender is not an instance of Player, player does not exist inside the if block
but it does exist after it, outside
And you go on to make a statement that could get you banned again lol
oh so it still declares the variable? I am very confused as to what's actually happening here
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
Beautiful
oh I see that's actually really cool
what the fuck efe
have you ever heard of empathy
they're fucking weird then
I don't think so
I uh... don't agree with that
Morals and society in general is what separates us from other animals
Random question cause I got told to get one other person that isn't me or my friends that hate skript, do you dislike/hate skript?
What happened to efe?
Just write Java
got ToS'd cause he's a baby
Like, everyone in this discord hates it lol
ToSd?
oh lmao
proceeds to not delete the message
thats a place for dkim den
proceeds to mention it again
tier v gone, never to be seen again by efe
Not being 16 🥶 🤣 🥲 😖 🥴
Next in line is Glare 
40k xp is not chump change lol
A few weeks
a few potential MF users lol
Mateus is typing...
I actually don't mind the new Discord logo, but
We’re buffing out the imperfections and making our weird, pig-snout-Mickey-Mouse controller a bit friendlier for everyone, no matter your interests.
A little secret: our old logo wasn’t even symmetrical. No, seriously. Both the top and bottom of our old logo were totally wonky to a keen eye. Which in a way was charming, but mostly embarrassing.
I mean asymmetry isn't always bad, for example Google's logo
Mateus has typed.
Lmao
Mateus is noob.
Dw about it, Gaby is noob as well
I love Skript
Skript is my jam
skript is good
y'all
Skript is The good
I will kill someone.
wait why is conclure stealing BM's name lol
who
I'm first in line!
Sarcasm
Second!
third
fourth
shush
line up boys
I am legit going to kill someone. TIP: Person said the words "good" and "skript"
no
skript is not not not good
skript can be suitable for small things
dead.
ofc its not superior for bigger stuff
bro no
Oh my god
😂
God is dead and we killed him
!!!
haskell logo is very nice ill admit
Please capitalize Skript
okay I will capitalize skript next time
The orange version is hawt
oh no not VS code :kekw:
😌
yeah right, I hit that with a big fat NO
xD
Haskell: HC Support edition
Rude
Yass
Search Marketplace
oh god
i wanna see what pops up
nice
lmao
take a look at //hsphere
that's not the worst
mmmm
LOL
F
at this point he should learn how to code with spigot api or smtng
"okay i will capitalize skript next time"
proceeds to not capitalize it
Java is too complicated for me so I prefer the skript...
lol
Hello, do you have a problem insulting my skript plugin because it is becoming Harassment! thank you !
I feel bad for that Skripter honestly
Ya'll remember the skript anti cheat?
Get ready this aint harrassment but think this is garbage. Not only does your code feel incredibly unorganized(it is trash), half of the variables you use in your skript arent even used. the amount of "stop"s in your code are horrendouse and right off the bat unprofessional. Making a skript for a plugin thats 10x better and works better that doesnt give you SHIT lag, would be much more recommended. I know java is hard and complicated but you gotta actually try first before "filling up" your skript with useless stuff.
2nd Part:
Please dont add "BungeeCord Support" cus its not true and its garbo. Skript doesnt even have a bungee cord thing which literally makes no sense too since your making a world edit plugin.
3rd Part:
ITs bad
part 4:
ok this is the end dont take this offensively but like take this offensiveley but dont so...... take it offensively
the greatest anti cheat of all time 😌
I mean yeah look at the reviews
on player cheat event:
cancel
This is probably the most sensible comment https://www.spigotmc.org/resources/worldedit-skript-1-16-5-bungeecord-spigot-paper-support.91559/reviews?resource_rating_id=361097
The least harsh
😌
Bungee lol
Yes, ideas.
yeah lmao0
rip his reviews
Conclure, dont ..
also they all apparently have "bungeecord" support
Gaby, it's Conclure we're talking about 🌝
this guy also made Essentials (Skript)
=pl GUIhelper
Everyone go and leave good reviews for this cutie instead :)
=pl permissionsex
142k downloads wtf
lul
you'd be surprised by the amount of people that show up in the LP discord with that installed
is that just DM?
=pl citizens cmd
not with PEX, but with that one and LP ofc
At least this has a purpose
Almost 150k 
Everyone step back
even this guy who doesn't know how to spell knows that skript is bad 🥲
Wdym?
is it a yaml-based menu builder like DeluxeMenus?
god thanks
lol
You use it to create configs for other plugins, Star
Lmao
.
lol
When Citizens comes out
=pl deluxeasyncjoinleavemessage
a must have on server plugin ^
best
The ultimate join/leave plugin for professional performance, verified by md5 himself (/s)
it sounds like you put the /s there bc md5 didn't verify it
look at all those versions!
well he did
lucyy oofed you haha
Anyone know how to turn off coverage? I accidentally clicked on run with coverage instead of debug and shit makes it awful to debug 😩
lmfao
Ctrl + Alt + F6
or Analyze -> Show Code Coverage Data
That'd run it again
I'll just restart 😩
I made the commands variable in my lib immutable 🥲
That's no longer a thing
what
Read only
oops
:gasm:
java 16 really going hard dude
nice I bet eclipse doesnt have that
hahaha
wonderful
@ocean quartz coverage data persists between restarts right?
😌
I think it was a bug, because I closed it and it didn't go away, but restarting made it go away
Ayy, got this parsing working, now just need to handle sub lists
from:
# Text entry
* [Entry 1](test.md)
Getting
Ayy nice
is that markdown parsing?
Markdown into an index (tbh idk how to call it)
The side navigation thingy, like this
For example that would be
# GUI
* [MF-GUI](something.md)
* [Setup](setup.md)
* [GUI](gui.md)
etc
Ugh, now i need to put my brain to work to figure how i'll handle the sub lists thingy 😩
10/10 error description
Matt use rst
Couldn't be Rust
lol
Wtf is that?
restructured text
For?
docs
Is that the one you used? The same as adventure?
Yeah
Eh, it's quite ugly
I'd rather keep using gitbook instead of that
Yeah it's down
Also does anyone know of a documentation app type thing that looks identical to gitbook but doesn't have the branding
/ open source
maybe sphinx can remove brand idk
That is not it
that was made with sphinx
oh I dont like that
o
I like gitbook's theme
or docusaurus
which I use
but its a little complicated
It's react which I use on a daily basis but I want it to be like vue or somethn
yea
I'm making one with Ktor and React and it's been hella fun
I've gotten super used to vue and made tons of web apps with it
React was my first tho
This is what I have so far on the front end, working on the backend and parsing from GH now before I keep going on the design
Nice invert attempt, should have tried changing the mouse as well
bro wtf is wrong with your phone
Ikr
lmao what
??
why is it only that video too
That happens on dark mode on some phones
Same with movie posters on amazon prime notifications
weirdchamp
I am happy.. Today has treated me well.
You learnt haskell?
Can't wait to pay others to say thank you.
:)
?
nothing
How much you paying?
bro why is the JDK only offered in .tar.gz form or .rpm form
im a pretty good thank you sayer
like nobody even uses red hat anymore
because yes
where's my .deb huh
Honest question, how much would it cost to buy a actual server and how safe would it be to host a server off it?
xD
what type/size?
what server
a dedi? or just a vps?
mc server?
Like a mc server
how much ram?
like a VPS?
I might buy a physical server
or like actual hardware to host at your own house
I'd host it in my own house.
cause hosting at your own house is probably not a great idea
How come
you'd need to port forward, opens your network to increased attack vector, hard to manage, easy to mess up the security, it might go down, you might hit your ISP data cap, speeds might be too slow, uses a lot of power
What's the safest option?
"uses a lot of power"
you've seen server
now get ready for
16k dual rtx 3090s
why is this a thing https://www.twitch.tv/adoptopenjdk
lmao
cause we love them
i'd watch
Why isn't twitch.tv/kotlin a thing
Streaming Java level 45, BOSS FIGHT
i bet jetbrains has a twitch
odin have you seen the revelation with 1.17?
?
they're moving the minimum java version to 16
Uh oh.
Oh??
i've never used records
What's a record class?
it's a zero-cost abstraction essentially
:o
like a class but without all the overhead
lombok without lombok
similar to a struct in C programming
Is it bad I'm scared to ask questions incase I sound dumb? :(
ok so im not dumb
bro I deal with dumb people all day, you're surely not that bad
I probably annoy all of you
Same, i have to deal with myself
if you have that little self confidence
Mood.
I couldn't work out why my plugin wasn't loading today.
You know you need to move the jar from the build folder right? LOL
yeah
ah I have that in my copy.sh script
it deletes the old one and moves the current one in
It took me 3 hours to work out why it wasnt loading
gradle
i bet if I was smart I could even get gradle to call it for me
I am SO DUMB
nice
ant
we all are
No I'm worse trust me
bee
sounds like self-confidence issues
hey @ocean quartz do you use debian much
we need to settle this with a duel
I couldn't work out why the plugin was setting emerald blocks everywhere, I had it as a debug block 
I consider myself dumbest here
Not really, why?
loser wins
no
lmao
u have to be smart to lose
wanna actually play?
I can't figure out how to get the backport of JDK 16 onto my apt 🥲
no I will lose too many braincells if I play chess
Oof, probably wouldn't know that even if it was Ubuntu
Starslip, I tried using to use a zoom call link to join a skype meeting.
oh god
it's going to be tough to beat this one
use sdkman
oh shit i forgot that works on linux
I asked if I could ask a question
im losing braincells
piggy you're my hero ❤️
I managed to fall off a king sized bed.
Does sdkman even have 16?
bro what
I wanna make a report against hex
aight let's settle this with a duel
1v1 chess
Maybe does, I dont think I specified the version when installing
Which gave me 11
🙃
I managed to get dumped after 1 hour
better than oracle offering 8 🌝
🇫
Is chess the one where you have to pull the bricks out the tower
ofc xD
yes
how did you know
see
you're not dumb
^
I got dumped even without being in a relationship
🥲
damn
true king right there
lol yea
Why does this remind me of Harry Potter
https://lichess.org/RH9z0mnB
if anyone wants to play
sus link
Idk
I managed to charge back against myself. Beat that.
I managed to breathe air beat that
I managed to break my finger after falling off a escooter going 1mph
uh
odin
that's not being dumb
you are fucking stupid
that's just bad health
is that what you wanted to hear?
Honor.
but starlisp is more fucking stupid
am i wrong tho
thats like impossible odin unless u're really human
I accidently went into the road today and almost got knocked off 
huh?
Would've been funny if that happened.
Uh well I am not competing against a human so you're disqualified ok I win ty
No?
I am human.
cap
the person who is playing against me is decent for sure
prove it
Donald trump is an orange.
Yes
must surely be the work of a master mind to access such confidential information
Hextanium: who are you lmao
[black] Thats a nice question!
Well you wouldn't be able to get me arrested because nobody knows what I look like.
You look like you
Watch me
who here types with reasonably well grammar
I try to, but only so much I can do in English lmao
The thing what worries me is I look a bit like him.
kekw
I has well very god grammer
bruh who's black
what
Color matters why?
What
whomst was that
Dog | HAPPY DOG EDIT
EDITOR: Me
--Social Media--
IGN: Tomatis_Zz
Discord: Abow Tomat#9629
DOG OWNER-----
Discord: Abow Conclure
#1337
If you have an issue with any content in this video please message me on any of these platforms and I'll get back to you as soon as possible :D
minecraft pe,pvp minecraft,pvp minecraft ps4...
my doggo
😄
"only"
😩 this is what happens if you convert to DI
Fix it
i am
Why
?
Why you fixing it
why did u not use DI from the beginning
intellij autoconverted to object and i never felt like changing it
I broke dyno.
gg
Check bot commands lol
wdym
its been like that for weeks
Oh
How does it want to be test a damn closing brace????
ok fixed coverage but the solution is quite questionable
does anyone have any advice on what I should do for NPEs that InteliJ warns be about, but aren't actually an issue, since I make sure they won't happen myself
(I only check items I previously set for example, but InteliJ doesn't understand that)
Show code
Depends, there are cases where you just dont notice the nullability
like with fields
If it a local variable that you checked
You can just use Objects.requireNonNull with a proper message in case it fails due to some changes later on
final ItemStack redItem = new ItemStack(Material.RED_CONCRETE);
ItemMeta itemMeta = redItem.getItemMeta();
itemMeta.getPersistentDataContainer().set(key, PersistentDataType.INTEGER, buttons.intValue());
redItem.setItemMeta(itemMeta);
selectorGui.addItem(ItemBuilder.from(redItem).setName("§cDisabled").asGuiItem(event -> System.out(event.getItem().getItemMeta().getPersistentDataContainer().get(key, PersistentDataType.INTEGER)));
that for example will never get an NPE (It might actually, thats not my exact code, so I might have goofed, but it shouldent)
proper message
how do I add one?
second argument
ooh, cool
lol I just Objects.requireNonNull(key, "key") 😆
lol
no idea lmao
🥲
Sure, try it
:(
What does it say?
it shows a toast message saying "emilyy-dev does not have the correct permissions to execute MergePullRequest"
smh
lol, maybe its just a bug on the app
I'm disappointed
also, Ill merge that after testing with relocations tmr
yeah yeah no worries
Is anyone aware of some kind of Java <- Kotlin compatibility on Java 16...?
I only upgraded java and it started suggesting me kt classes 
🤣
Try it, see how much you can do with it
literally all the plugins
what... lmao xD
I have no idea
Is the project on git fefo?
and when I go to the definition of the class.. well.. it's the data class, in kt's .kt file
xD
does it happen in that single class or everywhere?
everywhere in the project... it doesn't happen in other projects, so it surely has to be a transitive dependency, right?
xD
ooh record classes are like enum classes
they implicitly extend the abstract Record class and you cannot explicitly extend it
That last request paid makes me giggle
This return type is... interesting to say the least
https://cdn.discordapp.com/attachments/710101199642165249/842600000517308426/unknown.png
https://cdn.discordapp.com/attachments/710101199642165249/842599952991256576/unknown.png
lol
That's actually quite cool
I mean it's an array really lol
it's probably IJ being stupid with code analysis
also you can use record as an identifier
it's not strictly reserved for the keyword
Compiler is getting smarter, will we finally be able to name a variable final? 🥺
if they pull that off 100% probably
it's not really an incompatible change, especially for the compiler
but the JEP mentions it would be a pain in the ass for IDE vendors
and I can see a few cases it would be incompatible
also yield lol
1..4 -> 😩
o
close enough
Ugh I hate this
You ever start writing something and it slowly starts getting messy?
God, the more I write the worse it gets
🥲
lol
Lmao
Also this is my current process for reading this 😩
(no, not parsing the HTML, this is just a representation of the final result)
do I smell... recursion?
Oh honey, i've been doing recursion on this for a while, and I hate it
🥲
I think i have an idea, I can open a link builder on the LI open, and if another LI appears I add the previous builder to the ul builder instead of closing it later
God i need to refactor this entire thing once I get the logic done
How could you hate such a fine thing? 😫
Recursion is love, recursion is life
Because i have a peanut brain 😫
😩 such lies, matt big brain
Matt has big brain once in a while, depends on the phase of the moon or the speed of the wind, 99% is pure procrastination
xD
@steel heart :3
I agree with this just don’t start again 😂😂
Wait a minute... is that switch used as an expression?
There isn't even 71 million people in the UK
Lol
Thinking about Krypton (again), I'm wondering if I should relocate the API package on to the root, so it ends up being org.kryptonmc.api instead of org.kryptonmc.krypton.api
To make the imports a bit nicer
Well yes
Because it is
Also since when did yield exist
Man I've been toying with fancy features all night, I feel like a kid in a candy store
I hear one more person say legacy after all these new fancy features and imma start shooting
Yeah lol
"kotlin had them first"
Lol
Nah Java 13
Actually, Java 12 made switch an expression, Java 13 added yield
Java 12 had break able to return a value
The JEP says delivered in 14 lol
Oh
probably preview
Yeah
what is yield?
can you use this to assign values?
I haven't tried it but I would assume you can use return to return from the whole method
Yeah
hm
It's like the one right above
then just case -> value
That won't work with blocks
^
Yes, return is used for returning control back to the method call
It's like kotlin where you just type the expression, except with a keyword
wdym
whatever();
foo = bar + baz;
yield something(foo);
}```
That looks horrible on mobile what the fuck
imagine not having the last statement as return smh
^
I think pc is crashing again 😢 yesterday I literally couldn't work an anything bcz it crashed multiple times and it even took 6 houts to start once 🥲
I would assume you can use return to return from the whole method
I dont think you can "return" from switch expressions
I like kotlin labels tbh
like exit out of the function
Haven't tried
Js 🤡
You can return values from switch, wdym?
?
how would returning from an expression work?
idk what you're asking exactly
well, actually you can, at least in kotlin
Returning where
And discord crashed again. How nice 😢
to where you was
you can also specify where do you want to return by using return@blah (not sure if it would make sense inside a switch statement though)
