#dev-general
1 messages · Page 223 of 1
mans using arrays
text editor like vim or smth?
what about 1 more
yea ill do 1 more
I'm not doing anymore
I already spent to much time
doing thos
oh wait
I might've not uninstalled eclipse
even worse
what a beautiful site https://i.imgur.com/rIP8v4t.png
than reinstalling it
I was joking lol
@static zealot I know you love math
bruh
you can take it and shove it up your ass but shove it hard so it never comes out
Saw that one Frosty its exactly what I would do actually
yea id probably do a != thing too
thats just a false statement
just shut up Conclure and tell me how to use Eclipse
yayy i finished
gg wp
good jobe dkim
🥳
someone explain to me
what do I need to do
because their blog doesn't exist
i speed join clash of code games
because I can't stop clicking them
simping for clash of code, huh I see how it is
right
food can wait BM
golden syrup applied to crumpets
code can not
it's coding time 😎
wow
time to use python :)
prob python
I haven't used python in years
I do
oh
it has no S
"hello" appears in "hello world" once so 1
I just almost destroied you all
WOAH
😭
what the hell did I do wrong?
barry mean to me
time to make this as small as possible
wait why you only got 16?
I don't get it
what did you do worse than me?
oh
...
@steel heart
you checked text.contains
instead of str.contains
smh
we both fucked up Conclure
xD
why do I have 4head
im ignoring so many indentation rules in python
y
to get less chars
lol
bcz turns out you need to check the case as well
do you not hit play all test cases before submitting
lol
I did test the first 3 tho
im not going to get this on time
I didnt test
im pretty sure 4 was the one with upper/lower lmao
xD
yeah it was ignore case right?
yea
yep
did you see what conclure did?
xD
just check his code
you'll laugh
hard
https://i.imgur.com/rr0zsHG.png momento estupido
welp i give up
i wanna see how few BM gets
30 seconds
If you include his 4head, atleast 4 chars
shortest code LOL https://i.imgur.com/a3NTTNB.png
share code
Blitz
it's still running the tests lol
Invalid tho cause you need your class and run function so L
last minute syntax error 😔
not mine
well for the 1 per word just search each word individually
I got 66 because I forgot to check case
makes code longer but still
yeah
i forgot about it until the last minute
then "why should this be 3" for like 3 minutes
then "oh"
then "aah 1 minute left"
lmao
oof
sure haha
☹️
dkim f
for a while i was doing t.split(' ') then i realized t.split() does it by spaces
😦
maybe not reverse so its easier for us all?
ok
this again lol
what does n do
that's just how many there are
its the amount of words
cant u just do .length()
i do not understand
how you're supposed to get a list of inputs when everything has to be immutable
you need to sort the words by lenght smh em
why does it have to be immutable?
but still
I hate sorting
I had like 3 options to sort things
but I forgot all of them
lol
Kotlin sorting is pretty easy
How would you even sort an immutable list? (Except sorting when printing out)
can you do .sortByLength() ?? xD
how to make list in python
returns a new list
sorting isn't the problem, the problem is collating all of the inputs into a single list in the first place
im convinced it's impossible in haskell
omggg
y r these so hard
they are easy
I'm still trying to figure out how to make a list
im not haskelling any more
btw do you win by time or shortness?
it's broken me
google is da best
shortness
unused prob
how about red underline
error
o
ok lets see
89 chars :)
hmm it works
who is ipsk
matt
why isnt matt finished
i think he joined late prob
just because
or taking time to reduce code size
BRUH
lmfao
wdym
from the top
no
o
its unused probhs
u cant remove those
gtfo
or it give error
i used sorted(list,key=len)
i think list.sort(key=len) wouldve been smaller :(
holly shit
what is that?
900
jesus
I mean its java ...
what am I talking about
i mean conclure thers a lot of optimization you couldve done
removing indentation helps a lot
aww kotlin beat me by 4
rip
(ns Solution (:require [clojure.string :as str]) (:gen-class))
(defn -main [& _](let[lines(map (fn [_] (read-line))(range(Integer/parseInt(read-line))))](println(str/join "\n" (sort-by count lines)))))
``` incredibly readable
yes
agreed
at least Matt's is
I see James using cheats
is python cheats
yes
Yes!
ban python
fair enough
how did u guys finish
wrote code to solve the problem?
basically just add the words to a list and then sort it by length
Conclure, what happened to your indentation? xD
eclipse user indentation
☹️
I HAD NO TIME HOW DO U DO THIS I CANT
WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
HOWWWWWWWWW
;(```
love it
one more?
yes
yea last one tho
I need to get at least 1
yeah we've been saying that for ages
you can use it
if its shortest
it's just a bit unfair in shortest
yeah
i mean using java in shortest is just throwing
lmao
Yup xD
kotlin is a fair middle ground
I hate java
😭
We all do
so MUCH boilerplate
it would need to be long enough to cancel out the kt boilerplate
:))
this one might be hard lol
smh my head
i blame clojure compile times
rip
welp only first one works
my code is terrible though
no idea what I'm doing wrong rly
oh got it
turns out if I go from n/2 to 1 it doesn't work
but from 1 to n/2 works
xD
k
lmaooo
xD
¨fml
Shit i need to head out xD
oh fuck
for the clash of code?
does sqrt only accept floats and doubles?
that's why my first way of doing it didn't work
4 mins
ye I think I'll go back to trying and read/open that file
I can't even open it with a full tutorial
that's how bad eclipse is xD
wait I think I got it
maybe
does eclipse not have a dark theme/mode?
probably not
how to activate?
u have to download
i forgot name but its one of most popular
well how ot get to marketplace lol? xD
oh I see
lmao
this one? https://i.imgur.com/wB2XYFa.png
yes
maybe
i forgot
its been a while
yes its devstyle
maybe
just press install
I'll just use this one
lol
I just need a dark theme
until I can see what this thing is
lol 1.45 million downloads
yep
delete?
burn it
might be safer to wipe the whole hard drive
yep
I need to open .hprof files
lol
its 23:33
turn it on
my eyes burn
where?
i forgot
where do I switch theme?
To change the color theme in your editor: Go to Window | Preferences | General | Appearance | Color Theme. The list of available Eclipse color themes is displayed
codedred has tutorial
I got no COlor Theme under general/appearance
I am watching coded red right now
Window -> Preferences -> General -> Appearance -> theme
🙂
ugh James tould me that already
but I ain't got themes
maybe it didn't install correctly
hm
yes I did
check the marketplace
let me see
and in installed
oh
oh something happaene
what about
d
finish them
sounds like you should to JS
TS ftw
^
and what do we say about node?
no more
what do we say about react?
no more
what do we say about deno and vue?
yes pls
mm
i think react is fine
what the hell is this supposed to mean????
Well, dont have it as a field
normally you dont keep an Optional in a field
its more of a thing you'd return
Only reason to do that would be if you need to utilize type erasure ig
Optional<Supplier<Optional<MessagingService>>>>
Thanks Conclure, that did the trick 👍
lmao
Optionals are designed to be result types
not field types
Just have a nullable field and wrap when necessary
I did use it for convenience when working with client/server sides in mc modding
like a field
yeah ig it's more of an api design thing than internal usage
@obtuse gale You should share some of this gems with us
Aah XD
Where is that from?

