#dev-general
1 messages ยท Page 256 of 1
lol
I am a professional web dev now as well
React ftw
Idk what that means
You're an extinct species
feelsbad
I wish I were extinct
hehe
we dont talk about clojure in the next sentence tho
This person can't be serious
rude
just look at java, a language with much verbosity, adopted by nonintellectual people ๐ฅฒ
f u
are u ok?
good question
astrology?
o nvm ๐คฃ
This reminds me of one of my favourite nonsense quora answers I've seen
"PHD" ๐คฃ
WAIT
yes, very good phd ๐
No that's not the one lol
I've been misdirected
u got the whole squad laughing
bruh
u will not be missed
Mate i dont know what you expect other than getting blocked by literally everyone here
I come in here to drop a hot new mixtape made of rainbows and get interrupted by a massive wall of spaces
@obtuse gale ๐
https://gyazo.com/0f380008b37d6bba0b63e424cf4c65fb
this joke is fucking consumed. so please stop
me and @obtuse gale destroyed people's life
get the fuck out dude
@distant sun
ban this dude
The 'everyone' mention is disabled so you can't annoy people.
The 'everyone' mention is disabled so you can't annoy people.
what the fuck did i just read johnny
thx
blocking him is so nice xD
omg yeah
damn bro u got the whole squad laughing
so clean
@distant sun
nice
bruh that quora page, wtf johnny
Ikr
assembly is easier than PYTHON??????
yeah defo
'python has a lot of libraries so python hard to learn' WHAT>????
the fuck
Lol
this dude insane
Quora is a weird place
What is a list of programming languages ordered from easiest to hardest to learn?
Well, there are different opinions about this, but mine is objectively correct. I have worked in the industry for many years and have a really good overview of what's easy and what's hard.
- ALGOL - A classic. They used it in the 60s and in the 60s they were all beginners. Great language.
- C - A very modern language, strips away some of the difficulties of prior assembly languages. I still don't really know what the fuck a pointer is.
- Haskell - Functional languages are the new trend, I've heard. Haskell must be a part of that, then. Cool type system, easy to understand for beginners.
- PHP - I don't know. Fuck off.
- Common Lisp - yes, that's right. Common Lisp.
- Python - I haven't actually used it, but it's probably hard. I mean, it has objects and shit.
- ????
- JavaScript - I'm scared of this language. It is impossible to learn programming by starting with JavaScript.
- Ancient Sanskrit - It has a little something for everyone, though it can be quite frustrating to learn. Cool programming concepts though.
- I've run out of ideas.
Hope that was helpful, don't forget to leave a like.
HASKELL
Dont forget to leave a report
im still baffled on how this man thinks assembly is the 3rd easiest language
deluded
in what world is a low level language ever easy to learn?
๐ฅฒ
wtf is mov supposed to mean?
#1 BASIC
#2 machine code
#3 assembly
#4 python
๐ฅฒ
er
o
legend has it it's too colorful
impossible

