#dev-general

1 messages ยท Page 317 of 1

jovial warren
#

first of all, how tf can you program with a fucking 8 space indent

old wyvern
#

Oh god

jovial warren
#

tell him he can't code for shit

hot hull
#

Where do people learn to code

onyx loom
#

๐ŸŒš

old wyvern
#

That actually forms an arrow

jovial warren
#

not like that's called from the main class or anything

hot hull
#

Like bruh all my plugins from the start were all copied from a fucking 5$ udemy course, and were still 100 times better than this

jovial warren
#

lol

#

imagine copying shit

hot hull
#

Shut yo ass up

ocean quartz
#

If you're not having fun then why do it?

jovial warren
#

because the outcome will be rewarding lol

hot hull
#

internal dread

ocean quartz
#

Meh, coding is more fun than the outcome

onyx loom
#

agreed matt

jovial warren
#

working with Anvil is gonna be a pain in the ass, but when it works, it'll be amazing

hot hull
#

I mean if you code like the dude that made GPTeleport, then I can see why it's not fun yea

ocean quartz
#

That's why i never finish any plugin

distant sun
#

^

#

relatable

jovial warren
#

same lol

ocean quartz
#

@obtuse gale

jovial warren
obtuse gale
#

Yes

#

That's me lol

#

I low-key think C++ is a language everyone should learn

ocean quartz
#

Agree yeah

prisma wave
#

have you ever heard of rust?

#

we dont need to learn c++ anymore

#

mozilla saved us

jovial warren
#

C++ is in an ew category of it's own

#

std::cout << "Hello World!"

#

like wtf is that

onyx loom
#

have u tried cpp before

prisma wave
#

it's no putStrLn "hello world"

jovial warren
#

lol

hot hull
#

Have you tried a rope before?

jovial warren
#

lol

jovial warren
#

also, anyone here know about how mineshafts work? because I thought I knew, but after reading the wiki, apparently I don't

#

since when did mineshafts have starting rooms lol

hot hull
#

You should integrate Scholtes' procedural dungeons into it

jovial warren
#

procedural dungeons?

hot hull
#

mineshafts, but 400 times awesomer

jovial warren
#

I'm not interested in world generation yet lol

#

I just need to know how they can work so I can read them

hot hull
#

I mean you've no choice even if you were, mine will be done in a couple of months, if you squint on one eye

jovial warren
#

I'll probably have made my own world gen system by then lol

hot hull
#

Don't you fucking dare

jovial warren
hot hull
#

What I need is if you could send me the default decompiled world gen

#

Thanks

jovial warren
#

I could tell you how to deobfuscate and decompile it yourself lol

#

also, which mappings do you want? client or server?

hot hull
#

Sure that works too, but not today cause I'm gonna go

#

server probably

obtuse gale
# jovial warren `std::cout << "Hello World!"`
  1. That's not the only way to write to an output stream so joke's on you lol
  2. It's not about the syntax but about what the language lets you do and what you are able to achieve with it
  3. It's also about learning how things work and why
jovial warren
#

if I wanted to learn about how things work and why, I'd learn assembly, not C++

#

or C

prisma wave
#

because C++ and C are wildly different

#

assembly isn't gonna teach you much more than C would

#

once you know the instructions it's just unnecessarily verbose

jovial warren
#

true

old wyvern
jovial warren
#

ยฏ_(ใƒ„)_/ยฏ

prisma wave
#

imagine if c++ had >>=

old wyvern
#

๐Ÿ˜ฎ

#

Does c++ allow defining new operators as well?

obtuse gale
#

Sort of, not quite, but yes

old wyvern
#

hmm seems google says no

obtuse gale
#

You can define new operators with strings (like how you can use us and ms for microseconds and milliseconds with std::chrono)

#

But not operators with symbols

old wyvern
#

ah, so would those be usable similar to keywords then?

obtuse gale
#

what

old wyvern
#

As in would those require any additional quotes or something at use site?

#

Or just those?

obtuse gale
#

I don't remember tbh lol

old wyvern
#

ah

#

ill try googling

obtuse gale
#

%22%22

#

Amazing www

#

operator "" suffix-identifier
That's the name I guess lol

#

Aah here it is

unkempt tangle
#

I'm using brave(chrome) for awhile now. But I frankly say firefox is running better.

surreal quarry
#

objectively wrong

unkempt tangle
#

My opinion is based on subjective expieriences.

surreal quarry
#

which means its objectively wrong

unkempt tangle
#

Many times the browser acts like you enabled motion blur

#

Even moving tabs are laggy shit

#

In compare of speed. There are no difference.

#

I am better off with ff with performance.

steel heart
#

?learn-java

compact perchBOT
#
FAQ Answer:

