#dev-general
1 messages ยท Page 557 of 1
Many
https://paste.helpch.at/uraxowalec.cs you know you have absolutely no idea what you're doing when you write code with naming like this lol
parts of it are basically me going "so, a name for var17... er... no fucking clue, that'll do for now" lol
https://pastebin.com/ZF3fcric so youโre implying my code is bad!?!???
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
wow
there's certainly a lot of lines there
and a few of em are a little too long apparently!
๐คจ
that's the pastebin experience lmao
i have a 1080p 27" monitor
i wonder how many columns that is
maybe 80
140 i counted ๐
I will pr this to krypton
lol
you will most certainly not PR this to Krypton
You have triggered my beloved engagement to make fine contributions ๐ซ
You're either a smart fella
Or an intelligent gentleman
or a dumb hoe
Or a bakugan nerd
or a dog eater
Or a fake pepe
Or a potato
Uh I donโt have any others
clap clap clap
I win! ๐

Daily spigot resource upload
Oh that's an eclipse moment
๐คจ
One blocked message 
๐
Senpaiii
man we need ipv6 tho
The worlds running out of IPv4
ipv69
Wait what
Wiki about the CI of CodeMC
The first one
Iโm so tempted to use it but itโs illegal lmfao
Old news
@ocean quartz any idea how to get kotlin dsl extensions to work on groovy?
I think you need to use those gradle closures or something like that
๐ฌ
doesn't it only work inside CodeMC's machines?
just so that people can use it there without buildtoolsing every time
nope, you can go to the repo url and see the jars
๐
Do you think that if i make documentation (but not actual javadocs), it will suffice?
I feel like some parts are self explanatory, but I just need to guide my users to what proper classes to use
and give a couple examples
definitely give some exmaples
but you 100% should have full javadocs on every public facing method
even redundant ones
i just did it
custom NMS items added to spigot via reflection
they dont show up in inventory (will prob need to substitute the item via protocollib or something), but the server still counts the items when i do /clear
ok ๐ฅฒ
theres like a tiny white spot on my penis
is there a way to fix it
and what does it cause
fr tho me serious
Sir, this is #dev-general
where do i go
go to phub
for legal reasons i must say to go the doctor, probably
Sir this is #dev-general
If you're serious then you would ask a doctor instead of us
The 'everyone' mention is disabled so you can't annoy people.
damn thats crazy
lmao what is going on here
Just your typical #dev-general conversation
true!
Tes
I just realized, I don't write code, I just help my IDE write code and assist it with logic and general outlines

