#dev-general

1 messages ยท Page 298 of 1

distant sun
#

yea ignore that

unkempt tangle
#

Senpai wanna play now ;c?

static zealot
#

hey you're getting there.

#

FrozenGenerator soonโ„ข๏ธ ?

regal gale
#

Helix-shaped particles ๐Ÿ‘€

#

I need that in my life

#

This is a helix-shape

#

Need you to code a particle plugin like that for me ๐Ÿ‘€

half harness
#

ohhhh math?

#

that doesn't seem easy xD

obtuse gale
#

that does seem easy lol

static zealot
#

easy

half harness
#

maybe

#

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

#

wot

static zealot
#

easy math

half harness
#

oh

static zealot
#

some cos and sin math ezz

regal gale
#

Also, ik it's easy

#

But here's a challenge

unkempt tangle
static zealot
#

oh look its already done ^ xD

half harness
#

xD

unkempt tangle
regal gale
#

Make it so that helix will shrink when the laser launch from initial shot, and then shrink it only if touch the finishing point

old wyvern
#

Make some form of non euclidean geometric illusion

static zealot
#

who wants to be my successor?

old wyvern
#

successor to what?

static zealot
#

you'll take over my github account after you die

old wyvern
#

uh sure

#

xD

static zealot
#

after I die

#

fuck

regal gale
#

Lmao

static zealot
#

well seems like its sooner than I thought

#

good bye

old wyvern
#

๐Ÿ˜ฎ

hot hull
#

I don't want to, I am making it

unkempt tangle
#

Oh gosh

#

Painful job

hot hull
#

Not really

unkempt tangle
#

Just go ahead and help OTG dev

hot hull
#

No clue who that is

static zealot
#

that's the dev of the plugin OTG

hot hull
#

link

static zealot
#

OpenTerainGneration I think its called

#

just search

unkempt tangle
#

He is porting everything to 1.16

hot hull
#

ew he uses eclipse

#

efe, trying to have a 3d generator done before 1.17 drops so I can adjust it for that then

jovial warren
hot hull
#

So it takes 13 sec ish to generate a 10kx10k world, any bets on how long it takes for a 100kx100k

oak raft
#

40 seconds

regal gale
#

Around 45s, I think

jovial warren
#

if the length/width has increased by a factor of 10, the area has increased by 10^2, so I'm saying 1300 seconds

hot hull
#

Which is what like 20 min?

jovial warren
#

21.6 recurring minutes

hot hull
#

damn, was close

jovial warren
#

what was it?

hot hull
#

No I mean the 20min

jovial warren
#

ah

hot hull
#

Trying to make it so positive values are more rough so we can see some mountains

#

Will start genning it afterwards

#

Also I lied it wasn't a 10kx10k, it was a 5k world

oak raft
#

-_-

#

imagine lying

half harness
#

imagine imagining

hot hull
#

Yea my bad, completelly forgot I was diving it by 2

regal gale
#

200k ๐Ÿ˜ฌ

hot hull
#

that'll be a 100kx100k world

regal gale
#

I mean, yeah

#

But still

hot hull
regal gale
#

I also forgot your function is dividing by 2 reversed_fingerguns

hot hull
#

Now we wait

steel heart
#

frosty pls not premium

#

or at least open source

hot hull
#

Welp

java.lang.OutOfMemoryError: Java heap space

#

Conclure, OS Free

steel heart
#

aye

onyx loom
old wyvern
#

What are you keeping in memory my guy

#

Wait are you doing this on a server or just testing?

hot hull
#

pregening rn Yugi

#

not sure what you mean by that

#

dedi go brrrr

old wyvern
#

as in some sort of debugger client?

hot hull
#

nah legit generating into a server

old wyvern
#

ah

hot hull
#

Why?

old wyvern
#

Overhead from other server activities

#

vs just your generator's data in memory

hot hull
#

Done (41.140s)! For help, type "help"
around 4-5 of those seconds are the other server startup stuff

old wyvern
#

lol

hot hull
#

I need to stop pregening it, but that fucks everything up

half harness
#

wot

static zealot
half harness
#

u said

Suggestion: Please delete

steel heart
#

external?

static zealot
half harness
#

;-;

hot hull
half harness
#

lmao

hot hull
#

get exposed

static zealot
#

I think that's a lie

half harness
# steel heart external?

"external" classes are things that require a dependency like Vault... idk why I put the update checker in external tbh ๐Ÿ˜‚

#

it's been a while since I updated this

half harness
unkempt tangle
#

dafuq

half harness
#

wot

hot hull
#

Who knew that running 2.5 bilion calculations took time

#

Using 24gb of ram, ramming the cpu to the max

regal gale
#

Damn

static zealot
hot hull
#

damn that's a scam

half harness
#

lmao

static zealot
#

how dare you say I said something I never said when you said it?

half harness
#

inspect element? ๐Ÿ‘€

hot hull
#

photoshop

half harness
#

y photoshop

#

inspect element easier

distant sun
half harness
#

you do

#

๐Ÿ˜›

hot hull
#

Why maven Gaby

distant sun
#

is a project from github

hot hull
#

gradle init

half harness
#

i have a question

compact perchBOT
#

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

half harness
#

What is the purpose of the version in gradle: project.version?

static zealot
half harness
#

._ .
Just copy and paste frostys avatar url

#

then just replace Blitz with Frosty

static zealot
#

false

half harness
#

wot

#

wdym false

