#dev-general
1 messages · Page 472 of 1
🥲
Cause I find myself working on a plugin, doing 50% of it, taking a break long a month and getting back to it thinking "Wtf I need to rewrite this" and just never get around to finishing it
So I thought making a UML diagram might help with getting back to it without rewriting everything
export PATH="$PATH:hello/world"
Cons operator in bash
classic
happens to the best of us
this is why comments are your best friend
Yea, if you have a good idea on what you want, making any sort of plan prehand will work out
But this is, ofc, assuming you know exactly what you want
xD
Make a requirements list first
Requirements list?
Idk cause as I am coming to the end of my first year studying Computing Sciences, I realized how important the planning process of writing any program is
So I kinda wanna bring that to making plugins, but it's not exactly the same thing 😂
You can implement most of just fine in any scenario
They are pretty abstract
Yeah just that I have made UML diagrams for smaller programs, I am making a plugin which has like 40 classes so it will become a huge mess I feel like
Doesnt have to be a uml disgram
If you are doing UML, use a proper tool for making that
staruml works fine for me
I mean I am using draw.io 😂
lol
Sure, whatever works for you ig
I used to not plan stuff
just refactor
literally all my stuff has been completely unplanned
i just write code and tend to follow the same kind of patterns
it all just falls into place normally
yeah since when was planning a thing that hobbyists did
let's hope squirt isn't a mess 🥲
no comment
lol
squirt's predecessor is
squirt?
weird name
ikr
xD
blame @cinder flare Yugi
lol
I just thought of an idea actually
maybe I should create a useless feature wheel lol
and whatever it lands on, I implement into Krypton
lol
fer·nan·do pó·ov
fer·nan·do pó·ov
fer·nan·do pó·ov
fer·nan·do pó·ov
what does that even mean
fer·nan·do pó·ov
no idea
understandable
¸idots
yes
Sounds functional
or rather
fake
pure
Random numbers aren't very pure 🥴
fer·nan·do pó·ov
thats not me
🤨
fer·nan·do pó·ov
photoshopped
🥲
tampered with
pseudo randoms can be
GIMPed
True
purity all the way
- -> Int
nothing is as poor as 0
wow ive been pinged 300 times in this server
das crazy
bruh
u must be popular or smth
@hot hull 8360
gotta make it a nice number 🙂
fer·nan·do pó·ov
ok
Not by much
I mean even I have almost more than him. but Frosty was here before BM
true
Tends to help when you aren't pinged constantly in #general-plugins
frosty's first message was 25/02/2019.
My first message was in 02/12/2019.
oh btw bm
Oui
can I provide a contribution for Best Of HelpChat?
absolutely
Oh lord
kek
🥲 🥲 🥲 🥲 🥲
beautiful
🥲
@lost forge what do you have to say in your defense?
rookie numbers
ayy pulse at 1.9k
have you ever been pinged 120 times in 1 day?
yeah but youre actually relevant
because I have
i am not
lmao
actually it was 118 I think
btw guys I can confirm that Rick and Morty is a good show
The reply feature actually bumps pings way up
mhm
idk why they removed quotes when they brought in replies
quotes still wouldve had their usages
they didn't
Threads are coming right?
Discord becoming slack 2.0 fully?
no lol
idk why they removed quotes when they brought in replies
@onyx loom rip
quotes would be so useful in this server for more xp 😌
@static zealot 🙂
nice
i hate you
:)
wow
Okay and maybe Kali
do you hate me
cute
From the bottom of my heart lucy
forsty
what about me!
😬
again, understandable
frosty what about me!
denied
a
b
understandable have a great day
¯_(ツ)_/¯
🥲
i really suck ass at anything creative
are u any good 🥲
im basically a 3 year old trying to draw
same
🥲
omg doodles r amazing
cant draw shit digitally doe im too used to paper to use my wacom tablet ;-;
i wanna draw somethin now
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
is that going to magically give me my pen back
absolutely 🙂
i want a refund
sounds like a you problem
i have wsl
@boreal needle https://www.microsoft.com/en-gb/p/windows-terminal/9n0dx20hk701?rtc=1&activetab=pivot:overviewtab idk if this will help but theres this
then why did you run it in cmd lmao
embarassing
it was supposed to be a joke
i've heard that one before
"sorry i killed your family, it was supposed to be a joke"
~ James Gosling
😩
im sorry to hear that Semigroup Mitten
thank you Kaliber
bruh i cant eggdog
your kind words mean a lot
i gotchu 🙂
what on earth
lol
blursed
egg dog
egg dog is cool
well hurry the HECK up LOSER
it's that time again I think
ive got PLACES to be
time to hop on the test server
is that ij material theme ic O.O
ABSOLUTELY
Wouldn't be so slow if it wasn't HASKELL!!!
gkotlin
How fast does gkotlin compile?
Does anyone know if the engine overwatch uses was forked from Unreal?
SLOW
Forked?
it's custom afaik
does ow use unreal engine?
dont think so
They showed pics of the engine and it looks really similar to unreal
https://imgur.com/FeT0Yyo material theme ftw
apparently its proprietary
that is hideous
I mean most engines look the same
D:
so ugly
True
unbelievably ugly
bruh it looks good to me smh
What's wrong with it sm
inconsistent
Yeah, that's pretty ugly
horrendous
D:
you're inconsistent 😤
plain darcula would look nicer
Upcoming, dw
dont speak to me
better be xD
lol
D:
ALMOST DONE
https://www.reddit.com/r/kotlinmemes/comments/hhfc98/java_killed_all_my_family/fwp9x12/?context=3 i just saw this in my reddit notifications 🥲
3 votes and 3 comments so far on Reddit
I can't distribute a 40 MB JAR
Beauty
spigot is literally like 50MB
Working on it rn actualy, spotify just likes to override ij's presence
nah it's 28MB
Theme? 😍
a classic
28MB*
oh no
Atom one dark, with my custom colors
compiling aeson rn yugi 😩
Krypton is literally bigger than Spigot
Damn okay
idk
lol
might start work on HRYPTON
I mean if your data is structured, aeson is nice
Nice
YES
Hukkit wen?
absolutely not
MonadCraft
Omg yes!
A fast, lightweight Krypton fork written in Haskell