ugh
As a person who has only posted things related to rgb colors, I can confirm
(ns Solution(:gen-class))
(defn -main [& _] (println(apply str(concat(clojure.string/replace(str(* 2(reduce +(map #(Integer/parseInt(str %))(read-line)))))#"[13579]" "@")" thnx tanana"))))
``` @lunar cypress thoughts?
pretty readable imo
Just search #in:showcase #from:Nicole#0001 and you'll find magical things
ah yes, very readable
what the hell is that satan spawn of code
Ghost pinged ๐ก
Nice
pls don't disrespect clojure
thank you
clojure bad
^
what the heck is the map syntax in clojure and why is it backwards
oh I just got the ability to post pictures
terrible
anything related to clojure is an abomination
I have been promoted to blue
"backwards" what
yes tier 2 pog
Yeah, lisps confuse me, for example why :a 1 instead of a : 1
:a 1 instead of a: 1
bruh that's not what that means
it's like the whole language has a speech impediment or something
that's not backwards
lithp
:a is a keyword, it's an own type
great idea
crazy
every day clash of code code
shortest?
lmfao
what level do I need to be able to change my nick
I think I'll write a blog entry about the ๐ magical ๐ experience of writing Spigot plugins with clojure
you need to nitro boost

don't worry we will rise up against this server administration eventually
I want my emotes
you want your nickname
we all want something
and ya'll will get something. banned :kek:
lmao
tsk tsk
yes! i can provide a testimonial if you want
so true
"old ass library from 1987"
import various.shit.*;
sure
and there we go we created minecraft
My dad wants me to make a proper blog for him and I thought I might use this to try out some static site generators
I recommend Ghost
Do you have any experience with those? So far I've looked at Jekyll (probably the most popular one), but I'm entirely new to the Ruby ecosystem and it seems a little too complex for my needs
oh static only
And now I've peeked at cryogen
how easy is it to create a website
yeah
I've heard jekyll is good
very
okay
depends on your idea of website
its more difficult to make a good website
cause i want to create the first MC TAS speedrun leaderboard website
thats gonna be pretty hard lol
long day
just make a category on speedrun.net tho
there is thousands of people that have been waiting for it
TAS is banned on there
what's ghost exactly
you can host their blog on your server and its basically all ready to go
a blogging tool
so i want to create a website for that
it's what I use
'just'
@weary epoch if you have no web dev experience, its gonna be very hard
you will need a backend to store data, maybe connections to other places depending on where the data is from, etc
ah, hmm. I'll take a look, though I wanted to try and not use some other service
you can self host
ok I'm not really interested in this entire profit section
Lisp, Elm, Malbolge, PHP, got it
runs
Lisp, Elara, Malbolge, PHP
but srsly the E stands for nginx what
profit section?
unless I'm on the wrong website, ghost seems to be all about business and growth and making your line go up
also paid subscription service
ur line must always go up
wordpress tho
and it's still FOSS so idm about a subscription
or medium
ew
So does every static site generator lul
what does ghost do exactly when you host it yourself
but hugo is fun
as far as I know, it's just a blog
most of the "growth" thing is part of the paid plan
I'd show an example but I broke my install ages ago and cba to fix it lol
Yeah ok I think I'll try out http://cryogenweb.org/ first
Cryogen is a simple static site generator built with Clojure and designed by Carmen La. It's shipped on Leiningen so setup is simple and fuss free.
then you can schedule it or post instantly, etc
Clojure ๐
Clojure ๐
:DDDDD
damn what happened to get such a commendation from the man himself
lol
lmao
aw im in ||another|| discord and they be debating if tabs or spaces are better for indenting
to the point of capital letters
โ
why is everyone debating/arguing ;-;
why is that even a debate
He sounds like good staff
lol
I bet he wouldn't delete my showcase posts
Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```
For example:
```yaml
test:
- โhiโ
- โthereโ
```
Produces:
test:
- โhiโ
- โthereโ```
No
uh oh they seem to be starting again
invite me
Yall still on that discord?
๐คฃ
please no
oh yea if this is cortex then i left ages ago
no its not cortex
I don't think it is
also
val a, b, c
``` possible?
invite me
also they be talking in #javacord
Idk why people throw shit on every other language that they don't know lol
Don't think so
fuck
Yeah it's very immature. You're only allowed to trash talk clojure if you know it
I barely know it
LIAR
nope ๐
I mean i was joking earlier, i don't mind clojure
someone sell me the autosell source code i need to make the plugin not lag
dkim .. you could;ve just DMed
Smh dkim DM it
there is no source code. only an API
matt, uve fallen to the dark side ๐
(defn process [1, 2] println)
or smtng isnt it?
guess im decompiling it then
You can find it at clojure.org/docs
Not minding and liking it is different xD
wait let me retype
anything else and uve fallen to the dark side
how immature
Imo, unironically the only "bad language" is PHP
And maybe some of the weird ancient ones
"its good, if u say its bad its cuz u cant program in it"
edit button exists
nah
ok
wut
What do you think of clojure dkim
init {
}```
init
oh rly that simple?
Answer the question
java ftw
I think of clojure. yes
try and catch and try and catch and try and catch and try and catch and try and catch and throw
try should be where you finally want to handle
Probably best to keep it outside your save function
whoever invented hcaptcha deserves nothing but pain
I'd do try catch just because usually you don't care about handling it
anyone want invite
To?
yes
is void a class?
Void is
how about int
There is a int.class
someone saying it is
ok
@half harness inv me if u still r thre
oh
bm is already
chrushing
them
my discord too laggy
to send invites to everyone
uh
they're literally done
but
there u go
they're onto another argument now
more like a debate
wait IIJ has option to decompile jars?
Javacord channel
yeah
lol javacord channel
ยฏ_(ใ)_/ยฏ
its not as big as the other one
which is why I was reluctant to invite
lol
wait where? can't find it. some say plugin: Bytecode Viewer but can't find any named that and I find 4 others but idk which to trust
kek
hmwhat
wait where?
send link
yeet an invite to me if ya have the space
we're going to concure them
this is boring honestly
no
not at all
this calin fella is odd
someone please help me. how do I decompile jar in iij? xD
double click it
I can't really explain it
There's just something weird about him
He also thought primitives were classes which is .... odd
spoilers: he's a she. xD
this is one weird ass conversation
ikr
how is it hard to understand void / null?
they ๐
oo
theyre 2 completely different things
apparently very hard
But int[].class tho (:
that one guy saying u should use null instead of void is hurting my brain
im out of there kek
woah u can make apps with java?!
yes?
...?
im having trouble choosing what I wanna focus on, mc plugins or game development ๐ฆ
both
if u work on both at the same time and start procrastinating, switch to the other project for productivity 
Or just procrastinate on both, like i do 
๐ฆ rude
imagine downvoting that
if its a deluxe tags thing ask in #general-plugins #general-plugins-2
haha yes
And xml ๐คข
wut
say that to my face
It's Gojurust
Obviously
The title says it all.
#1OnTrending
Functional programming focuses on immutability, recursion, first class functions and purity
If you've used Java Streams, they're heavily inspired by functional programming
I don't know too much about FP but I'm trying to learn a lot about it, it seems pretty interesting
CalinToday at 20:12
I don't really understand the difference.
Isn't that something you can ALREADY do?
Brister MittenToday at 20:12
Wdym?
CalinToday at 20:13
Immutability, recursion and shit.
You can already do that.
Brister MittenToday at 20:13
Oh yeah
The other key difference is that Functional languages are usually declarative rather than imperative
You focus more on saying what to do, rather than how to do it
sorry wrong channel
nono carry on
if you insist
fun functionWithSideEffects() {
println("blah blah blah")
}
This doesn't return any explicit value, so the compiler infers it to return Unit
so you can do stuff like
val unit = functionWithSideEffects()
and it works fine
Yeah, the type system is contract based. I don't have a great example at the moment since we've not finalised the syntax, but essentially you can program to types' contracts.
So for example
< T { plus(T) => T } >
let func(T blah, T other) => blah.plus(other)
This function accepts any type T which defines the method plus(T) => T
[19:30]
It's essentially duck typing, but statically and strongly typed
[19:30]
Kinda difficult to explain
nice xp
thanks
wut
nothing
lombok good
wait u actually like it?
I used to
I was just sarcastic
I dont use it anymore
ah well
it legit does save time but there are actually gud options out there
Why is Lombok bad?
- It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
- It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
- Lombok'd code won't show in Javadocs
- The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
- Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
- While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
- Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
yeah thats why... I don't use it
It complicates your code sort of
but well Ig its a good tool
altho it comes with more cons and pros
Lombok is the worst thing to ever be invented
its good if ur doing a small project whree it doesnt matter
kotlin 
and at the end it doesnt provide any meaningful value
but if you're making a large scalable project then nno no
i dont use kotlin because I like looking cool
yes good reason
longer code makes u look smart
๐
๐คฃ
ye I guess that's somewhat true
i would argue kotlin makes u cooler ๐
time to ditch util methods
arguably julia is nicer than kotlin
Eclipse ๐
NetBeans
altho dynamically typed (julia)
oo tough decision
which sucks
DrJava
Julia is beautiful
it's amazingly fast too
yeah
but at the cost of being dynamically typed which if I understood correctly isn't nice
or like enforcing it
Everyone goes through the lombok phase at some point
How do you guys like people that do this: Request plugins for some money, then distribute them (paid or free)
note that I don't do this because I can code myself ๐
what
hmph
Depending on the agreement of the request, that's illegal
Julia dynamic typing is fine - it still has type checking, doesn't compromise on speed, etc
basically someone requests something in #794429922454142986 then distributes
oh then allg I guess
Depends on the pay and if they make that explicit
pay: let's say a normal pay for #794429922454142986
explicit: yes
also what about explicit: no
just curious on ur guys thoughts
Like i said, depends on the "contract" with the client
My terms are usually "you can do whatever you want with it as long as you credit me"
But it depends on the person
Graal or nashorn?
For example i've done a request where the client purposefully asked me to publish the plugin for free
๐
Well Graal isn't deprecated
not so fun when you get in legal trouble for violating contract terms
Nashorn is
why?
idk tbh
u or they publish?
Probably because it's slow
Me
ah
I don't care
ok
fuck I have to download graal as a runtime dependency probably
how about paid plugin?
I hate this
Don't really care either
are free plugins allowed to have runtime dependencies or like download at runtime?
i mean, its just discord
Yeah
Lets go babee
Might as well use nashorn or shade a different JS engine then
Every software has a license, even if it was just on discord
It's intellectual property
how do I add a license?
GNU GPL 3.0 the best
lol
WTFPL
because if I put it in the jar then they can just remove
most of my projects are WTFPL
;-;
MIT or WTFPL
so there would be no proof that I own
MIT is also good
file data that says it was on your pc
Decompiled code will never look the same
That's why you make it open source 
true, just provide the original source
hmm well I'm considering adding support for
TOML
HOCON
JSON
YAML
JavaScript
Skript
XML
Kotlin DSL thing (Idk what it's called but file extension is .kts)
Groovy
so probably need to download and remap at runtime :[
oh
they can decompile it anyway lol
or that, make it open source / Do What the Fuck You Want to Public License
i swear weve had this discussion before on why obfuscation is bad dkim
yeah
There are only good reasons to OS
but do I just add the LICENSE file in github?
yeah
but do I just add the LICENSE file in github?
nothing else?
only bad reasons to obfuscate
I would also put it in every class in the file
You can have license inside the jar
the entire thing
What
thats my rationalization for pirating plugins ๐ค
do I put the entire license?
ye
But none of that matters, if t he code is yours it's violation of your license (depending on the license)
in resources folder?
like for custom stuff
Yes
Also @prisma wave an interesting question, a Kotlin class, let's say just a normal class declaration, no variables or anything
If you compile it, it would in theory run in JVM without needing the std lib right?
MIT or WTFPL
Probably
time to test
omg uve figured it out! no more 1.5mb jars! no more shading!
HTML or XML or XHTML?
xml
._.
haha

damn thats crazy
My question is specifically for PDM actually, since let's say you need to download the std lib at run time it'd mean that you would need to run std portions of the code, so it would probably NCDFE
Yes that's the entire point of the lincese lol

Copyright <YEAR> <COPYRIGHT HOLDER> 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. ```๐
That's why PDM is written in java
It's supposed to be dependency free
Yeah, but let's say it have it download on load, and let's say I have a constant that has std lib stuff, it would fail, since would be called before downloading
So might be safer to always include it in the jar and pdm the rest
Possibly
Dkim, you seem to worry a lot about people getting your code and using, just remember, no one really cares about our shitty code lol
lol
That's arguably just a symptom of doing too much in the main class though
Yeah
good point
very good point
time to open source all my code
๐
Wdym?
mf-cmd ๐
mf-cmd is wayy to complicated
plus all you do to make a command is just register and code the command ;-;
boilerplate
matt be typing for hours
do plugins written in java 11 work on java 8 servers?
Ah yes because this
@Default
public void command(Player player, Player target) {
player.sendMessage(target.name());
}
Is totally more complicated than lol
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if ((sender instanceof Player)) return true;
if (args.length < 1 || args.length > 1) return true;
Player player = (Player) sender;
Player target = Bukkit.getPlayer(args[0]);
player.sendMessage(target.name());
return true;
}
but then why would u write in java 11
Too confusing!!
Because it's good
because java 8 is as old as 1.8
are the java 11 lambda switch case things any good?
yeet
-> thingy
Is that 11?
i thought that was 8
I thought it was 14 or something
Im still on 8
I am on 8 only bc minecraft wont run on >8 on my machine
Ubuntu 20.04 feature, not a bug
12*
Minecraft 1.8?
java 8
Java SE 12 introduced switch expressions
The client and BuildTools at least breaks on J8*
Ah my bad, close enough tho
bc I have to switch versions for anything higher
mhm
You can't complain then
If you wanna use legacy MC versions then you get legacy java versions too
but what if I want custom help menu or console support ;-;
u get that bro
Mojang smart for not supporting legacy versions
why is that smart
"legacy"
Then do a custom help menu lol
And Player player -> player only
CommandSender sender -> console and player
ConsoleCommandSender console -> console only
That's their problem
if they cant make the 1.16 combat good then people are gonna want to use 1.8
im pretty sure thats the only reason people use 1.8 is for pvp
The world would literally be a utopia if people weren't still using 1.8
and I usually end up coding a shit ton of kitpvps plugins and stuff for 1.8
thats true I wouldn't have to worry about the buggy 1.16+ chat api for legacy clients
thats why my chat plugin broke because ppl on 1.8 reporting it for not being supported
1.16 API is better than 1.8
Hey everyone
Yo
My cannon jars that break every API method there is and cost me $5000
Who's read this book?
They are WORTH IT
Cannons are 8% faster!!!
Yes
Why won't YOUR plugin work on MY CUSTOM MADE jar
nvm
I only changed the revision
its buggy as hell in 1.16
I liked it better when it was just called the old thing
Anyway @fresh mural where were we?
People here are smart so you can ask for a review if you want
Well, now it just feels awkward continuing a conversation in a new setting, in the middle of a GENERAL chat.
Yeah dw about it
that's what dev-general is for
Development is for support
This is for smart people chat
nah
?
I wanna make a tutorial soon, though.
;-;
lOL
java is forward-compatible isnt it?
Kind of
^ lol
Join the club
haha thats the best answer
Anyways.
i made a tutorial once then i got yelled at for using a company server box
Not even Java knows what it is
Can someone rate my Iterable blueprint for Janky?
its janky
Janky is my own custom language.
Nothing yet
go is a good option :)
I do have 2 things for you, though
wut
GitHub is like programmer PornHub because you can find malware on it
no yako =/= yakko
hm
@prisma wave hows elara going
wtf
Brilliantly
That was the joke
Have you seen the Dave factory
is there a way for me to try use it?
compile time 35ms
"Elara is committed to providing patients the right care, at the right time, in the right place. The best High Quality Home-Based care for the elderly."
@stuck harbor Wdym?
if there's a doc i'll take a look and maybe try it
Oh shit, that's huge-er than I thought.
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
I gotchu
i wish my comments were that nice
Even better
imagine not commenting your code
my comments are just
System.out.println(player.getDisplayName()); // If u dont understand this the fuck are you doing lookin' at my code
lmao
Better yet, only use doc-comments
Normal comments are okay.
But I read a post on DEV showing that they are clutter, and it kinda hit me.
Who here uses DEV?
hm what
I barely ever us //
@prisma wave yes.
not actively
it's always */ for me
i see links to posts on it though
Good comments are like this:
/**
* -------------------------------------
* THIS CODE PRINTS HELLO!
* -------------------------------------
*/
System.out.println("hello!");
r/programmingcirclejerk is all i need
Brister
my comments are so bad
If you have DEV, you should follow me.
i dont have an account im afraid
Oof.
@ocean quartz every plugin on spigot when starting up
Ikr lmao
Can anyone review my bp for Iterable?
cough frozenjoin cough
@fresh mural where is KT being defined?
np lol
pfff trash dev leave the discord i cant believe you would mess up like that
@dry coral dam you right
damn sx would probably have screamed at u
whos sx
lol
The troll?
no
@prisma wave
How does "SX" => "BM"?
it doesnt
Sx ๐ญ
nah sx was a guy who got banned a few months ago
he was very clever tho
anyway
i digress
big brain, big mouth
Without Sx the dev chats are just missing that spice
oh no thanks
It's not graphic
but it's something my age shouldn't do
or something people say I shouldn't do
We had another dude come in and add the spice, it wasn't great
๐คจ
wait who was sx
we need spice bring oregano
Sxtanna
sxtanna?
yes
Bump or something like that
oh Bomp
Yeah
he was an interesting character
they are a developer on skeppy server now
Who?
apparently we were all using hashmaps wrong
LOL trash server
blomp = free 150 gb storage
I know the the MOST INTERESTING character!
@hallow crane sx or bomp?
sx
Karkat Vantas.
They're Vantasic.
Sx works on invaded?
yes
didnt know
me neither
until i went there
and iwas like oh i recognize that name
good luck with that garbage
@prisma wave Don't worry, you're still pretty interesting!
2nd best to Karkat, promise.
better than nothing
Poor dev team is probably getting eaten alive by sx
omg i cant imagine
you're still pretty interesting
just them 2
weekly code reviews, he just slaughters everyone
What even is this general chat anymore?
y he got banned?!
because hes a badperson
back to your original question calin
required private seems like an odd mix - given that excluding a private function would always break things, why have that?
๐
gotta pull a bit more on the cade to start talking trash
Just let it settle
jk jk
once it's added to the language, it will all fall into place.
I know it seems odd
not me playing kit every once in a while