half harness
#

plus

#

i dont have access to logs

hot hull
#

8 minutes down, like 15 to go

static zealot
oak raft
hot hull
#

IJ allows you to set a bg image

#

Can you two stop with the incriminating evidence

static zealot
#

Frosty do you mind me just copying your FrozenActions and renaming them to BlitzActions and saying they're made by me? xD

half harness
hot hull
#

Sure, idc Blitz

#

They need a rewrite anyways

static zealot
#

k thanks

#

yeah

#

I know

#

but better than nothing

half harness
#

DkimActions

hot hull
#

Would this be an okay ish way of multithreading or? (Using SERVICE#submit with a runnable)

half harness
#

soonโ„ข๏ธ

#

BukkitScheduler#runTaskAsync fingerguns

hot hull
#

dkim, fuck no

half harness
#

why

onyx loom
#

coroutines or nothing

#

(joke)

hot hull
#

The calculations don't use the bukkit api (apart from the current generator implementation which will get changed)

half harness
#

anyone have any tips to make intellij not make my computer unusable?

#

it makes my computer laggy

old wyvern
#

16 threads wont be helpful

onyx loom
#

get a new pc

steel heart
#

Frosty cached thread pool?

old wyvern
#

How many cores does your cpu have?

half harness
steel heart
#

or a work stealing one maybe

old wyvern
#

Check your parallelism value

hot hull
#

Executors.newCachedThreadPool(new ThreadFactoryBuilder().setDaemon(true).build());

old wyvern
#

any more than that is decreased performance

hot hull
#

This what I'm looking for, or?

steel heart
#

daemon is for background tasks

hot hull
#

I've no idea what I should be using with this

old wyvern
#

What dkim?

steel heart
#

it may be good to set the name format

distant sun
oak coyote
#

8 threads yummy

steel heart
#

and set the uncaught exception handler frosty

old wyvern
#

I was refering to frosty

steel heart
#

but daemon is prolly not what u want

half harness
#

๐Ÿ˜”

#

๐Ÿคช

unkempt tangle
#

Anyone

oak coyote
#

but yeah your computer clocking at 1.1Ghz

unkempt tangle
#

wanna play with me ;c

regal gale
#

Should always also notice about the single-thread Minecraft gave to us ๐Ÿ‘€

old wyvern
#

16 threads with 8 cores = lesser execution time and more context switching

distant sun
half harness
oak coyote
#

might be the reason

onyx loom
unkempt tangle
half harness
oak coyote
#

@half harness you only clock at 1.1Ghz so that is your issue

half harness
#

its a laptop

oak coyote
#

yeah ik

#

but in comparison i'm clocking at 5.1GHz

half harness
#

WHAT

onyx loom
#

lol

half harness
#

I didn't know my cpu was that bad ๐Ÿ˜ฆ

unkempt tangle
#

mr 20fps

oak coyote
#

it's just laptops

hot hull
half harness
steel heart
#

yes

oak coyote
#

they can't go high speeds due to literally melting if they did xD

steel heart
#

the name format should include the format argument

half harness
#

and I thought 3ghz was high

steel heart
#

"terrain-generator-%d"

#

or smtng

#

and uncaught exception handler -> lambda > anonymous instantiation

#

also Idk what exactly you do, but you may want to use a work stealing pool (ForkJoinPool)

half harness
#

is it good to use final methods?

oak coyote
#

i do it cause it's habit

steel heart
#

read here frosty

oak coyote
#

i don't know if it makes much of a difference

steel heart
#

if it suits you or not

half harness
surreal quarry
#

think it just means that the method can't be overridden

oak coyote
#

I changed it

steel heart
#

final is nice

half harness
regal gale
#

final everything

oak coyote
#

i final everything that should be final

surreal quarry
#

use it unless you need to override the method

half harness
#

time to have the word final on clipboard

#

xD

surreal quarry
#

vim macros

steel heart
#

coding with vim

#

nice

half harness
surreal quarry
#

i code on paper

#

then scan it as a pdf

#

convert pdf to text

oak coyote
#

i code in notepad

surreal quarry
#

compile manually

oak coyote
#

yeah

old wyvern
#

I code on punch cards ๐Ÿ™‚

surreal quarry
#

imagine letting some "computer" compile your code for you

half harness
#

i gen all project files in intellij then code in github sometimes ๐Ÿ™‚

hot hull
#

Takes 5 sec for a 50k world now

steel heart
#

pog

hot hull
#

issue is that the generation is fucked cause async

surreal quarry
#

wdym

steel heart
#

maybe reflect the server thread

hot hull
steel heart
#

and then run the runnables on it bypassing timings etc

hot hull
#

Since each thread uses a different generator, meaning it doesn't know the previous value I'd presume

old wyvern
#

Why is that noise so smooth

#

Are you using a single noise generator frost?

hot hull
#

Yes

surreal quarry
#

just dont do it async think_smart

old wyvern
#

Might want to superposition multiple ones

#

Theres blog about all this but I dont have the link rn, should be relatively easy to find on google

hot hull
#

James, it took 17min for a 50k world sync, and 5 sec when multithreading

regal gale
surreal quarry
#

consider using sync

#

thanks

hot hull
#

No.

half harness
#

is it possible to know if my code is async or not? (Such as putting all code in a runnable, then running two bukkit tasks - one async, one async)

surreal quarry
#

some things have an isAsync method

steel heart
#

well

surreal quarry
#

depends where you are

steel heart
#

^

half harness
#

just a runnable

old wyvern
#

Wouldnt have happened in haskell ๐Ÿ˜Œ

hot hull
#

Elaborate more on that

half harness
#
final Runnable r = () -> { stuff(); }
old wyvern
#

State mutation

steel heart
#

dkim depending on where the runnable runs it may be sync or async in respect to other operations

hot hull
distant sun
half harness
#
final Runnable r = () -> { stuff(); }
Bukkit.getScheduler.runTaskTimer(r, i forget what params);
Bukkit.getScheduler.runTaskTimerAsynchrously(r, i forget what params);
static zealot
steel heart
#

oh dkim

static zealot
#

but a lot of videos so you might not want to waste that much time

steel heart
#

thats async/sync to the main threead

#

or server thread rather

half harness
#

yes

oak coyote
#

@distant sun Why break encapsulation?

steel heart
#

its probably not beneficial

distant sun
#

stop asking me these questions ffs

#

IS NOT MY CODE

steel heart
#

if the getter and setter only act like vessels to a state of the object then they're pretty much redundant

hot hull
#

I saw the message yea

static zealot
#

oh sorry xD

hot hull
#

I watched this a while back

steel heart
#

now ofc encapsulation is still beneficial as you can substitute the actual state beneath

hot hull
#

Might actually follow it

static zealot
#

ah ok then. yeah I remember it being very nice but I don't remember a lot of what was said lmao

hot hull
#

I watched a few university courses on noise, kind of forgot everything already

jovial warren
#

lol

hot hull
#

This dude is an absolute legend tho

jovial warren
#

yeah I've told Peaches about this 100 times over by now

hot hull
# jovial warren lol

You said 21min for 100k world, took 17min for a 50k world, didn't have enough memory for 100k singlethreaded

distant sun
#

yes

steel heart
#

public fields do be lit

jovial warren
#

you can blame das for that

steel heart
#

iirc

#

or

half harness
steel heart
#

use Consumer<? super BukkitTask>

jovial warren
#

runTaskTimer returns a BukkitTask iirc

steel heart
#

if a runnable is passed ye

jovial warren
#

and so does runTaskTimerAsynchronously

steel heart
#

it returns void if a consumer of bukkit task is passed

half harness
#

is there a way to use like Threads or smth to see if its on main thread?

surreal quarry
#

dkim you should know if its async or not

steel heart
#

what

surreal quarry
#

look at the method you use

half harness
#

im curious

steel heart
#

in worst case catch the main thread

surreal quarry
#

if you use a method that is named blahBlahAsync it implies that it runs async

steel heart
#

then use

#

Thread == thread

half harness
#

oh

#

ok

jovial warren
#

Bukkit.isPrimaryThread()

half harness
#

d;spigot Bukkit#isprimarythread

ruby craterBOT
#
public static boolean isPrimaryThread()```
Description:

Checks the current thread against the expected primary thread for the server.

Note: this method should not be used to indicate the current synchronized state of the runtime. A current thread matching the main thread indicates that it is synchronized, but a mismatch does not preclude the same assumption.

Returns:

true if the current thread matches the expected primary thread, false otherwise

hot hull
half harness
#

ooo

jovial warren
#

also, whoever's idea it was at Mojang to release the ProGuard mappings for all versions 1.15+ is a literal god

steel heart
#

idk

#

but it is phenomenal

jovial warren
#

it means that I can steal look at how Mojang does it and put something into MineKraft

steel heart
#

big brain

surreal quarry
#

MineKraft

#

is that

#

kotlin

#

minecraft

jovial warren
#

maybe

surreal quarry
#

very interesting

jovial warren
half harness
#

oh

#

so thats how u got the name

jovial warren
#

indeed it is

half harness
#
public class main extends JavaPlugin implements CommandExecutor, TabCompleter, Listener
```:)
jovial warren
#

