#dev-general
1 messages · Page 394 of 1
Good god wtf is that
im sorry 😔
please forgive me if i do bm
k&r is the superior style
You need to track down deffered functions and where you defer them to find the error handling functions
Go error handling is the greatest of all time, clearly. Can't be bad if there is none
go error handling sounds good on paper until you've got 300 if err != nil {}
Do you panic in recoverable situations
yes OTB is, as the name implies, the one true bracket
Some times yes Johnny
i am still yet to write a program in go which is kinda sad
Thats why they added defers
I would literally rather be homeless and not have a job than have a job where I have to use allman
Thag and to handle releasing system resources as well I think
That was me like 2 weeks ago. Im doing that project euler thingy to learn and play around
o whats that
maths puzzles sorta thing
ew maths
BM suggested it in some server, its a maths puzzle thingy u can get the answers with code
I should probably do some of those for Kotlin
u can usually brute force them but sometimes you have to be clever
I need to get more used to it
it's quite good for learning new languages
CoC's are painful
CoC is awesome
can u link pls @errant geyser
Best way to learn
well yeah I love them
but i mean I just suck balls at Kotlin
projecteuler.org I think Kali
so I take like 10 minutes to use a basic solution lol
🥲
Theres a coursera course thats sums up the major functions and stuff you need to remember if that helps
A website dedicated to the fascinating world of mathematics and programming
Kotlin for Java developers
ah, ty
i just need to wrap my brain around functional shit and all the nice methods of kotlin lol
i still think the default java way
Yea it goes through that star
hmmm okay
Generally speaking. Is it more optimal to have one world with 100 people in it, or 4 worlds with 25 in each?
PluralSight also has an amazing course on haskell if you wanna give it a shot
ooh and it's free right now right!
1 month free from some VS thing
worlds hardly matter. servers are a huge differnece
actually not true
That's quite dope, the syntax isn't as nice as Kotlin's but this is really cool
it's the whole many players in the same world that Minecraft whines about
oh so multiverse is the solution Bardy? lmao
no
the server is still an issue
package main
import "fmt"
type Mapper func(interface{}) interface{}
func mapSlice(fun Mapper, coll []interface{}) []interface{} {
new := make([]interface{}, len(coll))
for i, elem := range coll {
new[i] = fun(elem)
}
return new
}
func main() {
arr := []interface{}{1, 2, 3, 4}
var mapper Mapper = func(x interface{}) interface{} { return x.(int) + 1 }
res := mapSlice(mapper, arr)
fmt.Println(res)
}
i made it work
this is unbelievably cursed
well server is going to have overhead sure ig
Horrendous
the solution, Star, is Krypton 😎
lmao
lmao
BM wtf have you done
maybe if it actually saves blocks some day
map function in go
no way that's functional
maybe if it becomes a proxy one day
Mhm
yeah the dream is to have 4 servers with a proxy
go is technically functional
I plan to actually make my own proxy at some point
it fits all of the criteria
that's how you get performance
I meant functional as in works
what's it gonna be called
Kroxy
Wait what?
Oh right, yeah it is
oh shit that's actually awesome
Is bungee the only way to go cross-servers?
How do you mean bm?
No
Velocity is the best way afaik
First class functions
But other than that there isnt anything else afaik
isn't that technically all you need?
Immutability and stuff as well
can I work on Aurora. I know a bit about networking and I think writing a proxy would be cool af
the primitives aren't immutable but you could make your own immutable types
ohhhh yeahhhh
I know fuck all about proxies, so it'll be good to have another person on board to give me a hand lol
But I mean in that sense Java could be a functional language as well tho
well, I know how they work ofc, but idk how to implement them
Well yeah, technically it is
and I can say I contributed to a sick af named project
When none of the core tools and libraries of a language are functional it's a good indicator that the language isn't
might actually make the API somewhat shared between both
@prisma wave This actually works, wtf
java Streams 👀
Yeah that's true - I'm just talking purely hypothetically
Go with absolutely no library suppourt be like
delete this
no
fucking
way
wtf
Go: You want dynamic arrays?? Fuck you
that makes me uncomfy
That's definitely a joke
That works johnny
Cljotlin makes a return?
Or in that case just random parens and infix functions
Not generally applicable
.
prefix notation what the actual fuck
Oh abc and ghi are infix?
dude I did some lisp when I was doing the MIT CS50 thing and wow I'm getting flashbacks
Whats abc and ghi matt
Variables
Yeah
infix fun Any.abc(x: Any) = ""
infix fun Any.ghi(x: Any) = listOf("abc", "def", "ghi", "jkl")
Lmao
It's clever but really not practical
You rewriting bungee now?
that's the plan, yes
I told you
Someone wrote like a class full of compose functions for siff arities
late april fools
🥲
Yup rip
almost made me install kotlin
for a bit of fun, yeah
Can't find a download anymore though
Just install the plugin on ij
if I may make a suggestion, apart from the IO a proxy is functionally pure meaning a language like elixir or clojure would be perfect and would scale extremely well!!!
I'm not having IJ here
Ah
lol I think we're gonna stick with Kotlin for the API's and stuff and easy compat between that and Krypton
also I don't know any functional languages
kotlinc?
yeah
☹️ ☹️
where do you get that
I will port it to clojure
haha
Sdkman has it if you've got that
Probably the easiest way of getting it
not sure I can manage another installation today
emacs 27.2 has drained me
Try building it john
oh hell no
Lol
I highly recommend elm
built emacs from source, took 25 minutes, kotlins probably gonna take a couple minutes as well
Even the installer was the easiest
Installing haskell and stack was... Well...
Cumbersome
quite simple 5Head
the only 2 I know of are ghcup and rustup
Oh it installs stack?
😩
ghc had me use chocolatey
The curse of windows
oh boy chocolatey
Now I have a bunch of haskell suppourt things taking up like 20 gb on my C drive
Might uninstall that just for the space
windows installations are a lot of fun
windows installations are possibly the worst way you could spend your time
you'll never know which nonsense you'll be expected to install
🥲
I remember trying to install ghc on windows before knowing wsl and without choco
that was a hell of a ride
Sounds painful
mmmm wsl and llvm go brrr
💀
I ended up building some huge C++ libraries I think
Choco does the same i think john
no choco definitely doesn't build everything from source
Oh it took me so long tho
did it
Yea
Pretty good
Its an Omen
but maybe it reused the built stuff from before
wait no that can't be right
man I can't remember if I have haskell installed currently
Check the cmd ig
Ah ok
Im thinking on installing Manjaro but hesitant coz i feel like ill mess something up
windows takes up so many resources
Yeah I also considered Majaro but I figured I wouldn't have the nerves for an arch-based distro
I think bm said it sets up most of the stuff itself
yeah I bet
yea it does
do you still have to update everything every week
how do you mean?
isn't that a thing with arch
Would allocating just like 100GB or something to it be okay?
sudo pacman -Syu
You probably only need like 30GB so sure
I mean should I give it a bit more if I would be installing more things onto it
are you dual booting Yugi?
if you do, you can use your windows drive from linux
🥲
that's what I do
Wdym?
so I still have access to all my shit
Isnt the file system different?
well yeah you need a spot for your linux stuff
@lunar cypress there's usually like 1-2 packages that can be updated every day (i check regularly out of habit), most are just as painless as APT, only problem is occasionally stuff from the AUR can take a while if you're building from source (eg chrome)
Ah
Yea most Linux distros can read NTFS
or use yay or another AUR manager and don't build from source yourself?
no I am
but afaik some AUR packages compile from source
or at least they take long enough that I assume that's what they're doing
Im thinking of moving things likr IJ and VS to the linux installation so I can keep windows purely for whag I find it more useful in coz I got only like 256GB on the c drive
oh none that I've seen from an AUR manager
there's only like 3
So only 30-50 gb left on there with everything installrd
which are all chrome / electron etc afaik lol
yay only downloads pre-compiled binaries afaik
what would you say are advantages of majaro compared to something debian-/ubuntu-based
like what reason might be considerable for me as someone who isn't really into any of this to use the former
AUR
^
Debian kinda slaps tho, but it is annoying to get packages that you need to be newer
I dislike Canonical because of their practices but I guess ubuntu is okay
it's quite easy
though Manjaro also is
oh yeah
How is the ui on Manjaro?
and the Arch wiki has everything you'll ever need
Depends on the DE you use
Manjaro has a very nice DE from what I've seen of it
Manjaro's cool
i mean, there's like 7 different flavours
Oh you can change them?
yeah
oh yeah I meant the XFCE
yeah Yugi it's linux, you can install anything on anything
The UI is fine, you can customise it to whatever you want anyway
XFCE is pretty basic, I'm running it on Mint
But it's the right fit for me because it's very lightweight
I personally run KDE Plasma on my arch setup
From what I've heard all limux distros dont allow that
Atleast not easily
huh
any linux distro allows you to run any linux software on it
Afaik you can just remove the package and install a new DE and it pretty much "just works"
I see
Star, Do you live in discord or something?? How often are you on?
pretty often
Hes a bot
i just constantly rewatch she-ra and troll the discord
Most of these guys have discord open 24/7
it's my purpose in life
=star --version
@old wyvern 4.3.99
How do you get anything done?
What is she-ra? I have a friend who's obsessed with it
=star annoy @humble silo
?
whose parent is this
lol
It's a reboot of the original She-Ra from the 1980's, it is my favorite show ever. Excellent plot and character development, great story, makes you cry, awesome art style.
I can't praise it enough
It's on Netflix too
And it's what my pfp is
She-Ra sounds like a gender swapped Egyptian god
@prisma wave Dude is now writing poetry
https://github.com/abreslav/other/tree/master/Стихи
Fuckin weeb
It's not anime?
You weebs and your anime profile pic, disgusting
Isnt it?
haha
no lol
made in america
It's literally an american cartoon reboot
originally based off of He-Man
What is it called?
Kekw Yugi
She-Ra and the Princesses of Power
the show?
yea
well you don't pronounce it like Ra
Weeeeelll it looks like it from my brief Google search
it's just she-ruh
the left is the original 1980's one and right is present day
and they're both American cartoons lol
so I don't know what to tell you I guess
How do you type 3 sentences per second
I type 180 wpm
my man has never seen a cartoon
haha seems like it
The animation style looks like an anime
what
It's kind of inspired by anime, I'll admit
but if you watch an episode of the show it's not very similar
plus it's in english
gross
The cartoon i used to watch was Tom & Jerry, it doesn't look anything like that
Isnt tom and jerry getting a live action movie now?
16
I might actually watch that
lmao
Welcome to furry con
lol
I guess if you don't get the original, you won't really understand the vibe of the remake
I think regular show was the last cartoon I've seen
Cause it borrows most characters from the original
Just remastered and with an actual story lol
The last one I've seen is Bojack Horseman I think
Hands down one of the best shows I've ever watched
Whats that about?
yeah one of my roommates loves that show
It's about a depressed actor whose good days are over and whose life catches up with him
Ah
most of them are animals lol
yeah canonically, but I mean like from what they look like
A literal horse
yeah there's like a horse, a cat, a guy, some other horses and stuff
Lol
i dunno i saw like 1 episode and got bored
I thought it wasn't that great in the first 2-3 episodes but I really got into it
Should we go to #off-topic before Matto comes back orrrr
he's gone insane
If we go to #off-topic wouldnt #off-topic be off topic
If you all want a real show ask Vision to talk.
haha
What?
^
There is a difference between a support channel and a general channel
I wasn't there but what he said
"Hi, Ive got an offer for you, remake windows for me and ill give you a 1% share. Deal?"
Call it Doors instead and we have a deal
the problem being: why would I ever want to remake windows?
What are you thinking?? You're overpaying by at least 1%
True
yeah hold on I'll start an open source project that sounds fancy and wait for microsoft to conquer it
someone literally reverse engineered like Windows XP
it's called like ReactOS or something
the source code got leaked I think?
🥲
well no like they are completely open source reverse engineering it
building windows from the ground up, it's kinda carzy
Don’t let Microsoft steal Krypton
haha
Theyre more likely to sue him than buy Krypton
dark web
gitstub
Quick everyone unstar
Gitgood
nooooo!!!!!!!!!!!!!!!!!!!!!!!
Idk who this person is but whoever theyre prosecuting is fucked, huh
Lol
🤬
LOL
you got that messed up
It’s for your own good. We can’t have Microsoft steal Krypton.
it's the other way around
o.0
I will never let that happen
ever
she's being prosecuted for sex trafficking children
Well, whoever that is, is completely fucked
Not even for “10 billion” dollars?
Ah ok
jeffrey epstein ring a bell?
yeah that's jeffrey epsteins girlfriend
Deserves it then. Still, 3 million pages is like, you may as well fire your defence because they can't do shit kinda levels of evidence
Just burn the evidence, nobody will know
🤔
Or ask the court nicely to let you go and say it won’t happen again
Welcome to the British justice system
pinky promise
Or tell them you know Microsoft and they are going to sue them if they don’t let them go
oh shit yeah your dad works at Microsoft
Lots of options
he's gonna get the judges banned from xbox live
AGAIN?
Wow
What if I know Amazon instead
What if I say I know Elara
Insider look into the CEO of amazon's daily life, Jeff Bezos. Jeff and his assistant Jeeves (John) show us what the billionaire/richest man on earth does on a day to day.
SUPPORT THE CHANNEL:
https://www.Patreon.com/ryantheleader
STARRING:
@Blake Rosier
FILMED BY:
@imstevenn
Secret message: Comment the entire script of a movie.
FOLLOW ME...
Or tell them you are a YouTuber and will get your fans to hate them
Maybe if BM was a judge
I am a judge
I can actually imagine like an 8 year old screaming "I am a YouTube, my fans will hate you!!" Down the mic in a CoD lobby with a name like xX__EpikGamezYT__Xx
I could see an adult doing that honestly
You could be THE judge
xXx_xXx
Senpai is THE judge actually
Just have to intimate everyone else with your random coding language knowledge.
As Supreme Leader he'd organise public events to talk about stuff like this
The population would have to live in fear of his immense power
data judge = Brister | Mitten
they'd cut his head off hopefully
damn
He would code another one
guillotine for bm
aight I'm off for today
night johnny!
Farewell
good talk today boys
bed time for johnny at 1:40am (i think), weak
bed time for yugi at 3:40am (i think), weak
2:40
Went from: Whenever I look at myself I cry to Hahaha BM rules a country. How does that even happen
oh right yeah our clocks went forward, that would make sense i think
Actually it went to BM rules a world
BM unleashes the Maybe Monad
UwU
all beings will be PURE and FUNCTIONAL
Removes classes from all programming languages
Justice shall be served
inb4 a mass genocide of non-pure humans
You should just create a copy of yourself when infected instead
Good thing we don’t have viruses in our word
I think we would all die
wdym
No we wouldnt
our dna should never change
We would be immune to covid
??
covid is not DNA-based lol
Fp masterrace?
Then what clothes would it wear to work?
swimsuit
All viruses require being added to our genome for replication
Now this gamer tries too hard in biology
Not so
Offsprings could have a diff copy
Trust me I know what I am talking about, I read it online
We dont need mutation in ourselves
oh shit wtf i guess viruses do affect dna
Thats asking for cancer and stuff
Isn’t DNA copied from our parents?
and random mutations
Not perfectly
but you could still have those when creating new dna
Mhm
just the original copy is immutable
So that means it changes
no the source file is unchangeable
But then DNA wouldn’t be immutable
This "mutation" is an error while copying
What creates DNA?
Not mutation in the sense we mean
anything new you make from it is changeable
Like replication?
IAbstractDNAFactoryBuilder
Yeah
Something about transcriptase or something
11th and 12th years in school?
Yea
Save some chromosomes for the rest of us, will you
oh that was still high school
we just took whatever normal classes, no specialization
@cinder flare whats ur rank on siege
Ah
u said u played siege right? or am i wrong
We had minor ones
Gold 3 last season
I took biology 10th grade
it sucked
i get to take it again at uni tho
cause I'm a bachelor's of science 🙃
Kali what's yours
I had a bit even last semester at uni tho, under the name of "environmental chemistry" or something
i think i got low gold, deranked then i stopped playing
so it wouldve been top of silver
Rip
I hit plat 3 last season, pretty spicy. Then I solo queued and lost it straight away but eh, its fiiine
Engineering gang
Ours has science too
and now i have to take Physics for Scientists and Engineers instead of normal physics grrrr
B.Tech in Computer Science and Engineering 🥲
oh mine's just a B.S. of Computer Science
I see
my friends roommates are engineering majors tho
today marks the day I officially join team kotlin karen since it looks like a sexy language
its made by nucleotides
lmfao yeah the killing joke was awesome
EXCUSE me?????
You are excused
what are your thoughts on the mutability of human dna?
also star
that shit sucks bro
it full does too 😕
I've always thought for a long time that your pfp was a fish sticking its tongue out
so what is ur pfp
Lol
"a fish"
who's adora
main character of She-Ra
It’s actually a bird
she looks like she could kill me without hesitation
Too rigid
yeah that's the best part
and she can turn into She-Ra
Very Egyptian
Why is she part blushing holding that sword
Very slow walker
Confident stride of a haskell user
Very horny cartoon you got there
no way
since intellij doesn't really support it
there's a plugin
so i put it off
You don't really need intellij tho
i cant code without ide 😫
any basic editor is probably fine
ew VSCode at least
😖
lol
VSC, Vim, Sublime, etc are probably fine for simple stuff
What do you use Haskell for?
since when did i have vsc
Ij works
But you dont really need it
Ghcid is good enough
ahiusdjsahdkjsahd
why does 1.16 mc server take 2+ minutes to start
but 1.8 takes literally 15 seconds
so it's basically a worse version of elara? 😏
Exactly
1.8 bad
I see now