Lol

meant to say for me they are correct.
loving this desktop tho. https://i.imgur.com/YtdzCb1.png
eww notepad++
yes N++
Sublime Text is a sophisticated text editor for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance.
anyone here understands hprof files?
finally was able to open one but I don't understand shit xD
Let me see if I can find the screenshots anymore
what message?
oh
I'm using PaperSpigot and I used Spark to make this
its suppose to tell me where potential memory leaks are but I don't understand them xD
:o
I thought you didn't like magic numbers @prisma wave smh
I do not
what are you trying to show?
and to explain its not just a retextured snowball/egg
there is also this
its legit a cobblestone, throwing cobblestone
introduce latency and see what happens
its the same latency as a normal egg, uses minecraft server code.
uses NMS
Basically, I think I did good.
What's so special about that?
probs a mix of both
shouldnt abc/def/ be the same as abc/def?
as in a url route?
yes
for some reason the one without the / gives me a 302, which i follow and end up getting an error since the redirected page doesnt have ssl
you need to set up your webserver to handle with / the same as without /
Its not my webserver
I was using a restful api
Also seems its very inconsitent with responses in some cases
weird
Anyone has layout of the player inventory
like the numbers
yea I looked it up
didnt find anything
that's why im asking
The what...
Super easy /s
lol what
let's go
yes
🙂
go noob
no python on shortest
^
Oh timed out?
I guess I ran out of time from getting there late
Said i had like 20 minutes
😮
Yo
@obtuse gale
Firstly, it's a compiler hack. The Java compiler isn't intended to be used like that and so it can cause compiliation errors, or worse:
I was working with a project using Lombok recently and method references for a lombok generated method were causing some pretty difficult to debug runtime errors.
Secondly, it requires an IDE plugin. You have to properly configure your build tools and IDE to avoid hundreds of errors, and installing an IDE plugin + setting up annotation processing takes time, especially if you're inexperienced.
Generated code also doesn't show up in Javadocs, so unless users have source code available it's going to look like nothing is accessible
If Lombok's code generation does something unintended, it can be difficult to debug, and usually requires you to remove the annotations and do a certain impl manually anyway. However, once you get used to this it's very discouraging to do, so it's easy to rewrite an entire class just to make it work with Lombok
There's also an extra degree of complexity with Lombok. Java is supposed to be explicit, and transparent. If you don't notice an annotation at the top of a class, it's easy to wonder where a method is coming from, or why a field is never initialized.
It also can be harder to work with. Again recently, IntelliJ couldn't find usages of a constructor, because as far as it was concerned, there was no constructor - Lombok generated it - meaning I had to find every usage of the class and search for a constructor which wasted a lot of time.
A final, slightly petty point: Lombok'ed bytecode doesn't match the source code (obviously), but it means a pretty annoying IJ warning (look at BungeeCord source for example)
Lombok may seem good in the short term, but it comes with a heavy price. Favour IDE generated boilerplate, or consider using a language like Groovy or Kotlin if you really dislike boilerplate.
WOAH
🙂
@obtuse gale
Firstly, it's a compiler hack. The Java compiler isn't intended to be used like that and so it can cause compiliation errors, or worse:
I was working with a project using Lombok recently and method references for a lombok generated method were causing some pretty difficult to debug runtime errors.
Secondly, it requires an IDE plugin. You have to properly configure your build tools and IDE to avoid hundreds of errors, and installing an IDE plugin + setting up annotation processing takes time, especially if you're inexperienced.
Generated code also doesn't show up in Javadocs, so unless users have source code available it's going to look like nothing is accessible
If Lombok's code generation does something unintended, it can be difficult to debug, and usually requires you to remove the annotations and do a certain impl manually anyway. However, once you get used to this it's very discouraging to do, so it's easy to rewrite an entire class just to make it work with Lombok
There's also an extra degree of complexity with Lombok. Java is supposed to be explicit, and transparent. If you don't notice an annotation at the top of a class, it's easy to wonder where a method is coming from, or why a field is never initialized.
It also can be harder to work with. Again recently, IntelliJ couldn't find usages of a constructor, because as far as it was concerned, there was no constructor - Lombok generated it - meaning I had to find every usage of the class and search for a constructor which wasted a lot of time.
A final, slightly petty point: Lombok'ed bytecode doesn't match the source code (obviously), but it means a pretty annoying IJ warning (look at BungeeCord source for example)
Lombok may seem good in the short term, but it comes with a heavy price. Favour IDE generated boilerplate, or consider using a language like Groovy or Kotlin if you really dislike boilerplate.
Xp deluxe
You got atleast 7 xp from that didn't you
hopefully
make it a faq 
Yeah @hot hull
"Lombok Considered Harmful"
join clash noobs
PH o NE
On mobile
smh
syh
how am i supposed to procrastinate if everyone's on mobile
Don't smh me, I'm about to use the suislide cause I got online classes starting at 7:15 in the morning tommorrow
smh
nice one boy
So many pings kek
lombok should be banned
Yes
yes
as an alternative to lombok...
consider using a language like Groovy or Kotlin if you really dislike boilerplate
or clojure
or Scala
or Elara
or Go
eh actually Go has some boilerplate
not really a problem to set it up
unless you're an idiot
Insert maybe I am an idiot picture

