#dev-general
1 messages Β· Page 132 of 1
Ngl that is something which many need
Yh
KM which are those
ok thanks
https://github.com/knightzmc/pdm/issues/1 @steel heart this is 1
The other is that it seems to fail with Hikari for some reason
help
π
what do you guys think of thenewboston tutorials?
chances are they suck
Β―_(γ)_/Β―
Possibly
@prisma wave, i forgot to ask, is there any drop in for the Dependency class? so u dont have to load all of them if u dont want to
wdym?
dependencyManager.addRequiredDependency( new Dependency(
like optional dependencies?
ya
not at the moment
alr np
I plan to add them though
do u want me to update the readme now just so it actually works?
that'd be nice
np π
cheers
also, using allman in this kotlin example to keep to ur code style kek
β€οΈ
Oh btw
In 1.16
Shouldnβt we be able to make guis with no name
Can't you pass a space or empty string as the name?
@prisma wave accept my pr >:)
π
wew
@topaz bay@prisma wave Hey dads found something you can argue over work on together
found something you can
argue overwork on together
sad face
No I not
You stupid
first attempt at particle trails xD https://i.imgur.com/gLFeO3k.png
subtle double monitor flex π¦
dw
second one is trash
and only use it for discord
also its a laptop
to witch I connected another old monitor because the laptop one is trash
and my laptop is burning
xD
did someone say kotlin?
Kotlin AMAZING
Let's leave that clown to end himself, while we circlejerk
@prisma wave you are needed to initiate proceedings
yeah pretty sure it is
π π π
I am a scientist and have been trying to prove this for years now
but no one believed me until it happened
inspirational
let's make a movie about the guy who tried to make everyone switch to Kotlin (Brister) but very few believed him when he said java is bad. They needed years to realise how much better and superior Kotlin is
we all record a scene using our phones
And then Java burned his house down and killed his family
like #hcc-experiment but its not going to die
And then Java burned his house down and killed his family
yes
and the world stopped spinning
and he coded a thing in kotlin that made the world spin back
Blitz that legit happened
Are you not aware of the highly emotional kotlinmemes post?
and almost died because he didn't sleep for weeks and didn't eat or drink as well
but then the world started realising
well I am aware of the subreddit. I am a member
but dk anything about the emotional post
ok we should have Samuel L Jackson play the role of Java, and who should play Kotlin?
hmm
you ...
samuel l jackson is always a great villain movies
because its the story of your life
nah i won't be kotlin
xD
I could NEVER
I vote for Brister
andrey breslav himself 
good idea
https://www.reddit.com/r/kotlinmemes/comments/hhfc98/java_killed_all_my_family/?utm_medium=android_app&utm_source=share pretty sure it's this one Blitz
everyone can be a good actor with the passion of kotlin
ah
that is a very sad and emotional post katsumag π’
here's another one
https://www.reddit.com/r/kotlinmemes/comments/hjldan/sounds_like_a_java_issue_to_me/ there's a lot of comments on this post
but whoever posted it should learn to use dots or commas because now java users can take parts of the post and say bad kotlin good java
@prisma wave
yes?
I have a kotlin project, if I want to add a jar that has kotlin code as a dependency, how would I do that?
uh
i'm not sure what you mean
kotlin code compiles to java bytecode?
it's no differerent to any other jar
altho, u should use pdm to shade the stdlib 
tru
I when I look into the code it's kinda bob
?
final class NamelessClass_1 extends Lambda implements Function1<FileReader, Unit> {
public static final NamelessClass_1 INSTANCE = new NamelessClass_1();
public final void invoke(@NotNull FileReader it) {
Intrinsics.checkParameterIsNotNull(it, "it");
Companion var10000 = SumoPersist.Companion;
Object var10001 = Constants.INSTANCE.getGSON().fromJson((Reader)it, SumoPersist.class);
Intrinsics.checkExpressionValueIsNotNull(var10001, "GSON.fromJson(it, SumoPersist::class.java)");
var10000.setInstance$HyterEvent((SumoPersist)var10001);
}
NamelessClass_1() {
super(1);
}
}
Stuff like this
that's just what compiled kotlin looks like
there's a lot of compiler magic to ensure JVM interop
possible to decompile?
that is decompiled
I mean to kotlin
frick
but looking at that I can tell you it's a function
I have a lot of those
it would be something like kotlin { it: FileReader -> val persist = Constants.GSON.fromJson(it, SumoPersist::class.java) SumoPersist.instance = persist }
which, for the record, is gross
no sourcecode?
nope
rip
yeah you're gonna have to rewrite it by hand
what are you actually trying to do here?
Cant you just import it as a jar using Maven local and have everything there or is that not a thing with Kotlin?
hmm copy a plugin code
ah
yeah you're gonna have to rewrite it manually
there's no existing .class > .kt decompiler that I know of
easier said than done lol
like I said there's a lot of compiler magic that's a bit tricky to reverse
how do you guys use json for data files and stuff / what library
Gson usually
alright
or kotlinx.serialization depending on what needs doing
BM or Sx do you guys have any example of a coroutine scheduler?
i don't think so
Sad, doesn't seem like Forge has a scheduler like Spigot
oh I see what you're asking
I mean, delay is a thing
you could probably make your own in like 20 lines
Yeah I guess I'll have to
Another thing I can do tbh is use the tickEvent but idk
So would it be something like suspending a function and having a while true in it with a delay based on the time i want?
If I was to start learning either C++ or Java for game development which one would be better?
C++
C++
C++ for ue4
or ue5 π
Depends on the game you want to make
Tbh I suggest you use an engine instead for example, C++ on Unreal or C# for Unity there are some for GO and some for Java as well
Unreal is better than unity right?
probably depends
better is also subjective, Unity is easier to use, Unreal has better graphical capabilities
yeah
Both are really good
unity is definitely more beginner friendly, but unreal is much more powerful
start with c#, then learn c++ 
C++ and C# are similar anyway I think so it wouldn't be too hard to switch
I really don't think they are similar, C# is closer to Java than to C++
they're not that similar
they both have C in their name so that's good enough for me

Think big work smart
C# got gc C++ dont right?
C++ is manual memory management yeah
C++ is more difficult of a language than a higher level one, like Java or C#
of a language?
bruh
name and shame pls
I am guessing this means that gradle couldn't find paper 1.16? correct?
Use compileOnly

Yo who here can code a arduino controlled robot?
oh, Frosty, thanks for the help but it isn't my project, I was trying to compile one of Matt's.
I'll wait till he is back on.
C++ is manual memory management yeah
C# can too if you want, but def not recommended π
Brett its probably because paper isnt in like .m2 folder or whatever
Like with spigot u gotta run buildtools
If you want paper api add their repo @cursive breach
What do you guys think of the readme? First time actually writing one properly https://github.com/katsumag/ItemActionsLib/blob/master/README.md
^
its kinda easy
Are there any way to start server softly? I've tried to limit CPU but don't like it at all. I'd like to start 10 server in same time without slowdown other servers in same instance.
Solution is donβt start servers at the same time
Start them all one after another at different times
I meant to say 10 SMALL server like mini game server.
I know
So you're saying make a system that queue the servers and open with order
Yeah, do hypixel shut down all their servers at the exact same time
No, they restart all their servers in a queue
I really wonder what hypixel uses for that
Are you sure?
How do you know?
Maybe they made custom things and successfully made soft system for just mini game servers.
I'm sure they are but Hypixel is the biggest network in Minecraft. So it's possible that they made another system for that.
Itβs the same idea
^
Should I make this system for my server? I can do it but I don't have any playerbase right now so...
Maybe I should do manually and if I get more players, I'd do it.
The cubecraft method is strange one. They paste arenas next to others. I'm wondering what they do for resetting their multi arena server 'cause there are more than one arena and might still playing...
Docker might be worth looking into
Do you guys want to play a guessing game again
(probably some times later)
welp
Is this a trick question
as in?
Doesn't Swift have null safety too?
Havent used swift
well it looks like kotlin but it might be a trick
C#?
?: is ?? here
Oh btw, sorry for interrupting, but there is a weird news :)
I thought C# used WriteLine for print though
@prisma wave visual basic does too
Properties and Methods use Upper
Know anything of this plugin? https://www.spigotmc.org/resources/β-playerlistdeluxe-β-1-8-1-15-the-best-tablist-plugin-formerly-playerlistplus.55878/
It's from one of my friends'
Well learning kotlin helps me now I guess
What about them?
C# has them
Im confused but happy af xD
However, upon my inspect, there's something on a coding environment :p
?
This dude uses eclipse for that thing 
oh no
Literally
π€’
Nope
it looks pretty cool I think
Ill give it a try tonight
yeah i'm gonna
F# is functional paradigm right?
yeah
example?
welp
F# Example for beginners and professionals with examples on collection types, seq, map, set, options, genrics, records, enumeration, discriminated unions, structure, classes, static, abstract class, interface, inheritance, pattern matching and more.
awful example lmao
thought so
@regal gale https://discordapp.com/channels/164280494874165248/695431668944732270/734373251471638589
Use BungeeTabListPlus
yuck
yuck
So Piggy wanted me to write javadocs, how do I do that? Do I use a git books sort of thing or how do I do it in spigot javadoc style?
gitbooks is nicer
yeah gitbooks looks nicer
but javadocs are more accessible
since they're in source code too
I don't even know what to write for them tho
start with parameter and return type annotations
with a brief description of what the method does
that's usually enough
So other developers understand what the function does, what the input/output represent...ect
If I stay open a server that not in use, can it affect my other servers in same machine? It uses ram and 0.5-1% CPU. I think it's not but wanted to say here
If its consuming resources then yeah. Depending on how much that might be negligable though
^ even if no one is online but if you have spare resources then it won't rly be a problem
It's for mini game server. I've thinking the shitty mini game system all my day. I've decided to use bungee arena instead of multi arena but it comes with some problem
one is opening actually the most important thing is this.
I don't want to make queue system for now 'cause the server is close. So what should I do for that? Should I manage everything manually for mini game servers?
Hey peeps! I tried to update my mariadb - mysql database from 1.10.1 to 1.10.5, but the tutorial i was following has some problems in it :/ maybe someone can assit me?
Ori was that to me? ^^ should i ask there? Sorry then for posting in the wrong chat π
That was to you
It was a part of my kotlin scripting project
Where you could load kotlin scripts, kinda like... (please forgive me) Skript
You became the very thing you swore to destroy
@topaz bay You shall not be forgiven.
I mean... its not really the same at all
The only thing thats similar is that you can load and unload the script files
Its actual kotlin code still
You have sinned by just mentioning that word
Ctrl + A + Delete.
plz help with migrating nexus to docker https://img.mrivanplays.com/putty_GhXNT6OMd3.png command is https://img.mrivanplays.com/putty_1HbK5yjC76.png
\
\
\ S e s b d
/ e m a
/
/