bad loads quicker than good dkim
are you using paper?
actually i started before i sent this message, and it just finished, so 3 minutes
jeez
yes
1.8 loads quickly because of all of the bad
my server loads in less than 30 secs
howww
Yes
yea u are
do you have a potato pc
We were rewriting the specs
I updated the google doc a bit, we gotta refine the contract system a bit I think, and then everything else can stay fairly similar
[20:00:22 INFO]: This server is running Paper version git-Paper-432 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
[20:00:22 INFO]: Checking version, please wait...
[20:00:22 INFO]: You are 150 version(s) behind
```lol
Yea other than our current type system everything would fit well on the jvm
Maybe we should consider some limits
wtf that'd probably do something
ask anyone here
yeah I feel like implicit "destructuring" for everything might not work so well
update your paper you weirdo
Hmmmm
less than 30 seconds?
yeah?
well im running mine through wsl
and it takes a good sec to load the libraries every time
Just never turn it off and use /reload, easy fix
🧠
PDM has failed me
Maybe you failed it
Join slimgang
Ok but these are lowkey amazing tho
Thanks
If you can't accept pdm for who it is then go away
is this correct?
french 🤢 🤢 😫 😳
what classes
Finger reveal
actually ill just show u it
gotta appeal to those in quebec what can I say? 😛
Do it in a init block maybe dkim
Canadian french 🤮
It’s a bit more clear here
Whats on line21?
CLASSIC PDM hahahahahahah
There u go @sweet cipher
SHUT IT
java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics the DEATH of ALL programs
🥲
time to stop server :c
hasPAPI = server.pluginManager.isPluginEnabled("PlaceholderAPI")
@half harness you have to be very careful with pdm + kotlin + main class because if you try to do pretty much anything before pdm runs you will get those errors because of all the stuff kotlin adds
That seems to be happening before pdm is loaded
does that include the stuff outside of classes?
Probably
You can look at the generated code as a reference
That's probably fine but about 80% of kotlin will use the Intrinsics class somewhere
If any of that tries to run before PDM, you are going to hell
how do you deal with this type of shit. He is trying to make me rate his horrible code earlier. Now he spammed message me smh
im about to block him but i want to see what he says
lol
They might find a certain wiki helpful 🙂
omg true
bro you don't allow dm's from this server without being a friend first
that's what I do
and spigot too
and lp
all the big discords
Pulse I would like some help but I only talk in dms, and only send messages with one word.
a few sketchy file uploads too while you're at it?
Ask for social security number to verify they are a real person too?
and the number on their credit card, the month, year, and the digits on the back
Don’t forget their address
What does he even want help with?
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
i pointed out some issues
and then im like nope im not helping more than that in dms
go ask on a server and i will help there lol
then today
he randomly sent me 15 messages and called me
i was like wtf
and now he sent me a friend request and leaked his ip
im like
Took me so long to realize what [ERROR : AbstractConfig] meant lmao
Code is in Africa now with how arrow like that is
some
So he coded this?
mhm
As long as it works for early development they shouldn’t care too much
You learn to follow conventions over time
If you try and learn them all instantly you give up
that's why you send your code to pulse
and he rewrites it for you in nice not arrow style
then you learn the conventions!
Just don’t write using arrow style we aren’t using some python code from early 2000’s
lol
It’s messy and causes mistakes and is naturally hard to read
Ohh and also don’t code like me I’m just a lunatic
you said that wasn't all his code, so I was joking that he just sent you his entire repo and asked you to look haha
oh lol
I think static is the hardest part for people to grasp
They either go too far one way or the other
IAbstractStaticBuilderFactoryJerryCreatorBean
Either static is some kind of devil spawn or it’s used everywhere they find they can’t access something or cause IntelliJ tells them it would solve it
Wouldn't be an issue in haskell 😏
Shhh
Java?
Yeah ik it wraps stuff
you know, coffee bean
Beans
CafeBabe
You guys need to stop talking about your beans that’s all I know
Time to rename a random lib as Cappuccino
Next up: Latte
i have to do this: ```
gradle clean
gradle pdm
gradle shadowJar
then a frap
Mocha seems to be taken
Sounds good
Like I’m ever not 💁
just modify the build order to make shadowJar depend on pdm and clean and then you just click one button in IJ :)
lego figure!
oh
slimjar isn't done yet iirc 
I mean it could work 🥲
it's Yugi's competing solution to PDM lol
bm ain't american either lol
oh nice JDA on the go
should i use build.gradle
Yup
build.gradle.kts yeah
Altho I really dont understand ehy they called it a UberJar
how come it is called shading?
Is there any way to reduce the size of JDA
What's painful about it?
maven shade was just the first thing to put stuff in a jar?
The Jar gets so big they need to call an Uber to take it home
then gradle's shadowJar was made after?
i google something - its always in groovy, and sometimes its just so hard to convert to kts
It inttoduced the term shading I think
whats the opposite of finalizedBy? (how do i make it run before, not after)
Yes
Sounds like excuses
huh crazy
notFinalisedFrom
Maven is the older one
;-;
😗
Ant -> Maven -> Gradle
What about regular Notepad?
There was also somethinf called Ivy but I think it was just for repositories than a full on build tool
Oh god I actually saw a person on StackOverflow that unironically used Ant
Not sure
😫
@half harness doFirst might work
hm
What are you trying to do?
withType<ShadowJar> {
clean
}
Learn to explain your questions straight away instead of going around and around lol
?xy
Based on your question, we think you may be having an "xy problem", which is where you ask about your attempted solution rather than your actual problem.
Please read the following and re-explain your original problem so we can better assist you: https://xyproblem.info/
dkim has fallen for one of the classic blunders
y
Also you can run a task as clean shadowJar
dkim: wAiT wHaT?!!?!‽?‽
i already knew that but forgot about it
‽‽‽
nice
nice
doesn't work
oh wait
oops
lol
lmao
It should
Anyways just do clean shadowJar then lol
ok
Also why does PDM require to clean?
I've been a good boy
Heyo
actually just found out its prob not pdm related
basically
the jar just doesn't build
it only builds after i clean
Sounds like something you'd want to fix instead of duck tape
Duck tape works with everything
i didn't change anything tho
it just suddenly stopped working
The issue is always between the monitor and the chair
which is not me
not duct tape
:)
Chair is more important
Doubt
i thought slimjar is still in dev
so
you want to load dependencies
but not shade
right
like from maven/jitpack and that stuff?
at this point ill probably just shade
Yeah shading is objectively easier