ignores main reasons why lombok is bad and focuses on the small ones
Every argument reason ever
^
^^
I mean, is made by the same people that made spigot, what do you expect
What? What do you know about our code lol
you do realise that OOP is literally about encapsulating STATE ?
😐
what is **lombok **
A curse to humanity
you dont want to know, Cozy
Why does this feel like the bad portion of sxtanna came out to haunt
well im curious
^^^ exactly lmao
the worse you mean?
if you do ctrl + B
yes, immutability is good. but saying we don't know OOP because not everything is immutable is dumb
@old wyvern Yugi bro
it will let you get bold text fsa
😂
I legit got the same feeling
ikr
Lemme send you a pic in dm
I just wanna know what lack of immutability you're talking about lol
Sure lol
I mean, they are using lombok ._.
^^
what exactly are you referencing here
and more importantly, how does that make my argument about lombok any less correct?
then don't defend it when i've just written a paragraph about why it's bad
So little
Okay alex I bombed someone with that love u
Literally destroyed
bungee devs
this is gonna be good
Think I ended his carrier
Lombok or something is good
let's open a repo from 2015
I sure do hope this man didn't check my git
Tell me what is lombok
oh this is great
Cozy don't worry about it
I only found a 4 min useless video
lol @prisma wave
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//```
guys #development
Everything that is required to be final in that class is final lol
you all are so smart
how about urs?
!!
bruh
Sure mate
are you serious
Imagine writing mutable code in a paradigm that embraces mutability
why would a POJO for a minecraft plugin need to be thread safe
imagine LMAO
Kek
Bruh BM, where are those finals man
okay im back
your popcorn is raw
🍿
cosmic just wait smh
anyone want some
NO
😔
yes and please keep going I need a distraction from my maths assignment
@lunar cypress ill do ur math homework if you do my plugni
plugin*
I have a 4.0 GPA
L
whatever that means
that means he is smart in american
Johny where u from
LMFAO
americans :omegalul:
im actually canadian
So you're a cool american then
yes :p
no
!!!
correct, for a number of reasons:
- Spigot plugins are already singletons, who cares about static access
- DI into POJOs is counter intuitive
sure, i could've used the visitor pattern or something, but who cares? it's an old commission that had many revisions and I'm not going to spend more of my time just to make sure I perfectly satisfy every single requirement for "clean" OOP
However it's interesting that you chose that repo, instead of any of my pinned repos. what's the reasoning for that?
this is a dev-general topic
its almost 12am i need my sleep
ok do you know about sequences/progressions and proving convergence
:idonotsee:
We need Sxtanna back 
🧍♂️
I do that as well
😔
who is sxtanna
Literally God
where is he ?
Matt, check staff chat
what's his disc
dependency injection > singleton pattern
in a better land
A fallen comrade
...yes? what's wrong with that exactly
wait is he dead ?
I agree but if you think about it, just put it on async and you are good!
Not this again
into a POJO?
dutch translations is weird
puts memory accessing on two different sides of the memory
:what:
just use async
???
bruh
what are you talking about
you sure must know a lot about thread safety making such a general statement
do you know how Bukkit works?
that is wrong
This better Gaby
just use async
._.
first off, the plugin is single threaded...
:insidescreaming:
just use async 4head
async is the answer to all your problems
shutting up also resolve most problems
yk what ima solve my plugin with async
Hey dkim19375,
BristerMitten is now following you on CodinGame. You can have a look at his/her profile by clicking below:
🥳

