#dev-general
1 messages · Page 83 of 1
sounds annoying lol
Have to hit that sweet Alt Gr + 7 for curly braces
qwertz is strange
Ugh same for Portuguese keyboard, that's why i use an English one
Have to hit that sweet Alt Gr + 7 for curly braces
jesus christ
maybe why I like lisp lmfao
It'd be good for Python
true, works well with python as well
I wonder, is there anyone who doesn't like python?
Like, not on a large scale
but generally
generally python is actually reasonably nice to work with
if you try and use it on a large scale you're dumb
but it's pleasant enough for scripts and things
yeah
I think if I had to teach programming to someone, I'd pick python as the language
It's so simple
likewise probably
I played a few rounds of clash of code with a few friends today and using python there is almost like cheating
the code for every single task ends up being 3 lines of code or something
i've not heard of clash of code, looks pretty interesting
helpchat should host a contest with it or something
I hadn't either until today
It's fun
Although I am very bad at those things
give me time and I will solve anything cleanly, but I am extremely slow under pressure
w0w
it's really sad when you have a perfect solution in mind (like in my case regex) but don't have time to research how it's done if it turns out that you don't remember it correctly
he was ashamed, didn't want to share it at first lmao
but yeah, we could do that here as well some time
i think that would be pretty fun
setup a little tournament to find out the true best programmer in here
or the best mathematician
By reverse engineering I mean seeing input and output and figuring out what it does
phew
it's doable, but I would have never figured this out on my own
what the hell do I know about sample function values of log
division
oh yeah
seems about right
i've not done log stuff in quite a while
although that would apply to any base, not just 10 right?
I think so
yeah i don't think base 10 is special
I think it's more just meant to imply that it wouldn't work with two different bases I assume
eg. log2 / log5
Ayy I have finished it
Looks pretty good!
Ikr, now it can dynamically register and unregister commands at runtime

