#dev-general
1 messages ยท Page 89 of 1
i see it coming. johnny is going to be shortest again lol
nah I can't do this
don't use clojure
don't have time now
welp
well I'm just going to submit this
I could have gotten 3 probably
gg
nice
I'm in
yup
Johnny isn't
@lunar cypress you in?
das_ said he has to go AFK for a while
๐ฆ
it worked
lol
but it's not fun when you have no idea when it does and when it doesn't
weird
it's completely random it seems
This is gonna be the last one for me
ayy gg
gg guys
which is pretty much the only thing you do in clojure
It's LITERALLY string(charCode) in Go lmfao
rip
xD
yeah kotlin is just charCode.toChar()
so beautiful (apply str (map char (repeatedly charCount read)))
@spring canyon is there again
its only (char)i in java
๐
since it was a short one lol
nah im out
Bye
bm coming?
It's fun tbh
It's fun tbhYUPPP
Never had so much fun while programming for ages
Not again
(i hate and love regex btw)
yeah this is really fun lmao
I'm the worst in this game it sucks
1 more?
Sure
yes
we need to do at least 10 of these a day
yess!
last game
eh
xD
xd
I think I'm addicted to this game lmao
oh god
alright back from dinner now
WB
nah it's good
I'm gonna be moving to arch now anyway
just gotta double-check I backed everything up on my external
everything I want/need anyway
wb
someone give me a simple program to work on string manipulation n shit
with regex?
no
hm
๐
idk any sort of big string manipulation usually needs regexes
would if i could
just simple shit
like
u got a big string input
then u take out a word
ok ima do that
damn i dont need u guys ๐
use regex for that lol
I just can't get it shorter
Take a webpage html and extract a certain string
ew
I've had to do that
and it was gross
we had one night to write a vpn detection shit
oh dear
we had more time but a teammate fucked us
1 more?
sure
10:20pm : 1 more?
3am: 1more?
10 years later: 1more?
me: YES
the addiction is real
1 more won't hurt
Lol
the addiction is real
true
he isnt ready yet
ok
cya
ciao man
exactly the same as yours
me neither
import math
n = int(input())
for i in range(n):
x = int(input())
print(bin(x).split("b")[1])
welp
gg
xD
draw
Hello,
Anyone know why this happens?
Caused by: com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.server.v1_12_R1.IChatBaseComponent exists in class PacketPlayOutScoreboardObjective.
is says that is has to do with this line
packet.getChatComponents().write(0, WrappedChatComponent.fromText(displayName));
https://wiki.vg/Protocol#Scoreboard_Objective it uses a String, not a BaseComponent
^
One more @old wyvern @prisma wave ?
Sure
Alrighty
probably
xD
maybe
What would happen if Long.MAX_VALUE + 1L ?
I wouldnt say that
Ah my enemy
oh
ggggg
ggwp
okay
xD
moment
@steel heart you will pay for your crimes
AnTiKotSquad

