#dev-general

1 messages · Page 43 of 1

slate elk
#

like self machines are good

#

its not over cheap its bulk sale over a selling less for more money

#

anyway hetzner network is not good its the main reason why they are bad beside it no scams or anything like that.

humble prism
#

own datacenter parks, they also usually choose cpus with lower power usage, also iirc they undervolt some of their cpus, etc etc

wind patio
#

hm

slate elk
#

its about their datacenter ISP routes and shit

#

eletrcity bills arent pain if u can place ton of solar panels / renewing electrcity

agile galleon
#

Ehh I wouldn't say their routes are bad if that even means anything noticable

#

Their ddos isn't too good though

storm kelp
#

If you mean from your phone, I use Ampere, it's fairly accurate

#

Wait syke I thought you meant testing the actual output nvm

slate elk
#

thanks..

#

nah i need to also get a schematic to order a PCB from a factory ^^

agile galleon
#

EasyEDA ftw

#

Or Altium/Eagle for that matter

slate elk
#

because i dont remember what i studied 6 years ago

#

but it should be simple based on true and falses

#

not the device but eletricity curcuits

agile galleon
#

I don't want to advertise another Discord so check out the YouTuber Voidstar Lab

slate elk
#

cyberpunk glasses haha

agile galleon
#

Yuuup

#

Check your DMs tony

humble prism
#

the things i said def does let them provide very cheap prices, (not all the reasons, but still)

pastel imp
slate elk
#

but why using pl lib?

pastel imp
# slate elk but why using pl lib?

widely used, packetevents is not that common + this was originally made for my own server where some plugins require ProtocolLib. And I didn't want to listen to packets myself "manually" cause that would require even more maintenance lol

slate elk
#

i see , then if u r fine witth itt looks very nice clean and organized

pastel imp
#

fr? I thought I was missing something

#

the main processComponent method looks a bit cluttered, maybe will modify it a bit

#

didn't run any performance tests so... hope there are no issues on that side on bigger servers

#

lol

slate elk
#

performance tests r pretty useless now adays as long as u dont have infinity loop haha

#

or leaks

#

like modern cpu's r really good ngl

half harness
#

shouldn't u return here

pastel imp
#

good question

#

it disables the plugin, so I would assume it wouldn't run the rest of it?

#

although no idea tbh

half harness
pastel imp
#

will add a return just to be sure

#

yeah fair

half harness
#

although an exception would be thrown later anyways

#

classnotfound

#

¯_(ツ)_/¯

pastel imp
#

fixed that

#

I am concerned about the scoreboard part since it worked on my end, but not all scoreboard plugin works the same from what I recall

#

so, will see

#

will probably just add a command to manually parse text or an item

#

and after that it should be fine

crude cloud
pastel imp
#

eh but I already had to use protocollib for other stuff

#

so, why not I suppose

#

this was originally not meant to be public

#

just making it public cause other people might need something familiar

#

I also hope to send a tiny middle finger to the fkers that don't update their plugins to support minimessage

#

xd

#

Either way, code pogging? Free to publish it?

crude cloud
#

idk I didn't read it lol

pastel imp
#

lol

#

fair

lavish notch
pastel imp
ocean quartz
#

If only developers weren't assholes about everything and stopped shaming others

remote goblet
#

impossible reality

silk isle
distant sun
#

if (thing) return true;
else return false;

ocean quartz
#

The amount of bad code I have written because we didn't have time to make it better lmao

distant sun
#

Yup

storm kelp
#

At least from my experience

potent nest
#

I‘d say it’s often the Dunning-Kruger effect

wind patio
#

11 days of no reply from discord support and still counting

fading imp
#

What category did you submit the ticket to? They probably don’t have a lot of staff for the lesser ticket “issues”

wind patio
#

considering previous replies were within 2-3 days, this is fairly uncommon to me, thought its discord support nonetheless

#

it's regarding server ownership

#

our current server owner (he was the one that created the server being an admin) is inactive and been offline for months and he's technically off the staff team

#

I've been trying to get them to transfer it, but every time I do, during the time they take to reply, the current owner miraculously logs-in (the current owner needs to be offline for at least a month) and they deny the request and suggest moving 4000 members + losing all the message history and integrations, to another server.

pastel imp
#

Are there any alternatives to configurate?

#

Only found out now that their YAML configs don't have support for comments

#

which quite sucks

cinder flare
#

to be fair most don't lol

#

snakeyaml will be the death of us all 😔

pastel imp
#

not snakeyaml 💀

civic cairn
#

although it may be as not as convenient, still decent

wintry plinth
#

BoostedYAML all the way!

#

We use it for Tebex + Tebex Analytics, fantastic stuff

ocean quartz
#

Snakeyaml does support comments on more recent versions

crude cloud
#

^

wintry plinth
#

It's really solid

steel heart
#

those are nice, I remember this 3rd alternative... hmm I think it was named oe yaml or sth lol

distant sun
#

What about hocon? More robust structure than yaml

steel heart
#

yea I think hocon is cool, tbh as long as a given ecosystem has some sort of consistency/standard for which format they use its pretty nice

crude cloud
#

consistency

#

yaml

#

lol

steel heart
#

weeeeeelll

#

you know

potent nest
#

I heard pkl is the new thing everyone should use

distant sun
#

Pro kabaddi league?

potent nest
steel heart
#

apples new thing right?

potent nest
#

yeah

distant sun
#

Interesting

pastel imp
distant sun
pastel imp
crude cloud
#

that's unfortunate

wind patio
#

Json!!!!

fading imp
#

You guys need to stop being weak and use .txt with Scanners 😎

cerulean ibex
#

Othwrwise id just write ur default config manually cuz theres usually too much preference that cant easily be expressed as code

zenith fog
cerulean ibex
#

and im not sure what you mean in the issue you linked

zenith fog
#

no, i tried, FlexibleType just uses the normal Map, it is impossible to use the original order in the config

cerulean ibex
#

oh thats what you mean

#

thats a sequenced map not sorted

zenith fog
cerulean ibex
#

oh i think ik what u mean

#

like when you load and save it it can't save the sub section because it's invalid so it just deletes it?

foggy pond
#

After having moved on to modding instead of plugin development, coming back to this feels sooooo much easier and more relaxed

#

The modding community is way more toxic too compared to this one

wind patio
#

real

lavish notch
foggy pond
#

Do you mean the minecraft servers or discord servers

agile galleon
#

Minecraft, you can't host modded Discord

foggy pond
#

Nono what I meant is

#

The discord servers for minecraft developers

agile galleon
#

I'm confuse dxD

distant sun
half harness
distant sun
inner umbra
#