I used to use notepad++ for discord bots (in js ofc)
It was hell
Want to find an error? Run it.
That's what it's like in the first two classes of Java at my uni
Everyone uses NP++ because they don't know how to use an IDE lol
Lmfao
so they run javac like 15x to get all their syntax errors out of the way
it's a real pain
Were you one of them?
no lmao
I've known Java for years
I finish the timed tests in 10 of the allotted 110 minutes
syntax errors
Imagine making syntax errors
I can understand issues with generics, casting, imports (?) and that kind of stuff... but syntax?
I mean formatting's nothing to do with syntax errors
If you can't read it its hard to see anything
it helps but it's actually irrelevant
Including errors
Also- is there some sort of test to determine my skill level with java? I want to see how much I actually know
Okay
idk I always feel like I'm constantly improving
Same
Typescript bottoms out though, its sad
Like adding new stuff just takes time now, no googling or anything
Minecraft
do the LinkedIn one lmao
Am I even old enough to have a linkedin acct? ๐
uh 16?
Nope
yikers
๐ ฑ๏ธerhaps
it's called "unable to pay internationally due to stupid country restrictions" okay? ๐ฅฒ
I support them honestly
They provide 95% of my online interactivity
they deserve a little something for that
Oh yeah same, I just get other people to buy me nitro or whatever and I give them a plugin
Theres a pretty good one on plural sight
You can safely relocate Slimjar right?
yes
lmao
Go for boku no pico :)
Damn why havenโt I thought of this
Its genius
What I just said, but to you
Its genius
tysm
can you for Christ's sake stop pinging me?
lol ok
lol I did a thing
I wanted a sweet gradient from "red" to "slightly less red"
ended up with this....
I mean it does go from red to slightly less red
but not how I was expecting xD
๐คฃ
Thats pretty cool ngl, deffo catches the eye xD
How did that go again, creepers were made by accident, right?
Anyone attended decode with google?
no but you are about to 
What?
idk
lmao
xD
this is better
Some thing google makes an announcement on or something
oh
kinda like a talks meeting/event sorta thing?
I guess yea
Celebrating the globally impactful products and technologies made in Israel.
Thanks for joining our virtual event on Apr 21, 2021!
In case you missed it, here is the full stream.
00:00โ | 15 years of innovation made in Israel: Yossi Matias, VP Engineering, Head of Google Israel Engineering Center [EN]
05:55 | Greetings: Prabhakar Raghavan, SV...
seems cool ig
E
E
alr
You are saying that you werent mad but why are you commenting things on my yt channel?
its good to express your anger
k
i dont get mad usually when i have a quality discussion
when you said java was useless i thought you used it long enough to say its useless
but judging from your past conversation and your yt videos
i just think you arent qualified to say that
thats what i mean and i meant to remind you of that
to put it simply,i hate you for your arrogance
@fleet bay
yeah
The discussion was already over
how old are you..
omfg
also to say that java is useless implies that you have used java to every aspect
but the argument you gave to support your stance was very weak
there isnt any languages that are useless
๐ฉ๐คฆ๐ฝโโ๏ธ
and you litearlly said "every language is useless" yesterday
which makes you sound completely stupid
and you still kept directing hate like its the end of your day to not start a drama
and pretended like you knew everything
throwing some emojis wont make you look smarter
and trying to pull off a chill tone or whatever you call it to shake it off wont work
Dude idc
if you dont care why bother coming here?
You are just saying useless things
i think you said useless things before?lol
"every language is useless"
"java is uselss because website doesnt use java"
yeah i wont
๐คฆ๐ฝโโ๏ธ
this will be the first time and the last time
good
i am just reminding you of how you should behave
ok you sound like a cheeky kid right now
i regret having conversation with you..
and have a good day
hope you will learn more about java
to the point where you can use advanced facilities
before going for another discussion
(also admin has chat history and they can see you keep saying idiot to me dont even bother deleting messages)
sorry for bringing this stuff here admins
i just feel like properly ending the drama yesterday
DMs exist thank you
Don't care
Sheesh
@prisma wave uh mind giving me an awesome explanation for applicative
Is that just any functor which takes something and returns something or no?
Function<Object,Object>?
which takes something in and returns something
or maybe Function<Optional<Object>,Optional<Object>> which wont throw npe
I have no idea honestly
I think it is just a more advanced form of a functor
In functional programming, an applicative functor, or an applicative for short, is an intermediate structure between functors and monads. Applicative functors allow for functorial computations to be sequenced, but don't allow using results from prior computations in the definition of subsequent ones
Yeah so uh
so many words
It's basically the same as a functor except it has pure and takes a wrapped function instead of a normal function
Rearrange that and you've got a Monad
Ah nice
Lingering potions don't have an entity name ?
they're probably classed as splash potions
public interface AreaEffectCloud
extends Entity```
AreaEffectCloud has 28 methods, 1 extensions, and 7 super interfaces.
Represents an area effect cloud which will imbue a potion effect onto entities which enter it.
public interface UnsafeValues```
UnsafeValues has 9 methods.
This interface provides value conversions that may be specific to a runtime, or have arbitrary meaning (read: magic values).
Their existence and behavior is not guaranteed across future versions. They may be poorly named, throw exceptions, have misleading parameters, or any other bad programming practice.
can someone tell me how to put an entire plugin on the github page without doing copy paste everytime ?
ugh. make a new github repository (empty one)
and it will guide you on how to push from local
do u really want to die? xD
it's area effected cloud stuff
It's like two commands lmao
- and? I Don't remember them all. I gave him the best answer I had
I know you have to git init first, then you have to add and commit then you have to set remote or something like that
and your main branch
ok. I'm out. bye
bye
bye
๐
yea it just create a respitory
can someone send me a 1.17 version of Authme, (that works) ?
ping me if anyone has
you can probably get it from their jenkins: https://ci.codemc.io/job/AuthMe/job/AuthMeReloaded/
ty
https://paste.helpch.at/cacufezihu.cs when you clearly haven't a fucking clue at all what you're doing lol
if anyone here knows anything about how aquifiers work btw, please lmk lol
https://paste.helpch.at/mapewurara.m entire class ๐ฅฒ
Do you have a limit of lines you can write in a file?
Yes
im starting to dislike kotlin after reading this
val....reminds me of nasty var in javascript
that caused way too much troubless
why val if it is statically typed lol
that's just type inference, the compiler is still very strict about what types are what
ohh
Keyword names donโt make a language inherently bad
something like auto?
the compiler figures out what the type is from context
it matters if it is something like var in js
I know another language with type inference
Well it isnโt
type inference is good then
like auto keyword
let the compiler figure out the data type
I know a language with really good type inference
which
oh no
don't ask those questions
Well
i can see that coming but still
i forgot which language was that
I will give it to you straight
lol
I am of course talking about Haskell
oh yes haskell
Did you know in Haskell you theoretically never have to write a type declaration
of course it's Haskell
?
my ass
lol this server is so diversed lmao
?
meh
we have got anti java,
kotlin lover,haskell lover what else xd
they're all the same
?
kotlin & haskall lovers usually are very anti java
its more just two people, intellectuals and java users
Well
why tf are people here so anti java lmao
I wouldn't say kotlin fans are "intellectual"
they're classed as intellectuals to understand that java is not that good of a language
what makes java bad tho
maybe i use c++ all the time so i dont really know much about jav
java
a literal baby could understand that
a lot of stuff. but @ruby dew you're really in the wrong channel. lmao. in here a lot of languages get hate. bcz people just switch. you don't understand. I learnt kotlin bcz I was forced by apl mitten. now he keeps telling me I'm dumb for using kotlin and not haskell.
but the thing is... he's the dumb one xD
Haskell without functions when
yeah. basically
every language that he doesn't use is bad
Lol facts
hmm
you will get used to it. maybe. idk. still ain't used to it
Java without classes when
im not used to people so anti java all of a sudden lmao
like 2 years ago this server still loves java so much
dw. he still uses java lmao. its just that we're in #dev-general so he can say whatever he wants lmao
Software without hardware when
lol
was going to say; hardware without software when. but yeah. that's in the past. already been made. lmao
assembly > all change my mind
Lmao
Myes
hardware without software is possible
it will be a light switch or some sort
or maybe your oven (old ones)
Random blitz stroke
took your small brain out, threw it in the trash and put a bigger one in
is it not obvious?
lmao
Haskell bad
Haskell bad
Food bad
APL good
my life is bad
APL is the best language
assembly the best language
APL = Athletic Propulsion Labs
Just wrong
perfect control over the whole software
Plain qeojf
so I guess not that bad
wrong
ok lets just use skript
APL stands for:
Athletic Propulsion Lab or
American President Lines
Blitz kindly ban this being
why? I think skript is great
LMAO
best language to ever be written
who let you on the staff team
I mean Skript is objectively better than anything
whoever made it is a god
Heโs the staff team
i mean skript is good
dude you use notepad as the IDE
notepad is literally the most underrated ide of all time
Lmao
notepad? imagine not using Paint MS ...
oh yeah we can do that too
or amybe paper and feather
I've written code with paper and ink for 4 years
and it was in C++. 
Agony
hey. good thing is I finally finished, passed the exam and haven't used C++ since. or pen and paper to code. and its been over a year
I barely remember anything c++. Just remember that pointers were a pain in the ass.
for me at least
i learnt c++ out of my own interest
and got into hell myself
havent regretted it tho
its actually fun
I had to also use Code Blocks. And not even a new version. had to use like a 10 yo version or something. 