get out

onyx loom
#

ima shoot u

surreal quarry
#

pain

jovial warren
#

what a surprise that the Notchian server is one of those with a util class very helpfully named Util

half harness
#

lol

jovial warren
#

love how this shows how wrong the Bukkit team were in their naming that makes actual logical sense

#

definitely wrong to think Notch has more than about 3 brain cells functioning at any given time

#

also, if they're releasing ProGuard mappings, why don't they just open-source the whole lot? lol

#

or at least, the server

steel heart
#

Notch wasnโ€™t particularly experienced in coding

jovial warren
#

I can tell

half harness
#

lol

steel heart
#

Thought he did start the creation of minecraft

#

But maybe

#

No

half harness
#

no?

steel heart
#

Itโ€™s sus

jovial warren
#

maybe they could've, idk, rewritten it all from scratch?

surreal quarry
#

you're sus

jovial warren
#

they've got the time and resources to do so now

half harness
#

purple is sus

steel heart
#

They have rewritten major parts ever since?

jovial warren
#

probably

ocean quartz
prisma wave
#

๐Ÿฅฒ

jovial warren
#

omfg lol

hot hull
#

It reminds me of something else, but that's a yikes

jovial warren
#

say it

hot hull
#

Some german thing that was popular a while back

#

pog

#

I wanna make a cleaner renderer for world generation, should I do that or nah?

jovial warren
#

make something that works and open-source it so I can steal it and use it in MineKraft

hot hull
#

Bardy most of the stuff I've been making for the past year is OS

#

Even some of the commissions

old wyvern
hot hull
#

