#general
3141 messages · Page 498 of 4
No but I'm gonna decompile / update it after work today
arguably i'd say #2 is what is "missing most" and what people would've wanted to see
with AWE i guess i get it, there's a financial motivation there, he sold his work
Dw Bart I'ma git it after
but FAWE was all free so no idea what their excuse was
Anyway break time over bye
does it have lootboxes barty
being selfish isn't really that bad 😛
"oh i gotta pay my bills" is also selfish 😄
I would sooner shoot myself than shove something of barties on my server
Yes please
no
cat u r rood
tbh the iq here would rise
Leaf at it again to lower it
btw barty when your server didnt support 1.15.2 like two days ago, the unsupported version text that it shows was literally so long it was going off the screen and made your server hard to even see, because it was showing all of your supported versions which was like a ton of versions
nothing has hit me harder than realizing that O'Brien's kid is older than me IRL now
His kid was younger than you before?
In the show.
😬
i r cp
ty
yw
chat is async, correct?
chat is async but plugins can end up forcing it to sync
You can use PlayerChatEvent but it's not recommended

for good reason, if you ever think you need sync chat you're wrong and need to go into a sensory deprivation chamber
never use PlayerChatEvent, it will force chat to sync
Yeah but the option is there if you need it
no, it shouldn't be considered an option ever.
if it's not ever useful, why is it still there?
compat
deprecation takes time to fully see through
but yes probably should've been removed completely by now
alright then why doesn't it just hook into asyncplayerchatevent?
if pce's constructor is fired, just fire apce, that kind of thing?
because compat. plugins that uses it years ago are expecting a sync context inside of its handler
if they changed it, everything will blow up
but yea fuck those plugins, it should be removed now
seems like forcing chat to sync isn't worth it for compat, does it force chat to sync permanently (until restarted)?
if you listen for pce would that cause chat to sync?
register as in construct or register as in register an eventhandler
that's pretty interesting
i think if you just looked at the code for chat you'll understand. it's really not mindblowing
where would I go to find that?
where the event is called in the server lol
Kill the PCE. Legacy shit MD has fun of. 😄
clone paper, patch it, then look at the code
would craftbukkit suffice?
mm no
i dont use cb so dont know
wait is it?
if I'm looking at it in this way, would there be no packages because of the way it's patched?
?
no hold on
I'll just clone paper
line 1735 in PlayerConnection.java, NMS @austere ivy
that's the line where it decides to sync or async
did paper p
k
you want to look in the net.minecraft.server inside of the PaperServer folder, PlayerConnection.java, line 1735
the async chat event is fired on the calling thread, e.g. not always async, but generally should be
if it would go any faster
if you're using the sync event, the task to fire the event will be thrown onto main if it's not already
IJ has to index the entire project, and paper is big brian
so it takes a good amount of time
inb4 patching on windows
still decompiling ._.
.rekt
(DiscordBot) cash4rekt.com - Registrar: GoDaddy.com, LLC, Registered: 25-10-2019, Expires: 25-10-2020
.whois electroniccat.com
(DiscordBot) electroniccat.com - Registrar: eNom, LLC, Registered: 06-02-2010, Expires: 06-02-2021
.whois server.properties
(DiscordBot) server.properties - Registrar: NameCheap, Inc., Registered: 21-08-2015, Expires: 21-08-2020
.whois papermc.io
(DiscordBot) papermc.io - Registrar: Key-Systems GmbH, Registered: 05-09-2018, Expires: 05-09-2020
.whois destroystokyo.com
(DiscordBot) destroystokyo.com - Registrar: Google LLC, Registered: 09-01-2014, Expires: 09-01-2021
poor bot getting abused
.whois wizjany
Homepage and supporting backend for destroystokyo.com - DestroysTokyo/airplane
the * means an estimation
does net.minecraft.server not use packages at all?
at least the one we get doesnt
there's absolutely no separation of anything
internally at mojang probably
Apply Mojang mapping to the server jar and brighten your life.