BaseComponent is bungeecord-chat isn't it
spigot is maintained by md_5 ofc it's in spigot lol
I still remember when I did this in my code:
ComponentBuilder whatever = new ComponentBuilder(string)
Bukkit.broadcastMessage(whatever.toLegacyText())
or something like that
o.o
now that was stupid
building a component from a string then converting it back to a string lol
Sounds like human trafficking to me
lol
a post like that is how you joined Prevarinite lol
xD
I'm rewriting that punishments plugin in to separate modules to support bukkit and bungee by the way
oh and it's written in Kotlin
same for that chat plugin
Yugi youโre a free dev right
After you get paid atleast?
I'm a free dev
free dev?
I don't believe in getting paid for something I do as a hobby
Ok can you code Minecraft for me but in cow language Bom?
I also don't believe my quality of work is worth being paid for
rewrite minecraft? no chance
facts
Well I mean ppl earn money on selling full static plugins
Ok can you code Minecraft for me but in cow language Bom?Moo
static plugins?
he means overuse of static
moo
I just made that up by the way
moo
oom
Moo can be the root class for all classes lol
tf
True mooer
xD
Moo.moo(-> Moo.moo(-> Moo.moo(-> Moo.moo(-> Moo.moo(-> Moo.moo(-> Moo.moo(-> Moo.moo(-> Moo.moo())))))
thought I might as well repost my earlier request-free lol
[Service] Kotlin Developersew
well I write in Kotlin now so Java developers ain't really gonna cut it lol
also you should learn Kotlin @old wyvern
I already do kotlin
@distant sun i do not condone your disgusting language
but i like java
you out of your mind xD
yeah those seeds are your brain cells and the red stuff is all the crap you been filling your head with we know
lol
@jovial warren Isn't the code in the background on your website in java though
@distant sun We have to stop them together 
wha
mainly because the website is based off of (and when I say based off of, I mean virtually copied) from another website I liked
ain't many kotlin developers round these parts
we will overcome these java thots
I downloaded google web designer
good idea
my website is based off of https://mrivanplays.com
that bg tho
@onyx loom hf with VB >:)
SHUT UP
Ez
kotlin is goated
Whats wrong with VB?
I hope @jaunty maple doesn't mind that much that I virtually copied his website
also VB?
isn't that visual basic?
@onyx loom
yes
Ye
yes
@distant sun get out
Nou
I started with Python and HTML mostly
I think
although my HTML was limited to a few copy-pastes
imagine not starting with java because you're an 11 year old who wants free plugins for their server
the main language I learned to code in was Java
imagine not starting with java because you're an 11 year old who wants free plugins for their server
fuck you I was like 13
xD
ha
Gaby has the highest role here and therefore he should be the one that ppl should listen to
How old are you rn?
me?
both
I'm 15
im 16
o.o
Weak
u gaby?
18
same
u yugi?
Ah Iโm dumb
Take it easy kids
damn you lot are old
don't call me a kid matey
I never called anyone a kid?
Why is everyone so old Jesus like get young fr
not you @old wyvern
oh
Take it easy kids
this nut
xD
where's everyone from?
India
u dont wanna know ๐
u?
UK
I see
or to give it it's full name, the United Kingdom of Great Britain and Northern Ireland
Ngl sweden is pro country
risen
rising
And fall down again
nice
and you can get out @steel heart
get out @steel heart
all in favour of kicking captain dumbass out?
???????????????????
So I see no point
I
should "!Kotlin.isCool" go?
YES
I think so
your name SUCKS
what if it isn't a fact though
your name SUCKS
๐
Itโs too good
this guy is beyond hope
it's a trash name
Actually not
People being partial is beyond hopes
welp gn peeps 3.5am
what do you prefer over Kotlin then?
gn
gn
NO
Package private, disgusting
remove the ! and it'll be better
how's this
perfect
and that won't return any errors
How about this
better
how do you change your display name?
my tests succeded
right click > change nickname @jovial warren
if (kotlin) throw new RuntimeException(โBadโ);
Type Language cannot be resolved to Boolean
IS THAT
noob

nah dude
๐คฎ
kotlin is a bool variable
wew
why is kotlin a Boolean
assertTrue(Kotlin.isBetterThan().java()) doesn't return any errors
assertTrue(Kotlin.isBetterThan().js()) also has no errors
assertTrue(kotlin.goodness > java.goodness)
anything returns true
assertTrue(Kotlin.isBetterThan(Lang.JAVA)) this is a little better imo
lol imagine kotlin
assertTrue(Kotlin.isBetterThan().otherJVMLanguages()) indeed also has no errors
assertTrue(kotlin.goodness == Long.MAX_VALUE)
๐ฎ
If java wouldnโt exist then kotlin wouldnโt either
true

Kotlin is there to fix Java's problems though
Means Kotlin is an evolution of Java
^
While yall stuck in the past
It does make kotlin dependent on java which is bad
it's not though
Noob lang has to be dependent
kotlin compiles to JVM bytecode, JS, or native code
https://hackernoon.com/hn-images/1*NQ1f28kf1wcUrSxZgvjtRQ.png what kind of an idiot prefers the left one to the right one
Uh okay but still noob Lang
it's just most commonly used on the JVM
It's not, English is a germanic language, doesn't mean it's dependent on it's ancestor language
we're not all speaking anglo-saxon
kk
1 dude down
everyone say goodbye windows

And will forever be
kotlin was better than java on the very day it came out

there ya are
u gotta feel for java there
Popular?
this meme should replace eclipse and intellij with java and kotlin lol
its the coolest kid in the school
Ok IJ is nice
"Is that a Java programmer?"
laughing
"KOTLIN IS AN OBJECTIVELY SUPERIOR LANGUAGE"
Was actually watching a video from a JetBrains dev doing a presentation and she said she prefers Java, but agreed that Kotlin is much better language with less boilerplate
a jetbrains dev is a little bit biased
kotlinconf 2019 had a very interesting talk about the future of java
since jetbrains made kotlin lol
Recording brought to you by American Express. https://americanexpress.io/kotlin-jobs
Kotlin's introduction was a breath of fresh air at a time when the pace of innovation in Java felt glacial. Since that time, development of Java has rapidly increased with an emphasis on fixin...
would definitely recommend giving this a watch
I mean being a JetBrains dev, you'd assume she'd be bias towards Kotlin but she still chose Java
it could if oracle gets their act together
Java 15 is actually pretty nice
yeah I wouldn't have many problems using anything above java 11
I'm sticking with Java 8 until it gets so outdated that nobody uses it anymore
you should stick with it until it's out of LTS
nah fuck the later versions
which is next year iirc
Which is getting pretty close
kotlin will die ngl
Java 11 can kiss my ass for all I care
dude
Kotlin won't die
java 11 is actually nice
Java is getting Kotlinized, which means it's doing something right
Minecraft die next year (question mark)
@ocean quartz it's still got loads of boilerplate in it though
If Hytale releases
Lmao
Yeah, though it's getting better
Kotlin is relevant until Java says fuck boilerplate
Hytale wont kill MC
which will likely be never
Lol Hytale will do nothing to MC xD
tf is Hytale
Exactly
Kotlin is relevant until Java says fuck boilerplate
java 15 has records which is a good start
Hycrafttale
Java still includes those shitty getters and setters though
here u go boys
fuck i fucked it up
@onyx loom MY GUY
I mean, it looks cool, I'll probably play around with it.
but it's not in the running to destroy MC any time soon
To make Java better I would get rid of the need for getters and setters, make val and var and get rid of static
change Java to Kotlin at the bottom first though
yeah
java 10 has var
static has its uses
getters and setters will probably stay forever tho
also you can probably clone tool that text out pretty nicely
Ik, but get rid of it, turn it into object like Kotlin
It's easier to understand and use
alright switching to phone while I get arch up and running
that would break pretty much every java program ever
Yeah i know i know, was just saying, what imo would make it better
when big tech companies like google are choosing Kotlin over Java though
Great
for some reason the bottom was showing KotlIn instead of Kotlin, no fuckin idea why so i just cropped it
An Java user
you could still make it lool better by just clone tooling the old text
eh im too shit lmao
photoshop does a good job
๐
AN(other)
you paid for that?
no i got it free for being a student
Can't believe it hasn't been updated in 30 years
i'm so happy I could go and write some kotlin
you what?
Crazy
runs out tomorrow however
F
oh I got the ya know what version
adobe gave away their products for free to students until may 30
if I tell you I'll get muted again lol
Oooh smart casting in Java 19
kind of
is that the pattern matching?
is the Java 15 one
yeah
Yeah watching the video you sent
it's pretty interesting
although pattern matching doesn't really compare to smart casting
I love watching this stuff
yeah me too
That's just a preview?
yes
java 15 is in very early stages I think
Has pretty nice features though, specially the null pointer exception change
yeah the new NPEs sound great
NPEs should deserve more cred after 15
newbies will finally be able to fix their own NPEs
true
If you ask what is null on your npe in java 15, then ..
you're an idiot
yes
๐ code ๐ review
https://youtu.be/te3OU9fxC8U?t=1749 @jovial warren this shows a bit where destructuring is useful (since you were asking about it yesterday)
Recording brought to you by American Express. https://americanexpress.io/kotlin-jobs
Kotlin's introduction was a breath of fresh air at a time when the pace of innovation in Java felt glacial. Since that time, development of Java has rapidly increased with an emphasis on fixin...
they have a lot of future features planned
yh
Yeah part was pretty nice yeah
km u also have to assist me a little on a thing on that plugin as well
ok
just no kt stuff pls
fine ๐ฆ
=yaml
Link me to a config and I'll check to see if it's valid.
=yaml <paste link>
ty
Nice fun TextChannel.queueMessage(message: Message) = sendMessage(message).queue() removed all the .queue() calls from the code
poogers
Very nice
I feel like you could expand that to something like kotlin inline fun TextChannel.queue(task: TextChannel.() -> JDAQueueThing) { task().queue() } just to be fancy
then you could do like kotlin channel.queue { sendMessage("Hello") }
although yours is probably nicer
That is nice yeah, probably will use for something else though
Since the way i have it is a little more compact
println(string[string.length-1])
or
string.last()```
I think first and last seems better, though i don't think there is any difference
Practically it's not different no
but first and last are much more readable and less error prone
firstOrNull and lastOrNull exist
Ooh just found this thing and it's pretty cool ;o
This is my plugin, almost a year into it without releasing
That looks like a strange alien mutating
Watching everything change to .kt was quite satisfying though
How did you make that?
Ikr, you can also see i work a lot for a few days then it's like a month without touching it xD
It's called Gource
You basically install then run a command on the repo's folder
Looks pretty cool
I'm not sure I've got any big projects I could use but I'll give it a try tomorrow
Can I get some help ?
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
Is there a way to use custom fonts with js canvas? If so, how'd that work? ๐ค
You can use any font installed on the machine running it
ctx.font = `43px ${client.config.secondary_font}`;
It's a string
Do you have knowledge about this? Because i need abit help with this.
https://stackoverflow.com/questions/34993738/youtube-api-check-for-user-was-subscribed
yea but there must somthing that points towards the font file right?
I have managed to get results but it says "i don't have access"
After all, my youtube api key has enabled the youtube data v3 enabled.
yea but there must somthing that points towards the font file right?
@solemn monolith ye
Well that or you can point to the file iirc
Which will be easier on a vps, yea true
:)
@viral skiff Are you sure the api key is sent via GET?
Usually in a header
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
why are you not using a library
yoiutube libary
welp
its been like a week and a half since i changed intellij themes
time for a new one
obsidimod @obtuse gale
hm?
use that theme
IntelliJ IDEA, Webstorm, PyCharm, RubyMine, PhpStorm and AppCode่ฏญๆณ็่ฒ, ไปฃ็ ็ฎ่คObsidiMod.xml้ ็ฝฎๆไปถ
this?
The websites in like chinese
ew wtf?
Color themes for IntelliJ IDEA, Webstorm, PyCharm, RubyMine, PhpStorm and AppCode
Wow... it does seem like thats what it is...
My theme was originally obsidimod
But ive modified it a lot over the years
its so bright
thats literally just me calling a method
o
yeah
also
Like i imported the jar as a colour scheme
What do i set as my theme?
My theme is just darcula
These are the values for my smartcasts
I dont mind the bright background, but I do like being able to read the text
lol
lol alright
where even is all this stuff lol
lol
edge updated to a new icon and shit ๐
true
oof edges new logo is sad
all those years with the old one
2006 was the best lets be real
I remember growing up with 2006 tho lol
that aint even the oldest
the 2006 logo brings me back to the good old days of windows xp lol
microsoft edge, also known as the browser that literally no one uses lol
IE did better in it's time
nah mate I use waterfox now
waterfox is a lightweight fork of firefox
and firefox is lightning fast from what I've read up
almost done installing waterfox and discord
edge has potential now its on chromium ๐ค
:)
I remember back in the day both my parents thought firefox was like the best browser
it mightve been at the time
it kinda still is
but like i remember them thinking they were genius for downloading firefox
Best browser = book
Best browser is barrys google function thingo
firefox is really well-optimised, and it's open-source
ah yes. the function only staff can use
best brwoser
if you google fastest browser, most lists will put firefox at the top
cli browser is the only way
and if you type it into bing BomBardy
๐ค
lmao
thats basically the obama meme
lynx
with him putting the medal on himself
im suprirsed ms hasnt gave up on bing yet
yeah since literally no one likes it
or uses it
but Microsoft have this very much "our way or the highway" kinda motto
it's no wonder they make a lot of things that literally no one uses
Microsoft is a large developer of personal computer software. It is best known for its Windows operating system, the Microsoft Office family of productivity software plus services, and the Visual Studio IDE. The company also publishes books (through Microsoft Press) and video ...
no way
npm is maintained by Microsoft?
and it's that much of a monstrosity?
wow
apparently Microsoft's CEO once said this about Linux too: "a cancer that attaches itself in an intellectual property sense to everything it touches"
wha
yep
oh 19 years ago
why are you not using a library
@frigid badge What do you mean?
npm was bought my github (which in turn is bought my ms) so that's why it's maintained by microsoft @jovial warren
@viral skiff why are you not using a library to talk to youtube rather than directly using their rest api
@jovial warren they're embracing linux a lot more now though as well as opensource etc
they're less shitty than they used to be
@frigid badge If you are able to find a library to do that, sure tell me.
I usually use npm and stuff.
js
npm is typically js
wasn't sure if he was talking about the library or about the conversation of npm above
hence my question
read the documentation
Since my request url is different
Yet another win for kotlin
Ws all round for kotlin
๐ ๐ ๐ ๐
We doing the thingy again today?
Piggy said he wanted to join, but he aussie so timezones
clash of code?
he said hell be on in a few hours, of which its been a while since he said that
imagine timezones
Imagine life
No such thing as timezones
^
lol
Just /time set day ez
Also, since earth is flat, timezones don't actually exist
get out
yea
Have you heard the flat earth theory where when the dude cant see out the window in the morning (fog) its because NASA is destroying the world, then later NASA rebuilds it
just no
What have you been smoking Aj?
what's their explanation for timezones?
fun fact I actually got banned from the flat earth society
well done
lmao
I mean you've got atleast 2 brain cells, how could you not have been banned?
less than 2 brain cell gang <o/
flat earth society? more like the three brain cell society
less than 2 brain cell gang <o/
Aka Java developers :)
liam miller 1975
oi BM
Aka Java developers :)
true
that's some facts right there BM
We got atleast 5 no?
yeah 5 seems fair
- nor birth year
Straight fax
I'd say 4? maybe 4.5 brain cells? 5 is too lenient lol
And the rest?
2
Fuck
It's true I'm afraid
people using Java 15 have around 6 or 7 brain cells maybe
lmao
apparently then i made a second account named "UNBAN_LIAM_MILLER_1975
ill try logging in
wait what happens if you make a post on there saying the earth is round lol
probably get banned
wait apparently i never activated this second accouimt
nope
its banned
new email time
the scrolling in arch linux seems to take much longer than in windows lol
time to sort that out
Scrolling?
just plain ol' arch
yeah scrolling
you know, with the scroll wheel
also, I'm using i3 for my window manager
it's a tiling wm
hey anyone wanna do those code clash thingys?
If we got enough people rn sure
Looks like it's gonna only be me and you Bardy
I gotta cook stuff but can probably join 1
Jesus Bardy
If I knew what they mean lmao
Okay it was actually easy
damn frosty taking the W
reverse? fastest?
assertTrue(kotlin.isGood)๐
Like just that
usernames have lies