code blocks the compiler. not discord's code blocks
I actually think it was named
Code::Blocks
Indents are pog, just like at python (:
its white theme. and the version I was using had a windows 98 theme. xD
lmao primitive life
you should've seen the computers we had to use them on xD
some 2002 PCs with Vista on them, donated by nato or whatever
so codeblocks is at version 20.03 rn. But I'm pretty sure we had to either use 10.Something or 08.something
so confused.. is this helpchat for discord?
nope
more for minecraft and development
ide*
Has anyone else seen the source code to CMI and wondered how it works as well as it does
Called escape timings /s
uhh anyone know how to bring back the problems tab in IntelliJ?
Analyze -> Inspect Code
@SuppressWarnings(new String[]{'A','L','L'})
I am looking for a library that allows me to create maps on Item Frames (split over multiple to give the illusion of one large screen) and update that screen with a new image.
Example use case: Create a large screen to display live stock-market ticker graphs. Every time new data is fetched, the old image is replaced with another graph with updated data.
Anybody know of one?
Maybe minecraftmedialibrary
https://i.imgur.com/W5rsceR.png intellij gradle version warnings can get a bit..
you mean.. cough, EzMediaCore?
is that real
pulse renamed it to EzMediaCore
oh lol
isn't that for video
Forgive me senpai lmao
Not sure, pulse did put in some stuff here and there so itโs kinda like a mystery box
Johnny has one as well I think
can you link
Oh yeah I tried using that
it's outdated but that's not the problem
It doesn't update on itemframes
Or maybe do you know if there's a library that generates a screen from holograms that I can display a buffered image on
Holovid?
Only for videos :p
I'm looking for an image displaying solution (map, hologram, etc whatever) that allows me to call some sort of update method with a new image
Make a video with only 1 frame ๐
Isn't that going to be resource expensive when I am updating at about 1 frame per second
so I kinda did something by accident. I moved the terminal in my IJ Out of its fixed place and now I can't get it back there
xD
please help me
oh nvm
there was a button for that.
yeah. usually apps like phtoshop etc. just allow you to drag it back in place
that's why I was confused
xd
True
o
Less go
oh
there is apparently going to be a theme
so perhaps elara won't work
but we're a clever bunch
we can think up something even better
mhm
also using some library (parsec, antlr, etc) is probably a good idea or we'll be at a bit of a disadvantage
Yup
yugi...
Its not loading for me
Whats up?
oh
uh
idk what that yup was for
where is it?
doesn't matter
lmao
Whelp. It's a shame neither of you can join the language jam. Did you not see the entry requirement?
it was strange for a sec. I said yup moved to this channel to see what you guys are talking about and I see you literally sent the exact same message 3 seconds early
that is evil and cruel
i am in tears rn
lomao
๐ฅฒ
Actually I can release 1.2.5 now
Ill do it before sleeping
Do it and you're cool.
I'll get excited when I see it.
LeaderboardCommand class in the leaderboard package or the commands package?
trying to package by feature
If it's by features then in the leaderboard package
It's made in swing so that'd be a bit too advanced kek
was PaperConfig class moved? in 1.17.1 api?
Doesn't seem like it, but i could be wrong
PaperLib still uses "com.destroystokyo.paper.PaperConfig"
Starting to look decent ๐ฎ
is that mf-wiki?
ooh I am liking it!
Just a wiki I am making
wait r we looking at the content of the wiki, or the wiki software itself
cuz i was looking at the software
Software
is it on gh?
Yeah
link pls
thx
Pretty cool matt. Pretty cool.
Imma be honest I don't think i ever got it to fully work with Groovy xD
time to go back to ant
๐ฅฒ
finally figured it out
groovy tries to call call on anything invoked
so had to provide a diff functional interface
๐ฅฒ
im bored just gonna make a library that allows you to mess with offline players inventory and stats
is this a good idea?
any existing projects regarding it?
isn't there a repository where it's about writing bad code?
?
wasn't related to you
Yeah canโt remember the url
Or the name
I need to find it
๐ฅฒ
๐ฅฒ
๐
Thought you were talking about github.com/IntellectualSites for a sec
๐ฅฒ
Lmao
sadly I'm aware of that stuff :p
LOL OMG
WTF
ahahahahahah the code wtf lollll
Now, should I modify all methods or only a few?
nah
this is the best project ever
i should download it and run it in my oven
i usually play minecraft in my oven
hope it doesnt bake my whole cpu
how is there not a single nested/inner class in the whole project?
What the fuck
:))
The only good practice there is the try-with-resources instead of a try-finally + close lmao
package dev.jaims.terribleplugin.storage
class SQLManager {
init {
throw UnsupportedOperationException("Not supported.")
}
}
LMAO
I only did that because I needed a reason for an inner class lol
What was matt's chat dependency called again ?
matt msg?
๐
-_-
should be stackoverflow
plugin configurator or something like that xD
LOL
or skript user
plugin deveoper -> configurator
there's so many good ones
plugin developer -> professional skript user
speak for urself
Code highlight! ๐ฎ
Haven't made the theme yet, just needed it to work
still ugly
๐
there is something that makes me love this doc so much
@surreal quarry hey can I add my own linear congruential generator to TP?
hot
the dark theme probably? xD
The Matom one dark theme probably
const test = "hello"; ๐
the dark theme with the code highlight is heaven
Shit is so stupid, it actually wasn't highlighting anything unless i put some js code highlight at the top ๐
public class LinearCongrentalGenerater {
public static long MULTIPLIER = 6364136223846793005L;
public static long INCREMENT = 1442695040888963407L;
public static long next(long seed, long salt) {
long temp = seed * (seed * MULTIPLIER * INCREMENT);
return temp + salt;
}
}
```nice
though I should probably make a long factory for that
would that even work?
looks like it would overflow, but maybe im underestimating how big long actually is
that generator will work
the long factory might actually get limited by the size limits of an array
which, for those of you who don't know, is Int.MAX_VALUE
actually, no
fastutil
big arrays
:wesmart:
what looks like overflow? the linear congruential generator?
I mean, it's used in vanilla Minecraft
ยฏ_(ใ)_/ยฏ
though actually, I'm an idiot
the increment should be added, not multiplied
wait what?
yes
go for it lol idk wtf it is but iโll merge it :)
a linear congruential generator is a random number generator
alright then, lemme look up terrible RNG algorithms
https://www.johndcook.com/blog/2019/04/14/randu/ this might do
I needed a bad RNG for an illustration, and RANDU turned out to be even worse than I expected.
lol
nah, I want something that's truly terrible
like something that's meant to do a good job and doesn't
to further sell the idea that terrible plugin is made by a developer who actually has no clue what they're doing
Changed how the single code block looks
public class RANDU {
private static final int MOD = 0x80000000;
private static final int INC = 65539;
public static int v = 123456789;
public static int next() {
v = INC * v % MOD;
return v;
}
}
```I think that's the algorithm?
lmao
public class RANDU {
public static int v = 123456789;
public static int next() {
v = (65539 * v) % 0x80000000;
return v;
}
}
```there we go, inline the constants to cause even more confusion, and always use a fixed starting seed lol
imagine actually paying per hour and not paying bad in #871306912342343701
one question, wich one is better to use for mc plugins java or kotlin ?
whichever you like
is java easier to understand than kotlin ?
Depends on which language you know, if you know kotlin but don't know java, java will be harder
Both are easy to understand when you learn them
Kotlin is slightly easier to learn
Depends on which language you know, if you know kotlin but don't know java, java will be harder
idk if I agree with this tho. It will be harder bcz you don't know it but it would be not that hard to learn it
Then I will learn kotlin I guess
I Would strongly suggest you learn java before kotlin.
and that is because java has more documentation, and kotlin documentation sometimes just says: "it acts like java's ...something...something..."
without explaining.
or at least that was the case 1 year ago
I think Kotlin is pretty well documented
And I think Kotlin teaches you Java better than Java
oh also, @surreal quarry, can I please make TerriblePlayer's methods use randomness as return values?
Sololearn added kotlin ๐
e.g. replacing 0 and false returns with generating random integers and booleans lol
yes
They had it for a while
when I started "learning" java, they didn't
They did, it just wasn't in the main page
oh
Why is this?
hm?
It just depends what he wants to do, if he wants to learn android apps
well. he's doing spigot plugins
.
so pretty sure he won't need it
I find both are equally fit for the use case
especially due to Kotlin's interoperability with Java, and vice versa
both work sure
Idk itโs a tricky question just learn them both lol (you somewhat need to)
But you should learn java first
^^^^
Yea at least basics
I agree with him this time. even tho that's not what he told me 1 year ago
imo kotlin is like DLC content, it might be better in some cases but you should complete the base game first
smh
u're not that lucky
yeah lmao. u relly think girls will ever talk to you? smh
stfu Blitz
wasn't talking to you baby. u'll get all the girls โค๏ธ
Girls are a myth
says the man that has a fiance. smh
you guys go outside sometimes?
yeah. sometimes.
says probably the only engaged man in this Discord chat
I almost talked to a girl on acciedent
well. you see. clip is married. has kids as well. so I guess that's why he's the boss and we're all his slaves
lol
nah. you just dreamed. dw
no girls were anywhere close to you
๐งข
I love talking to girls, I just don't hit off on any of them
๐ the ๐งข
yea don't hit them that's wrong apperently
okay, maybe I just shouldn't try the slang
I understood what u said
Ugh it uses Java syntax highlight for Kotlin and Groovy as well ๐ฉ
on a serious note though, is it just me or are girls so, so much better at helping you through emotional problems
what do u think
Depends a lot, some girls will kick you harder when you're down
that's just called having shitty friends mate
idk. I Usually don't get help at all.
Development general
if the boys don't make fun of u are they really ur friends ?
If you can't open your feelings to your homies they aren't homies
yeah
In the netherlands it's different
I mean, I have a very, very good best friend who I can talk to a lot about my emotions, so I'm kinda lucky like that
I guess
yeah. And if you can't open the windows at your home it isn't your home
yea I have one friend
but I don't talk about those stuff
yes please!!!
socially awkward teenager club?
I would say I will
what if he said it
I'm almost 20 -_-
What would you do
lol
I would eat it
Ok good
I don't like cheese
only melted version
versiom? is that some type of chese?
-_-
I don't know the type of cheese. If it says on the bag: Cheese I just eat it
I Probably ate a few bad things thinking they were cheese bcz it said it on the package
jesus fucking christ
Man of culture
Int indicates an integer (whole number), such as 42.
Double and Float are used to store decimal numbers, such as 12.4.
Char represents a character, such as 'z'.
Boolean has two possible values, either true or false.
arent those like java's
Similar yes
Kotlin has all of the same "primitives" as java
ooh
Are arrays primitives?
Let me tell you why that's bullshit. He says after waking up
Kotlin doesn't know what it wants, Kotlin is like "we don't have primitives"
Also Kotlin
Kotlin does have primitives, they're just not shown in code
just do val num = 42
and it will know it's an int ?
also, const = compile-time constant
type inference
the compiler can figure out it's an integer from the context
Java has it as well as of 11
10*
var age = 3
it's warning you that the explicit type is redundant since the compiler knows it's an integer from the context
what about it
maybe that's just for tutorial purposes
I did the same
what about it
the official Kotlin docs (which is what you should be using btw) won't do that
cozy. so basically. you can set the type if you want, but in most cases it will not be required.
i dont think its ever required
@normal talon https://kotlinlang.org/docs/getting-started.html
kotlin also doesn't require ;
actually, start at https://kotlinlang.org/docs/basic-syntax.html
at the end of every line
yeah it does not
it's never required for variables
sometimes
I don't like reading at all they use that in school
Reading is more important than writing
the only place the compiler needs semicolons is when it can't actually distinguish where one statement ends and the next starts, such as if you put 2 statements on the same line
end of enums โน๏ธ
and that
embarrassing
ikr
also, ```
Task :server:compileKotlin FAILED
e: java.lang.OutOfMemoryError: Java heap space
lol
yikes
data T = A | B | C deriving Enum
No semicolons needed :)
k
m
I don't remember asking
BM what about making the assign operator thing to a ;
what
why
Why not
sadly impossible
Hpmhph
= isn't overloadable
Would it tho
Tho it tho would be tho
Btw I need an opinion on this
Should I let api users instantiate a class or do I provide a factory which is responsible to do it? Like
ApiObj::new (new ApiObj(...))
or ApiObjFactory::create
class Rectangle(var height: Double, var length: Double) {
var perimeter = (height + length) * 2
}
What does double point do in kotlin
yea what does that mean in words
Itโs to define what type that parameter is
Depends
On what specifically?
I mean it course it might a great way to ensure implementation control all instantiations but like yeah idk
yeah pretty much
If your constructors are pure and don't have any great boilerplate then just use a constructor
Otherwise the factory pattern is probably smart
why are java docs so freaking ugly
Alright thanks
because its old
Theyโre sexy
kOtLiN dOcS aRe nIcEr
yea it's nicer and readble
Triumph Docs ๐


๐ ๐ง ๐ค