nono I meant a german place

jovial warren
old wyvern
#

ah

hot hull
#

The name sounds german

jovial warren
#

it's not due to... relocation

#

but it can't be

#

actually it can be

#

actually it can't be

prisma wave
#

๐Ÿฅฒ

jovial warren
#

I'm using PDM, and both my projects depend on the same version

half harness
#

._ .

hot hull
#

efe, a better thing to say is come over I wanna break your kneecaps

half harness
#

lol

half harness
#

lol I thought you said pls ban im not joking

#

๐Ÿ˜ณ

#

how do u make github repositories not public?

prisma wave
#

dont

#

๐Ÿ™‚

half harness
#

;-;

jovial warren
half harness
#

noo like

#

an existing repo

jovial warren
#

or you click the little cog that is for settings

#

and you go to the danger zone area

half harness
#

danger zone ๐Ÿ˜ณ

jovial warren
#

and you click the thing that totally doesn't clearly say "change repository visibility"

half harness
#

๐Ÿ˜…

jovial warren
#

it's dangerous if you use things you can only get with public repos

half harness
#

oh

jovial warren
#

it'll tell you why it's dangerous when you click it

half harness
#

ok

#

thx

jovial warren
#

yw

half harness
jovial warren
#

imagine blanking out the repo name

half harness
#

lol

jovial warren
#

wonder which one of these you're making private

half harness
#

๐Ÿ‘€

stuck harbor
#

dkim19375/porndownloads

half harness
#

๐Ÿ˜ณ

stuck harbor
#

that's the repo

jovial warren
half harness
#

lol

jovial warren
#

gotta be a decent name length if you blanked out that much

half harness
#

uh

#

i gtg

#

afk

jovial warren
#

lol

stuck harbor
#

mhm sure u do

half harness
#

;-;

stuck harbor
#

:)

half harness
#

oh wait

#

afk

prisma wave
#

what foul thing is this

#

an array of functions * b?

old wyvern
#

f sharp?

prisma wave
#

yeah

#

just trying to figure out wtf this error means lol

jovial warren
#

ah not a bad language

#

actually readable

#

unlike cough Clojure cough

old wyvern
#

Looks like its a tuple of a function array and some generic type?

prisma wave
#

yeah i think i fixed it

old wyvern
#

ah

prisma wave
#

i think it was something to do with currying / 2 parameters

#

currying it seems to work

old wyvern
#

ah

jovial warren
#

currying?

old wyvern
#

function currying

#

partial application

jovial warren
#

currying sounds like the sort of word I'd expect to find in a scam document lol

old wyvern
#

if you have a function f(a,b)

f(a) returns a function that takes b to give the actual result

lunar cypress
#

What part of โˆ€f โˆƒg (f (x,y) = (g x) y) did you not understand?

old wyvern
#
let f(x,y) = x * y

let g(x) = f(2)

repeat(10, g)

Heres an example in elara ๐Ÿ™‚

prisma wave
#

๐Ÿ™‚

old wyvern
#

Atrocious

prisma wave
old wyvern
onyx loom
#

๐Ÿ˜‚

jovial warren
#

wow

prisma wave
#

now i need to make it not show up in discord

#

they'll never see it coming

jovial warren
#

where you putting that?

prisma wave
#

on my website

jovial warren
prisma wave
#

no

onyx loom
#

can we get a link to it pinned in this channel too ๐Ÿ™‚

prisma wave
#

just whenever people use the wrong channel

#

off they go

#

๐Ÿ™‚

jovial warren
onyx loom
jovial warren
#

ffs fix your fucking SSL Alex

#

god damn it

#

it's not rocket science

onyx loom
prisma wave
#

that subdomain doesnt even exist lol

#

thats probably why

#

smh

onyx loom
#

i jsut clicked ur link

jovial warren
#

certbot certonly --dns-cloudflare --dns-cloudflare-credentials certbot/cloudflare.ini -d wiki.bristermitten.me ez

#

and anyone who uses Cloudflare DNS and doesn't use the Cloudflare DNS module for Certbot is an idiot

prisma wave
#

i use certbot

#

but

#

theres literally nothing configured for that subdomain

#

yet

old wyvern
#

bm

ocean quartz
prisma wave
#

i told you

old wyvern
#

make it DOMAIN/help/<some-query> and let all those routes be pointed to haskell

#

๐Ÿ™‚

prisma wave
#

lmao

old wyvern
#

so we can make many such ones

prisma wave
#

ive got it setup for a random functional language

#

so

#

yeah yeah

onyx loom
#

lmao

prisma wave
#

it will accept any route

old wyvern
#

awesome

prisma wave
#

and redirect to a random functional language

#

๐Ÿ™‚

#

oh ive got elm twice

#

lol

old wyvern
#

๐Ÿ’ฏ

#

lol

prisma wave
#

elara soon

old wyvern
#

Add elara repo\

onyx loom
#

no clojure

#

i guess thats not fully functional

prisma wave
#

AAAH i

#

ifrogot clojure

onyx loom
#

lol

#

๐Ÿ™‚

lunar cypress
#

literally clojure oppression

prisma wave
#

sorry

#

typo

#

pretty sure the second elm was supposed to be clojure

onyx loom
prisma wave
#

also are dotnet apps supposed to build to .dll files?

#

that doesnt seem right

onyx loom
#

elm
clojure
very similar

lunar cypress
prisma wave
#

huh

#

not sure why it's building for windows