@regal gale isnβt that called mountain code or something? Lmao
Frosty doesnβt seem to happy about it
Arrow code
knightzmc π
can u change on gh?
Okay I consider adding pdm support for katsus item action lib
never looked
you can
But it could break lots of things
Since URLs use your username
@steel heart to do what?
Look how its implemented https://github.com/katsumag/ItemActionsLib
Wanna add maybe so if you use pdm it registers the manager to servicesmanager instead
And the instance would then be obtained there
Huh
$
Look we Say 2 devs shade ial
Each one of them would have a brunch of listeners registered
Problem is that they could use the same listeners and event classes
Why does that matter?
Isnβt that inefficient
Registering too many listeners on the same event?
Β―_(γ)_/Β―
That is readability hell
@prisma wave not rly
Conclure, not really
Hmm you sure?
Like 90% sure
Lol okay I need that 10%
$ is not a clear variable name
Also, even if it was inefficient, PDM wouldn't change anything?
It would
Conclure, still waiting :(
How so
For instance Rob, uses IAL. He shades it in and makes his own instance of the manager class in the lib. Whenever you invoke the manager class 12 listeners or so gets registered. Then we have Bert. Bert does the same thing but with his project. Now we have Rub. Rub uses both plugins and as a matter of fact it ends up being a total of 24 listeners registered instead.
Here is when pdm comes to the solution.
You're already having hundreds of others being registered
Ew imagine making shit efficient
And even so, the classes might end up being different
Also $ is a very nice variable name
Not 100% sure on how classloading works but I think different clasloaders = different classes
Yh itβs presumably something like that
If you want to optimize, don't register all the events, only register necessary ones
and don't pre optimize anyway
Yeah I was thinking of that
Though combined with pdm so every developer who uses ial doesnβt need to shade
KM, do I start from scratch, or do I convert everything using the keybind? (An existing project)
That should be up to the developers
Not you
Up to you @hot hull
Personally I would start from scratch
Depending on what it is
Because it gives no information about what the variable is
FJ KM
you shouldn't need to look at the previous line to find out what a variable represents
That's the point of having a clear name
It's a code smell

@hot hull imo rewrite most of it, just copy & convert anything that doesn't need rewriting
Or just convert each class 1 at a time
But rewriting is better since you can make it more idiomatic
Yea I'll just rewritte it, since I have to adjust shit anyways
Hello my intellij is complety broken any ideas on how i could fix
Turn it off and back on
Reinstall
done that 5 times already
What version, and what system?
64 or 32bit
2020.1.3 version 64
No clue 
Get jetbrains toolbox and open a specific project
Or delete the .idea directory
In user home
In ur project
In user home
Wait does it exist more than 1 per project?
its not called .idea in the home directory
Its IntelliJ and the version
It holds configuration and settings
Yeah
intellij opens for half a second then closes
Potato pc?
i have a project and I am looking to put it out publicly for people to use, what is the best way to go about deploying it to a repository/making my own repository to use?
Maven central
Jitpack doodoo
You could slap it on my Sonatype Nexus if it really came down to it if you wanted to
But Maven Central or your own is the way to go I think
which boxes should i check i got a 64 bit compuuter
.kt 
yea
like the .java?
it just changes the default opener for those file types i believe
tbf u dont even need to create the desktop shortcut, it just creates more clutter on the desktop
but if u want it then go ahead, just my opinion
yea just leave that default tbh, unless u really want to change it
well i have done this process 5000 times and it just doesn't open each time

Did you delete the .intellij folder?
C:\Users\YOUR_USER
I mentioned it earlier, said .idea but sx corrected me
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
I thought you guys might like this: https://towardsdatascience.com/data-structures-simplified-and-classified-e0c1e304436b
And also, I apologize in advance for it being medium.
Can you put it in a gist? I dont want to create an account and it seems like an interesting read
You shouldnt need an account?
Nope, still requires an account in chrome and samsung internet
Rip
Might be just a mobile thing
shhh
You lose the picture examples
But meh, that works
are the pictures important?
Not really
Thanks π
Apparently you can also load medium webpages in an ingonito window to bypass it
Fuck medium
Tf is medium
Well...
Its actually kinda good
Its almost like reddit, but extremely focused based on what you define as your topics
The paywall is ass though
The site looks nice
And the content is good
but I'm not paying to read a random article
I got my confirmation from sonatype that my group was prepared, but I cannot for the life of me figure out how to actually deploy with gradle
maven-publish plugin
hi @distant sun (sorry for the tag).
So I added their repo (it seemed to not have been correctly displayed in the file?) and now i'm getting a bunch of other stuff.. should I try redownloading it?
Thats nms

My intellij is still broke anyone got any suggestions on how to fix
i pretty much tried everything restarting my pc reinstalling it
now that i look at it that does not seems like much but idk what else to try
Did you delete that folder?
whats the actual problem?
well when i click on intellij to open it it opens for like half a second then closes so it seems to try to open then says no
what Java version are you on
how do i check
java -version lol
14.0.2
And what intellij version?
IntelliJ IDEA Community Edition 2020.1.3 x64
hmm still broke
what ever im just going to The system cannot find the path specified
?
when i click that i says The system cannot find the path specified
but i can't delete it
windows being stoopid
that sounds corrupt
reopen file explorer and it shouldnt be there
chkdsk perhaps
or that yeah
so i put that in command prompt?
alright
Error resolving plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.3.72']
> Plugin request for plugin already on the classpath must not include a version```
anyone ever seen this before/know the fix
i have that plugin in a module inside one of my projects, and the main project's build.gradle doesn't contain the kotlin plugin
Just remove the version
I tried that but
can you send the build files
yeah
interesting windows fact
root project - https://paste.helpch.at/izopixuned.cs
bukkit module - https://paste.helpch.at/ahavetacaf.bash
bungee module - https://paste.helpch.at/idozicumiv.bash
common module - https://paste.helpch.at/upifeluhub.bash
when replacing a plugin jar with a new one while a server is running, Windows won't let you do it with file explorer but will let you do it if you drag and drop in intellij 
kinda weird
just gradle in general or something specific lol
Well 1. whats the point in applying those plugins in the root project, if youre going to redeclare them in every project anyway
should i be declaring them all in the root
alright lol
all in the root as well
Anything thats repeated yeah
And you should also probably change those api's to compileOnly
so 2 things
is it ok to have an empty build.gradle for one of my modules if it doesn't have any of its own dependencies or anything
yes
and then what is the difference between like compileOnly, api, implementation, compile, etc etc.
Everything
- never use compile
its deprecated, and trash
compileOnly is analogous to provided, from maven
A dependency which is necessary for compilation, but will be provided at runtime
ah ok
api is for a dependency that should be transitive of your module
and then it looks like api and implementation are the new version of compile
So if someone depends on your module, it will pull along that dependency as well
And implementation is the opposite
ok ty
and yes, they replace compile
alright i have a new error now lol
A problem occurred evaluating root project 'bukkit'.
> Could not find method implementation() for arguments [project ':common'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.```
New builds:
root - https://paste.helpch.at/opijeduder.cs
bukkit - https://paste.helpch.at/oyumeqoxop.nginx
bungee -https://paste.helpch.at/beyihacose.nginx
and common is empty
all of the content of subprojects, or just the opening and closing parts of it
idk but i'm using 6 i believe
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip in my gradle-wrapper.properties
implementation is in gradle 5 i believe
my gradle was set to v5 before and was working fine so yeah
i mean my version isn't the issue i dont think. i tried compile and got the same error
it can't seem to find any of the keywords for gradle dependencies
sx you're saying java-library as the plugin id right
root -https://paste.helpch.at/ipagelogeh.cs
bukkit - https://paste.helpch.at/fipaqamihu.nginx
bungee -https://paste.helpch.at/rogufubete.nginx
please let me know if you see any issues here as to why it wouldn't be working
replacements:
# Lists of character replacements
# (CHARACTER):(REPLACEMENT)
g: q
c: <
Using ConfigMe, how can I list the content of replacements? (g: q and c: <)
you cant really use configme for that
I have used configurate by sponge and It's really cool
Closest thing you could get is probably a Map<String, String>
what the fuck did i just see
im so glad that mobile mitigates like 90% of that arrowcode
altho @regal gale please do Ctrl+A+Delete π
How can i delete it on phone 
smash it on the floor
@regal gale that code reminds me of this https://youtu.be/YHv5jgXz9I8
Blame cube
@pallid gale this is a general chat. please give me perms. k thx. (if u dont i will deprive u of boosts).
is that goid enough thien?
i think i got him good.
Absolutely <3
awesome
Checks out
Can I get a hand?
I fixed it I think
Frosty I got that a while back, even BM didn't know. I had to just manually add the kotlin stuff to Gradle then it worked
Β―_(γ)_/Β―
I changed the gradle version and reimported and it fixed itself
I could use some guidance when it comes to constant public variables in kt
like static?
Yea
companion object{
val WHATEVER = ""
}```
I have this in a class,
How do I access it in another now, without DI
WhateverClassTheCompanionObjectIsIn.WHATEVER
Ah I see
Can I pass in a param to the companion object or?
Cause I need an instance of my plugin, but doesn't seem I can just declare it in the companion object class
wdym
I mean idk if this is the best way but cant u just make it a var then assign it this onEnable
no clue
oh
I see what u mean
no clue
Tried using JavaPlugin.getPlugin, but that just shat itself
Yea
Although, I mean you could just use the get plugin thingy and use that, could you not 
bruh need ideas for names for my plugin.. like was thinking about AzoneArmor&Tools
but it's a big name
Ah okay yea I figured it out
Do I put my extensions file inside a util package or?
An extensions package
And you apparently normally seperate extensions by type
So like StringExtensions ColorExtensions PlayerExtensions or whatever
I just put all mine in the same class lol
I like to have it consistent between projects and some small projects only have like 3 extensions lol
that's such a weird reason
that would also mean you write the same shit code as that you used to when you started coding
since that's consistent
π
oh I do write the same shit code as I used to
Can someone link me to their extensions class
does it need to have alot of extensions?
Nah just so I see how it should be structured
sHoW mE
Those incosistent spaces are π€’
Takes 2 seconds to fix?
bit of both
it's not as bad as mine atleast 
Bullying over peoples code is not accepted here 
yes it absolutely is
say -1 all you want
but that is mostly all we do in #development/#dev-general
Not very nice though is it
D:
@remote goblet You have github?
Itβs ok as long as you are helpful Iβd say
π critcize time
only admins are allowed to aboose
=burn it
Lol
Those emojis annoy me

The kind of ones you find on a powerpoint from early 2000s
yes
...
stfu
eff your u's
imagine spelling it color 
even discord says its wrong
clr()
Color sounds like you're dumb
Boutta name it barva you nonces
i'll take your center but that's it
final Color colour; is weird
omG lOok at that cOlORRR
cuhlure
Unless? Make a colour wrapper
No pls
Lmao
imo center would be the center of something and centre would be like a shopping centre 
No
it should be spelled cula
No shit center would be the center of something
same
I mean.... "center" is also used in shopping center
Yes but shopping centers are center
center of the shopping center
when the shopping center is the center of shops technically
epicenter
shopping epicenter
kuler pls
Color col;
Adobe Kuler 
column
wait u didnt know that center and centre are the same?
Lol
why u had to google it then
π€
type Colour
integer r
integer g
integer b
end type Colour
I googled "Shopping Center vs Shopping Centre" to see which one was more prominent
I think centre is
data class Colour(val r: Int, val g: Int, val b: Int)
Detected abnormally large 5head, proceed with caution.
@heady birch better.
ππ
Lol
ez
woah dont do that he might sue u
Dang
Barry never mentioned who the the 5head was, you just assumed it was you..
I smell the roasting
Unless
You already knew?
TRAITOR
I'm on the fag side 
It's too young to know any better
You bully
Me: "I came up with a lazy way of doing this, im intelligent"
Bf: "Are you?"
Me: "No"
Seems we've gotten a little off topic.
you're off topic
^
Sic burn
Okay back to bullying 
sxtanna typing gives me anxiety
Gives me excitement, hopefully he can say something I can ban him for
xoxo
I am deeply offended by that sentiment
Rule is simple: try to stare on this picture for half a minute
What would even you do if you couldn't roast peoples code all day
Oh please
cry in a corner
He'd move to another discord server and bully their code
Good luck π
public static final synchronized void hi() {
if (you.isNoob()) {
you.bamboozle(fart -> fart.explode());
}
}```
I'm genuinely surprised you think thats what I do all day