What is async on his code there? .-.
fuck my cats meowing and my sugar gliders is woofing
iirc (i've barely touched this plugin since last year), pretty much nothing
AsyncPlayerChatEvent
wut
this is sounding like sx v2
you can't fix everything with that
Another one
yes
No Cozy..
don't think so
yall are getting some good xp right here 
he just left
Well idk
and blocked us all
🙁
no sx at least made some points in those arguments
he fixed a Korm issue i made a few weeks ago, so not dead
AsynchronousByteChannel
WELCOME TO THE KORM FIELDS
you all obviously are newbies if you dont know what that is
so far we've had
- your POJO isn't thread safe and should be immutable
- Bukkit isn't thread safe
very compelling points
god damn back to maths
^^^ lmfao
good luck
this is him /
We all know spigot is shit
this arguement is shit
my bad
ElaraServer
sorry
🥺
imo when you write Java programs you shouldn't use anything from Java
Elera
wow johnny
Yes, spigot is shit. but how why that mean
- every single POJO should be immutable (ever heard of beans...?)
- I shouldn't be using a method that isn't thread safe, in a single threaded context
youre so smart
How does kotlin work with types now? It protects it from weird stuff right?
dont attach spigot to the name of elara 🙃
hey guys lets code something in java but not use java!
what weird stuff?
yes
And it will be it to whatever you want
yes?
^
^
why does kotlin use val
why not?
val = final var
because its good
^
And redeclare it would still have to be a string
oh
val good final bad
._.
vals can't be reassigned, but yes.
i assume you mean reassign
is kotlin good to learn
absolutely
yea
well
Well I mean that's technically not true
javlin?
i'd recommend you learn java first
yep
how similar is it to java
javlin is insane
It's java but less stupid
kotlin is beauty
Actually I talked to sxtanna 2 years ago
ok
he told me learn java
lmao
and I never did
he told everyone that
Lmao
🥲
Spring > Javalin
why he leave tho
Let's not open that topic again 
Lets go for it
indeed
lol why's this look so similar to Frosty's pfp
because its the same character dkim
Yes get it
idk where its from
oO
more importantly i'm looking forwards to Bomp's response
Bahroo
hes just gathering more shitty evidence , np
i'm sure they will have a compelling and well backed up argument
🤔
elara should have the support role wtf
Alex u need to guard that damn fkn discord I swear lol
lol
Who should I report to for someone advertising their discord in DM's?
Idk
Barry
It’s not nice
Dm Barry
Good question
your nickname is wrong too conclure