#

and working

#

since im on linux

#

anyway i need to dockerize this

frigid badge
#

yes

#

๐Ÿ™‚

surreal quarry
#

what is going on here

hot hull
#

Anyone wanna help me a tad

#

I need an inverse lerp function for java, x y and a 2d float array of the values

onyx loom
#

a what what

jovial warren
#

you talking about lerp(a, b, t) = a + t * (b - a)?

#

the linear interpolation function

hot hull
#

I just need that in java

#

Imma just make it myself

jovial warren
hot hull
#

ah so I need clamp as well

#

I smell a long chain on features to implement

old wyvern
#

nope

#

that function doesnt reference any other functions

hot hull
#

okay just clamp then

old wyvern
#

yup

hot hull
#

neat

#

Don't bother, already got it

jovial warren
#
public static float inverseLerp(float a, float b, float value) {
    if (a != b) {
        return clamp((value - a) / (b - a));
    } else {
        return 0.0f;
    }
}

public static float clamp(float value) {
    if (value < 0.0f) {
        return 0.0f;
    } else if (value > 1.0f) {
        return 1.0f;
    } else {
        return value;
    }
}
hot hull
#

wHeRe ArE tHe FiNaLs

jovial warren
#

I don't generally tend to use final unless it's better to or I have to, since it just introduces more boilerplate that I can't be fuckin' assed to write

onyx loom
#

๐Ÿ˜ฉ

jovial warren
old wyvern
#
inverseLerp a b value
                    | a == b = 0.0
                    | otherwise = min 1.0 (max 0.0 value)
jovial warren
#

what the fuck is that

old wyvern
#

Haskell ๐Ÿ™‚

jovial warren
#

leave

prisma wave
#

looks good!

onyx loom
#

truly

jovial warren
#
def inverseLerp(a, b, value):
    if a != b:
        return clamp((value - a) / (b - a))
    else:
        return 0

def clamp(value):
    if value < 0:
        return 0
    elif value > 1:
        return 1
    else:
        return value
onyx loom
#

disgusting

prisma wave
#
let inverseLerp a b value = 
  if a = b then 0.0
  else max 0.0 value |> min 1.0 
onyx loom
#

thats liek 50 more chars than haskell

prisma wave
#

probably a more idiomatic way of doing that

lunar cypress
#

your functions do different things

prisma wave
#

i copied yugi's

#
let clamp value =
  match value with
  | 0.0 when value < 0.0
  | 1.0 when value > 1.0
  | _ -> value
#

that's kinda hot

onyx loom
#

๐Ÿ˜ณ

prisma wave
#

nvm doesnt compile ๐Ÿฅฒ

onyx loom
#

lol

surreal quarry
#

lol

jovial warren
#

compile?

#

I thought that was Elara KEKW

prisma wave
#

nah that's poorly written f#

subtle lynx
#

I'm really starting to hate everything

I've been struggling with knowing whether static is okay or not since I started learning Java
Some people are like nO yoU caN't UsE sTaTiC! NEVER! OBJECT ORIENTED PRINCIPLES SAY THAT STATIC VARIABLES SHOULD BURN IN HELL
And a bunch of other stuff is like "yo if static is easier and requires you to jump through less hoops and is easier to read, it's cool yo"

half harness
#

static is useful if done correctly

prisma wave
#
let pattern pred x = if pred x then Some () else None
let (|Negative|_|) = pattern ((<) 0)
let (|MoreThan1|_|) = pattern ((>) 1)

let clamp value =
    match value with
    | Negative -> 0.0
    | MoreThan1 -> 1.0
    | _ -> float value