me: hmm oh wow mojang offers mappings?
me: clicks download button
FBI and CIA and the cops: busts down door HOLD IT RIGHT FRIKIN THERE
mojang removes all packages bar the bootstrap, basically
@austere ivy Minecraft has a proper package structure before obfuscation.
it's so strange because this is Mojang code.
the biggest video game on earth, ever
and I'm looking at the very internals of it
I dunno feels weird a bit
lol
it's strange because I thought it'd be so much more professional or something I don't know what to expect
I expected like god-tier abstraction and everything makes perfect sense
mfw

it's a 10 year old codebase
but then I see PlayerConnection and then a separate PlayerConnectionUtils with a bunch of static methods
written by some guy who literally didn't know java
and I'm like wait couldn't utils for one thing just be put in the other class and I thought util classes were bad 
it's a 10 year old codebase but doesn't every codebase go through refactorings quite often?
mine do I guess
Markus Person started it while studying. So it was awfull. Getting better from version to version.
Well, yea...
it's so weird I feel like a kid in a zoo ro something like "wOW LOOK AT THAT!!"
brian's first day exploring minecraft server implementations
Refactoring stuff properly takes time, especially if you wanna do it properly
that took you forever
Yes Cat. Refactoring is a continuous process.
this feels so exhilarating and so disappointing at the same time
so this is literally the only thing that makes it a command?
._.
Don't use strings
meaning?...
beyond that, there ain't too much you can do to improve that, it's a trivial map lookup
I thought there'd be like EnumCommandFactoryBuilder.getInstance().BUILDER.getCommandType("COMMAND").build().retrieve() and other crazy stuff but no, it's literally checking if it starts with / ._.
im willing to bet you're straight up pulling a user out of a db synchronously on every block break
im willing to bet you're straight up pulling a user out of a db synchronously on every block break
idk simple you think they even know how to use a db?
I've seen worse
Why does every new dev make a Core
GroupManager#onCommand
well it could be a Main
well regardless, what is Core.getUserManager().getUser() doing
Basically, if that's a map, that is literally a non-issue
"managers" infuriate me, because we can't change the actual player class or something, we have to make a PlayerManager or something, or a RandomPlayer like MCMMOPlayer or FloatyPlayer or whatever just so we can add things on to the player to get custom functionality
the only advice there is don't use a string...
@austere ivy you'd like kotlin then
There is literally no sane reason whatsoever, outside of user interaction to use strings to identify players
it makes a static method
yes, extension methods. im well aware
it's just so infuriating there's no real good solution
other languages have them too
of what??? its fine as is, as long as that's a map and not inducing network overhead
you either have a PlayerManager.getPlayerData("") or whatever which returns a CustomPlayer or something OR you have "extension methods" which are basically static methods.
Worry about performance when it's actually an issue
Worrying about performance when you have very little clue of what you're doing is not going to end well
brian wtf are you talking about
a simple map lookup is not something you're going to optimize much
I don't know sorry just a slight rant
(assuming you're using a map and not going totally stupid in there)
we're still assuming its a map bc he hasnt told us
I mean, the question is why you're wanting to extend something like MCMMOPlayer
how are you determining that
that line of code you showed us doesn't indicate any issues
he says hes worried about cpu time, which makes me think he thinks that his code is heavy (probably because hes experiencing lag), which in turn makes me think hes shooting off a network request or some sort in his event
how are you seeing "too many resources"
ok once again, and when i say once i mean once, if you sidestep and dont answer me again im going back to what i was doing
what is that method doing
- Use UUIDs, not strings
The mining itself isn't deadly
Basically, use proper tooling, e.g. spark or visualvm and actually address hot spots
There is no magical way to make performance fast
wtf lol
bruh
jesus fuck
oh my gosh
That would do, yes
it's so adorable because it's not using a map but somehow has final sprinkled throughout
Liskov substitution principle
u s e t h e u u i d
go learn java 101
how nice
670434816105119787
This is not using UUID.
i mean yeah you're not longer linearly searching a list or array or whatever that shit was
O(1) Vs O(n)
thats big O notation, and it describes how complex your function is
der
a linear search is slow as fuck because worst case you check the entire list for every retrieval
@void void read this: https://www.javatpoint.com/collections-in-java
Collections in java or collection framework in java with List, Set, Queue and Map implementation, hierarchy and methods of Java Collections framework, ArrayList, LinkedList, HashSet, LinkedHashSet, TreeSet, HashMap, LinkedHashMap, TreeMap, PriorityQueue, ArrayDeque.
or if you want a very smol one: https://www.geeksforgeeks.org/collections-in-java-2/
just do regular hashmap
because you dont need linked nodes.
if you dont know why or for what reason a linked data collection is necessary, dont use it
y?
bc stupid
Big dong notation
https://asciinema.org/a/odInzV4m5q6wA42kOJvG36YeU just coz I wanted to see if asciicinema worked
Alright I just finished my last bottle of ejuice, aaand... I'm not going to buy more. At least, I'm gonna try lol. Just gotta wait to see how them nicotine withdrawals go. :(
is there a reason you're friend requesting me @void void
dum fuk
.xkcd git
(DiscordBot) xkcd: Branding (17 August 2009) | http://xkcd.com/624
mfw
there's 27 singles near you looking to have a good time
thats 27 seconds so get fucked @spare venture
read billy's message then mine.
ok retard
.xkcd version control
(DiscordBot) xkcd: Control (8 September 2010) | http://xkcd.com/790
.g xkcd git
(DiscordBot) https://xkcd.com/1597/ -- Git - xkcd: "< Prev · Random · Next > · >|. Permanent link to this comic: https://xkcd.com/1597/ Image URL (for hotlinking/embedding):..."
that's what I JUST POSTED
.xkcd irc
(DiscordBot) xkcd: I'm An Idiot (14 January 2009) | http://xkcd.com/530
.g xkcd irc
that's not what we want
(DiscordBot) https://xkcd.com/1782/ -- Team Chat - xkcd: "< Prev · Random · Next > · >|. Permanent link to this comic: https://xkcd.com/1782/ Image URL (for hotlinking/embedding):..."
huh
ok billy
.g xkcd xkcd
(DiscordBot) https://xkcd.com/ -- xkcd: Networking Problems: "xkcd.com logo A webcomic of ... xkcd.com is best viewed with Netscape Navigator 4.0 or below on a Pentium 3±1 emulated in Javascript on an Apple IIGS"
poor bot alright I need to become producivity
.xkcd xkcd
(DiscordBot) xkcd: xkcd Goes to the Airport (9 June 2008) | http://xkcd.com/434
.xkcd Billy
(DiscordBot) xkcd: Two-Party System (11 November 2009) | http://xkcd.com/661
tsk tsk billy
@void void [Auto] We're now known as Paper.
showing above 20 just confuses people
the * indicates that you're losing TPS to maintain that 20TPS, basically

i brained that wrong
But like, * == not so great as you're losing ticks, but you're still maintaining 20tps
it doesn't support your version of the server software fully and potentially relies on legacy BS
for some things, basically a non-issue other than bukkit might refuse to load them in the future, for other things, that's bad
bullshit
Bowl of SHIT
ur a bowl of shit
no u
o, wow, is 2am, wtf
same cat
I woke up at 1 pm but I-m super sleepy already
I think I might just go to bed
5 hours of nonstop dnd wears you down

plz do
ur not my mum
I think I'll hold off on jogging till I wake up, I'm super duper sleepy
probably also due to no longer drinking that sweet sweet caffeine
you don't
I was reading up and apparently caffeine has no measurable impact on sleep quality
but keep striving to look as good as I do
is like o.O
yeah that's bs cat
but, tbh, I drink tea/coffee all the time, so like...
was that study brought to you by nespresso?
pretty sure in part I'm just immune to caffeine
been there done that
I can feel the difference between sleeping when I'm heavily caffeinated and not
youre not, you're tolerant to it, in the exact same way when you smoke a shitton of weed you get tolerant to that
namely when I drink a shitload of caffeine even when I do sleep I tend to only sleep for 6 hours
your players data, generally periodically and onquit
What is the TPS of the universe?
You could point to "infinity" sure, I guess.
But is there a time so small that essentially nothing happens?
HOWEVER, you could point to something that proves it to be infinite:
It's a paradox, I forget the name, but essentially to move from point A to point B, you must move half from point A to point B, then half from where you are to point B, then half from there, then half from there, and so an infinite amount of things happened in a finite amount of time.
Planck time constant, there it is.
I knew it'd have something to do with the Planck size or whatever.
So, my point is:
what the fuck drugs are you on dude, i swear
we should drop unix time, time should be measured in planck times from 1970
planck time units are so unbelievably brief that you would not be able to store the amount of them since 1970
???
time is truly just a construct
what the fuck is your point...
i swear to god, i dont know how you function as a person b rian
@void void how bout you read the rules
my POINT is
barty why are you so salty about being banned from EH
you don't even use it
the one time you asked a question there it was literally just you not understanding how updating plugins worked
I don't even know, simple
cuz you downgraded like 5 times while trying to upgrade
every moment of my life I'm on the verge of a mental breakdown
me too brian, let's start a support group 
let's start a support group yes
i need a support group for any time brian has a half-readable brain dump in here
I need a support for any time that you smoke weed and don't share with it
im out of weed now and im gonna try and quit, along with nicotine
at the same time mind you so lets see how this goes

Sorry I'm having trouble reading those first 4 words
you might need a support group too
I need a support group for any time simple says something retarded. Which is strikingly often.
which 4 words
"I'm out of weed"
yeah yeah
Looks like Chinese to me

I think that I'm tired of the way that my life has been going, and I'm honestly pretty done with the way I've become, and I'd like to change.
then change
am gun bed, hav fun wid simpl
Thanks, simple.
One of my worst traits is my procrastination, and I really should be doing something right now, so I suppose I'll do that.
I also don't like how much useless blabber I constantly chat in here so I'll only say things in any chat if they're important, from now on, so please hold me accountable to that.
it's hard to get motivated to do things when you're depressed
don't let these dinguses shape you brian
you're perfect
like a flower
No but I really am not. I want to change and I did change for a bit, but I got discouraged because I fell into my old habits.
you're also a river and a rainbow
thanks, nossr, lol.
wonderful thank you.
yeah but you know what I'm tired of being that person who everyone ignores because I spew sarcastic and useless comments on literally everything.
because that's my only trait on here, sure maybe in real life I'm something more but that doesn't matter, because in the "digital realm" or whatever it seems the only trait that I expose is "lul random uwu" or whatever.
pretty sure that's some guy who was really into this one cat from a specific fiction
here's my tip brian
leave discord
there's no other defining trait that I have on here though, not knowledgable or intelligent or wise or whatever, my one trait is that I spew random things and I'm occasionally funny to myself
you're right
I was so productive when I was younger
and I'm beginning to understand why I liked my younger self so much
I didn't give a crap on what other people were doing, or if I'm doing things the right way. I just did things and I made things. if I didn't know how to do something, I learned how to do it.
then I discovered Discord and I would literally hang in here 24/7 wasting my life
yeah, you're right.
did you ping me
after I literally just said about how I'm not gonna spend time over here anymore?
brave, I like it
alright I'm freakin done being the way I'm bein
I'm changing
and you all don't give a crap and that's understandable
oh my gosh I'm excited
for the first time in a while I'm excited about the possibilities of who I could become
and you all don't care that's so understandable and why should you care? you don't have to care
I'm just typing this out because it feels nice to get all of these internal feelings into tangible words
ok
ok
I'll see you all later, it was nice being here but after 1 year of spending far too much time here I'm taking a break, ciao
ok
well hes easy to influence
yes
discord formatting kinda breaks when you block people https://i.imgur.com/whyZjYT.png

I dont even
I can't wait till a discord admin tells wiz he can't blacklist everyone and hes the first discord user they are moving to a whitelist
nobody is
thank GOD
after tomorrow we're donezo
public disclosure when
i don't think it will be
pizza or chinese food
$250 is a looot of pizza
what do i get :(
get pho
hmm
I hate the discord blocking. So useless
what's wrong with blocking?
leaves dumb space buttons all over
I just want whoever I block to disappear. Not just be hidden behind a grey bar
Wiz unblock everyone that u have blocked no need to hate those people (づ。◕‿‿◕。)づ
No wiz is right. Screw everyone
😳
n
Discord should add: block counter haha

oh wow jfif is a real format
yea 2nd
will you use 1tb?
well i mean, which do you value more
more memory or more disk space
idk if you wont use the extra ram, take the extra disk. if you wont use the extra disk, take the ram
id just take the disk then
well think theoretically as its already hypothetical
¯_(ツ)_/¯
this hard tea is hard not to just straight up chuuuug bc i cant taste the alc
it just tastes like hydrating tea
how many more teas do you need
its sold as "hard" tea
ice tea and alchol is actually pretty good
On my 21st Birthday I had a drink called "Long Island Iced Tea"
Which, is not iced tea at all
It's one of the strongest alcoholic drinks in the world
Which i didn't know
thats where they just put every type together right
Barty what host u using?
its 5 things
vodka, tequila, rum, triple sec, and gin
plus some coca cola for the taste
This drink? This drink will FUCK you up.
Hey...ya like jazz?
ive switched from ovh to reliable and back to ovh lol
However, on my 21st, I had that right
Then....
I ordered something called "Adios Motherfucker"
which if you can guess
finished me off
yes
lottt of problems, idk if theyre better now but, network and hardware issues that drove me crazy dealing with
i was apparently talking to a toilet and got carried out by my feet
chest dragging and all
then i just slept on the sidewalk till someone came to get me
One day, I drank tea lukewarm
kek
Wait, you're using it for what
Ryzen 7 PRO 3700 is the top ranked single core performance processor atm
9900 is #3
not a bad choice
yea i figured
9900k isnt bad
wasnt directed at you
more the other guy
I happen to like my Ryzen 9 3950x
Reminder for @cosmic raft: get a life
.rekt
☑ REKTacia
.rekt
☑ Better Dead Than REKT
wiz
my fiance just told me the current new style trend is
"kain pepe"
(brand)
which loosely translates to
"eat pussy"
im feeling this really weird urge to pick up my vape and take a hit
but, my vape is put away, no juice, nada
is this withdrawals?
if so, when do they stop?
This is withdrawals, sort of
I have no idea when they would stop. I haven't any first hand experience
well ima tryna stop nic. i took the vape apart in the hopes when it gets bad ill be too lazy to put it back together
but
Good luck m'dude
Addictions are hard to bust
i mean im feeling hella urge to smoke
but fuck, i need to stop
i was out of breath walking to class the other day
i was like fuck
Find something to distract yourself. Like chatting on discord
lul
It's only half a joke
well i replaced it with drinking for
now
i went and bought some beers
lmao im fucked up
what sane person would say that
Oof

sure idc
I busted my porn addiction by playing video games
Now I'm addicted to video games instead
yea im addicted to that shit too
Perhaps this is a better conversation for DMS...
yea barty im well aware, thats why im trying to quit
i am super addicted
im addicted to a few things
nic, weed (maybe?), alc, and porn
which im not bragging
im pretty ashamed
im trying to stop
Dont be ashamed, honestly. We all go through this stuff
yea thats how it feels
when i am sober, i wanna not be
which is weird
yea, well, i'd like to be at that point but where i am now thats my natural state and if im not in that state, i feel weird
but yeah. i cold turkeyed today
nic and weed, no more
alc, will take a bit
heh
anyway at another topic, this guy said he bought MBP today but?? https://proxy.spigotmc.org/849d1eef6d7e6310d31b8206866cdd9be33b0297?url=https%3A%2F%2Fi.imgur.com%2FswEntsR.png
And even though you barely know me, my DMS are always open. Don't be ashamed to let some of it out in there.
this looks like a bad linux imitation of mac
Lol
im on mac for my daily driver but windows for gaming
mac has ms office support but its not as feature rich
I just couldn't get used to libre
but it DOES have it
I use it because it's close to linux but still has a "less work involved to keep it maintained" vibe
but I do absolutely LOVE arch linux
like, that's my go to bae OS
.g linux l ite
(DiscordBot) https://www.linuxliteos.com/ -- Linux Lite Easy to Use Free Linux Operating System: "Linux Lite is a free easy to use linux based operating system that is suitable for people who are new to linux."
Linux Lite is a free easy to use linux based operating system that is suitable for people who are new to linux.
does it work with proton 
I’ll have to see if wine works for MS excel properly, doubt it does
It don't
This is MacOS excel. https://f.jacob.engineer/PnFr0Fkf.png
It's just not the same.
Close.
But not the same.
If it isn't Microsoft. It isn't real
That is MS
I have had this album on loop for a long long time
Maybe 8 hours now
I should take my headphones off
Linux, you never know about
People do all sorts of odd things
Like write kernels for webcams that haven't been manufactured since 1998 and the company that made them got bought out
"but its sitting in my closet and i havent used it for 22 years....and the current driver is out of date....this is my calling.........."
That's about right garak
I don't even know who wrote it
Wasn't me
But there had been no kernel for years
And one day, plug it in, and it works again
:P
My Swedish hacker friend had the camera
And when I say hacker
I mean legit a hacker
@heady spear is it you
He is a programmer somewhere now
But he was nearly jailed when he was younger for being bad.
He won't go into detail, but he hacked some high profile stuff
I wouldn't believe him honestly
anyone here good with web api design?
yes
what do you need kash
I would. I don't just known him casually
I remember that
Not really actually
I mostly know about 4chan from 2b2t
I wonder why music is so powerful in its effect on the human mind
Did anyone here know that Intelli uses light mode with Discord?
well with his shitty plugins im not surprised
Name two of my plugins you’ve tried.
why would he try closed source shit
wiz works for the fsf confirmed
Use my open source shit then
no thanks
i dont trust it :^)
im watching this scientists vs flat earthers video and its fucking ridiculous
hm im pretty drunk
ok
are you drunk enough to not get high
Find video clips by quote. GetYarn.io now.
are you saying that that's not ok?
ok
ok

HTTP 200
403
what
<Plain, simple Garak> hm im pretty drunk

i didnt say it wasnt
again. not my fault you bitches arent listening
i said i replaced nic and weed with alc
who are you?
middle world
s/simple garak/rart garak
any relation to middle earth?
Correction, <DiscordBot> <09Plain, simple Garak> read the middle world of "Plain, rart garak" vic
no relation
but i misspoke
thats my cousin
read the middle word of "Plain, simple Garak" vic
"of"
no you fucking dumbass
fucking?
yes
that's a nice name
thank you
"you"
This is where I live, and it's also my namesake. https://upload.wikimedia.org/wikipedia/commons/9/91/Fucking%2C_Austria%2C_street_sign_cropped.jpg
Fucking, Austria
yeah ur fucking retarded
lmao
Fucking simple
thats right
gonna tell some austrian people they have a new place to visit lmao
There's also another one called Fugging
Which was originally Fucking but they changed their name
lol there's a place in Germany called Fickmühle (= Fuck mill)
I'm scared to google it
😂
wow its wikipedia article doesn't say anything about its name, sad
I want those sexy origin stories

simple I want your educated opinion on something
I had a nice discussion with a friend who told me about some maths youtuber that has his fucking hentai dvds or something just laying in his shelf behind him in his videos
and he says that neither this nor even running around naked outside would be something weird, other than maybe "huh" worthy
my honest opinion is that you need to mercy kill both that youtuber and your friend
that's what I wanted to hear thanks
I really despise the python syntax ngl
it's not the worst thing ever, but it's not good either
not knowing that
"my ignorance is my excuse" - vic, 2020
when did the movie come out
2008
yeah I saw it when I was 8
being born in the 2000s
wait vic is 17
literally can you even math
math hard
what does it take to know python? well even spot can do it
but being an expert is fucking impossible
because of all the ass backwards and non intuitive stuff it has
thankfully
Python itself is pretty straightforward though. It's the crazy libraries that make heavy use of operator overloading that makes things difficult :P
Then again, a lot of it boils down to familiarity. There's nothing simple about so-called "simple" for loops in C-like languages.
python isnt difficult. it's just disgusting
aikar is mini
I have a headhunter hit me up via my github email now
The dependency resolution tool chain and the many "secretly native C++ with Python wrappers" libraries are disgusting. The language is pretty sweet. Just write some pseudo code in a txt file and change its extension to .py and it runs!
pseudo code is also disgusting
so again, easy but disgusting :D
one day I will actually reply to a headhunter and see what they are able to offer me
if pseudocode is disgusting
don't use Python
else
use Python
Forgot the colons!
It's pseudocode, there are no rules here!
stef, I'll lock you in a room with nothing but a computer with literally just python and no internet
Okay good!
bai
Indentation as syntax is great because it prevents people from being lazy about (certain bits of) code style. It's awesome. I guess you can apply linters, but it's kinda nice that it's built in.
no
it still makes stuff more confusing
code style should not be syntax. of course, properly indented code is holy.
but as syntax?
or less readable
If you're already doing it right, what's the problem with letting the compiler or interpreter yell at people who don't? :P
doing it properly doesn't mean indenting every single thing
one liner if statements can be proper
I disagree.
I just think you're factually wrong then
imo the lack of braces makes it a lot less readable https://i.imgur.com/gLXbInE.png
If done right, it can work. You just need to be careful to not make the compiler/interpreter not overly strict (cause then things that would improve the code style can't be done) or overly lenient (cause then you still have garbage code).
either way, I agree it should be up to linters and the community to decide that
Wait till you hear about Go
Kenny why does the lack of braces make it less readable to you? Mass indentation is hard to read/follow in any language. That's more a matter of structure than language.
I mean the structure is the exact same. The difference is that you don't have to trace braces (and hope that the indentation matches the braces) to figure out the scope of code blocks. It's just less noise really.
I'd consider this more readable https://i.imgur.com/f2WoExd.png ¯_(ツ)_/¯
having more than 3 blank lines would also make reading easier
Yeah but why?
I mean they're both horrible.
that's not the point, just the diff of no/with braces :D
have no formatting
use brainfuck
exactly
But do you actually trace the braces? Or is it the whitespace that comes with the braces you like?
whitespaces don't make it better for me either (or not as good as braces)
I could understand your point if you wrote it in Allman style.
and the thing is that I started with python at school, so disliking that syntax not just a thing of pure habit - I really loved the switch to java/its general syntax
I still think not being able to do things like
if (var) { return; }
``` is the problem
or wait you don't even need the braces there
bad example
I don't understand why the braces do anything for you in K&R. The opening brace is really the same as the colon in Python, right? It just sits at the end of the line, opening a block. But if you're not actively tracing them, the closing brackets are just noise.
One line if statements are pretty meh imo Sweepy
^
Unless you write horrible code like Sweepy
Ewww iPython
.kill Vertanzil
unleashes the armies of Isengard on Vertanzil.
well in the end it's just preference, some hate it, some love it
I'm not part of the latter :aaa:
Guard cases are good, but not in the way you write them imo
Just move that return to the next line
if (var) {
return;
}```
ew
Yeah I understand that Kenny, I'm just trying to understand why the braces do so much for you if you aren't tracing them :P
might be cause I don't know what tracing means 😂
Putting the return on the same line as the if statement makes it unreadable: you expect code to go below the if, now it suddenly is on the right to it. Hopefully your if statements aren't too long, cause then the return might not be visible to begin with.
I use those for gtfo returns, makes me instantly see a "here's an early return and not an actual code block" https://i.imgur.com/StNWLVQ.png
Ah sorry Kenny, I mean do you keep track of how many opening braces you have seen so far so you know which scope you are in when you meet a closing brace? Because if not, then what kind of information does it convey? The same as the indentation does. That makes the braces unnecessary.
Yeah that stuff there is horrible.
Whether you call it code or not, it makes it harder still.
one liners are cancer change my mind
ur cancer
I might be glancing over your code and then think there's a bug in there, since I expect the code below it to be part of the if statement, but surprise surprise, you put stuff to the right of the if statement.
ah, more or less yeah @mule. and when scrolling through code or greater codeblocks it simply makes me see those breaks easier than an empty line and invisible tabs 👀
(Vertanzil) Wishing Cancer - South Park.avi - length 15s - 485 likes, 10 dislikes (98.0%) - 51,924 views - Victor Moura on 2012.06.18
Sweepy I spend a lot of time reading other people's code. I can tell you that the "clever" pieces of code where people decided to condense their code for the sake of perceived brevity are the worst offenders in terms of grokking. It throws the reader off because it's an anomaly. Beginners especially tend to write code that is easy to write first and foremost. Most of the time you're not writing code that's never meant to be read again, and most of the time the amount of reads outnumber the amount of writes (you only write it once). That's why it makes sense to optimize your code for readability unless you have a very good reason not to.
while we're on the topic, do you poopl leave a blank line between class header and the first class field as well as after the last method brace or not? :aaa:
I do Kenny! Also at the bottom yes.
At the top, yes, not at the bottom.
I also only do the first, prolly just because I've only rarely seen the latter by other people
The reason you don't at the bottom is because the closing brace provides whitespace!
makes sense
the one difference in code style between another dev and me, working on the same project, is that empty space between last method brace and class brace
Which is why Allman style is really the superior indent style. I don't use it myself and I hate writing it, but it is objectively better for readability. I think Kevlin Henney has a nice talk about it.
which becomes oof if two classes have it done differently 👀
I just use what is more common in the language. For Java I use K&R, for C# I use Allman.
it really just comes down to what a particular community has adapated as a general code style
Yes, consistency is really the most important thing.
Imo going with what users are used to makes it easier for them to contribute, since they don't have to switch from what they are used to.
if you do allman in java, people will scream at you, if you do k&r in c, people might scream at you
Yeah what I hate most in Java is catch clauses and else if clauses because they get so cluttered.
yep, I always always try to have short early return blocks instead of cluttered if elses
Yesssss
Returning early is just so much nicer than having giant nested ifs
the catches are alright for me, kinda instantly makes it obvious to be a try catch
... if you don't clutter anything else, that is
Although when it's Christmas, the Christmas trees you get from nested ifs are very festive.
Yes, but I want my code to be readable when it's not Christmas as well 😉
I don't use K&R or Allman
I use Death.
public class Permuter {
private static void permute(int n, char[] a) {
if (n == 0) {
System.out.println(String.valueOf(a)) ;}
else {
for (int i = 0; i <= n; i++) {
permute(n-1, a) ;
swap(a, n % 2 == 0 ? i : 0, n) ;}}}
private static void swap(char[] a, int i, int j) {
char saved = a[i] ;
a[i] = a[j] ;
a[j] = saved ;}}
.lart kashike
forces kashike to stare at an incredibly frustrating and seemingly never-ending IRC political debate.
The code style isn't even the worst imo, that print statement in there is worse.
This makes me very uncomfortable and I'm going to go make breakfast because of that.
😂
It's a permute method, why is it printing stuff.
don't ask questions
I won't ask questions if you give me answers
this is kinda a deadlock
what if the answers will make you question even more?
blizzard has a 16 character password limit
lol
remember when you cut make a 32 character rockstar pw put could only put in 30/31 in the client :aaa:
s/cut/could
Correction, <KennyTV> remember when you could make a 32 character rockstar pw put could only put in 30/31 in the client :aaa:
MC also has a password length limit I managed to hit
seriously?
Password limits fucking blow my mind
My university has excellent password guidelines
when fucking companies use no symbols, 12 as their limit and no caps
wtf and battletags are 12 chars max
I've seen longer ones
why does battle.net suck so much ass
my university stores your last 22 passwords
and you have to change it every half a year
interesting
as in just slapping them together
Isee. Idonotunderstandwhythatisreally
Imo it's better than separating them.
it isn't
my favourite though
my workplace handles that the best
I hate it lmao
is I can always tell when a plugin developer on spigotmc is german
<Insert Word Here> System
you can't tell which words to slab together and which ones you can't slab together
Lobby System, Party, System
you can overlook a lot of stuff rather quickly
germans love adding "System"
you're encouraged to set awful passwords or else you'll spend 10 minutes typing it in to the gun