what is the difference between app and src folders
src contains your actual logic, app contains handling I/O and stuff afaik
You should know this BM!!
xD
And you call yourself a Haskell missionary?!?!
Contribute to hasklash today!! for the price of FREE!! xD
YES
LOW STANDARDS!
dont need to make "enterprise apps" to be an EXPERT
oh btw bm
did you update the dockerfile pr for the new version?
or does the old one work fine as well?
Ah alrighty, thanks
Install via cabal install network.
[rating:2.25/3(n=2)]
import Network.Socket
import Joe.Mama
also, imagine having a Gradle task to calculate the size of your dependencies in your documents folder
thinking about it, anyone want my Kotlin conversion of the original?
gonna put it on a gist
Actually pretty easy to do
documents.size()
lol
just cleaning up the code a bit
gross
wdym
u heard me
26MB of dependencies on the runtime classpath 🥲
is there a way you can create a JAR without the dependencies in it?
I wanna see how big this is without the dependencies
don't use shadow?
🥲
ur forced to recommend slimjar 🙂
die
🥲
bm who do you play on ow
unranked
gold
I'm gold 😌
not bad
wbu
low diamond on support 😎
overwatch sweats
dont care
You're crazy
whats the highest in ow
gm
grandmaster
how far is diamond away
siege doesn't have grandmaster lol
okay similar then
What does siege have
siege has like copper, silver, gold, diamond, champion
close enough
Oh
plat too?
yes
yea plat
Valorant 
Clash of Clans 😮
You wanna join my clan or what
im good
i quit clash like a year ago
What th?
11
I see you
League is iron, bronze, silver, gold, platinum, diamond, master, grandmaster, challenger
anything after th9 is just depressing
yo you forgot wood elo
wood elo adventures
advanced club penguin btw
I have yet to try league
haha please dont
Yeah don't
Do yourself a favor
Yeah
Welp
Don't get in it, you'll never leave
what did i say remence 🥲
league pretty toxic yeah
music is good
league is just pain
League is great, but we all hate it
i listen to the music but dont play the game anymore
league has good music?
lmao
oh i think i know that one
but what about club penguin music huh
i remember my friend showing it to me
that shit slapped
ikr 😫
Me playing league
www.clubpenguin.com Disney'in en sevilen oyun portalı Club Penguin, Temmuz sonuna kadar muhteşem bir partiye ev sahipliği yapıyor!
En yeni kıyafetlerin seçildiği, en son hit parçaların çaldığı ve fantastik dans hareketlerinin denendiği Ultimate Jam Partisi'ne, Haydi Çalkala'nın iki starı Cece ve Rocky de katılarak bu heyecana ortak oluyorlar!
...
this was an integral part of my childhood
i vividly remember this event
Did you ever get the membership?
I got it for one month and felt like a king 😎
can i convert a docker-compose file into a single image
Remence :3
im guessing not
You can do anything you want if you believe in it
what i mean is
turn the entire file into a single image
that i can then deploy somewhere else
lemmos the docker guy
Nuking the planet included yes?
😳
Ofc
Great
Will need a few bill as a start to get the rockets needed for this accomplishment
Actually i wonder, how many nukes would it be needed to destroy the entire planet 
probably not that many to make it uninhabitable
That's too easy, i mean going all out
destroying the planet to smithereens
You’re about to max out 🥴
I’d give u another week and you’ll be max
Cuz ur just that good 🤷♂️
lmaoooo
What you laughing at hoe
lol
?
i play reyna
ew
and jett
Reyna is broken
daddy brimstone also good
Hot young swain
lmfao
Oh ffs
Dude play ranked
MOLLY
I keep forgetting I don't have bypass perms anymore lmao
I’m genuinely curious as to how far you’d climb
Remence, I'm Iron 3 rn
is that wardell?
-.-
lol
Iron 3?
please dont tell me thats tenz
I keep playing with a few friends who are cracked so we keep getting sweats who rawdog us instantly
i swear thats his setup
🥲
Valorant is gonna start working on eliminating smurfs soon. Did you see their post?
why am i doing this to myself
Imagine queuing alone when you have me 🙄
someone tell me if/how I can minimise JSON files in the process resources task
I heard yea
it is now
So yeah that might help you out
lol
lol
who if know in bot discord? (ping me)
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
@old wyvern how close to updating slimjar are you rn?
on a scale of 1 to 10
1 being you're a lazy shit and have done fuck all and 10 being you're releasing it rn
here is my code I would like that when I write a message in a specific room its write the message in embed with two reactions the problem is that it spawns it and it does not write the message that I put
bot.on("message", async message => {
if(message.channel.id === '835156322592751626'){
message.delete()
let msg = message.channel.id.slice(4)
if(!msg) return message.channel.id.reply("msg")
let embed = new Discord.MessageEmbed()
.setAuthor("Suggestion de "+message.author.username, message.author.avatarURL())
.setTitle('**Suggestion**')
.setDescription(''+msg, '')
.setColor('#FFAA00')
.setFooter('SÉRUNIA-BOT • 2021-2022', 'https://cdn.discordapp.com/attachments/718476721418141728/719563110154764298/logo.png')
let msgreaction = await message.channel.send(embed)
await msgreaction.react("835135070104715306")
await msgreaction.react("835135056472178749")
}
})
#development for 1, and for 2, doubt anyone here knows Discord.JS that well
gradle was faster, they said :P
have u tried getting a better pc
Only as fast as the pc running it
Holy shit I don't think I've ever had anything take longer than 1 minute to build
buildtools
maven
i wonder how fast ant is 🙂
I've seen some pretty fast ants
Can someone pleaseee help me? https://media.discordapp.net/attachments/607127302010175488/840672835017637908/unknown.png?width=1260&height=115
ughhhhhhhh
minidigger said the task to remap to Mojang mappings takes ~45 minutes with Gradle 🥲
or it was something like that
Well that's not building
true
Decompiling with Mojang maps took me 2 hours
🥲
decompiling is rapid with CFR
like it takes me ~10 minutes or so to decompile the entirety of the vanilla JAR
or maybe not even that
and the MC remapper I use doesn't take that long either
maybe SpecialSource and Fernflower are just bad
Fernflower isn't all that great from what I've seen in Spigot decompilation anyway
CFR seems to do a much better job
also, I'm actually stupid
I just realised that out/ in the gitignore will match the out package I have in packet
doesnt it only match the root dir
if you put a / in front then yes
ah that makes sense
without the /, it matches it everywhere inside of the root dir as well
/out/
/api/out
/buildSrc/out
/server/out
```🥲
is that what that does?

Why are you doing that again?
what on earth
Depends,
what is this? Krypton?
Is it continuous?
🥲
xD
Does it just happen once?
continuous
I think "per second" implies the answer to that question Yugi
could just be for a short while
basically
for some reason
when i save my bedwars map
all the locations go to world
so i need to make a new GameData instance
to change the world
rn i just set the worlds on deserialization
i have no idea how the worlds change
im thinking of just storing the world name
in GameData
then have a separate getWorld method
which calls Bukkit.getWorld
?
Store the world uuid
is there a java shorthand for a function type that returns the same type that it's provided with
like a Function<String, String>
just playing with some nasty generics, i'd prefer to minimise nesting
UnaryOperator
although you wouldn't be able to declare ? super, ? extends like you'd be able to do with a normal Function
ah thats the one thanks
:]
is that an emily i see?
:(
imagine not having first class functions smh
epic
wat
(String) -> String
thats not what she was asking for
I swear it was
ah right
epic
oh btw @quiet depot , they do specify the convention for project/module names
:o
type Unary a = a -> a 😌
typealias UnaryFunction<T> = (T) -> T
😌
imagine not having crazy long generics
someone needs to make a kashikinator
Someone needs to learn haskell
tf is a kashikinator
I'm messing around
I mean a machine that generates kashike-style generics
weeb
because kashike is known for going stupid with generics
no u
like actually stupid
sounds a bit like me ngl
dont speak to me
hi bm
YO
yeah that looks like something id write ngl
ok im not that bad
oop turns out i need to pass a second parameter in my generic function
bifunction time

variadic templates 🤤
My builder is actually pretty much like that as well
Imagine not having a compose operator
public abstract static final sealed record @interface enum class IAbstractStaticFinalSealedRecordAnnotationInterfaceEnumClassFactoryBuilderProviderInstanceVisitorTypeParameterFactoryAbstractBeanProviderInstanceFactoryBeanProviderInstanceFactoryBeanFactory
sealed record
how embarassing
yeah because why not
😫
OY
Speaking of which, someone actually wrote a gist with like 20 compose functions for kotlin for different arities xD
could u technically make a custom operator with infix
pain
yea xD
only if you are a masochist
private static final transient volatile synchronized @NotNull @Nullable Integer ONE = 1;
you can, but there's only like 3 possible symbols you're allowed to use
I love how intellij just freezes when I try to rename the top function
You sir deserve to be shot in the kneecaps
😳 😏😉 😘
y so
c++ 🤮
suuuuuure
die
There we go
cuz kotlin bad
you deserve to rot in hell
y tho
longlongintlonglongdouble
Researchers say c++ developers invented morse code with longs and ints
longlngintintintlongintintint
lmao
infix fun `>=>` (monad: Monad)
public private protected abstract final interface native static strictfp synchronized transient volatile enum sealed record @interface class IAbstractPublicPrivateProtectedAbstractFinalInterfaceNativeStaticStrictFPSynchronizedTransientVolatileEnumSealedRecordAnnotationInterfaceClassBuilderFactoryVisitorTypeParameterInstanceProviderFactoryBean
cursed
well stuff like this works
it's just kinda ew
🥴
have y'all heard of the s p a c e s h i p o p e r a t o r ?
the WHAT
a <=> b
huh
More like a star wars ship
https://img.bristermitten.me/screen_2021-05-08_22-32-55_dbZs.png
ez best programming language in the world
😌
anyone here ever heard of yoda conditions
😌
I wish they'd allow infix to be just the symbols without `` outside of the internal API
fail the condition it must
if only matt
it would probably break the parser or something
true
Yeah likely
it's when you write conditions like this: ```kotlin
if (5 == someValue)
Ah the madman way
Gross
ffs I just spent like 20 minutes trying to figure out why gradle wasn't fetching the server jar
I didn't add mavenLocal 🥲
Classic
big brain you sure are
to find out it was just you being an idiot yeah?
also, @old wyvern status update
funny thing is that it wouldn't be the first time lol
ofc it's not
Aren't those to avoid like null pointers?
Like "SomethingIKnowIsn'tNull".equals(getSomePossibleNullValue)
Almost there
fixing up a task
no
gradle is trolling me a bit
🤣 🤣 Only on the JVM 🤣 🤣 🤣
Imagine having null
Imagine
also, someone please tell me why SRV records suck so bad
The so called "null-safe" language
haskell - the None-safe language
Claims to be "null safe"
Has !!
The Safe Language
Don't need to be null safe if it has no nulls
😩
Maybe Monad on top
Blame Java
Absolutely not
I just accidentally clicked control+middle click on Material.valueOf() and now IntelliJ is frozen
Ştop opening the material enum lol
ŞŞŞŞŞ
https://paste.lucko.me/bhj7YP3AvW this is gonna be fun to implement 🥲
(the rain calculation part)
also, FuzzyOffsetConstantColumnBiomeZoomer I wonder if Minecraft has any more absurdly long type names in it
DefaultUncaughtExceptionHandlerWithName
LootItemRandomChanceWithLootingCondition
fer·nan·do pó·ov.java
@old wyvern status
my pointlessly overcomplicated excessive command framework works :D
😮
nice
yeah but why do that when you can not
brig is for sane people
do i look like a sane people
🥲
Ayy nice, do it!
😫
yeah because of the lack of documentation :^)
lol
does that jar in jar system work yet?
where can I find it?
Do you mind 500kb?
not at all
you got me something I can use yet?
😉
not liking these wait times so far
gonna be getting a 1 star review on Yelp at this rate
or Trustpilot
I think im pretty sure I told you it wasnt complete yet. Almost done, join me in vc if you want ig xD
"1.8 pVp Is BeTtEr!"
Also Dkim:
lol
Exception in thread "main" java.lang.NoSuchMethodException: org.commonmark.renderer.html.HtmlRenderer$RendererContext.<init>(org.commonmark.renderer.html.HtmlWriter)
Gotta love this shit
trying to think how I should do the weather API
I want to allow access to set the rain level all the way up to acid rain and beyond
val rain = Weather.weather(Weather.Type.RAIN, 0F)
```🥲 lol
JDA works well I find, I think Kord is being maintained by the unofficial Kotlin Discord
should be per world smh
yeah dw it is
also, someone please explain why without shadow, my new freshly created project works just fine, and with shadow, it can't find kotlin-stdlib-jdk8
what the actual fuck
What in the name of inception....
beep
I was thinking in license secret-cfg under LGPL, but I think it's too much for a lib? I was reading about it and it seems kinda too much, like forcing the developer to allow the user to replace the part of the code licensed under LGPL
MIT 
what's the difference between mit and others? better question: why did you choose MIT license
No need to credit, as open source as it gets
Copyright (c) 2012-2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Too many conditions 😩
Oh shit really? 
yesssss
finallylyy
godd
I wasted so much time cause I was using the wrong factory class
xD
jar-in-jar works perfectly now
Just need to remove a few debug messages
Ill leave that for tmr
too late today
3:40
gn
man Java is so ugly sometimes. 🥲
Yes it is
sometimes
if you think that about java...
there are cases where its fine
other languages might be hugely shocking to you
java imo is one of the prettier languages
sometimes it can be very nice. but sometimes my eyes just bleed
like with what
I personally find that my eyes nearly always bleed with kotlin code in particular
well DeluxeMenus xD
that's not to say it's a bad language
with that
it's just not nice to look at
Yea, my personal opinion is, kotlin is easier to write, java is easier to read
with IntelliJ annotations, I find Kotlin just as readable if not more than Java
Depends
hmm Idk. I preffer Kotlin over java. But maybe its bcz I've used Kotlin way more than java
intellij annotations are a mixed bag
for me
sometimes they improve readability
sometimes they drastically decrease it
I find the little type hints are great honestly
and that's really all that's missing
Kotlin is just more concise than Java, less verbose
With java I guess it comes down to how it's being codes. Like with the indentations etc... ans how you use whitespace.
And more messy sometimes
I mean it depends on how you code
Kotlin can be messy. Like very very messy if used bad
I've seen bad Kotlin code and I wish I never had
star do u have a kotlin project I can look at
You can look at some of Sxs repos
I dunno, my experiences are essentially from the code I've written myself
and I haven't done any real projects with Kotlin
just school stuff
Well ofc, reading your own code is easy
I'm going off code I've tried helping people with...
I mean after some time, it certainly seems fresh
Reading someone elses code is what im talking about
ok ima take a look at sx's code then
Coming back to your own code after months feels a lot like someone else's code lol
Alright piggy
I dunno. I think it also has a lot to do with how familiar you are with the language
We are all primarily Java developers, so it makes sense we're most used to Java
maybe familiar is the wrong word. you've obviously spent drastically more time looking at and writing Java than Kotlin, correct?
Yes
maybe with the same time investment it could be close to similar
Maybe
why does a String#containsIgnoreCase method not exist? 🥲
no clue
I have quite a hard time reading Rust code right now but that's because I am quite new and though I technically know what some stuff does, it does not mean I can fully parse things very quickly lol
Not even kotlin has it
Thats not my point star
and I have no clue why that won't exist
I have no issues with the syntax
I think I might've got my original point mixed up star
I should've said I think kotlin, the syntax is ugly
Lol
That's awesome! What else is needed now?
The self-downloading part ig
Honestly, what don't you like about the syntax? I find it much cleaner than Java
so many symbols at times