now make a kotlin dsl :D
command {
prefix = "?"
name = "test"
argumentLimit = 2
autoDelete()
executor = { args, message ->
message.channel.sendMessage(args.contentToString()).queue()
}
}```
Is that not a thing of beauty
yay
@quick flume Si ton tonton tond mon tonton alors mon tonton sera tondu par ton tonton
=> If your uncle shave my uncle then my uncle will be shaved by your uncle
oh... ya
I love seeing those memes
you hear the one about the raspberry or something
just mur mur mur mur mure mur
basically
I love too it makes me laugh to see non-fr just WTF BRUH in front of french :')
I love how this is in dev general somehow 🤷♂️
sry you mention 2 channel I clicked the wrong ^^'
french is all fake 🤷♂️
dev general should be exclusively for kotlin circlejerking
it's a conspiracy prepare 👀
And that's final
it's three languages in a trench coat trying to be it's own
no that's private 🤔
It's both
now english, english is the worst
sentence structure 10/10
french is the best latin language è_é
Kotlin
(nope it's not lol)
Kotlin is
@pale shell Kotlin is not latin 
I prefer latin
not sure about that one
I never understood latin ,-,
not a latin language
Its what the pink dog coming out my drawer is saying
No
question
answer
do you know what best means?
tbh I don't even know any Latin word (at least more than the common that we can see everywhere)
è
Have you guys ever seen a pink dog?
yes
Where
a bald one
I've seen a pink panther it's better
No I mean
I proper pink dog
Oh wait I'm sorry you don't get it on your 10x10ft island
You get green dogs there
🤔
Wait no that's Ireland
http://prntscr.com/sp2535 yes already seen one 
he's pink or one of us is colorblind 👀
in french it's Courage le chien froussard 👀
maybe 🔫 😶 🥖
Bonjour
too much french in here D:
:(
ça fait peur ;-;
n'aie pas peur
no I don't I'm only french native bro 
wow
WOW the fk you know those hard words bro ? '-'
no don't it's not a good idea '-'
j'ai besoin de practice car l'école est terminée alors ce serait bon à dire avec quelqu'un qui parle le langue
I think that's mostly correct
well I'm gonna jump of a cliff to land in dolphin's paradise now '-'
that's pretty incorrect bro x)
Je suis une fille française;);)
correction childrens -> J'ai besoin de m'entraîner car l'école est terminée/finie**,** alors ce serait bien de parler avec quelqu'un qui parle la langue
You said 16 year olds weren't children the other day
Well they are
double standards
how old are you @pale shell ? 🤔
@prisma wave quel âge as-t-il ? 🤔
@brave minnow malheureusement je ne sais pas parce que j'ai oublié
21 ans c'est à peine plus âgé que moi 😮
no x)
pourquoi on parle dans #dev-general
21yo is barely more than me
I don't understand that
that's wwhat I said '-'
I mean Mitten is veery old
Je sais pas tout a commencé ici 👀
Now you're just bullying me
are you good bro ? ;-;
je sais pas quoi dire
Wot
cette conversation est mort
Kotlin Mitten
morte*
o
He tagged you
oui morte*
just speaking with my chest 😤
@onyx loom knowledge that kotlin is good comes from literally every organ in the body because it's common sense
my gall bladder is giving kotlin some pretty high praise rn
Does anyone else use light mode?
Absolutely not
How come
absolutely not
do anyone know a good sql/no sql (mainly sql but both will be good) API/library I can use that is making more than just mariaDB or just postgres but working with them all ?
An API for SQL AND NoSQL?
You'd need a lot of abstraction for that. Not even spring has a common library for both (as an ORM anyway)
at least for sql ?
If you want to do most of it yourself I would just use Hikari. If you want something easier you could get an ORM like Hibernate or SimpleORM
like mariadb mongodb postgres the top 3 ?
(and mysql for those who don't know mariadb o_o)
Mariadb and MySQL are pretty much the same I believe
Postgres should work with Hikari and / or an ORM. mongo is different
yep but mariadb > mysql still
true
@quick flume do an expansion need to be a one class ?
mariadb is a drop in replacement for mysql
like keydb to redis
You dont need a special implementation for it
mmmmh I just want to be as wide as I can with having as less API/library as I can
The best solution is most likely for you to just do it yourself
You should design your frontend to be as high level as you wish, and then custom make your backend to fit it
I don't think I'm that good :/
Then maybe this isn't the time for you to be implementing such features into whatever youre making?
an extension
I know how to code in java I just havn't experienced much database without odbc
a custom made SQL library for an extension seems kinda overkill lol
a bit lol
an extension on what?
papi
And I was not saying to write your own sql library?
That term doesnt even really describe anything
The best solution is most likely for you to just do it yourself
although I guess that could be interpreted many ways
You dont need to write a library to replace the functionality that a library gives you
And like I said, thats an abstract term anyway
What even is an sql "library"
like odbc/jdbc
SQL wrapper then
maybe I don't really know how it is named
yep so an API that'll work with multiple database so I can just make like put your host put your pass and here we go
(and the database obviously)
The issue with that is that not all systems authenticate in the same way
And not all systems have a defined "database"
why isn't it as simple as pdo ?! ;-;
like redis for example
I won't use redis :/
realistically you should probably just support mysql/mariadb and yaml
thats nosql though?
I even never heard about it until I started looking for plugins
even mongo doesnt have "databases" does it?
or if you want to be really fancy allow the config to take a jdbc URL or something
mongo is NoSQL he's
yes,
Yes**
YEs***
yEs****
YES******
Oui
ffs
***735
no I wrote it in l33t you can't beat me MOUHAHhahaha (calm down on caps you crazy man)
so isn't there something like pdo but in java ?
(I'm a web dev don't throw me rocks ;-;)
How is PDO different from JDBC?
^
PDO is just like "Hey bro throw me a fkin file in da face and here we go !!" So ...
So yeah... how is it different?
that's not that different
JDBC is just an API, you decide what backend you want to use
You would right generally the same code whether you want to use sqlite, mysql, or maria
Isn't jdbc a bit different for every dB ?
jdbc is the same
With JDBC, you work with the API classes
The SQL syntax might be different
Are there object sql like dB ?
shut
NO
But anyways, theres like... 15 quadrillion java sql orms
Its like the #1 thing people make
Well I'll go for maria/my postgres and mongo that are the most popular 🤷
sounds good
you might end up with a pretty big jar size though
3-4 drivers + an orm
might is an understatement
will*
Well it'll be made to integrate language translate in every fkin placeholders that are or will exists I think it's necessary
And custom too
tbh
?
I think an ORM, and mongo are completely unnecessary for this
Yeah but in the case you're using mongo for whatever like website other plugins and more it'll be useful
the queries you could write yourself easily, there wouldn't be any relationships to setup I don't think
I guess so
It depends because the spigot jar size limit is like 4MB, not sure about the ecloud
If mongo takes you over the limit I would forget about it
Most people use SQL
Why would it go over ? It's just integration of mongo not the dB itself
Waffle I summon you ... Please ? 🥺
What in the hell are you making
some sort of l18n for placeholders
??
I'm not sure tbh
why would that have anything to do with databases?
Don't know What l18n is tbh but it'll be custom multi languages placeholders integration
lol
l18n = localisation
internationalization*
l10n is localization
Hm
Store language of user like
Me -> fr
Kotlin -> en
A random Guy -> de
A Guy from the other side of hearth -> ch
the number is how many letters there are btw
I always wondered what the numbers meant lol
@brave minnow why would you need to do that?
@brave minnow I'm not exactly sure what you want still
the client sends the player's locale
Player#getLocale
It also sends a packet when the player changes the language in the client IIRC
Things like %player_name% would be the same no matter the language?
@topaz bay not exactly for example I'm using 4g and not wifi (over 300GB this month lol) and the game can't locate me
what???
What What ? 
wdym the game cant locate you?
I don't really know like I tried with plugins that are supposed to locate players and it says unknown for me
Wdym "locate"
I dont understand
The client sends the player's client language in the settings packet
Before you even actually fully join the server
ow yes sry
I actually use this in a plugin I made today xD
yeah but for example I use my game in english altought I'm french 🤷
Then they can just set their game to french?
And the placeholders would update to be appropriate
?
look at the screen it won't show in this channel
french translation are cursed that's all don't ever play in french if you learned it '-'
but yes your idea was good and I'll use it I think 😄
when a class extends PlaceholderExpansion does it extends JavaPlugin either ?
btw how am I supposed to make mutli-config files in an expansion ? ;-;
btw @topaz bay what's the format returned for the game language ?
the client sends in the format, language_country
But Java parses with language-country
its just a replace('_', '-')
and then pass that into the locale function
@prisma wave
Now I just need to like... add translations for the actual message
wait for my expansion 👀
Absolutely not
;-;
wait so you are making a server @topaz bay ?
huh?
@topaz bay nice
Although I think any system like this will fall apart when it comes to a language like Arabic or mandarin
voxmc
what about it?
are you making a server or what
tell me nerd
@prisma wave
japanese works
This is from a library btw
You could just add more language files
it uses a resource bundle
Sx is making a server o.O
...
why not name it sxcraft
choke
rip sxtanna
You both can fucking choke
Im fine, ty
In fact, let me go ahead and preban you guys
what about me
What are you users?
I, for one, am excited to try out the server he's writing.
xD
It'll probably be super efficient too.
Preban?
???
SxyCraft
@prisma wave dont entertain them
Alex isn't it late for you
bamboozled
@pale shell @distant sun you two are very immature. Not impressed
I'm not Inmature
No you're immature
k now I sleep
Growing up means I have to pay taxes
me too
Oh wait, I've never paid those ever
adios amigos
@prisma wave
@pale shell you pay VAT
No
I don't lol
Yes you do
I bypass it
omg
:))
...
how
you just get the shops to take 20% off their prices?
I do it illegally
u are making me stay awake now
Is weed legal? No. Do I still do it? Yes
@prisma wave what
I bypass it
What x2
Hes being mean to us daily
Yes you can lol
Smh
bruh moment
if you pay £1 for something at a shop 20p of that is VAT
Just need to know how to do it.
You can't bypass that
so how much is a bar of chocolate
bullshit
I get to get all my tax back at the end of the year
I am not fucking mean @distant sun
Yes you are sx
I get to get all my tax back at the end of the year
what
you can't get a vat refund lmao
You can
odin. go sleep.
🙄
It's only 9pm
its past ur bed time
7pm*
99.9% of the time if you know what you doing
VAT only gets refunded for business expenses
nah I'm calling bs
Unless you can tell me how I'm not buying it
...
On the gov site
the government forums?
forum????????
I bet they've got a nice xenforo theme
Omfg
oh fuck...
You know what a form is right
nah. they prob use enjin
I just realized Im going to have to buy xenforo...
You said forum
trash...
Same thing
I'm probably not allowed to say that
2 completely different things
Since when
Forum != Form
Last time I checked it was like 140£
Not for all of it
Oh wait Sxtanna are you making an actual server? I was lead to believe you were writing a server software implementation. Or are you writing an open source server?
sleep guys ;-; it's 4:20 I must wake in less than 5h SLEEP ;-;
no u
"not all of it"
jeez...
$160.00
You can selfhost xenforo?
....
Alex..
i bet that has VAT too
no u
LMFAO
Yeah but you still have to purchase the license
The screenshot was for discourse
since when is it a subscription?
It's 160 one time payment
oh lol
Themes and plugins are also extra
Not for all of it
???
Im looking into alternatives
@pale shell
I've seen that
Enjin
PHPBB isn't that bad
Just make discourse look like xenforo
Yes but you're adding shit
Ez
Don't add shit
Get support using and extending Flarum, the next-generation forum software that makes online discussion fun.
this is kinda hot
that's why I said "not for all of it"...
You don't need it installed, you don't need to remove branding, or the media stuff
True true
self made forum is better 👀 (not at all because it takes time and blablabla but fk I wanna do it)
Was just a proof of concept
what could be useful to link between website and server ?
Just use kotlin
whats light theme?
The thing what gives you a free flashlight
bruh...
You turn it on and you get a flashlight
Do people just like... not use dark reader?
but the flaslight is bad for u
me neither :)
Turn it off and look at it lol
I never see anything I'm blind 
Squash it
eat it
I found a bug in someone else's site but I'll let them find it
That's not gud :o
They're in here so
Looks fine
Do you not see all the CLEARLY unfilled space???
This is fine ?
That's part of the dark mode
still dark space
That for your server
It's the void
Dark still part of dark theme
Donor bot
Same as before
Interesting name
You think so?
BoxMC
Yikes
What
Oh
And that PISSES ME OFF
Why'd you go on that name?
Sx, i feel ur pain https://github.com/funnycube
Luks gud too mi broh 
@burnt pagoda hey, do you use your github org?
Totally was kidding about the website being trash btw
<3

Can I like... have it?
Nah, that's weird
Seems like communism with extra steps 
Oof
Mhmm
cya
Why'd you choose that name in the first place
Ahh
I literally found out about their server as I went to buy the domain
chathe.lp
Someone didn't do their research then
Youre framing this as if I'm serious, and I have an issue with the clash
need cu.be/something
funnycu.be is available
I already bought it
Why is it so expensive O.o
Going to get it?
Offer them $250
shame .cube isnt one
i mean if everyone in this server contributes ull get the domain for 50p
2$ or less
seems legit
@ocean quartz if you're getting a domain, use porkbun
they're the cheapest I've found
all round
and great overall
day 25876, I'm about 90 years old and the staff team still haven't roasted me yet. Piggys family are long dead now so I can't make that kind of joke anymore. End my suffering, take a glance at my code but just be warned if you look at old projects your going to actually die, please refrain from that kthxbye
you're
😦
One day
oh lol i managed to run my local server in intellij idea
Did you follow Piggys guide by any chance?
is there a way to create config file in papi expansion or do I need to create my YamlConfiguration and File ?
@topaz bay mybb is nice
I have now @topaz bay
@quiet depot but flarum though
they're really different design wise from more traditional forums (like xenforo, mybb, phpbb)
they call it modern
I just think it's ugly
You consider this: https://community.mybb.com/
To look better than this: https://discuss.flarum.org/
Get support using and extending Flarum, the next-generation forum software that makes online discussion fun.
god no
with a theme though, most certainly
maybe design wasn't the right word
ergonomics perhaps
I've used discourse/flarum on velocity forums, and paper forums
I just don't like the feel
They both look exactly the same, and it looks nothing like discourse or flarum..
?????
I think they both use discourse actually
oh sponge forums too I think
What is the issue with the ergonomics of these?
looking at paper forums as an example, I think this is visually ugly. It's extremely barebones design, probably closer to pure text than to spigotmc.org. The information is there, but it's not presented nicely at all.
yeah look i don't really know what i'm talking about
I can't actually make a solid argument about this
it's as simple as I don't like it
Im confused
I dont understand what you mean by "The information is there, but it's not presented nicely at all."
On the left, we have the major categories, front and center, with their individual tags
that was my attempt to relate it to ergonomics, by piggy backing off the design issues
I just dont understand how this is worse than spigot forums or xenforo
well i'm not gonna bother making a proper argument, as far as i'm concerned rn it's personal preference
How tf can you hate something based on nothing
I hate suckers for no particular reason
They're an annoyance on my soul
my hate is based on that fact that I don't like the feel of it, and the design of it, which may or may not be the exact same thing. I can't explain the issues in detail though, it's as simple as that. For example, some pleb driving a car for the first time, without previous exposure to cars, and the engine just dies due to some internal issue. they probably don't know exactly what went wrong, or even that it was due to the engine. As far as they're concerned, the car just stopped working
I will never understand how people can come to conclusions without actively thinking about it.
😎 pro clutch control on the lawn mower
Arrives at mechanic
M: What's wrong?
D: Car broke
It makes no sense in my brain
You know peoples brakes break
Why don't they just stick in in reverse
Gearbox vs your life
That doesnt work does it?
Oh wait, maybe it does work on automatics
But not on manuals
Sometimes it's difficult to put it into first even with clutch down going like 15 mph
Lol
NOW
I might PR
dont touch my language
With my superior syntax
i'll think about it
Someone should pr, and change all the syntax to
{
;
}
No
odin doesnt use semi colons
semicolons suck
semicolons suck
@ java
Not very much I can do about it
Thats the algorithm, pretty much bare bones
Its the core of a lot of functionality, I will not be updating its flow to make it look prettier
fuck that
yeah good point
i'm still allowed to consider it ugly though
@topaz bay Add annotation support
lmao
@topaz bay Add annotation support
delete it
/* This implementation does not implement composite functions,functions with variable number of arguments, and unary operators. */
while there are tokens to be read do:
read a token.
if the token is a number, then:
push it to the output queue.
else if the token is a function then:
push it onto the operator stack
else if the token is an operator then:
while ((there is a operator at the top of the operator stack)
and ((the operator at the top of the operator stack has greater precedence)
or (the operator at the top of the operator stack has equal precedence and the token is left associative))
and (the operator at the top of the operator stack is not a left parenthesis)):
pop operators from the operator stack onto the output queue.
push it onto the operator stack.
else if the token is a left parenthesis (i.e. "("), then:
push it onto the operator stack.
else if the token is a right parenthesis (i.e. ")"), then:
while the operator at the top of the operator stack is not a left parenthesis:
pop the operator from the operator stack onto the output queue.
/* If the stack runs out without finding a left parenthesis, then there are mismatched parentheses. */
if there is a left parenthesis at the top of the operator stack, then:
pop the operator from the operator stack and discard it
/* After while loop, if operator stack not null, pop everything to output queue */
if there are no more tokens to read then:
while there are still operator tokens on the stack:
/* If the operator token on the top of the stack is a parenthesis, then there are mismatched parentheses. */
pop the operator from the operator stack onto the output queue.
exit.
https://img.bristermitten.me/12.40.16-2020.png what am I doing
wtf was that
the explanation of the algorithm
put it in =paste 😠
@prisma wave it wrong
i am trying to bruteforce it
Youre doing... it wrong...
what's wrong with that
What isn't wrong with that
it's entirely possible i've not noticed something
pls correct me
this has been going for 10 minutes
@prisma wave you found the thing yet
i don't get why you want it makes your life easier
im hungry
eat then
@topaz bay aide-moi
you can't just tell me i'm doing it wrong without saying what's wrong
you're wrong
😦
ik there are optimizations that could be done
but like...
it looks like it would work even if it's a bit slow
It should just be aligned to chunks, with the scan tasks being parallelized , at that split
@prisma wave (or anyone else) wanna join? https://www.codingame.com/clashofcode/clash/1235785f8069dc12109ea502c2a92de89e3ab2a
kek
@lunar cypress yeah alright
i'm trying to find out the coefficients of a cubic function from its values
Time to get railed
because we have 1 equation but apparently that's wrong
Yeah, fuck that, Im not going anywhere near that
I dont like math... I dont like numbers in general
import java.util.*
import java.io.*
import java.math.*
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
fun main(args : Array<String>) {
val input = Scanner(System.`in`)
val N = input.nextInt()
// Write an answer using println()
// To debug: System.err.println("Debug messages...");
println(N.toString().last())
}``` mine is just this
what's yours?
Yeah I mean in this particular case it doesn't really make a difference how you do it
I'll join later lmao, I gotta get this school shit finished
so far these have been a lot easier than yesterday, I gotta say
that one was pretty easy
hope it stays like that because then I actually have a chance
the last one we did was formatting a single string
easiest way to detect a certain input type? e.g only detecting an int
do i have to try catch etc
Ints.tryPrase <o/
unrelated
Parse*
@onyx loom in kotlin it's toInt() or toIntOrNull()
The first will throw an exception if it's not an int, the second will be null
doesnt kotlin have a readline function?
yep
Yeah it does
ye
readLine().toIntOrNull() ?
are you joining bm?
What the fuck is this shit
i missed it lol
😭
hold up
regarding that brute force i'm an idiot
there are no integer solutions...
You aren't missing anything

Free money