``` i did it
old wyvern
#

Id say try to avoid using static until you fully understand what it means

prisma wave
#

^^

old wyvern
#

Dont use it just to get access to something

#

Think if it actually makes sense for it not to be part of the object

prisma wave
#

it's easy to fall into bad habits with static

old wyvern
#

^

half harness
subtle lynx
#

okay so I have a player manager class that basically just stores more information about other players. Many other classes need to access player information because it's a minigame plugin, so I used static to access it across the entire plugin but I'm using an instance variable to actually store the information

old wyvern
#

Bad

subtle lynx
#

got it

half harness
#

Bad

subtle lynx
#

I switched that already

half harness
#

ok

#
if (util || constant) {
    return "good";
}
return "bad";
#

ez

subtle lynx
#

lol

onyx loom
#

thats not really the best way of looking at static

half harness
#

lol

#

i knew someone was going to say that

subtle lynx
#

What's the best way to handle a class that has to be accessed by like everything?

half harness
#

DI

subtle lynx
#

pain

#

okay

half harness
#

its not pain

subtle lynx
#

it is when you have to refactor a bunch of code to use it.

half harness
#

o

#

rip

subtle lynx
#

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

#

it is what it is.

half harness
#

dont static abuse fingerguns

hot hull
half harness
#

wot is dat

#

how

hot hull
#

more complex algorithm

surreal quarry
#

nice

hot hull
#

Now I need to figure out how to make an editor in that window so I don't have to keep reopening it

steel heart
#

Pro

old wyvern
subtle lynx
#

I'm not trying to argue with anyone, but I would like to get a straight answer that I can live by
Why is static bad for anything that could change?

half harness
#

Static variables are generally considered bad because they represent global state and are therefore much more difficult to reason about. In particular, they break the assumptions of object-oriented programming. In object-oriented programming, each object has its own state, represented by instance (non-static) variables.

#

๐Ÿคท

prisma wave
#

yeah static doesnt fit very well in the OOP paradigm

half harness
#

Static methods mean that they can be called from anywhere. They can be called from a lot of contexts. They have a lot of clients. So, if one class needs some little special behavior to be implemented in a static method, you need to make sure that none of the other clients get broken. So, such reuse simply doesnโ€™t work. I can compare it with my noble (and failed) attempt to compose and reuse microservices. The resulting classes are too generic and completely unmaintainable. This results in the whole system being tightly coupled.

prisma wave
#

it can make messy code that's hard to test and debug

hot hull
#

God it's annoying that main has to be static

onyx loom
#

ikr

#

๐Ÿ™„

surreal quarry
#

just make a class thats whatever your main class is, call that and then do things from there

#

boom no static

onyx loom
#

public STATIC void main ๐Ÿคฎ

prisma wave
#

pub fn main

surreal quarry
#

fun main

forest pecan
#

bro

#

its not even inappropiate

#

its not phub or something

#

???

onyx loom
#

whats the link

forest pecan
onyx loom
#

its cus its got shit in the name prob

forest pecan
#

its actually a very useful link tho

onyx loom
#

yup

#

classic git mistakes

obtuse gale
#

Hahaha that's actually really cool

onyx loom
#

petition for funnycube to whitelist that link

forest pecan
#

^^

surreal quarry
#

what link

#

๐Ÿ‘€

onyx loom
#

ohshitgit

subtle lynx
#

I guess it just feels weird having to encapsulate everything in an object when I'm not actually doing much that an object actually benefits me in doing. I suppose that it's really helpful to be able to keep certain methods and variables separate from a giant pool of variables, but I'm not creating items or houses or something like that; I'm writing logic for a minigame that doesn't have any great use for a lot of the features that OOP has to offer, at least as far as I know.

forest pecan
#

that doesnt simply exist and cant be possible

surreal quarry
#

that site isn't evne bad?

forest pecan
#

java is an oop language

onyx loom
#

yeah but shit in the name james

#

๐Ÿ˜ฉ

forest pecan
#

is phub blocked

#

lmao

#

it has to be

subtle lynx
#

yeah I know

#

lol

forest pecan
#

imagine if phub wasnt blocked and that was

#

kekw

#

xD

obtuse gale
#

Lel

forest pecan
#

i didnt see that but was that phub

#

lmao

obtuse gale
#

It was lmao

forest pecan
#

xD

surreal quarry
#

fefo banned 2021 confirmed

#

not clickbait

onyx loom
#

whats wrong with that link? ๐Ÿ‘€

forest pecan
#

u

hot hull
#

What's a good window ui library

surreal quarry
#

isn't that what like javafx does

#

or tornadofx

hot hull
#

oh yea forgot about javafx

half harness
hot hull
#

@distant sun You played with it before right? Got any public projects using it

surreal quarry
half harness
surreal quarry
#

pretty nice

#

never used it before but i might try sometime

hot hull
#

what the heck

surreal quarry
#

thats tornadofx frosty

distant sun
#

looks interesting

surreal quarry
#

its like a kotlin thing for javafx

half harness
hot hull
#

nvm I won't

distant sun
#

what can you use for android design instead of xml?

surreal quarry
#

lol

distant sun
#

-.-

#

xml is gross james

surreal quarry
#

i was saying lol to frosty

hot hull
#

Gaby, most new ide's have visualisation so you don't have to touch xml at all

distant sun
#

that would be great

ocean quartz
distant sun
#

not a big fan of js

surreal quarry
#

kotlin-react-native

#

wonder if that exists lol

ocean quartz
#

Kotlin react fingerguns

surreal quarry
#

oh yea kotlin multiplatform

#

pretty sure thats what its for

ocean quartz
#

Kotlin multiplatform works too but kotlin react is different

surreal quarry
#

yea

#

aren't react and react native different though

ocean quartz
#

Yeah

hot hull
distant sun
#

what are you working on frosty?

hot hull
#

You already know

#

Didn't you ask that earlier already

distant sun
#

"world generation"

#

what's up with the ui

hot hull
#

Making a renderer for it

static zealot
hot hull
#

Not enough water imo

static zealot
#

ugh idk it seems like its all just randomly sprinkled in there.

#

like it should be more water together same with land.

#

idk what the scale is there tho but it looks to me like just a bunch of lakes.

hot hull
#

Yea that's why I need a renderer, so I can properly play with the settings

static zealot
#

anyways its a cool project

hot hull
#

yessir

#

Can't wait to contemplate sudoku when I start with 3d shit

static zealot
#

xD

unkempt tangle
#

Possible to unmute twitch muted segments?

#

I highly doubt they are harddubly removed.

dawn hinge
#

Not that I'm aware of unfortunately

forest pecan
lunar cypress
#

what?

#

since when can I not post links

#

is there a word filter or something?

static zealot
#

ugh

#

I think there might be some link checking

surreal quarry
#

ye some stuff seems to be filtered

lunar cypress
#
hot hull
static zealot
#

on op65n ?

#

ah yeah

hot hull
#

Yes because pog

static zealot
#

I just name them hello or . or something like that

#

xD

#

because I'm bad

hot hull
#

None of the code is also documented, which needs to get documented otherwise It'll be a shit show rq

forest pecan
#

owo

static zealot
#

to much code for me. bye xD

hot hull
#

I need to license it before some dumbass copy pastes and claims as their own

static zealot
#

oh

#

I think you're to late

#

I've already done it

#

sorry

#

its also lincesed

hot hull
#

I mean I'm not worried about you, you're too lazy to finish it

static zealot
#

lmaoo

#

the truth hits hard

hot hull
#

It is the truth tho is it not kek

static zealot
#

but my other account tho is pog

hot hull
static zealot
hot hull
#

Which is 6,66 usd in case you weren't aware

static zealot
#

frosty you see that It says EUR for my account as well right? xD

#

I have to keep up with RON, EUR and USD

#

lmao

hot hull
#

Wanna transfer idk like 600 to me, ktnxbye

static zealot
static zealot
#

oh fuck its all gone

#

xD

#

puff its gone

unkempt tangle
#

can I have 300? :c

#

I need it for study fee

static zealot
#

yeah sure. let me make it first.

#

lmao

#

its 3643 before F5

#

the actual balance is 43,60 xD

unkempt tangle
static zealot
unkempt tangle
#

why is it not transperent ;c

static zealot
#

why not xD

unkempt tangle
#

How can I make quick money ;c

static zealot
#

jump of a building. that's how not to make money.

unkempt tangle
#

Let me join

static zealot
#

nah.

#

no one can join.,

#

the invite is actually very very public but no one will join any time soon

unkempt tangle
static zealot
#

looks like a good idea

prisma wave
static zealot
#

why?

unkempt tangle
#

cuz they are rusty?

static zealot
#

Rust is life. Rust is love.

#

Never live without Rust.

unkempt tangle
#

Senpai

#

wanna play now?

heady birch
#

@lunar cypress Where do you find these? Great to uncover and hear how badly society treats Rust developers.

lunar cypress
#

this one I got from r/rustjerk

heady birch
#

Is that a reddit page

lunar cypress
#

yes

#

can also recommend r/programmingcirclejerk

prisma wave
#

^

#

Very good

heady birch
#

Jazelle DBX (direct bytecode execution) is an extension that allows some ARM processors to execute Java bytecode in hardware as a third execution state alongside the existing ARM and Thumb modes. Jazelle functionality was specified in the ARMv5TEJ architecture and the first processor with Jazelle technology was the ARM926EJ-S. Jazelle is denoted...

prisma wave
#

Python 3 is able to write excel files and tell Excel to do the calculations. It can also read those files.

Thanks to Microsoft's latest update to Excel, Python 3 on Windows is finally Turing complete!

#

Finally!!

unkempt tangle
#

Python can do everything

#

You simply need the right library

heady birch
#

Don't think python has a "safe" library ๐Ÿคฃ ๐Ÿคฃ ๐Ÿคฃ ๐Ÿคฃ

unkempt tangle
#

Yeah. I hate it.

lunar cypress
unkempt tangle
#

Either 2.7 or 3.X

lunar cypress
#

up until the excel update that is

prisma wave
#

microsoft are really revolutionising programming ๐Ÿ˜Œ

lunar cypress
#

PepeLaugh oh no no

static zealot
#

I mean that survey is probably just dumb.

#

like most surveys nowadays

lunar cypress
#

back in the day the surveys were much better

prisma wave
#

83% of rust developers approve of me

static zealot
#

causation vs correlation smh

prisma wave
#

i think most software people are pretty liberal

heady birch
#

38% of participants had previously been charged with aggravated assault, of which 27% was related to promoting the language

prisma wave
#

maybe not some of the older ones

lunar cypress
#

oh hell no

lunar cypress
#

you know the infamous is-even and is-odd libraries?

#

Recently I was surprised to find that the guy who wrote those is like the archetype chud

#

Literally has a trump-2020 github organisation lmfao

prisma wave
#

lmao

lunar cypress
#

but for more famous examples, Robert C Martin is also a republican

#

ah yeah that's the one lol

prisma wave
#

oh surprising

#

well

#

most programmers on twitter are pretty liberal***

#

but that's just twitter

lunar cypress
#

eh, really depends on whom you follow

#

on the contrary, actually

prisma wave
#

c users are more conservative

#

rust and go users are quirky and modern

#

progressive

lunar cypress
#

I feel like Rust's community is much more open (some people not when it comes to the programming language) but generally yeah

#

probably because of the policies and infrastructure of the language

prisma wave
#

that is misleading and biased

lunar cypress
#

malloc and free?

prisma wave
#

๐Ÿ˜

#

๐Ÿ˜„

half harness
#

๐Ÿคฃ

prisma wave
#

which one did you get

lunar cypress
#

I think you accidentally set up a permanent redirect

#

or at least sending the response code for one

prisma wave
#

ah

#

yes i think you're right

lunar cypress
#

yeah you're sending 301

half harness
#

whats that?

#

is it bad?

lunar cypress
#

should be 307

half harness
#

๐Ÿค”

lunar cypress
#

because 301 tells the browser that it is permanent

#

and so it will land in the browser cache

half harness
#

oh

lunar cypress
#

and always redirect to the same page

prisma wave
#

ah right

half harness
#

still only clojure for me

#

in incognito i get different ones tho

prisma wave
#

yeah

#

i assume the browser is still caching

#

i think im sending different codes

half harness
#

uh

#

how do I delete cache?

prisma wave
#

would the Cache-Control header work?

#

uh

#

idk

#

somewhere in developer tools i think

half harness
#

oh ye

#

"Disable cache"

#

i think

#

well now it works, but I don't want to disable every time ๐Ÿ˜›

prisma wave
#

yeah ima try and disable it

half harness
#

okay

#

it works without disabling

lunar cypress
#

302 has been superseded by 307

#

not up to standard ๐Ÿ˜ก

prisma wave
#

The located assembly's manifest definition does not match the assembly reference. (0x80131040)
thonk

#

aah it was a version incompatibility

#

not the most descriptive error in the world

#

but i guess it was a start

unkempt tangle
#

Senpai

#

play?

static zealot
#

play with me senpai?

unkempt tangle
hot hull
#

UwU

ocean quartz
unkempt tangle
#

Matty

#

wanna play?

ocean quartz
#

Nope

unkempt tangle
#

I wanna try Witchcraft

#

Stop playing LoL for a sec

prisma wave
hot hull
#

No u

prisma wave
#

๐Ÿฅฐ

unkempt tangle
#

dafuq is dis

prisma wave
#

a masterpiece

unkempt tangle
forest pecan
#

๐Ÿฅฐ

#

oh

#

nvm

#

it was blank for my screen for some reason

somber tulip
#

it warms my heart when code that I've not touched in 3+ months stops working... it really does

ocean quartz
#

It's scary

somber tulip
#

๐Ÿ˜ฆ MySQL has just stopped allowing my json to be inputted because it's decided today that it won't accept extra ' i think

#

But, it's fixed itself on one implementation without me touching anything and broken on another!!!?

#

love it

unkempt tangle
#

Anyone got experience with Unity?

obtuse pulsar
#

My plugin doesn't build with the plugin.yml...

#
plugins {
    id 'java'
}

group 'bz.ene'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
    maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
    maven { url = 'https://repo.codemc.org/repository/maven-public/' }
}

dependencies {
    compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
    compileOnly 'de.tr7zw:item-nbt-api-plugin:2.7.1'
}

processResources {
    from(sourceSets.main.resources.srcDirs) {
        expand 'pluginVersion': version
    }
}
#

File structure ^

#

Why doesn't the plugin.yml get included with the build?

steel heart
#

how do you build?

#

where is plugin.yml?

steel heart
obtuse pulsar
#

I build as an artifact with intellij

steel heart
#

thats the issue

obtuse pulsar
#

i need build with gradle

#

lulz

#

how

#

how do i build with gradle

steel heart
#

click where the blue arrow is pointing

#

then build

#

your out will be in the directory build/libs

obtuse pulsar
#

thx

#

Unknown dependency NTBAPI.

#
repositories {
    mavenCentral()
    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
    maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
    maven { url = 'https://repo.codemc.org/repository/maven-public/' }
}

dependencies {
    compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
    compileOnly 'de.tr7zw:item-nbt-api-plugin:2.7.1'
}
steel heart
#

declared the repo?

obtuse pulsar
#

I added them in the gradle file..

#

yeah ^

#

shouldnt build automatically install it

half harness
#

press ctrl + shift + o just in case

obtuse pulsar
#

where

half harness
#

nvm

steel heart
#

enebz does it say anything more?

obtuse pulsar
#
[22:24:42 ERROR]: Could not load 'plugins\PluginTest-1.0-SNAPSHOT.jar' in folder 'plugins'
org.bukkit.plugin.UnknownDependencyException: Unknown dependency NTBAPI. Please download and install NTBAPI to run this plugin.
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:272) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:388) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.reload(CraftServer.java:942) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.Bukkit.reload(Bukkit.java:708) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:54) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:806) ~[patched_1.16.5.jar:git-Paper-466]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchServerCommand(CraftServer.java:768) ~[patched_1.16.5.jar:git-Paper-466]
        at net.minecraft.server.v1_16_R3.DedicatedServer.handleCommandQueue(DedicatedServer.java:411) ~[patched_1.16.5.jar:git-Paper-466]
        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:378) ~[patched_1.16.5.jar:git-Paper-466]        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1209) ~[patched_1.16.5.jar:git-Paper-466]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:997) ~[patched_1.16.5.jar:git-Paper-466]        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:174) ~[patched_1.16.5.jar:git-Paper-466]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
unkempt tangle
#

LOL

#

blind?

obtuse pulsar
#

yes

unkempt tangle
static zealot
#

Please download and install NTBAPI to run this plugin.

obtuse pulsar
#

as i said i added it to gradle

static zealot
#

it needs the plugin

obtuse pulsar
#

it should do it

#

yeah .. no shit

static zealot
#

because you didn't shade it in

unkempt tangle
#

no

#

You dont shade it

obtuse gale
#

you can shade it

#

but you can also install the plugin

unkempt tangle
#

Thats why you need it in your server too.

static zealot
#

either shade it or download the actual plugin

#

and install it in the plugins folder with your plugin

obtuse gale
#

or both fingerguns

static zealot
unkempt tangle
#

Shading == it compiles the required classses and put them into your jar file

#

I dont wanna be one of those jerks just throwing words out

steel heart
#

should prolly relocate then

unkempt tangle
#

no one else then them understands it.

obtuse pulsar
#

shouldnt it shade when i do this:

#
repositories {
    mavenCentral()
    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
    maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
    maven { url = 'https://repo.codemc.org/repository/maven-public/' }
}

dependencies {
    compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
    compileOnly 'de.tr7zw:item-nbt-api-plugin:2.7.1'
}

steel heart
#

nope