Any reason getResource is returning null? Its in the jar file.```java
Path animationsPath = Paths.get(MinionCore.class.getClassLoader().getResource("Animations").toURI());
Files.list(animationsPath).forEach(path -> {});

onyx loom
half harness
#

oh maybe it does

#

idk

#

but what happens if you getResource a file

inner umbra
#

Works with files... Not with folder. But I don't want to write down the name of all the files I have in the jar.

oblique heath
pastel imp
#

I wonder why there are no alternatives to bstats

#

well, at least ones with a more modern UI

#

bstats hasn't even been updates in 2 years

inner umbra
#

Charlie isn't this what anylse is for?

wintry plinth
wintry plinth
inner umbra
#

👍

wintry plinth
#

Currently just Minecraft servers, but will expand to FiveM etc.

#

I’ve been planning a bStats alternative in stealth, using what I have learnt whilst building Tebex Analytics

inner umbra
#

I feel like it's the lack of profit detering a similar system. You could put ads on the page but 🤷

wintry plinth
#

I agree, monetising this kind of thing would be hard. I would be able to take the hit to host it on something similar to the specs used for Tebex Analytics, due to database optimisations etc

pastel imp
inner umbra
#

Lol I feel that

wintry plinth
pastel imp
wintry plinth
#

You can ask Gian, this has been planned for a long time

pastel imp
#

bstats is sponsored by a host and is fully free

kindred hatch
pastel imp
#

inner umbra
wintry plinth
#

I think being for-profit isn’t an issue IMO, every business has to make money. I’ve had some ideas to build an alternative for a while, that could allow a “freemium” approach

pastel imp
#

FastVM still sponsors bstats so I assume they are getting some money back?

kindred hatch
#

The value they get back is knowing what's popular and basing their arc on that

pastel imp
#

but welp, we will see

wintry plinth
#

I feel like I’m in a great position to build a bStats alternative, given the experience I’ve had over 2 years building “Analyse”. I’ve had a lot of experience with database tuning, to allow us to handle like 100’s of millions of monthly events

pastel imp
#

when's this supposed to come out?

#

xd

wintry plinth
kindred hatch
#

😮

pastel imp
#

another?

wintry plinth
pastel imp
#

oh yeah, I can imagine

#

but only imagine

#

I don't have the monies for that

wintry plinth
kindred hatch
#

😮

pastel imp
wintry plinth
#

Ironically, no 😂

pastel imp
#

wait wut

#

WHO ARE YOU

kindred hatch
#

😮

pastel imp
#

where is charlie?!

#

where did you take him?!

wintry plinth
#

😭😭 Mr Domain Addiction me

pastel imp
#

xD

wintry plinth
#

But yeah, this has been an idea I’ve been planning for a long while. I haven’t had much time to actually build it fully yet.

I am very picky when it comes to what ideas I work on, it has to be based around an issue I personally face to do it. We’ve had an issue at Tebex for plugin stuff, which has sort of pushed me to build this.

#

Plus, I am very picky with UI - if I do this, it has to be my best work yet by far in terms of design

inner umbra
#

Hosting has always been my projects downfalls. Eventually it just got to expensive. So new projects that require hosting are always just an idea for me.

kindred hatch
#

That's why I just host everything on a $10/m VPS

wintry plinth
#

Yeah, I think hosting is often the most expensive part. I’ve been planning to write a blog post to discuss what I’ve learnt, hosting can be cheaper if done right, but most lean towards the “serverless” crap which I don’t believe in

#

I am a big preacher that “cheap” hardware goes a long way

inner umbra
#

Even that's to expensive for me lol

My projects don't have a steady income to keep them up.

wintry plinth
#

That’s understandable though! What I would do is work on a project, and then put aside $5-10 a month for hosting.

After you’ve built it (however many months it takes) you should have some funds to put towards it

pastel imp
wintry plinth
#

Some places like digital ocean offer $$ for free when signing up, you could use something like that

inner umbra
#

Oh yeah definitely but after years it's at the point where it won't ever keep itself going so I just drop it.

pastel imp
#

You could always use Oracle Cloud or even Cloudflare Pages

#

both free

#

and tbh, Pages is looking awesome

#

I have only used it for testing on a very old project of mine

#

which had 0 backend

#

but they have workers and what not now

inner umbra
#

For in house projects I just use what I have, phones, old pc/laptops etc.. but for things like servers or websites yeah I could look into those.

pastel imp
half harness
pastel imp
#

supports React, Svelte, Vue, etc.

pastel imp
half harness
#

I haven't used it myself tho (or github pages)

inner umbra
#

My personal server died a little over a year ago so that sucked. But it was old when I got it.
Ddr2 64gb dual quad core amd

pastel imp
#

unsure why it's not common for people to have an oracle cloud server

pastel imp
#

it def. is good, I will use it whenever I start working on my SaaS

#

which btw charlie, I haven't touched yet 😢

#

It appears that my final year of HS is a bit more stressful than I imagined

jade raven
pastel imp
#

my math grades are not pogging rn lmao

oblique heath
pastel imp
#

?

oblique heath
#

if you try to spin up your own instance right now you probably wont be able to

#

they only have so much capacity

#

and people literally use scripts to auto claim space as soon as it becomes available

pastel imp
#

yeah, a friend of mine terminated his instance to start a complete new one

#

and got fked

oblique heath
#

yep

pastel imp
#

cause "out of capacity"

oblique heath
#

thats what happened to me

jade raven
pastel imp
#

same

#

happened to me once

#

after 2-3 days I got it again

#

they are constantly terminating inactive instances

#

I already got emails twice cause my instance didn't have enough activity

#

lmao

jade raven
#

I have 2, luckily they have enough activity it's not an issue but yeah that's annoying

pastel imp
#

On a very side note, @wintry plinth if ya need any help in either direct frontend coding or just general feedback, you know where to get me. Afterall, don't tell me I took an UX Design course for nothing 😢

#

(I actually have barely used my knowledge from that course yet lol)

wintry plinth
pastel imp
#

yeah, 100%

#
  • you have had enough time to see what's bad about bstats
#

and can fix it

#

in the meantime, gonna add bstats to my plugin

wintry plinth
#

Yeah, it’s also taught me a lot about why competition in the space is needed. It helps a lot when you can learn from what others do, as the saying goes.. competition breeds innovation

pastel imp
#

factsss

long dagger
#

I saw this today when looking through a friend's project, I dont even know what to say.

switch (File.Exists(jsonSavePath))
{
    case true:
        Achievements_SaveFile save = JsonUtility.FromJson<Achievements_SaveFile>(File.ReadAllText(jsonSavePath));
        Achievements_Earned = save.earnedAchievements;
        break;
}
wind patio
#

the fuck

distant sun
#

Si many wrong things

sly sonnet
#

imagine using if statement

#

🤡

fading imp
#

Nightmarish code

old wyvern
#

Oh wow

#

Demon Simon still pinned

inner umbra
#

Is YamlConfiguration.getDefaultSection() not the same as YamlConfiguration.getConfigurationSection("")?

fading imp
#

Has anybody messed with display in spigot.yml? I assumed this would include TextDisplays but with animals and display set to equal values, TextDisplays as the passenger of animals don't seem to unload but the animals do?

pastel imp
#

hell I might have to switch to ProtocolLib again

#

packetevents has some issues

#

and I doubt the dev will fix it in the next 12 business days

long dagger
#

He said it's more efficient

pastel imp
#

hell why are there no alternatives to protocollib and packetevents?

half harness
#

protocollib and packetevents (although i never used packetevents) are already good libraries

#

protocollib is more low level than packetevents I think, but there's packetwrapper which tells you how to use the packets (the exception being when the packet changes and packetwrapper isn't updated)

pastel imp
crude cloud
#

PR 😛

pastel imp
crude cloud
#

are the devs aware of the issues?

oblique heath
#

i am a dev, and i am aware of this issue now

#

not a protocollib or a packetevents dev but i did make a hello world in java a few times

pastel imp
long dagger
pastel imp
agile galleon
pastel imp
foggy pond
#

Has anyone ever had an issue where IntelliJ randomly changes font and you cannot change it back?

wind patio
#

no

lavish notch
potent nest
#

VSCode is absolutely wild when it comes to java

#

had multiple cases where reformatting just straight up deleted code

#

and every time I was confused why it doesn't compile anymore suddenly

lavish notch
wintry plinth
#

If you're not using the Minecraft font, are you really a Blockgame Developer?

remote goblet
#

minecraft font to me truly is the most readable

lavish notch
wintry plinth
storm kelp
#

Holy shit I'm going to use that for work 🤣

wintry plinth
remote goblet
#

ligatures :-(

cinder flare
cinder flare
ocean quartz
#

But why would you? 😔

wintry plinth
#

Ligatures ftw >>

cinder flare
#

yeah idk they just did a sad face

#

so i figured they didn't like em or smthn

fading imp
#

I've seen scoreboards removing the Red-Numbers in 1.20.3+. Does anybody know if this done with NMS or through the API or if anybody has done this

#

I would ask on spigot but md gets mad at the thought of somebody using NMS scoreboards instead of the API and locks the threads pepelaugh

pastel imp
#

what's the "fancy" font of mc?

#

like not the default one but the other

#

xd

storm kelp
#

imagine it makes lint failures into &k obfuscated

remote goblet
real pagoda
#

this commit took 2 lunar year to complete and yet there are still bugs hidden inside 😭

pastel imp
#

typical

inner umbra
#

Why can you not search through a repo on github without being logged in?

#

You can go through all the files but the search option will always show 0 results.

potent nest
#

because someone implemented it that way

#

(the answer was one google search away)

inner umbra
#

So download the source or login lol

potent nest
#

I mean, GitHub users are typically logged in

inner umbra
#

I rarely am.

potent nest
#

sounds like a you problem

distant sun
#

How can you use github and not be logged it all the time LOL

static zealot
#

I don't blame github and any other service (twitter, etc.) that does it even though I find it very annoying

inner umbra
#

I get why some websites do it. But Github lets you view everything. It just won't let you search for it to find it easier.

potent nest
#

searching is fundamentally different from browsing when it comes to computation cost

static zealot
#

From what I can tell, they updated their search engine when they made login being required. I do find it a bit scummy that they're using that as an excuse. They could always just give the not logged in users the old search but that is extra work for their developers.

inner umbra
#

🤷 Like I said I can login or I can download. I feel like downloading would "cost more" then just allowing us to search.

crude cloud
#

you feel like or did you run the numbers?

#

because I'm certain it isn't a hunch for them and they actually have the numbers for it :p

potent nest
#

downloading is traffic and takes up your resources and time otherwise

remote goblet
#

oh...

#

not really what i was expecting it to do but

crude cloud
#

missing 0.5 offset moment

remote goblet
#

i changed it to pitch to see what it would do

#

how quirky

#

centering the entity isnt really the fix for the problem

#

i have now learnt that block displays just select a corner and when the yaw is modified the whole thing spins around that corner

foggy pond
#

Would you guys say that plugins are better to learn Java than minecraft mods are?

#

I know it's better to learn Java independently, that's what I did a few years ago

#

Just curious to see what everyone thinks, I feel like in modding you are so much more involved in understanding how the API works and how the source code works that you end up not learning as much Java

#

While in plugin development there is less complexity when it comes to API usage, resulting in an easier time when trying to learn Java?

wind patio
#

plugins are easier imo

half harness
#

Note that responses are likely to be heavily biased towards plugins here bc it's a plugin server

#

But I'd agree with M0dii

remote goblet
#

Plugins have a more stable and well documented API than modded does, in my experience forge/fabric are kinda just guessing games

#

heavy on forge api being a guessing game

potent nest
#

there are probably also far more resources on plugin development on the internet

wintry plinth
#

I can vouch that fabric is painful to use, plugins are much nicer

wind patio
#

I have used fabric, although as said my opinion might be biased, fabric is way more difficult than plugins

#

cant speak for forge

#

I could kinda compare it to server jar development, whereas for plugins you just use a fairly well built api

cinder flare
#

I mean plugins are only half of the whole game, you only do server side. Mods have a lot more going on since you also handle client side, so you get a lot more practice doing like networking and UI and stuff

#

You likely end up using a lot more of Java doing mods than you ever will doing plugins

storm kelp
#

Looking at it outside of the plugin ecosystem, irl you'll (usually, your experience may vary) be working with decently documented modular libraries regardless of the language you use. This is better reflected by plugin development than the modding ecosystem at the moment, so you'd get more transferrable skills from plugin dev work.

crude cloud
#

deez

slate elk
#

Hey guys anyone Herę made bruteforce for 4 pin app?

#

No limit attempts 30sec time limit per attempt

humble prism
#

thats... a odd question

agile galleon
#

Considering 0 time for putting it in, it'll take you 3 and a half days

slate elk
slate elk
#

Then request is over

agile galleon
#

Oh

#

well then try it

slate elk
#

What best to use?? Via android simulator

#

From what I know Java can’t do it without external libraries

#

Python?

wind patio
#

well you have to try 10000 different combinations

slate elk
#

I can try many times as I want I believe 1 out of 10 times gonna work

agile galleon
#

3ms per req

slate elk
#

I’ll try with C# today I hope the android simulator gonna be friendly lol

#

I’ll just take locations within the app screen

pastel imp
#

yo no messages in a day here?

#

sus

surreal garnet
#

Odd

fading imp
#

It’s Friday all the devs out partying

inner umbra
#

Lmfao

swift ermine
#

Could someone help me? 1.20.2 works but when I upgrade to paper or in my case pufferfish 1.20.4, it fails and crashes to do registry of lit_redstone_ore? I’ve tried paper 1.20.4 as well as spigot 1.20.4 and all fail. Please help?

wind patio
#

ChatChat not very active now is it

#

how the fk am I supposed to work with net.kyori.adventure components when ChatChat returns at.helpch.chatchat.libs.net.kyori.adventure.text.Component

potent nest
#

is it net.kyori.adventure at compile time?

wind patio
#

well turns out it was kinda my mistake because I didn't have any other options

#

I've included the ChatChat jar itself, not the API, since I had the error above when I included the API as dependency

#

I assume the API is kinda outdated

pastel imp
#

lmao codemc is fked

heavy perch
#

Getting this error everytime I try to restart server, server randomly crashed @ 60 players
57921 Portal: 34222645
[17:05:35 INFO]: Max TNT Explosions: 100
[17:05:35 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[17:05:35 INFO]: Preparing start region for dimension minecraft:chunkworld
Stuck here in the console, does nothing when I try kill it - removed the world but it says the same thing just with another world, any ideas?

heavy perch
#

Sorry bro

inner ruin
#

is there any discord integration for guilds plugin?

#

like they can have their guild chats connected to a discord channel

candid birch
gusty glen
#

what is the sorting algorithm that moves the items the least amount? I am in a scenario where swapping the place of two items is expensive (assume 50ms per swap), so I would like to minimize swapping by implementing a different sorting algorithm (what I'm sorting is a live list)

I googled this, and found this sus post in Quora https://www.quora.com/Which-of-the-sorting-algorithms-require-the-least-amount-of-swapping-or-memory-copying-operations saying that Selection Sort is the algorithm that minimizes swapping, but I'm not sure

foggy grail
#

inserting elements to a sorted list for example?

gusty glen
foggy grail
gusty glen
foggy grail
#

then only apply the changes that are needed and nothing else

gusty glen
#

I already have an algorithm to sort things, but it sometimes do too many unnecessary moves, so what I need is an algorithm to minimize the total amount of swaps I perform on the live list, that's what I want to know, the name of an algorithm that specializes in minimizing the total swaps needed to sort the list

foggy grail
#

then you want selection sort afaik

halcyon leaf
#

Guys

#

how to get JSON text on Deluxehub?

normal talon
#

is using StringUtils good for hex colors?

pastel imp
normal talon
#

is that also a dependency?

distant sun
#

Yes

pastel imp
#

otherwise you have to add it yourself

normal talon
#

Ah alr

#

Thx

foggy pond
#

has anyone else run into a weird Failed to validata message acknowledgements from <player> warning, resulting in their kick?

#

It's just started happening randomly half the time I use a command

agile galleon
#

No Chat Reports mod?

cedar estuary
#

Any recommended plugin for soft announcement?

#

1.18.2+

inner ruin
#

if there is use it

oblique heath
#

also, are you limited to only swapping the place of two items at a time? or can you perform a more complicated operation like setting the position of many items at once

inner ruin
#

also wait lol

#

why do you want to sort it

#

aint data being stored in a db?

#

just use the db query

pastel imp
#

Collections.sort()

#

But the objects inside the list need to be able to be compared

cedar estuary
slate elk
#

reprogamming a MCU

#

anyone got any exprience google is lack of info in the topic

oblique heath
#

mcu? marvel cinematic universe?

#

definitely needs some reprogramming fr fr

inner ruin
#

also which editor you use for coding?

#

you can use the Codeium extension its an free (maybe be better) alternative to GitHub CoPilot

pastel imp
wind patio
#

@static zealot where is my code review

static zealot
wind patio
#

aight thx, will fix in a few
also, any reason for UID over world name?

#

since I have been thinking about an option to define the global range shared worlds, so the config entry would contain world names

static zealot
#

well, technically world names are probably unique, the unique identifier is probably better to use

#

not that familiar with the spigot api

#

but I assume there's a reason to have both an id and name

wind patio
#

I suppose in this case it shouldnt really matter.
I think one would use UIDs if you store them say in a database and want a reference to an exact world, i.e. if you delete the world and re-create it, you would know its not the exact same world.

pastel imp
#

Still the same world with same uuid but different name.

static zealot
#

yeah I guess. that won't affect this particular case though

fading imp
potent nest
#

I've seen worse

golden plume
#

Hi, I am making a clan plugin and I want to integrate two commands, one is /vote leader <player> to select a new leader and /vote apply, but I don't know how to do it, can someone helpme?

wind patio
#

he wants to be spoonfed the entire plugin from what I can tell

glad fiber
#

It's ok to need help, but if you're not overly clear about what situation you're in people will treat you like the above

golden plume
#

My problem is that I don't know how to manage that after 5 minutes of there being no leader, the one with the most votes is selected.

glad fiber
#

That's more specific, hopefully you'll get help in #development

pastel imp
#

allow them to vote, after 5 minutes, with a scheduler, you close the votes.

ocean quartz
#

No need for a scheduler, just delta time, time when it started time it stops, if current is more don't allow votes

pastel imp
#

somehow

#

idk why

#

but it happens

#

lol

agile galleon
#

you think? I doubt it

pastel imp
agile galleon
#

Why does that sound like 9 out of 10 dentists recommend schedulers

pastel imp
#

nha but it was actually 9 people

#

at school, we had nothing to do so the teacher just said "lets code some mc plugins"

#

while him being like, literally not familiar at all with the api

#

lmao

#

so I kinda had to teach the whole class the basics

#

a few already knew, others wanted to try alone

#

9 of them I had to teach

#

and literally 8 of them understood schedulers but not the logic behind the delta time 💀

ocean quartz
ivory monolith
#

Okey

static zealot
#

Thanks @wind patio for your PRs. I have merged them. Now you can start working on cross-server support because I can't bother with this shit anymore 🤣

#

youtube music suggested this to me so I am sharing with you all this gem

wind patio
#

I dont have a multi-server setup so thats very unlikely 😄

distant sun
humble prism
golden sun
#

Hope none of you use AWS 😂

wind patio
#

amazonwebshit

golden sun
#

That is insane

potent nest
#

using IPv4 should be illegal

sly sonnet
#

Imagine not being able to memorize yout servers ipv6 address

timber oak
#

Opinion on Lombok?

half harness
#

use kotlin

#

👍

timber oak
#

But I'd probably get used to it

#

I just recently started trying out Lombok and it removes soooo much boilerplate code

crude cloud
#

?plsnolombok

compact perchBOT
#
FAQ Answer:

Why is Lombok bad?

  • It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
  • It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
  • Lombok'd code won't show in Javadocs
  • The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
  • Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
  • While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
  • Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
crude cloud
#

you can just use kotlin as java, although not the ideal way to use kotlin, it's an easy way to get comfortable with it, it's pretty similar

timber oak
# compact perch

Hmm yeah makes sense, but when making the same type of class hundreds of times or whatever, it's so nice to have

#

But I should probably just learn kotlin

crude cloud
#

the same type of class hundreds of times

#

my dear lord what are you doing

cobalt marlin
wintry plinth
#

To be honest, most of Lomboks “attraction” is not needing to type constructors, getters and setters - but actually IDEs like IntelliJ offer that exact thing. I use it a lot as it can be tedious to write, but with a keybind you can write it quickly

cerulean ibex
#

you can do constructors easily as well

wind patio
#

@Builder

#

@NoArgsConstructor
@RequiredArgsConstructor
@AllArgsConstructor

#

@ToString

#

@Data

#

@Synchronized
@Cleanup

wind patio
#

bluds losing out on so much because of their ego

potent nest
#

I prefer Java over Lombok, and everyone else should too

distant sun
#

I love when I open a class from someone else's project and I see @NoArgsConstruct @Builder and whatever else 🤌

wind patio
#

we use lombok at work.
saves a ton of time.

#

never had any issues with it whatsoever

rugged badger
#

How can i make a kits menu in a kits menu?

#

Because i have a gui if you do /kits. But i want to make gui for ranked, and members and tools

#

But it must be make a category

pastel imp
#

I never understood the whole lombok thingy, I dont see the issues on it besides readability on open sourced projects... @Builder, etc are cool

timber oak
#

Yeah I mean I just use it for getters setter and constructors, it's very nice to have

#

And the SuperBuilder

pastel imp
#

idk, if someone can explain it, ping me I suppose ¯_(ツ)_/¯

agile galleon
#

I don't use it, I rather have all the code that will be in the final jar at hand, but I also don't blame anybody who's using it

lavish notch
quiet depot
#

might mean use effectively

#

sure it's easy to use, but using it to actually get a quality outcome can sometimes be difficult

lavish notch
#

It's all about engineering the response.

humble prism
#

or just keep asking it until you get what you want

#

hehe

wintry plinth
humble prism
#

made by microsoft

#

lol

wintry plinth
humble prism
#

its.. a entire bundle

heavy slate
#

Does anyone know how to put a community made Jekyll template into my Github Pages repo?

long dagger
#

Is this discord or are there actually multiple chsnnels?

quiet depot
#

restart your client

wind patio
#

CTRL + R btw

wind patio
#

why is a voucher plugin almost 1.5mb

#

when I just wrote entire voucher system in like 100 lines of code

distant sun
#

mine is made with kotlin pepe_kek 3.8mb

cinder flare
wind patio
#

💀

quaint isle
#

Hey smart people,
my webhost jacked up pricing for Plesk licenses and I'm looking to switch to a different control panel.

I need to host a bunch of LNMP stack websites (nginx + mysql + php), support multiple php versions and multiple domains, support LetsEncrypt certificates and must run alongside portainer.

Ideally, it would also have pgsql support and a UI for file manager, database creation and firewall.

Any recommendations?
Either free or less than 60 bucks a year.

wintry plinth
quaint isle
wintry plinth
quaint isle
#

Sure, but my question was whether you guys can recommend any cheap or free control panel that allows to do this 😄
I installed a couple (like Hestia) but I wanted to hear what my fellow Helpchat devs use.

civic cairn
#

man i'm getting too much enums in my api

pastel imp
#

^^

#

or cloudflare pages my beloved

cinder flare
#

I mean I think we'd need to know more about the overall situation, cause this could go a few ways

pastel imp
#

wdym

cinder flare
#

If you're like hosting client websites, then getting a VPS/dedi and just running Docker containers + a single Nginx for reverse proxying on all of em would be very nice

#

I don't really know of any like free hosting services for that kind of stuff, so that's where other people here could come in clutch

quaint isle
# wind patio oracle free tier vps

no no, maybe I wasn't clear. I'm not looking for a server. I already got a vServer that I'm using and plan to keep on using. I'm just looking for control panel recommendations because I don't feel like shoving money into Plesks throat 😄

pastel imp
#

web control panels?

#

hPanel, cPanel, Plesk, Webmin, DirectAdmin, ispmanager

quaint isle
static zealot
pastel imp
#

...

#

(that was the first result of a google search)

#

pff

#

imagine using chatgpt, frfr

#

pure old google for the win

cinder flare
#

Oh I mean yeah in that case if it's all yours, then I would just have like one Apache/Nginx setup that just reverse proxies all your PHP stuff. If it's like straight vanilla PHP, should be super simple, if it's like Laravel/Symfony or something, fast-cgi and stuff should come in handy pretty nice

quaint isle
#

well, i can google too. Obviously I'm looking for recommendations. hpanel is hostinger, cpanel and plesk are not an option as i have explained above. Tried webmin, but hated the UI.

cinder flare
#

Would teach you a lot about sysadmin and get you away from relying on poor abstractions (web panels)

pastel imp
#

Star that seems like more work :-:

quaint isle
#

Also tried Hestia, which looked ok. And about to install cloudpanel as we speak.

cinder flare
#

how is that more work lol

#

You just setup Nginx like once and then bam

#

add your .php files wherever

static zealot
pastel imp
quaint isle
#

yup thats the one I meant 😄

quaint isle
pastel imp
#

makes life easier

cinder flare
#

yeah idk, I just find it not worth the effort of trying to get a panel for websites

pastel imp
#

whole reason I install ptero to manage my stuff

#

actually, doesn't ptero also allow web hosting?!

cinder flare
#

Like I'm at the point where I can slap together a docker-compose.yml and get an Nginx reverse proxy config in like 30 minutes

#

Yeah I do use Ptero for my game server stuff, never tried it for web, but I guess it could work

tribal plinth
pastel imp
#

yeah

cinder flare
#

I mean you could run Nginx outside of Ptero

pastel imp
#

or node.js, or whatever

tribal plinth
#

for nginx stuff but you can use JavaScript/Java/etcetera if you use them

cinder flare
#

which you like probably are already doing if you're hosting Ptero yourself

pastel imp
#

yeah

#

although could probably be good if you want it all in a single place

cinder flare
#

idk Docker just makes life simple 😌

pastel imp
#

I mean, if you already use ptero for mc servers, etc. why not for websites

cinder flare
#

If you want more control

pastel imp
#

only reason I don't host my websites in oracle cloud is because I fear it's not secure enough lmao

static zealot
pastel imp
#

idk, might be stupid and misinformed

cinder flare
#

I have a lot of mounts and stuff I use for my website stuff I run so I need the control

static zealot
#

or at least was. this was ~ 2 years ago

cinder flare
#

but yeah it's pretty chill

#

I use it for Discord bots as well

tribal plinth
cinder flare
#

Redis, MariaDB, SCP: Secret Lab, Gmod, etc.

quaint isle
cinder flare
#

yeah I suppose

pastel imp
#

is oracle cloud VM safe enough to host a website though?

tribal plinth
#

it's not worth my time to setup nginx again while I already have pterodactyl panel

cinder flare
#

Idk I am not a small single file kind of guy lol

pastel imp
#

Like, I always had the assumption it wasn't safe cause of firewalls, etc.

cinder flare
#

If I'm making a website, it's going to be like a full Laravel situation

#

or like, in any other framework, in which case you'd want the whole Docker setup anyways

#

PHP is really just the notable exception

half harness
pastel imp
quaint isle
half harness
#

or actually aren't firewalls based off the OS/distro/software?
not the actual host

cinder flare
#

yes lol

#

ufw moment

pastel imp
#

I am pretty sure I messed with firewalls to make ptero panel work

#

I legit had 0 idea what I was doing

cinder flare
pastel imp
#

so I am afraid I messed up somewhere

cinder flare
#

then full Docker containers for all the big stuff

pastel imp
#

which could easily expose it

static zealot
#

Man, I really can't get behind PHP. I know people just say "user Laravel" and I had, but I still don't enjoy it. I'd rather use python with jinja

cinder flare
#

jesus lol

#

I am the exact opposite

static zealot
#

I don't do that, but I'd rather

pastel imp
#

and since I will be running stuff that contains user data, preferably having 0 data breaches would be nice

cinder flare
#

I've found PHP more and more attractive, it's a lot like Java and the ecosystem is just so great

tribal plinth
cinder flare
#

I literally just rewrote my shitty Discord bot I inherited in discord.js into a wrapper over DiscordPHP and it is absolutely beautiful

pastel imp
cinder flare
#

and like, Laravel's Blade templates are so much better than Django's

#

it's like not even funny

pastel imp
#

Svelte 🔛 🔝

cinder flare
#

eh

#

Svelte doesn't have enough ecosystem

tribal plinth
#

I'm more into python, typescript (not JavaScript anymore) and Java

cinder flare
#

I've gotten into Vue a lot recently

pastel imp
cinder flare
#

meh

#

not fast enough

static zealot
#

I mean, I don't like js either. don't get me wrong. I realy dislike frameworks like react. I've recently started using HTMX and I want to see how that would go with Kotlin and Ktor

tribal plinth
#

I need to learn angular 😭 thanks for reminding me guys

cinder flare
#

💀

quaint isle
#

Modern PHP is actually quite nice. You just need to stay away from ancient tutorials written in 2010

pastel imp
#

Everyone is legit moving to Svelte, if you check surveys etc, almost everyone is interesting in svelte

cinder flare
#

well in like 5 years maybe I'll reevaluate lol

pastel imp
#

it's just a matter of time until it becomes as big

quaint isle
#

And Laravel is just a mvc framework like any other. It certainly does the job and has a huge community.

cinder flare
#

Vue's template syntax being valid HTML has been a huge huge boon in my recent projects

tribal plinth
#

I don't recommend EJS since it's client side rendering and terrible

pastel imp
#

Svelte 5 is coming out soon, that will make it even better with runes

tribal plinth
#

but seems like you might like it

cinder flare
pastel imp
#

whoever is not working with svelte does not know what he's missing imo

cinder flare
#

why would I like EJS lol

tribal plinth
#

saying that to blitz

pastel imp
#

okay, eco system sucks a bit, but it's growing fast and the dev experience in svelte is simply good af.

cinder flare
cinder flare
#

lmao

pastel imp
cinder flare
#

but yeah just being able to slap in Vue into any html and a little script tag is so so so nice

#

no preprocess step required

tribal plinth
#

I hate messy stuff

pastel imp
cinder flare
#

discord.py and discord.js were both quite awful to use

static zealot
#

I've only ever used jda

cinder flare
#

yeah idk I want to like Java a lot more, and like get into Spring, but the docs and ecosystem are just so awful

static zealot
#

I only ever wrote 2 bots though. One of which is still in small use

tribal plinth
#

I don't like how everything is handled by folder so

cinder flare
#

no nice database ORMs, no nice migrations, all the docs either use .yml or like .xml files for config, etc.

pastel imp
tribal plinth
#

I might move then

cinder flare
#

But for like anything else, it just doesn't do great for me

cinder flare
#

eh

static zealot
#

Why's that? I find it pretty nice to use for discord bots. But again, I've only ever experienced Kotlin + JDA for that

cinder flare
#

idk it's just not the vibe

tribal plinth
#

I'm using ejs cause it's easy to handle and isn't messy, and seems similar to javalin

cinder flare
#

all the libraries feel dated, poor documentation, etc.

#

like looking at the Hibernate docs rn is painful

tribal plinth
#

only downsides I found is that it's server side not client side and terrible for performance

cinder flare
#

that's literally what it's built to be, ERB but for JS

static zealot
#

HTMX*

tribal plinth
#

in JS we have Prisma which is good

cinder flare
#

idk never really liked Prisma

pastel imp
#

I would say Svelte is going to be the future main frameworks, Svelte 5 is going to bring a lot to the table, eco system is growing fast, several hosts/frameworks/libraries/etc are starting to support svelte too. Dev experience is the best I have ever had comparing to React and Vue.

cinder flare
#

all that translation layer stuff was quite weird

pastel imp
tribal plinth
#

ehh?? I got used to Prisma literally an hour after using it

cinder flare
tribal plinth
#

It's so good that I'm having issues going back to Java's usual long and terrible handling

pastel imp
#

I am planning on making an SQL library similar to Prisma for java

tribal plinth
#

just copy it and name is PrisJava or something I don't care

cinder flare
pastel imp
#

I actually already started, but stopped it cause I got busy with some other stuff

tribal plinth
#

just send me a message whenever you do that

pastel imp
#

If I remember xD

cinder flare
#

defining models as just objects in the language is so nice 😌

pastel imp
tribal plinth
#

🤔 that sounds interesting

quaint isle
cinder flare
#

ah yeah I can see that

#

idk I have really fallen off of React, obviously I'll probably end up at a job using it, but Vue has been good to me

pastel imp
quaint isle
#

oh im dumb, i thought u were talking about react vs vue but we still on svelte

tribal plinth
#

I need to start using react again, last time I did I had a mental breakdown as to how terrible it was from my perspective, but hopefully, and I really do hope that I just won't dismiss the possibility of not using REACT for my web projects

cinder flare
static zealot
cinder flare
#

And runes are going to bring it even closer lol

#

say hello to $state()

pastel imp
static zealot
#

how much are they paying you Afonso? /s

pastel imp
tribal plinth
pastel imp
#

like, whoever saw svelte before with stuff like $: would be like "tf is that?"

pastel imp
#

derived(), state(), etc make it easier to understand

#

it's also a smart move from svelte, that will probs make it easier for devs to switch from other frameworks

tribal plinth
#

then I might as well stick with my original plan with:
svelte -> go (basics) -> angular

pastel imp
tribal plinth
#

probably not that much but would be enough sure, but doing a website with react seems out of the way

pastel imp
#

according to stats, svelte has constantly dominated the top interest from the community for a few years now xD

#

React, Vue, all going down according to stats

tribal plinth
#

I've been focusing on html, tailwindcss and typescript that I've also almost forgotten Java, thankfully I have a private "pass time" project in java that allows me to remember it

pastel imp
#

But those 2 still dominate the top usage, + angular

#

but it's gaining ground!

cinder flare
#

Vue templating language strikes again!

pastel imp
#

6th place in retention

#

according to the survey, svelte has a 90% retention rate xD

tribal plinth
#

Alpine is good if you know how to use it

#

tbf if I have the chance I'd use it anywhere as it's easy to integrate

#

I made a simple change between 2 languages with alpine, it took me 30minutes (incl testing & fixing issues)

sly sonnet
#

proof?

pastel imp
#

xD

tribal plinth
#

I don't have internet unfortunately so can't, mobile data on phone since today's morning, waiting for ISP to solve it tomorrow when they open

#

remind me tomorrow

sly sonnet
#

"remind me tomorrow" - an easy way to get out of any situation

half harness
old wyvern
prisma wave
#

TRUE

distant sun
pastel imp
#

@tribal plinth how it looks with the plugin (routes)

pastel imp
# distant sun

tbf usually you also do classes with tailwind and use @apply lol

tribal plinth
pastel imp
#

(ignore productid xD supposed to be blogid)

tribal plinth
#

this is really interesting but I'd rather just have a blog/[Id].svelte but seems impossible

#

guess gotta sometimes sacrifice a few things for better performance overall

pastel imp
wintry plinth
#

Just abstract into a component, then boom

static zealot
#

yeah. biggest point of tailwind is that you have your css embedded in your html

#

so you don't have to look for it

pastel imp
#

hell this is an annoying webstorm thing?

#

why th doesn't it complete it?! (it's tab)

cinder flare
#

using @apply with tailwind is the definition of an antipattern

#

just use the tools your framework provides to segment stuff so it doesn't get too crazy, components should very much just wrap it nice enoughj

pastel imp
cinder flare
#

and make sure to use the prettier auto-sort tailwind classes, because it makes it super super easy to find a specific class in any tailwind list and change it

pastel imp
#

but yes, I am wrong, you are correct 100%

#

said bullshit

cinder flare
#

tailwind my beloved 😌

#

had to use Bootstrap for a project, holy shit i miss tailwind so much bro

#

they don't use the tailwind style like md:w-32 or whatever

#

they just put the size thing in different places in each class

#

and you can't like do custom since it doesn't do a JIT or anything, so sad

pastel imp
#

💀

#

I will always say, and I doubt anyone will ever change my mind

#

Vite + Svelte + SvelteKit + Tailwind is just the best stack ever

#

Once you use it once, you never wanna go back xD

cinder flare
#

yeah idk I like the backend maturity too much to just rawdog Nuxt/SvelteKit, and I've really been liking Vue and the ecosystem recently

#

but tailwind is my ride or die for sure

wind patio
#

Ok im gonna say it...

#

Im a react simp

pastel imp
pastel imp
#

xD

wind patio
#

Havent had time to mess around with other frameworks

pastel imp
#

tbf I am a Svelte simp, but justified simp

wind patio
#

Used react in most of my projects involving frontend

#

And kinda got used to it

#

So also kinda hard to switch and try new stuff

#

But anyways, svelte is something I will probably try next

cinder flare
#

yeah I understand React, idk I'm just as the point where I value simplicity and a useable template syntax

#

and Vue has served that need very well

#

especially with the whole new future stuff of Vue like Vapor, which is taking all the benefits of Svelte (compiled away framework) and bringing it to Vue

pastel imp
#

yeah legit all frameworks are copying svelte stuff lmao

cinder flare
#

I mean it is a very good innovation lol

pastel imp
#

yeah

#

can't blame them tbh

cinder flare
#

And thankfully all the nice ideas are being shared around to all the stuff people already use!

#

Signals in Angular, Vapor in Vue, React Forget in React, etc.

pastel imp
#

Meanwhile runes in svelte 5

#

literally shows the power of svelte compared to react and vue

#

basically, 145 characters of svelte code does what 442 characters of react and 263 characters of vue do lmao

#

it's simply almost 4x faster coding than react and almost 2x than vue

wintry plinth
#

Laravel + Vue has been my 🐐 stack, but now I want to dive into Laravel + React primarily due to libraries like Framer Motion

cinder flare
pastel imp
cinder flare
#

eh

#

it's getting a hell of a lot smaller with runes lol

#

and with a compiler to compile away the framework, the big differentiator will end up being the template syntax

#

and i think there's definitely pros and cons for both styles

pastel imp
#

true, I personally dislike runes but they are rlly good to have so

#

I suppose?

wintry plinth
#

Vue Vapor will be dope

cinder flare
#

fr

pastel imp
#

Vue Vapor looks interesting too

wintry plinth
#

Star, when you learnt react - did you use a book or online resources?

cinder flare
#

Mostly online resources

#

The new react docs at https://react.dev are superb, and I just got a lot of use from Next.js stuff, specifically the T3 stack

pastel imp
#

I have never personally learned any framework with books. There are recommendations I can do of some REALLY great free youtube courses for svelte(kit) though if anyone is interested

#

overall, glad other frameworks are adapting svelte features

#

anyways, time to go sleep

wintry plinth
cinder flare
#

Yeah idk, I find books too formulaic and generally slow-to-update for real usage

#

Having real examples and stuff to look at from real repositories is a great great way to learn imo

#

Cause you can just get your hands dirty and mess around with stuff

#

That's one of the things I love about Laravel lol, it's super super easy to just get a simple setup going, with Inertia if you want, etc.

wintry plinth
#

Yeah I love Laravel tbh, do you ever use memorisation and such? I think that’s been my biggest fear, the performance side of things

cinder flare
#

Memoization in React?

#

I've done a bit yeah, but meh

#

generally the kind of stuff I'm doing doesn't really need it that much

#

and with React 19 coming soon with a compiler, you likely won't ever really need to lol

#

useMemo and useCallback will be basically obsolete

wintry plinth
#

As performance is always thr biggest worry

cinder flare
#

yeah idk I've been quite happy with Vue recently honestly

#

the template syntax just like, is so nice actually

#

also Blade templates are so much fucking nicer than Django templates

#

I never realized until I did some stuff with basic Laravel templates, it's so nice to just be able to run native programming language code in the template renderer

wintry plinth
#

I wish Vue had framer motion, I am a “make things pretty and feel cool” type of guy. React sadly has all the fancy shit

And yeah, I’d love to find a good use case for blade

cinder flare
#

When you wanna be minimal, Blade templates are just some of the best static backend templating systems there are

#

I guess probably because PHP was originally intended to be basically an HTML templating language lol

#

but like, so much better than Django templates or ERB or like EJS or anything

wintry plinth
#

Yeah 😂 what type of use cases do you have for blade rn? Project wise

cinder flare
#

Smaller project stuff for my capstone class, just quick setup kinda stuff

#

like using native custom XML elements and slots as a layout rather than weird inheritance like Django is so nice

#

and you can like do functions and stuff in the template, ugh just so nice

storm kelp
#

Single Page Applications > MVC Applications

long dagger
#

With just the docs and youtube

#

I don't have the best technical understanding, but I have enough to get done what needs to be done

cobalt marlin
long dagger
#

That and the Next.js docs (I used Next.js as well) had a lot of React content in them

wintry plinth
silent pond
#

hiiii
is it possible to make a alambic gui with the api

pastel imp
#

fun fact: AWS will start charging $0.005 per hour for ipv4 usage

#

and some others are also starting to do the same

#

they are trying to make people move to ipv6

wintry plinth
#

Good

halcyon leaf
#

Does anyone know a plugin which allows us to customize the damage on swords and resistence/abosrption on armor?

Custom values on each item and they have seperet identifictation code in a config.

quaint isle
#

What OS would you use if you wanted to run 1-2 docker containers on a tiny vserver (1vcpu / 1GB RAM)?

cinder flare
#

Debian

#

I guess Alpine if you really wanna minmax

oblique heath
#

alpine is pretty great for how small it is

quaint isle
# cinder flare Debian

i posted that question and fell asleep 😄

debian is usually my go to but I think it's too resource-intensive for a smol server. I've actually only ever used Alpine as base image for containers, never as an actual OS for a machine, but that should definitely be way slimmer than a chonker like ubuntu 👍

wintry plinth
#

I love Debian, it’s my go-to

agile galleon
#

Years ago Ubuntu was my go to but i don't like the boat anymore

remote goblet
#

I have discovered i apparently havent known how hashmaps function for almost 3 years at this point

#

egp_sparkles apparently egp_sparkles

#
Map<String, Object> map = new HashMap<>();
Object object = map.get("hello");
object.sethello(true); // this updates it in the map??
#

ive been convinced if i changed an object that i retrieved from the map, i would have to reassign it

agile galleon
#

Considering the hashmap doesn't copy the object it should be updated I think?

ocean quartz
#

Maps store references

inner umbra
#

Yeah not really anything to do with the map lol

inner umbra
#

So if you guys thought this way about maps... Do you think the same with other storage types? List, Set, etc...?

remote goblet
#

i actually

#

cant tell you

#

i think i just dont actually remember the last time that i stored anything in a list

inner umbra
#

What do you normally use?

wind patio
#

what

wind patio
potent nest
wind patio
#

isnt it changing the hashcode of the key?

potent nest
#

yes

wind patio
#

not the value

potent nest
#

value doesn't matter

wind patio
#

well thats, uh, normal

#

when putting a key, you're storing the value at the key's hashCode, same for retrieve

#

and well, changing it messed the map up

potent nest
#

well you don't store it explicitly, but the place where the object is stored depends on the hash code

wind patio
#

yes

#

buckets

wintry plinth
#

How is the hash code stored by default? I remember you can override it, but does it use certain properties of the class or something?

wind patio
#

its kinda jvm specific

potent nest
#

the default hashCode is a JVM specific value stored ⭐ somewhere ⭐

#

current OpenJDK implementations use a random function to calculate it once and it's then stored in the object header

#

(although you can specify to use a few other mechanisms to calculate the hash code, e.g. there's one so all default hash codes are just 0 for debugging)

ocean quartz
#

A quick example of how funky mutable keys can be

wind patio
#

some of the known methods is using marsaglia xor-shift alg

#

but the impl itself is not rly known

potent nest
#

I mean you can just look at the code if you want to know

crude cloud
#

i like the one that always returns 0

#

or was it 1?

potent nest
#

ah it's 1, yeah

crude cloud
#

im gonna use that as default in prod

potent nest
#
jshell> new Object().hashCode()
$1 ==> 1

jshell> new Object().hashCode()
$2 ==> 1

jshell> new Object().hashCode()
$3 ==> 1

fingerguns

ocean quartz
#

I like value = 0xBAD; , value equals bad lol

ocean quartz
#

Lmao

#

I personally like 3405697037

distant sun
#

And what does that mean?

#

Hexspeak is a novelty form of variant English spelling using the hexadecimal digits. Created by programmers as memorable magic numbers, hexspeak words can serve as a clear and unique identifier with which to mark memory or data.
Hexadecimal notation represents numbers using the 16 digits 0123456789ABCDEF. Using only the letters ABCDEF it is pos...

distant sun
#

Basic Git (3+ year work experience)
O.o

fleet bay
#

What's better to do? Using Laravel as a separate application from the front-end or using Laravel and the front-end together?

wind patio
#

i'd just do both

#

you can pair any frontend framework with it using Inertia

#

(any being Vue2/3, React, Svelte)

fleet bay
#

Alright

#

Do u perfer one? @wind patio

wind patio
#

well I heard good things about Svelte

#

personally I'd go with React since I know it best, so that's a biased opinion.

pastel imp
#

svelte on top

wintry plinth
#

Laravel+Vue is easier to pick-up, we use it at https://analyse.net

Tebex Analytics

An in-depth, player-focused Minecraft Analytics solution that helps server owners make better decisions to grow their community.

timber oak
#

Does anyone know a good API for particles? To spawn for example a wave of particles?

wintry plinth
#

But otherwise Laravel+React is good

timber oak
#

I know it can be done with just math but yeah

civic cairn
#

ParticleBuilder from paper can help you eliminate the boilerplate though

agile galleon
steel heart
#

jQuery is pretty nice :)

cinder flare
agile galleon
#

yeah blade is also very cool

cinder flare
#

Blade is surprisingly nice, coming from like Django Templates and ERB and Thymeleaf

oblique heath
#

erb 😔