Oracle Docs:
You should start with this, breeze through this(skipping stuff that doesn't seem relevant like bitwise operators), then hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Online Courses:
If you want some free online courses, you can find them on Coursera. Yes they are paid but you can chose to take them for free with the only disadvantage being the fact that you don't get a certificate at the end. Some of the best courses can be found Here.
You can also take a look at Udemy but from what I've seen most of those courses are paid.

Other services:
Some other cool services that will help you learn java are SoloLearn and JetBrains Academy.

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

jovial warren
#

okay, I don't know whether I'm being stupid, but in terms of village farms, would anyone have a clue what "ViDF" could be short for?

surreal quarry
#

Village Dumb Farmer

jovial warren
#

lol

hot hull
#

Villager in da farm

jovial warren
#

also, wanna see something btw?

surreal quarry
#

perhaps

jovial warren
#

Krypton CI reveal pog

surreal quarry
#

krypton domain reveal

#

pog

jovial warren
#

that as well lol

#

latest build somehow succeeded

#

so now you can download and run the jar for yourself

surreal quarry
#

pog

obtuse gale
#

That's no good ๐Ÿ˜ฐ

jovial warren
#

wdym?

obtuse gale
#

I can run this in prod ๐ŸŒ

jovial warren
#

indeed you can

#

it does pretty much fuck all atm though so gl

#

currently working on structures (for Anvil r/w, world gen is a long way off)

frigid badge
#

docker?

jovial warren
#

it will support Docker

#

I'll make a docker file later lol

#

unless you wanna make one for me ๐Ÿ™‚

#

it's only gotta download OpenJDK 11 and run a JAR

#

give it a working dir though, so you can inject worlds and shit

frigid badge
#

it's incredibly simple

#

inject?

#

lol

jovial warren
#

I mean shove stuff in a folder and have it be available to a container

#

what's it called

frigid badge
#

volumes

jovial warren
#

volumes? mounts?

#

that's the one

#

oh also, still looking for world donations btw if anyone has one

#

preferably a massive one with a lot of different structures generated

#

just not ones that take up half my drive please ๐Ÿ™‚

hallow crane
#

is adventure in paper?

ocean quartz
#

Was merged into master yesteday

jovial warren
#

yeah is now

hallow crane
#

oh, I still need to shade tho

#

not in 1.8

jovial warren
#

1.16.5+ though

#

yeah

hallow crane
#

or spigot

#

or bukkit

obtuse gale
#

And everything related to md5's components is deprecated :kekw:

jovial warren
#

about time

hallow crane
#

doesn't really effect me then

#

still need to shade

jovial warren
#

yeah

obtuse gale
#

And relocate ๐ŸŒ

hallow crane
#

yea

#

obv

#

I have experience with issues like that lmfao

jovial warren
#

never got those issues somehow

#

maybe because I don't really make public Spigot plugins that often

hallow crane
#

yeah.

jovial warren
#

I know what the issue is though

#

I haven't worked on a Spigot plugin in days now lol

#

been working on Krypton too much

#

formally known as MineKraft

#

actually works btw

hallow crane
#

developer api?

jovial warren
#

not yet, bloody hell we ain't that far yet xD

hallow crane
#

not viable

jovial warren
#

there will be one though

hallow crane
#

there's only villager and player entity

#

ur gonna have to update every version that's gonna suck

jovial warren
#

currently, you can join a world with a cube of stone, move around and see other players

hallow crane
#

chat?

jovial warren
#

yeah

hallow crane
#

id rather compile

jovial warren
#

fair

#

also, only works from JAR btw for the moment, due to limitations with reading the tag files that I haven't solved yet

hallow crane
#

is there adventure chat

jovial warren
#

not yet

#

uses my own stupidly lightweight, most likely useless chat component library called Komponent (I know, so original)

#

we will use Adventure in the future though

#

natively

hot hull
jovial warren
#

god damn you Frosty xD

forest pecan
#

imagine using tiktok still tho

#

lol

jovial warren
#

ikr

#

Frosty shut incoming

forest pecan
#

it was okay when it started but now

jovial warren
#

currently working on support for Anvil yako (not the inventory, the other one)

hot hull
#

Pulse

#

But did you fucking watch it

jovial warren
#

I mean, can't relate ngl

onyx loom
#

i thought it was smth else on her face at first ๐ŸŒš

forest pecan
#

its relatable to my grandparents

#

lol

jovial warren
#

I wonder how much 1.17 is going to change the protocol lol

#

because that's gonna be fun

onyx loom
hot hull
jovial warren
#

as I'll likely be the one having to do all the work for it, yes, yes it will

#

who knows, maybe we'll have a proper team by then

#

or maybe BM will start actually doing shit xD

prisma wave
#

type Player =
{ Name: string
Location: Location }

jovial warren
#

if it was that easy, everyone would do it

static zealot
#

just to make sure in kotlin I have a forEach. to add a continue I'd use return@forEach ?

prisma wave
#

yes

prisma wave
#

it is easy in actually modern languages

jovial warren
#

stfu before I actually find where you live

onyx loom
#

๐Ÿ‘๏ธ

jovial warren
#

Kotlin is a modern language

onyx loom
#

but like

#

elara

#

rust

#

haskell?

prisma wave
#

kotlin isn't modern

#

it lacks many modern features

#

no pattern matching

#

no monads

ocean quartz
#

Kotlin is so 2016, all my homies use Elara

old wyvern
#

^

prisma wave
#

no memory safety

#

no pure functions

jovial warren
#

shut it

old wyvern
#

Kotlin bad, Haskell good, Elara good, F# good

jovial warren
#

that's not helpful

prisma wave
#

im not wrong

#

u are just stuck in the past

jovial warren
#

maybe, but that is not helpful

onyx loom
#

get with the times bardy

ocean quartz
#

V good

jovial warren
#

we are not rewriting Krypton in a different language and that is final**.**

prisma wave
#

time to move into the 21st century ๐Ÿ™‚

old wyvern
#

We are helping you switch

#

dw

#

Modernizing

old wyvern
#

Time for Krypkell

jovial warren
prisma wave
#

rust compiles to wasm ๐Ÿ™‚

ocean quartz
#

^

#

Found out yesterday that Kotlin does too

prisma wave
#

o

old wyvern
prisma wave
#

ok who wants to help me make a minecraft server in f# or haskell

old wyvern
#

In in

onyx loom
#

lol

old wyvern
#

Im in*

prisma wave
#

great

old wyvern
#

xD

#

Bois xD

jovial warren
#

how about you pull the finger out and actually start contributing to your project?

ocean quartz
#

F#pton

old wyvern
#

LMAO

prisma wave
#

i am busy

jovial warren
#

fair enough

ocean quartz
#

Haspryton

prisma wave
#

however im sure i could take time out of my schedule to using an actually modern language ๐Ÿ™‚

onyx loom
old wyvern
#

xD

jovial warren
prisma wave
#

elaborate

#

what modern features does it have

ocean quartz
jovial warren
#

define "modern"

onyx loom
jovial warren
ocean quartz
#

Sadly ๐Ÿ˜ฆ

old wyvern
#

Does it have a bind operator? Is it built around Monads? Does it have a kleisli composition?

prisma wave
#

^^^

ocean quartz
#

@prisma wave Rewrite PDM in haskell

jovial warren
#

would that even work?

prisma wave
#

maybe

#

JNI

#

that could be cool

old wyvern
#

Etalang

jovial warren
#

also, I swear Haskell isn't designed for the JVM

old wyvern
prisma wave
#

๐Ÿ˜ฎ

ocean quartz
#

There are jvm "ports"

prisma wave
#

o haskell is faster than java

old wyvern
#

Also seems haskell can have impure code if needed ๐Ÿฅฒ

prisma wave
#

i didnt realise

#

that's good

jovial warren
#

not on the JVM though

prisma wave
#

and

#

jvm overrated

#

does the jvm have pure functions?

old wyvern
#

on a real note I think its pretty close bm

ocean quartz
#

Let's make our own JVM in rust

jovial warren
#

Java's greatest strength is also it's greatest weakness

prisma wave
#

not sure this is 100% accurate but

prisma wave
ocean quartz
#

With blackjack and hookers

stuck harbor
#

yes

old wyvern
#

Yea it if look overall its pretty balanced around bm

jovial warren
#

I was just about to say that you finally produced an idea that isn't stupid, but you ruined it Matt

old wyvern
prisma wave
#

jvm in haskell

#

that only allows pure functions

old wyvern
#

Lets make java with pointers ๐Ÿฅฒ

ocean quartz
#

Creating a JVM in Java, that runs on an existing JVM thonking

jovial warren
#

sounds like a great idea wdym

old wyvern
jovial warren
#

JVM in Kotlin/Native

old wyvern
#

liftIO should be hung

#

This should absolutely not be a thing

prisma wave
#

sadly side effects are necessary

old wyvern
#

converting IO to Maybe Monads

jovial warren
#

Monads?

prisma wave
#

wot

old wyvern
old wyvern
prisma wave
#

how

#

is it always Just?

old wyvern
#

Depends

#

if the IO failed it would be Nothing I assume

prisma wave
#

o

#

sounds messy

#

but there's probably some use for that

old wyvern
#

Let me actually confirm this

old wyvern
#

It uses that to send messages without having to deal with a IO result type

prisma wave
#

hmm

ocean quartz
prisma wave
#

shouldnt it be IO ()

onyx loom
#

o

prisma wave
#

o

ocean quartz
#

Joking btw

old wyvern
ocean quartz
#

Though i think it'd be fun to write a jvm in rust

old wyvern
#

also from the definition it seem it doesnt neccesarily have to be Maybe

onyx loom
#

JustVM

forest pecan
#

๐Ÿฅด

prisma wave
#

it's an IO action that returns nothing

#

returning a Maybe seems weird

ocean quartz
#

RVM

old wyvern
#

liftIO :: IO a -> m aSource

old wyvern
#

Let me show you an example

hot hull
old wyvern
#
readMaybe:: Maybe String
readMaybe = do
      res <- liftIO getLine
      res
prisma wave
#

unironically i dont think there's a huge amount of benefit of building a JVM in rust

old wyvern
prisma wave
#

i dont know much about this but i think most of the data is too dynamic that the lifetime checking and stuff would actually get in the way

lunar cypress
#

And I get shit on for using fancy words...

prisma wave
#

lmao

old wyvern
#

xD

#

I mean you actually do tho

steel heart
#

(ฮปx.ฮปy.(ฮปz.(ฮปx.z x) (ฮปy.z y)) (x y))

jovial warren
#
++++++++
[
    >++++
    [
        >++
        >+++
        >+++
        >+
        <<<<-
    ]
    >+
    >+
    >-
    >>+
    [<]

    <-
]

>>.
>---.
+++++++..+++.
>>.
<-.
<.
+++.------.--------.
>>+.
>++.
#

now that is a modern language

prisma wave
#

looks vaguely similar to haskell

jovial warren
#

don't ask how long it took me to remove the comments xD

jovial warren
#

seems legit

#

that's brainfuck btw, for those of you who don't know

prisma wave
#

<- <. and >>+ could be haskell operators

#

the first one is

jovial warren
#

ยฏ_(ใƒ„)_/ยฏ

#

love how that code could be compressed into just ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

onyx loom
#

readability bardy

#

very important, thats why its spaces out ๐Ÿ˜Œ

jovial warren
lunar cypress
#

bardy I think you're lost

old wyvern
jovial warren
#

wat

prisma wave
#

what does <- do on a Maybe?

jovial warren
obtuse gale
#

Ez

jovial warren
#

ez program with just comments

#

nice one Fefo

#

don't even

obtuse gale
#

Wdym just comments?

jovial warren
#

that will literally remove all the commands

obtuse gale
#

That matches everything that is not an instruction

#

Note the ^

jovial warren
#

oh yeah, it does

#

see what I said

#

insane

obtuse gale
#

Lol

jovial warren
#

on a completely random note, I can't tell whether me having so much to do that I don't sit there and wait for a response to messages anymore is a good thing or a bad thing lol

onyx loom
#

care to elucidate

jovial warren
#

stop using big words that I then have to Google ffs

prisma wave
#

monads

#

functors

#

monoids

#

type classes

jovial warren
prisma wave
#

higher kinded types

jovial warren
#

stfu

#

I will actually bury you alive Alex

prisma wave
#

ok

#

bury me in monads ๐Ÿฅฐ

jovial warren
#

ffs

prisma wave
#

referential transparency

jovial warren
#

enough

#

god

#

damn

#

you

old wyvern
jovial warren
#

you know what? if you can't beat 'em, join 'em I suppose

old wyvern
#

shorthand for handing with a bind in a do

prisma wave
#

so it's binding to the identity function?

jovial warren
#

Kotlin good Java bad Haskell bad Clojure bad Elara bad OCaml bad F# bad

prisma wave
#

false

onyx loom
#

false

jovial warren
#

true

prisma wave
#

new rule: if you've never used a language you're not allowed to call it good or bad

frail glade
jovial warren
#

Glare!

#

welcome back to whatever the fuck this has become

frail glade
#

runs

onyx loom
#

excuse me

half harness
#

lol

jovial warren
onyx loom
#

not my fault u cant keep up with the times and these GREAT languages ๐Ÿ™‚

jovial warren
#

where do you think you're going?

#

get your ass back here

prisma wave
lunar cypress
#

keeping up with the times... haskell...

unkempt tangle
#

What is a smithing table do?

onyx loom
#

yes

prisma wave
#

Isn't Haskell older than java

onyx loom
#

older yet still modern

prisma wave
#

yes!!

onyx loom
#

AHEAD of its TIMES

prisma wave
#

TRULY

jovial warren
#

older than Java my ass

unkempt tangle
jovial warren
#

Java was around in the 90's

prisma wave
#

๐Ÿ™‚

obtuse gale
#

if i wanted to start a server, what all would i need?

onyx loom
#

first appeared lol

prisma wave
lunar cypress
#

haskell's first stable release was in 2010 and other jokes to tell your colleagues

jovial warren
#

also, it's mx + c not mx + b

prisma wave
#

The TALENTED people really spent 20 years making sure their language was PERFECT before releasing it

jovial warren
#

more like they spent years trying to make a language and failed several times over

obtuse gale
jovial warren
onyx loom
prisma wave
unkempt tangle
#

Senpai

#

I moved to bitwarden

#

It's great

jovial warren
#

you're never clear

#

who tf is senpai

prisma wave
jovial warren
#

not now it isn't

prisma wave
#

It is

#

Unironically

#

Lots of experimental APIs and deprecation

jovial warren
#

I guess that's true

#

most of the experimental API works completely fine though so I don't get why it's experimental

prisma wave
#

Because they're in testing

jovial warren
#

I think they kinda just use it as an excuse to be able to change anything they want

prisma wave
#

well yeah

#

They're experimental

jovial warren
#

it's like "if we change it and we break your shit, we told you it could break at any time ๐Ÿ™‚"

frigid badge
#

y'all really have no life

onyx loom
#

no u

jovial warren
#

very true lemmo

#

I mean, I got Krypton shit I should be doing tbh

jovial warren
#

that's what I'm saying

hot hull
onyx loom
#

this is true

#

ur also here lemmo, which means u also have no life ๐ŸŒš

hot hull
#

R3kt

frigid badge
#

Never said I had fingerguns

ocean quartz
#

Who needs a life anyways

onyx loom
#

lol

frigid badge
#

says the engaged man

ocean quartz
#

shhhh

jovial warren
#

lol

#

this is where developers with no life come to hang out, circlejerk, do other shit, and most of the time have fun lol

half harness
#

๐Ÿ‘€

prisma wave
#

it's not circlejerk if it's true

jovial warren
#

why is that of interest to you dkim

onyx loom
#

๐Ÿคจ

half harness
prisma wave
#

o my

jovial warren
#

o my indeed

stuck harbor
#

guess who is setting up clojure and neovim?

#

defo not this guy

#

totally not

onyx loom
#

i dont get the point in this dkim

surreal quarry
jovial warren
half harness
#

๐Ÿ™„

prisma wave
#

You're clearly a clever chap @stuck harbor

stuck harbor
#

yep very 100%

ocean quartz
#

This one is better

surreal quarry
#

lol

half harness
#

i dont know

#

funny number

jovial warren
#

๐Ÿฅฒ

lunar cypress
#

people change

jovial warren
half harness
#

lol

prisma wave
#

lmao

half harness
#

oh jeez

prisma wave
#

Character development

lunar cypress
onyx loom
#

why does he remind me of the guy from flushed away

#

his voice

ocean quartz
onyx loom
#

dont say that matt ๐Ÿ˜ฆ

onyx loom
#

wtf ๐Ÿ˜‚

ocean quartz
#

This guy is awesome

lunar cypress
#

you gotta love him

ocean quartz
#

First video i saw from him was the potion seller one

jovial warren
#

that is so cursed

lunar cypress
#

although I actually hadn't seen that one when I discovered him

prisma wave
#

Cool

#

Which is also equivalent to >>= id?

old wyvern
#

yes

#

Actually

#

theres a slight difference

#

it would be
liftIO getLine >>= Just . id

#

or liftIO getLine >>= \res -> Just res

prisma wave
#

wait why

#

Doesn't it need return res?

old wyvern
#

no

#

liftIO should turn that into a Maybe

prisma wave
#

Aah right

old wyvern
#

Which is why the just

prisma wave
#

Yeah I see

old wyvern
#

if it was without liftIO it could be

getLine >>= return . id
prisma wave
#

๐Ÿ‘

#

Makes sense now

jovial warren
#

oh yeah, that reminds me, there's another plugin to add to the list of plugins that will have support for Krypton when it's finished xD

onyx loom
#

which is

jovial warren
#

KiteBoard

#

what else

#

it's Niall lol

onyx loom
#

o

surreal quarry
#

just spent two hours trying to figure out why my nexus docker container isn't accessible, and i tried making a new volume and it worked, which means i have another few hours of figuring out whats wrong with my old data ๐Ÿฅฒ

#

or i could just say fuck it lose everything and start over

distant sun
#

#prayforjames

#

Btw why do you use James if your name is Jaims xd

surreal quarry
#

my name is James

#

I came up with Jaims a while ago for shooter games cause it has "aim" in it lol

#

just never stopped using it

regal gale
#

Is Github taking too long to respond, or is it just me?

obtuse gale
#

Works fine for me

forest pecan
#

you just suck ig

surreal quarry
forest pecan
#

๐Ÿฅฒ

half harness
#

i dont have any java processes

#

;-;

#

well this is annoying

#

any ideas?

surreal quarry
#

restart your pc

half harness
#

nooo

#

it takes forever

#

and half the times it bluescreens

#

then it takes even longer

ocean quartz
#

Check on task manager for java process

surreal quarry
#

it will fix it ยฏ_(ใƒ„)_/ยฏ

half harness
ocean quartz
#

And?

half harness
#

i killed them all

#

lol

ocean quartz
#

Are you sure it's all?

half harness
#

uh

#

i closed java.exe and javaw.exe

ocean quartz
#

Search more

half harness
#

uhhh

#

but

regal gale
#

Kill all what's in Task Manager reversed_fingerguns reversed_fingerguns

surreal quarry
#

omg this is so annoying. my project builds perfectly in a docker container, normally on my pc, but not on jenkins ๐Ÿ™‚

regal gale
#

Anyway so this is rather off-dev, but it's also related to js so I'll ask here: when you use View Page Source in browser, inside <script> tag there are a thousand lines of code which are shorten by ... in tail. How can I actually expand it?

forest pecan
#

kill System

regal gale
#

I can't even find an option to expand

half harness
#

I ran jcmd -l but still, same error message

#

๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ

ocean quartz
#

Just either search for the java one or restart (or log out of your account) your pc

half harness
#

im just gonna do 25566 port

#

i have too much stuff open to logout

ocean quartz
#

And i thought i was lazy

half harness
#

lol

surreal quarry
#

now you're gonna be running 2 servers lmao

half harness
#

O_O

#

[21:57:07 WARN]: **** FAILED TO BIND TO PORT!
[21:57:07 WARN]: The exception was: java.net.BindException: Address already in use: bind
[21:57:07 WARN]: Perhaps a server is already running on that port?

#

wtf

#

i think its intellij's fault or smth

ocean quartz
#

Send a screenshot of your processes

regal gale
#

Just restart pc for god sake thonking

half harness
#

lol

half harness
#

no java

ocean quartz
#

Thanks

surreal quarry
#

lmfao

half harness
#

idk

surreal quarry
#

man sent 2 processes

half harness
#

lol

#

what

#

u want me to send whole list

ocean quartz
#

No java

half harness
#

lol

surreal quarry
#

no matt

half harness
#

theres a lot

surreal quarry
#

yea

#

one of them is the server

half harness
#

a server running on all ports?

#

ill try port 28374

#

just random number

ocean quartz
#

Sort it by ram usage

half harness
#

oh it works

#

servers up

ocean quartz
#

Also it wouldn't be a java process if it's a server likely it's a windows command processor

#

Unless you're one of those that use the gui

#

If so, leave

half harness
#

i dont

#

im looking at the list

#

im too lazy to google

#

what is this?

surreal quarry
#

killall -9 java

#

smh

half harness
#

uh

ocean quartz
#

It's a wmi provider host

half harness
#

why am I scared to run commands said in this chat

surreal quarry
#

its not a windows command

#

lol

half harness
#

ok

surreal quarry
#

but it just kills all java processes

half harness
#

speaking of ports

#

i have a question

compact perchBOT
#

There is no time to wait! Ask your question @half harness!

surreal quarry
#

There is no time to wait!

half harness
#

okkk

surreal quarry
#

Ask your question!

half harness
#

how come i have to open my firewall and stuff to let ppl come in my server, but they don't have to open their firewalls?

surreal quarry
#

i believe their firewall is open by default

#

you can block all of your own outgoing traffic, but that wouldn't make much sense

half harness
#

oh

#

so incoming traffic is blocked

#

but outgoing is not?

surreal quarry
#

that's my very basic understanding of it

half harness
#

alr thx

#

๐Ÿ™‚

half harness
#

my intellij is failing me :((

obtuse gale
dawn hinge
#

fix? #7777

hot hull
#

@old wyvern not to flex, but plenty o'relics

old wyvern
#

๐Ÿ˜ฎ

hot hull
#

I'll farm the bp rn

lavish field
#

i still dont get what is wrong
ik its this
but why

hot hull
#

You aren't in the main class scope so you can use this

lavish field
#

what do i need to do to use it in this class

hot hull
#

you need to pass in your main class instance

lavish field
#

how

#

๐Ÿฅฒ

hot hull
#

Dependency injection

lavish field
#

do you know a tutorial

#

who teaches Dependency injection

steel heart
#

Frosty does

hot hull
#

?di

compact perchBOT
hot hull
#

Where's dependency injection in haskell :sad:

lavish field
#

ty

old wyvern
hot hull
#

bruh I still have no idea what these words mean

#

No

lavish field
#

public void method() {
main.myMethod();
} what is that

steel heart
#

method invocation

#

in method

lavish field
#

okay.

quiet depot
#

yugi what's your opinion on mixing functional and oop?

old wyvern
# hot hull bruh I still have no idea what these words mean

Partial application means passing only a few arguments that whats required to return a new function that takes the rest of the arguments to complete the call
for eg:

say :: String -> String -> Integer -> IO ()
say name message time = putStrLn $ intercalate " : " [name, message, time]

Now lets say we need a partially applied version of this that only requires the time stamp, we can do

sayHiToFrosty :: Integer -> IO ()
sayHiToFrosty = say "Frosty" "Hi"

So now you can complete the say call with the new sayHiToFrosty function any number of times, you could assume the first 2 dependencies were "injected".

old wyvern
quiet depot
#

did you read the blog post about the history of oop I sent the other day?

#

it's an interesting read

#

talks a little bit about how well functional and oop go together

old wyvern
#

I dont think I read it, was in class. Ill have a read now

quiet depot
#

might even learn something

#

I certainly did

#

never even heard of message passing before reading that

hot hull
old wyvern
quiet depot
#

yes

old wyvern
#

He seems to not like what has currently become of oop

old wyvern
quiet depot
#

yeah he's not overly partial to it, especially c++

hot hull
#

syntax confuses me a shit ton, but I get what you're trynna say

old wyvern
#

yea c++ is...well lets just say... a mess. Or atleast seems like a bit. I havent used it enough to tell but from what I've seen, its a bit bloated with features

quiet depot
#

I believe the article mentions java is heading in the right direction, or maybe I read that elsewhere, but I believe java is the better of the two when it comes to their oop impl

#

ironically javascript has the impl closest to the original meaning

old wyvern
#

Wait really?

#

I guess his version of OOP doesnt really care around encapsulation and stuff

quiet depot
#

oh it does

old wyvern
#

Js does allow those tho right?

quiet depot
#

those?

old wyvern
#

as in something like access modifers

#

ofc theres exports are stuff when going into node and all

quiet depot
#

js has access modifiers

old wyvern
#

Really?

quiet depot
#

private, public, protected

old wyvern
#

wow I thought it didnt

#

lmao

quiet depot
#

hang on I think google is lying to me

old wyvern
#

Yea the first result from google seems to be talking about data hiding with function closures

quiet depot
#

my first result was this but actually clicking on stuff gave me different answers

old wyvern
#

yea but open the page tho

#
The followings are the access modifiers in most of the object oriented programs.

Private โ€“ Access is limited.
Public โ€“ Can be access from anywhere, access is not restricted.
Privileged/Protected โ€“ Access is limited to the containing class or types derived from the containing class.
#

Thats what was actually in there

#

xD

#

google extracted it out of context

quiet depot
#

right anyway

#

Because they share so many features in common, I like to say that JavaScript is Smalltalkโ€™s revenge on the worldโ€™s misunderstanding of OOP. Both Smalltalk and JavaScript support:

distant sun
#

"message passing"?

old wyvern
quiet depot
#

essentially gaby, u send a message to an object, and then the object will determine what to do with it

#

e.g. running a specific piece of code

old wyvern
#

OOP was supposed to mean just objects communicating with each other (i.e, message passing) to form a program

quiet depot
#

java doesn't implement true message passing which is why we're not familiar with it

distant sun
#

I see

quiet depot
#

java's idea of message passing is just calling a method with some arguments

#

that's not what it's meant to be though

#

groovy has a better messaging passing impl afaik

#

or it might be scala

#

i'm not a professional on this, first time I looked into message passing was yesterday

old wyvern
#

Not sure, but scala seems to be slighted hated by both oop users and fp users from the people I've heard from ๐Ÿฅฒ

prisma wave
#

Scala is odd

jovial warren
#

๐Ÿ˜ฆ

hot hull
#

L

jovial warren
#

I think he turned off DMs from server members as well

hot hull
#

Imagine not having him added

jovial warren
#

has he always had them off?

#

because in that case then I must've been removed ๐Ÿ˜ฆ

#

also, why we no friends

#

Barry good

hot hull
#

God I fucking hate people who extract after 1 round

old wyvern
#

lol

hot hull
#

I've opened 10 relics and I still haven't gotten that fucking mirage bp

jovial warren
#

wat dis

old wyvern
#

WarFrame

jovial warren
#

ah right

#

@hot hull maybe you just trash

#

only bad players blame their team mates for their failure

hot hull
#

What does that have to do with anything

jovial warren
#

alright, I'll stop bullying you xD

hot hull
#

Blaming them for extracting yea cuz then I can steal their good relic rewards

#

I have 3k health and 1k shields, I can solo most shit

jovial warren
#

ยฏ_(ใƒ„)_/ยฏ

#

also, can anyone guess what I'm going to complain about today?

old wyvern
#

Haskell?

onyx loom
#

ill complain about u in a minute

jovial warren
hot hull
#

ABSOLUTE BEAUTY

jovial warren
#

the fact that future structures are even stored is just ridiculous in itself

#

let alone the format they're stored in

#

I might have to create my own serialisation system for this

hot hull
#

Do it

jovial warren
#

"public abstract interface annotation class"

hot hull
#

oh god

#

Fuckers extracted after 1 round again

#

Goddamn it

jovial warren
#

maybe you're just too good

hot hull
#

It's not that I couldn't do it solo, there's 4 objectives to control, and it'd take forever to do it solo

jovial warren
#

oh also, guess what btw

hot hull
#

Cause you know we speedrunning this bitch

prisma wave
#

"kotlin isn't verbose"

#

and other jokes

jovial warren
#

kotlinx.serialization is extensible

prisma wave
#

buzzword

jovial warren
#

so I could technically write my own serialiser impl for this

#

oh also BM, guess what else kotlinx.serialization supports

#

HOCON
Properties
ProtoBuf
CBOR

#

and there are YAML impls

#

so I can just write my own NBT impl for this

hot hull
#

Stop saying you can and just do it duh

jovial warren
#

I have such a huge brain

onyx loom
#

u dont

hot hull
#

Press X to doubt

onyx loom
#

ur brain is most likely around the average size of a human being, assuming u are human

jovial warren
#

I do have a bigger head than the average person, that is a fact

#

doesn't mean I have a bigger brain though

#

I'm just much more logical

prisma wave
#

yeah wheres the ELON implementation

jovial warren
#

make an ELON specification first

#

in full

#

none of this half-assed shit

#

thinking if I should bother to make this multiplatform or not

#

I'll just make it JVM for now I think

#

totally not just going to copy the structure of the JSON serialiser and make it work for NBT

jovial warren
#

[ ()*+=&^%$"/.,|#@;:!`?<>{}\[\]'~\\]now that is what you call a regex

onyx loom
#

๐Ÿ˜ฌ

jovial warren
#

wanna know what that's for?

distant sun
#

Question, is possible to importa an IDEA project on Eclipse, right?

hot hull
#

:why:

obtuse gale
#

why

jovial warren
#

that's called devolving

distant sun
#

Yes or no, apes

jovial warren
#

yes

#

but why

obtuse gale
#

surely eclipse gets a full rework at some point that actually makes it decent

distant sun
#

A friend does java this semester and their teacher want to use Eclipse

jovial warren
distant sun
#

Yeah

jovial warren
#

just tell them "IntelliJ better, so I'm using IntelliJ"

steel heart
#

Lol

jovial warren
#

man I should be a comp sci teacher lol

onyx loom
#

im sure they cant argue with u over which IDE u use

jovial warren
#

exactly

distant sun
#

I think they can just not accept your submissions.

jovial warren
#

that's not fair though

#

just because they use a different IDE and they think they know better

obtuse gale
#

just convert it to an eclipse project at the last minute

hot hull
jovial warren
#

also, if they reject your assignment because you didn't use a specific tool that is completely personal preference then you can surely report that to the school

hot hull
#

Tell the teacher he's a fucking retard

jovial warren
#

I mean, idk how your system works, but over here, you could get the teacher in trouble for bias I believe (or something like that)

distant sun
#

Nah he said they can use whatever

#

The teacher has light themed eclipse

jovial warren
#

ffs

distant sun
#

Mine will use code::blocks

onyx loom
#

i mean could u imagine a teacher using dark theme

#

i couldnt

jovial warren
obtuse gale
#

unless its in the syllabus surely they cant mark them down on it

jovial warren
#

I mean, at least you get to use Java

obtuse gale
#

^

jovial warren
#

if I was doing my programming project at school, I'd be forced to use Python with PyScripter

obtuse gale
#

Im stuck here with VB

hot hull
#

Legit just use advanced shit Gaby, I'm betting he won't know what half the shit does

onyx loom
#

at the end of the day ur getting .java files and then a .jar so

jovial warren
#

fucking PyScripter

#

barely an IDE

#

no completions

#

no indexing

onyx loom
distant sun
#

:))

jovial warren
#

no dependency management

distant sun
#

Poor bbg

onyx loom
#

i had to do it for my college too

hot hull
#

Imagine having CP at school

#

Fucking kek

old wyvern
hot hull
#

G code is where it's at

obtuse gale
#

plus ive got a mac lmao so i have to vnc into my home computer and code with like 4000 ping

jovial warren
#

I've asked for IntelliJ so many times and they just brush it off and don't give a fuck

old wyvern
#

Codeblocks gang

#

๐Ÿฅฒ

jovial warren
#

and they block all EXEs so I can't even run a portable version

hot hull
#

AAAAAAAAAAaaa

#

white theme

old wyvern
#

lol

hot hull
#

Bardy, usb and just transfer it to the pc?

jovial warren
#

think I've used code::blocks before

onyx loom
#

would that even work frosty?

jovial warren
onyx loom
#

yeah

hot hull
#

How the fuck do you run other programs then

onyx loom
#

everything on a blacklist prob

jovial warren
#

trusted installed programs

obtuse gale
#

cant you just take in ur own laptop

jovial warren
#

anything that's not preinstalled you can't sue

#

because the sysadmin is an idiot

hot hull
#

Legit tell them to go fuck themselves if they force you to use dumb shit

obtuse gale
#

thatll go down well

hot hull
#

Like okay dinosaur, you use your 40 year old program

jovial warren
#

why does that get yeeted

#

fuck you Barry

hot hull
#

legit the sysadmin is a posh arrogant asshole who's barely liked by his own team

#

asshole I'd pressume?

jovial warren
#

maybe

#

fucking true though

onyx loom
#

yep

#

thats the BUZZWORD

obtuse gale
#

ass hole

#

problem solved

onyx loom
#

nice one barry

hot hull
old wyvern
#

ร†hole

onyx loom
#

lmao

obtuse gale
#
java.lang.UnsupportedOperationException
    at java.base/java.util.Collections$UnmodifiableList.remove(Collections.java:1318)```
#

wow

#

can I tell that to get fucked somehow or nah

hot hull
#

Show what u doing

onyx loom
#

how did u even get that error?

jovial warren
#

it's called an UnmodifiableList for a reason

obtuse gale
#

itemPanel.model.items.clear()

onyx loom
#

ah yes

obtuse gale
#

I know that small snippet is very clear

#

and tells you everything im doing

onyx loom
#

of course it does

obtuse gale
#

where model is this val model: CollectionListModel<AdditionalDependency>

old wyvern
#

Wow google. Just... wow

#

Nullable defaults

#

With that we end up with this ๐Ÿ™‚

pref.getString("key", "") ?: ""
onyx loom
#

whats the point ๐Ÿ˜‚

#

whats this for anyway yugi

jovial warren
#

you know Spigot has that as well right?

#

it's a hack lol

#

it means they can return null when the value in the default map is null iirc

#

I mean, doesn't make any sense why it should be done like that, but it is lol

old wyvern
old wyvern
jovial warren
#

lol

#

also, ```java
StringBuilder var_0 = new StringBuilder(" ");
int var_1 = 0;
for (int var_2 = 0; var_2 < param_0.length(); ++var_2) {
int var_3 = param_0.charAt(var_2);
if (var_3 == 92) {
var_0.append('\');
} else if (var_3 == 34 || var_3 == 39) {
if (var_1 == 0) {
int n = var_1 = var_3 == 34 ? 39 : 34;
}
if (var_1 == var_3) {
var_0.append('\');
}
}
var_0.append((char)var_3);
}
if (var_1 == 0) {
var_1 = 34;
}
var_0.setCharAt(0, (char)var_1);
var_0.append((char)var_1);
return var_0.toString();

#

it's the code that Mojang uses to escape any characters that don't match the regex [A-Za-z0-9._+-]+

#

I know that can be written better

old wyvern
#

If you got the regex you need to use, why do you need to decode it now?

hot hull
#

@old wyvern I got a bp for you, but it's MR 8 again so kek

old wyvern
# jovial warren wdym?
I gotta decode this lol
it's the code that Mojang uses to escape any characters that don't match the regex [A-Za-z0-9._+-]+
#

escape any characters that don't match the regex [A-Za-z0-9._+-]+

jovial warren
#

yeah but looking at this builder, we don't actually have to escape everything

#

we only need to escape 3 characters

#

so I was wrong

prisma wave
#

pretty sure clojure can do this in 1 line

#

๐Ÿ™‚

onyx loom
#

had a feeling it was android anyway

old wyvern
#

ah

tropic mountain
#

Hey, what's the best site to learn java or free?

prisma wave
#

sololearn is decent

onyx loom
#

what happened to ur tutorials bm ๐Ÿ˜ฆ

old wyvern
#

Coursera is nice

#

PluralSight is godly

prisma wave
#

havent had time to work on them

#

i havent forgotten

onyx loom
#

"excuses"

prisma wave
#

๐Ÿฅฒ

hot hull
#

Anyone wanna gimme a design I can use for my portfolio?

#

Thanks

prisma wave
#

no

hot hull
#

I mean what I have right now is already amazing, but it needs to be more informative

onyx loom
#

damn thatss pretty good

jovial warren
#
public static String quoteAndEscape(String text) {
    StringBuilder builder = new StringBuilder(" "); // create new builder to store result
    int quoteChar = 0; // initialise a variable to store the char to quote the result in
    for (int i = 0; i < text.length(); ++i) { // loop through every character of the text
        int currentChar = text.charAt(i); // get the character at the current index
        if (currentChar == 92) { // if the current character is 92 (backslash)
            builder.append('\\'); // append double backslash (appends a single backslash, one of them is to escape the appended backslash)
        } else if (currentChar == 34 || currentChar == 39) { // else if current char is " or '
            if (quoteChar == 0) { // if the quote character is 0
                quoteChar = currentChar == 34 ? 39 : 34; // set the quote char to the opposite of what this char is
            }
            if (quoteChar == currentChar) { // if the quote char is the current char
                builder.append('\\'); // append backslash
            }
        }
        builder.append((char) currentChar); // append current char, escaped or not
    }
    if (quoteChar == 0) { // if quote char is none (didn't find an existing quote)
        quoteChar = 34; // set quote char to "
    }
    builder.setCharAt(0, (char) quoteChar); // put quote char at beginning
    builder.append((char) quoteChar); // add quote char
    return builder.toString(); // return result
}
```in this code (renamed stuff and other what not from the original), won't `setCharAt` down the bottom there set the start char to the quote char, replacing whatever was there before?
hot hull
#

ikr

onyx loom
#

@hot hull perfect for u with that AMAZING website

jovial warren
#

oh wait... well that's hard to spot

#

it initialises an SB with a space in it, so it's able to replace the space with the quote char

distant sun
#

:)