#help-development

1 messages ยท Page 797 of 1

shadow zinc
#

i guess

#

packets is probably the only feasble way

wet breach
#

using a custom event or couple of them to make generic events is also feasable

chrome beacon
#

Don't detect inventories bu their name

shadow zinc
#

for the purpose of finding the players responsible for the most amount of activity on the server, i guess it could be either or

rotund ravine
#

Just change Cancellable to PlayerEvent

fervent gale
wet breach
#

this would work for the cancellable events, what about the non-cancellable ones?

chrome beacon
rotund ravine
#

I just copied where i listened to cancellable

fervent gale
chrome beacon
#

You want to check the inventory instance

#

Not the title

fervent gale
#

got an example?

shadow night
#

how do I make an itemstack with the head of a certain player I know the uuid of?

rotund ravine
#

Make a skull and set the playerprofile @shadow night

chrome beacon
#

You probably want a hashmap or simillar though since I assume there will be multiple inventory instances

fervent gale
#

nope just the one

rotund ravine
#

But for multiple people yeahv

#

?

fervent gale
#

i'm confusing

chrome beacon
#

Then there is no need to open new inventory

#

Just modify the item in the inventory

fervent gale
#

๐Ÿ˜•

shadow zinc
#

so can anyone recommend a library for packets which i can just shade into my plugin? (supporting most versions)

spiral light
#

Is there currently something to get Entities that can spawn in a Biome ?
Or smth to get the mood/cave sounds ? or at least anything from a biome ?

chrome beacon
spiral light
#

ah ok

shadow zinc
#

i wish i could tho

shadow zinc
chrome beacon
#

Yes

shadow zinc
# chrome beacon Yes

uhh and if my plugin goes above the size allowed by spigot, what do developers commonly use to host their plugins?

#

cuz if its 2.5 and my plugin is 2.6, we are going to have a problem

chrome beacon
#

Minimize

shadow zinc
#

I am minimizing

chrome beacon
#

Worst case proguard strip

shadow zinc
#

w minimize

#

i think its minimizing at least

spiral light
#

what is your plugin doing ?

shadow zinc
#

its using mini messages

#

which is ironically the biggest fucking library i've even seen

dire marsh
#

can't you use libraries feature

hazy parrot
hazy parrot
dire marsh
#

(waiting for "im using 1.8")

shadow zinc
#

im using 1.8

dire marsh
#

kek

hazy parrot
#

you can easly replicate that behavior anyway

shadow zinc
#

or is that just for premium plugins?

#

also what is spigots plugin upload size?

#

i figured out i wasn't using minimize and it from 5.1 to 3.1

hazy parrot
#

its just premium afaik

shadow zinc
#

sweet

#

so we up

#

thanks nerds (respectfully)

#

is us calling each other nerds like how people of certain races uses race specific slurs?

spiral light
dire marsh
spiral light
#

yeah i am searching for a way to include datapack biomes more ... but currently all biomes are in an enum and there is no fancy way to change this ....

clever lantern
#

can i disable honey and slime blocks so they are not sticking other blocks to them?

near mason
#

Block#getVoxelShape()#overlaps(BoundingBox) doesnt work properly

slate tinsel
#

If the player is in the air when it leaves, I teleport it back to the ground where it started, but why does the player take damage when it rejoins, how can I solve it?

young knoll
#

Set fall distance to 0

slate tinsel
slate tinsel
eternal oxide
#

set Velocity

slate tinsel
eternal oxide
#

yes, after teleport

slate tinsel
#

okey

echo basalt
#

ow static abuse

#

I need to add some more basics

slate tinsel
#

have changed now ๐Ÿ™‚

echo basalt
#

Also using player keys puke

slate tinsel
storm crystal
#

lol

near mason
#

im using lombok but cant make the builder public ?

echo basalt
#

Projectile.builder().whatever

chrome beacon
#

also 200hrs of Java isn't that much

near mason
storm crystal
chrome beacon
#

You seem to have the wrong mind set

#

You only want things done nothing else

#

You don't seem to want to learn things properly

#

If that's the case just hire someone to make the plugin

#

That would be respecting your time better :p

slate tinsel
eternal oxide
#

is your location correct?

echo basalt
slate tinsel
echo basalt
#

Programming is like a skill

#

It may take 10k hours to master yet you still learn something every day

torn shuttle
#

@echo basalt how good are you with quaternions

echo basalt
#

ask 7smile

eternal oxide
#

I can only assume that due to it being in the quit event some settings are not being applied to the player in the event

storm crystal
torn shuttle
#

@lost matrix I need quaternion jesus, I just can't figure this shit out

#

?paste

undone axleBOT
chrome beacon
echo basalt
torn shuttle
echo basalt
#

Because if that's the case then it's clearly better to just flip burgers yourself and pay a dev

storm crystal
torn shuttle
#

I didn't say it but you did and I'm happy you did

lost matrix
torn shuttle
#

that is meant to use an anchor point, get a rotation with euler values and create a quaternion which will then rotate the point according to the euler values

echo basalt
storm crystal
echo basalt
#

blud forgor about the entertainment industry

slate tinsel
storm crystal
#

entertainment aint required to live so yeah I'd still put Burger flipping Joe a bit higher

lost matrix
echo basalt
#

you don't need your 15$ mickey d's to live either

eternal oxide
echo basalt
#

The main thing I'm seeing is that you don't take the minecraft industry seriously even though it feeds the mouths of many people, mostly in underpriviledged countries such as india, turkey and brazil

#

And introduces a lot of teens and such to the programming industry where they may step up to a real job

storm crystal
#

idk why you chose working at fast food restaurnt as some kind of lowest point, those people deal with shitty customers, work tirelessly doing same tasks for hours just to meet loose ends in a lot of cases, so yeah I'd give them that and put them defo higher than plugin devs lol

torn shuttle
lost matrix
#

let me take a look at the code brb

torn shuttle
#

I'm getting a very mixed output which is just bizarre

#

like

echo basalt
#

We also get to deal with shitty people, experience burnout a lot more often and are undervalued by people like you because all you care about is a burger rather than the talent of a developer

torn shuttle
#

hard to take a screenshot of it but in this test model it's almost completely correct, the only real issue is that the middle cube for some reason is not getting translated around correctly, in the debug data points it's moving by absolutely minuscule amounts that are not possible to see in-game and are just not right

storm crystal
torn shuttle
#

but shockingly the child of that bone is correct which doesn't make any sense to me

#

like it's inheriting the same translation and applying it correctly

#

when the parent doesn't

echo basalt
#

whatever this fight isn't worth fighting

torn shuttle
#

also the values getting passed to it are legit, I check and they seem to make complete sense and it sort of worked with euler rotations (but those are problematic for many well-known reasons)

storm crystal
torn shuttle
echo basalt
#

really good devs maybe 30/hr

#

most just charge 10-15$/hr

brazen badge
#

I am doing a time command, do you think the best option would be to save the time in the database and then check it or use a runTaskLater?

echo basalt
#

but sure we'll take your criticism and switch to a better paying job at the nike sweatshop

storm crystal
#

why?

echo basalt
#

Because it takes effort

torn shuttle
#

I've charged way more than $30/hr

#

like, way more

storm crystal
#

XD

echo basalt
#

Sure you can make a lot more with commissions and stuff

#

long-term, these are the rates

young knoll
#

Alex did commissions for โ‚ฌ120/h

storm crystal
#

that gives you no guarantee that they wont slack off with job just to squeeze more money

echo basalt
#

I've also made 600$/hr with commissions

echo basalt
torn shuttle
#

yep

echo basalt
#

except we don't get benefits

#

only paypal fees

storm crystal
echo basalt
#

so are we

torn shuttle
#

usually the trick with me is that I charge a lot hourly but then I'm maintaining systems for years so I think it's fair

storm crystal
#

I assume you are like freelancer

echo basalt
#

somewhat

#

freelancer / contract worker

storm crystal
#

aint no way company would pay you 120usd/hr

echo basalt
#

What if you're a big youtuber and that person is making all the content on your vids

torn shuttle
#

yeah because companies can and do pay way more than that

echo basalt
#

so you spend 2k to develop a video and it makes 10k

#

do that every day and you're set

#

Are you really going to kill your entire company because you want to underpay ppl

storm crystal
#

companies underpay people and it works

echo basalt
#

That's because people can't fight back

#

We're independent contractors, remember

lost matrix
echo basalt
#

We can just switch projects

storm crystal
#

and you can slack off without any pressure from your boss

echo basalt
#

We're not disposable

storm crystal
#

thats like 0 trust

echo basalt
#

homie if you have trust issues that's on you

torn shuttle
storm crystal
echo basalt
#

random is stretching it by a lot

#

If the project takes 5 hours to be made, which is 600$

lost matrix
#

Because miniscule changes sounds to me like it gets rotated, and then rotated back, with floating point
precision resulting in a tiny loss.

storm crystal
#

not at all

echo basalt
#

And you get a lot more than 600$ worth out of it

#

It's worth it

#

Higher wage = ideally better quality service

torn shuttle
#

it does not budge

echo basalt
#

So that you don't end up with the "what the fuck" moment when you want to update the project and it needs to be rewritten due to how bad it is

storm crystal
#

it feels like the NFT talk - "trust me you'll profit out of it I assure you"

torn shuttle
#

it should never look like this

storm crystal
echo basalt
#

I'm not telling you that you'll profit out of it, I'm telling you that you get your money's worth

torn shuttle
#

see where the red should be vs where it is?

chrome beacon
#

You can't rotate that freely I believe

torn shuttle
#

you can

chrome beacon
#

hm?

storm crystal
chrome beacon
#

I thought it was a bit limited

storm crystal
#

no guarantee that ill get any work at all

torn shuttle
#

it isn't

#

not for animations

young knoll
#

Minecraft item models can only have rotations in increments of 22.5 degrees

echo basalt
#

Ah, the typical upfront payment issue

torn shuttle
#

again, not for animations

echo basalt
#

if you pay upfront the guy can scam you

#

if you don't then you can scam the guy

young knoll
#

half and half

echo basalt
#

but then you can scam the guy out of half his money

#

you can get a third-party but then the third-party is liable to scamming either of you

young knoll
#

And he can scam you outta half your money

torn shuttle
storm crystal
#

I either sign a legal contract that allows me to sue with ease or I dont get the deal done

echo basalt
#

but then you're signing a legal contract over a 15$ plugin ยฏ_(ใƒ„)_/ยฏ

#

All I'm getting out of this is that you have mad trust issues

young knoll
#

I mean if you get scammed outa $7.5

lost matrix
young knoll
#

Then idk skill issue

storm crystal
echo basalt
#

It's worth a burger

young knoll
#

A few boorger

storm crystal
#

its worth a really good burger here

echo basalt
#

nah just one at mickey d's

storm crystal
#

you know

echo basalt
#

Not much more than that

torn shuttle
storm crystal
#

world isnt just america

#

lmao

torn shuttle
#

and everything else seems to be working fine

echo basalt
#

I wouldn't sign a contract over 15$ because it takes longer to read the terms than it does for me to get the job done

echo basalt
torn shuttle
#

also this issue does not happen when I'm using euler angle rotations

#

just these quaternions

echo basalt
#

I live in an european country where the wage is around 4$/hr

storm crystal
echo basalt
#

It's just that I value my time and skill

torn shuttle
echo basalt
#

If I were to switch to an actual software consulting company I'd charge double

storm crystal
#

but then you wouldnt be able to slack off huh

#

makes sense why you didnt take it

lost matrix
torn shuttle
echo basalt
#

45 hours per week

#

760 a month

#

It's about 4.22

torn shuttle
#

E-17

echo basalt
wanton falcon
#

hello, does anyone know how to give a block with a "can be place on" tag in Minecraft 1.20, using spigot and not command blocks? I've tried, but can't figure out how exactly placeablesKeys are working

echo basalt
#

I have no guarantee that you'd pay me in the first place

#

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

torn shuttle
#

I think we're hitting 780 in jan or something

young knoll
minor junco
#

@echo basalt this is the longest argument ever on a discord channel about developing questions

echo basalt
young knoll
#

๐Ÿฟ

torn shuttle
#

lmao this guy thinks he's buying a house on minimum wage

#

you might as well just spend it all in lottery tickets

echo basalt
#

rent is over minimum wage

#

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

young knoll
#

Popcorn is always provided

minor junco
#

Yeah I tried to find the beginning but it's never stopping when I scroll up

wanton falcon
storm crystal
#

so then how are you 12y skill programmer and still on min wage?

echo basalt
#

I charge 5-6x my country's minimum wage

storm crystal
#

sounded like you are

torn shuttle
#

he's not on minimum wage he's dodging taxes

#

isn't that right illusion

echo basalt
#

shut up he might be a fed

torn shuttle
#

yeah bud

#

go legit you parasite

storm crystal
#

if you want to dodge taxes at least give up all things that were funded from them

echo basalt
#

bold of you to assume I dodge taxes lmao

fallow violet
#

what happening here ๐Ÿ’€

torn shuttle
#

yeah I would've had to assume if you didn't say you were going to do it after I explained how to go legit months ago

echo basalt
#

exactly months ago

#

enough time to go legit

chrome beacon
torn shuttle
#

there's no shot you're declaring all your revenue, don't try to pull a trick

storm crystal
#

in case of any legal investigation I assure you that I pay my taxes (which are 0 right now)

torn shuttle
#

@lost matrix any ideas?

lost matrix
lost matrix
young knoll
#

They are just really good friends

torn shuttle
#

not huge but certainly enough that it should be noticeable

lost matrix
echo basalt
#

yeah I've been cringing hard all this time

storm crystal
#

so its all legal

echo basalt
#

pov: you're 12

lost matrix
minor junco
#

Can someone break down what this argument is about it's quite funny

echo basalt
echo basalt
#

I argued we, as developers, should be paid enough for our work

minor junco
#

Hahaha what an L take

echo basalt
#

Homie said that he'd rather pay 15$ for a burger than 15$ for a dev to work for an hour

#

and now we're here

chrome beacon
#

Dusk says he values time but wastes our time and their own over trust issues and refuses to pay people to make the plugin for him

minor junco
#

Minecraft plugins or not, depending on the goal it is still programming lmao. I hate that people think it's less work to build complex plugins compared to building other types of similar applications

lost matrix
storm crystal
echo basalt
#

read carefully, the word own was never used

#

don't put words in his mouth like that

#

and stop going defensive now that we're ganging up on you

#

sounds like you're losing the argument fr

storm crystal
#

I literally just said that I dont value my own time by that and you are still being picky about it

#

damn

echo basalt
#

that we can agree on

#

you don't value your own time

slate tinsel
echo basalt
#

you're here arguing with us

storm crystal
#

and yeah Id rather pay 15usd for a borgar

torn shuttle
minor junco
echo basalt
#

For most people spending money on a plugin developer is basically just investing in their server / brand

torn shuttle
#

well at least that was the idea

storm crystal
echo basalt
#

A youtuber is fine paying me 100$/hour if it means they make 150

lost matrix
#

@storm crystal @echo basalt Please move this convo to #verified or #general.
There are ongoing programming related topics going on with boned and wilmer.

echo basalt
#

Uhh boned is on our argument too

#

it's just you and magma

#

but sure let's argue elsewhere

echo basalt
#

homie using betterdiscord hell naw

echo basalt
#

tbh I'm fine with calling it quits and going to get lunch

storm crystal
minor junco
#

I'm out of this convo now haha I think that dusk is completely in the wrong (if what Illusion said is actually what he meant). Enough with this argument in this channel tho ๐Ÿ˜†

torn shuttle
lost matrix
lost matrix
torn shuttle
#

ultimately the raw data is in x y z coords so it was an attempt to pass and increment it easily

young knoll
#

I pass rotations around in a vector in degree form

#

Easier for users

minor junco
#

I mean it's similar to how Vector is also a resizable array (java.util) or std::vector in C++ comes down to terminology and usability

torn shuttle
#

I could pass the EulerAngle object instead but you can't do operations on it without having to instantiate a new object

#

at least not via api methods

#

so yeah it makes sense to me at least insofar as this problem is concerned that the rotatedvector and fromparenttochild are basically identical because this bone is not budging one bit

#

so yeah it is basically staying in the same spot

storm crystal
#

how do I structurize SQLite classes

torn shuttle
#

the rotatedVector is wrong

storm crystal
#

like what classes do I need

#

and what do I use them for

#

do I just make 1 instance in main

#

or make it static and call it a day

torn shuttle
#

which really is the whole issue, something about this rotation doesn't make sense to me

#

it has to be the rotationQuaternion that is incorrect, right?

#

either that or the rotation method

lost matrix
torn shuttle
#

erm

#

where?

#

like

lost matrix
#

transform

torn shuttle
#

you want the parent to update after the child?

lost matrix
#

Hm

torn shuttle
#

that can't possibly work right

#

the data flows downstream not upstream

lost matrix
#

Just let me know how it affects the movement pls

torn shuttle
#

so you want me to do what exactly

#

because it's depending on the parent's data to rotate

#

and translate

torn shuttle
lost matrix
#

Still thinking how to resilve the conditional update passing

near mason
#

how to get the length of a vector?

lost matrix
upper hazel
#

?paste

undone axleBOT
torn shuttle
upper hazel
pseudo hazel
#

it doesnt know your function already checks that

#

intellij is dumb af

near mason
#

NAAAH

#

BRO MY CODE DOESNT WORK PROPERLY IF I DONT THROW AN EXCEPTION

#

THIS IS SO WEIRD

#

๐Ÿ’€

desert marten
near mason
#

the one after i reloaded my plugin the 79th was commented

#

and it should work like that

near mason
desert marten
#

I wanna see this

near mason
#

sry

upper hazel
#

question of changing block properties
is it possible to change:

  1. breaking strength
  2. experience gained
    3)explosion resistance
near mason
upper hazel
#

how i undestand i need use reflection

near mason
upper hazel
#

yes

shadow night
#

2 is probably achievable with events, idk about others

rotund ravine
#

3 suure, you can probably do some trickery.

rotund ravine
#
  1. idk what you mean
#

Hamit

near mason
#

yes?

rotund ravine
#

Please post them in one message lol

#

Oh u did

desert marten
#

Have you even checked your console for any errors?

shadow night
rotund pond
near mason
hazy parrot
#

class that extends JavaPlugin is strictly singleton

desert marten
shadow night
#

What is better for getInstance, saving the instance of the plugin in a constructor or the way where you request the instance from bukkit or whatever

hazy parrot
#

i would personally use Bukkit.getPlugin(clazz)

shadow night
rotund ravine
#

DI is our most beloved

hazy parrot
#

just use spring ioc smh

hazy parrot
shadow night
#

Why do peoplo nowadays like lombok so much

#

I personally don't like how it looks

rotund ravine
#

Cause itโ€™s easy

#

I just use kotlin ๐Ÿ’ช๐Ÿป

shadow night
#

Lol

#

How to be a hated member in spigotmc

rotund pond
# hazy parrot class that extends JavaPlugin is strictly singleton

Your whole plugin will be tight coupled (I don't think it's the right term, it's a literal translation from a french term) with your main class.
To me, all classes have to loose coupling by using dependency injection for example

By the way, using a getInstance method can encourage practices that can make the code less maintainable and less testable. For example, since the main instance is easily obtainable, there may be a temptation to "stock" all plugin dependencies into this class, even though it's not its responsibility.

desert marten
hazy parrot
desert marten
#

So good

rotund pond
#

As I said, it is only my opinion, I don't have time to talk about it

desert marten
#

And @RequiredArgsConstructor

shadow night
desert marten
#

What you described is the principle of oop lol

desert marten
#

Sooner or later

shadow night
rotund pond
# desert marten What you described is the principle of oop lol

Yeah I know, but I know that a lot of people don't want to learn what OOP really is, and are lasy
A lot of people prefer doing fast things instead of good things... And in this case, using getInstance everywhere can be a solution. A bad one, but still a faster one.
(Even tho, as Uncle Bob said, "The only way to go fast is to go good")

near mason
#

any ideas why it doesnt work?

upper hazel
#

why the strength of the block and its resistance are protected and private; why is this needed? Nonsense

hazy parrot
#

I don't think if something can encurage bad practices is indeed bad

upper hazel
#

i mean you not can change this

hazy parrot
#

in that case static shouldn't be used, as it can encurage bad practice

upper hazel
#

if not use nms

near mason
#

ok guys i fixed it np

#

it was bec if (!alive)r.cancel()

#

i now remove it on hitevent

shadow night
#

Is the variable actually named r or is it just something your wrote rq

storm crystal
#

what does "this" mean

#

like this.something

#

how am I supposed to interpret it

shadow night
#

Isn't that basic java

hazy parrot
shadow night
storm crystal
#

like what it is

hazy parrot
#

what is object ?

near mason
#

actually it is in lambda

#

so no problem

shadow night
#

Well

#

Do whatever ya want

storm crystal
#

is it just class instance

#

or what

hazy parrot
#

yes, its class instance

storm crystal
#

so why even call it object

rotund ravine
#

Duskkk

#

Sigh

rotund pond
shadow night
#

Yes

sullen wharf
#

Yes

storm crystal
#

Isnt that redundant

rotund ravine
#

An object is a basic unit of object-oriented programming that represents a real-life entity. An object has state, behavior, and identity. State means the data or value of an object, behavior means the functionality or action of an object, and identity means the unique identifier of an object. For example, a car is an object that has state (color, model, speed, etc.), behavior (drive, brake, park, etc.), and identity (license plate number, VIN, etc.).

An object is created from a class, which is a blueprint or template for defining the common properties and methods of a group of objects. A class specifies what an object can do, but not how it does it. An object is an instance or result of a class. For example, a class can be a vehicle, and an object can be a car, a bike, a truck, etc. that belong to the vehicle class.

You can create and use objects in Java by using the keyword new, followed by the class name and the object name. For example, Vehicle car = new Vehicle(); creates an object named car of the class Vehicle. You can access the attributes and methods of an object by using the dot operator (.). For example, car.color = "red"; assigns the value "red" to the color attribute of the car object, and car.drive(); calls the drive() method of the car object.

You can learn more about objects and classes in Java from the following web sources:

Source: Conversation with Bing, 19/11/2023
(1) Object in Java | Class in Java - javatpoint. https://www.javatpoint.com/object-and-class-in-java.
(2) Java Classes and Objects - W3Schools. https://www.w3schools.com/java/java_classes.asp.
(3) Classes and Objects in Java - GeeksforGeeks. https://www.geeksforgeeks.org/classes-objects-java/.

storm crystal
rotund ravine
#

Literally explains it for you

#

Doesnโ€™t matter where itโ€™s from

sullen wharf
#

Imagine a class instance as a real-life object, obviously it's non-physical

#

you can do whatever with it, until it stops existing

storm crystal
sullen wharf
#

It's called an Object because that what it actually is... its just not physical

rotund ravine
#

A car is both a vehicle and a car, isnโ€™t it redundant to have the word car when thereโ€™s already a vehicle word? @storm crystal

sullen wharf
#

what u talking about

storm crystal
#

While in objects there is just class instance

hazy parrot
#

What

sullen wharf
#

whattf

storm crystal
eternal oxide
#

learn inheritance

hazy parrot
#

Idk if dude is high

sullen wharf
#

opium

storm crystal
#

"Is it just a class instance" yeah

hazy parrot
#

Class instance is kinda synonim for object

storm crystal
#

You worded it awfully poorly then

rotund ravine
#

@storm crystal Itโ€™s basically the same thing, just because there is two words for it does not make it redundant

storm crystal
#

Apparently its not

hazy parrot
#

What, you asked is object class instance and I said "yes it is"

#

What is poorly worded there

#

Xd

rotund ravine
#

It is basically the same thing

storm crystal
#

Is an object JUST a class instance

rotund ravine
#

Basically

hazy parrot
#

Tf

storm crystal
#

Implies theres nothing more to it

rotund ravine
#

?

hazy parrot
#

Cba ig

icy beacon
#

?cba

undone axleBOT
#

pluggg definitely regrets to for the most part inform you that unfortunately, they essentially are unable to definitely assist with definitely your enquiry, which essentially is fairly significant. Please simply really ask again later or possibly kind of ask someone else about this enquiry, demonstrating that the person that ran this command generally regrets to kind of inform you that unfortunately, they for the most part are unable to generally assist with actually your enquiry in a subtle way. Thank you very sort of much for kind of your time and the person that ran this command specifically wishes you a really good day, so the person that ran this command really regrets to actually inform you that unfortunately, they literally are unable to definitely assist with very your enquiry, or so they particularly thought.

rotund pond
# storm crystal so why even call it object

Tbf, an object is not exactly a class instance. It is the association of methods and properties using these properties
They can be used in every paradigm

A class is a pattern that an object has to respect. When you instanciate a class, you create an object based on the class.

Using little words, OOP encourages modeling real-world entities, data, and behaviors using this approach. Classes enable encapsulation (grouping data and methods), abstraction (hiding implementation details), inheritance (reusing properties and methods), and polymorphism (treating objects interchangeably), making code more organized and flexible.

I know that this definition is not perfect, and a bit bad when you really know what OOP really is, but it's still a good way to start in my opinion.

Tbf, I really think you should read books and articles for a better understanding. Being a developer is not "coding working things", but "developing working applications which you can iterate easily". OOP is an answer to the problem given in the end of my definition of what a developer really is in my opinion.

Sorry if something is weird, I'm still learning English ๐Ÿ™

icy beacon
#

Nitpicking onto the naming that has been made years ago does not get you far lol

storm crystal
rotund ravine
#

He did

#

You asked if it was the same thing, which it basically is

#

Then started saying it was redundant

ivory sleet
#

the entire meaning of oop got interpreted wrongly in the very first place, I think it was meant to be a paradigm of sending messages, not modelling and objectifying around behavior and data

storm crystal
#

why name a thing two different things when its basically the same

rotund ravine
#

Vehicle, car

hazy parrot
#

Literally definition of object is "instance of a class"

rotund pond
hazy parrot
#

Idk what is not clear there

sullen wharf
#

It's not two different names

#

it's the definition of the name

#

what it means

storm crystal
rotund ravine
#

There is probably a lot of synonyms in programming

sullen wharf
#

you're fried

storm crystal
#

yeah but

#

ure not writing a poem

#

ure programming

sullen wharf
#

it's a form of art

#

imo

storm crystal
#

xd

#

so if your code sucks and barely works you might just call it "a form of art" and leave it be?

sullen wharf
#

I mean, art is subjective and to each their own

#

if you love what you do and you do it with passion you can call it art, I would say

rotund ravine
#

Programming is sort of a poem because both involve using a language to express ideas, emotions, logic, and creativity. Programming languages and poetic languages have their own syntax, semantics, and structures that can be manipulated to produce different effects and meanings. Both programming and poetry can also be seen as forms of art, as they can generate visual, auditory, or interactive outputs that can be appreciated by humans and machines.

Some examples of code poetry are:

  • The code {poems} anthologyยน, which is a collection of 55 poems written by web developers around the world in various programming languages. The code can speak literature, logic, math, and this code is meant to be read, not runยน.
  • The ./code โ€“poetry bookยฒ, which is a unique collection of poems written in various programming languagesโ€™ source code. Each poem is a valid program that produces visual artwork when compiled, and the entire book is formatted and designed to look like a piece of visual artยฒ.
  • The Source Code Poetry Conference and Challenge, which are annual events that celebrate the intersection of computer science and poetry. The rules of the challenge are simple โ€“ poems must compile, must rhyme, and must be cool.

You can find more information and examples of code poetry by searching the web or browsing the links I provided. I hope this helps you understand why programming is sort of a poem. ๐Ÿ˜Š

Source: Conversation with Bing, 19/11/2023
(1) Coding with Poetry | Code.org. https://code.org/poetry.
(2) Code Poetry: Poems Written in Programming Languages - PopArt Studio. https://www.popwebdesign.net/popart_blog/en/2018/01/code-poetry-poems-written-in-programming-languages/.

PopArt Studio

Code poetry can be processed by machines and by humans. Here, we present you examples of human poetic creations made with various computer languages.

rotund pond
sullen wharf
#

boom

icy beacon
#

Sir this is spigot not philosophy 101

sullen wharf
#

๐Ÿ™

storm crystal
#

isnt that excuse to poor quality code

#

like machine is supposed to read it

rotund ravine
#

Lol

storm crystal
#

I dont think that it'd care if you used 50 different forms of words or just one word

icy beacon
#

What point are you trying to make

#

I'm confused

sullen wharf
#

Sure, it also can be an excuse for bad paitings FOR U, but for the person that made it not

rotund ravine
#

Heโ€™s just trolling

icy beacon
#

I HOPE he is not serious

storm crystal
icy beacon
#

Problem solved ๐Ÿ”ฅ

sullen wharf
#

๐Ÿ”ฅ

storm crystal
#

it really is not

icy beacon
#

Yeah it is

#

Gg

rotund ravine
#

Imagine when he learns anonymous inner classes are also objects

icy beacon
#

๐Ÿ˜ฎ

storm crystal
#

no I still dont get the point of using both object and class instance names at the same time

icy beacon
#

Then don't do it. Boom you don't have to look for the point

sullen wharf
#

Programming is also about developing your style while using common designs and patterns, if you don't like something simply don't do it

#

there's always another way to make the same thing

storm crystal
rotund ravine
#

Copilot ๐Ÿ˜ No more work for me

storm crystal
#

cool

rotund ravine
#

Gatekeeping?

#

Lol

icy beacon
sullen wharf
#

If you don't fancy naming stuff one way then don't it, ๐Ÿ˜ฎ

hazy parrot
storm crystal
icy beacon
#

ALright ask the very question one more time I'll try to see if your words make sense

hazy parrot
#

Same as you would say spoon is metal shit which u use to pick up soup

storm crystal
#

like you want to get your job done nice and well not make the code look flashy

rotund ravine
#

Efficiency does not contradict expression

hazy parrot
sullen wharf
storm crystal
icy beacon
#

Ok he joined 2 days ago, bro's DEFINITELY not looking for the answer, you were right jantuck I'm leaving the convo xD

storm crystal
#

if you dont need anything else with it

hazy parrot
#

Yeah he is troll

sullen wharf
#

what other name my g

ivory sleet
rotund ravine
#

Heโ€™s been here for more than 2 days i think?

icy beacon
#

Wait nvm I'm blind

#

32 days

sullen wharf
#

A class instance is the "definition" of what an Object is

#

what is difficult to understand there

#

wtf

chrome beacon
#

Just ignore them it's a waste of time

storm crystal
hazy parrot
#

Wait till he realise there is Object class

sullen wharf
#

OOP -> Object Oriented Programming

storm crystal
#

what advantage does it give?

hazy parrot
#

Gonna blow his mind for sure

sullen wharf
#

it's not CLASS INSTANCE ORIENTED PROGRAMMING

rotund ravine
#

Object is shorter and oritentef towards the design of object oritented programmind

storm crystal
icy beacon
sullen wharf
#

go to sleep

#

i'm out

icy beacon
#

So if you are dissatisfied with them

#

It's kinda your problem

icy beacon
storm crystal
storm crystal
rotund ravine
#

And then doubting us when we tell u the answer

storm crystal
#

great OOP has Object in it but that doesnt explain why Object is Class Instance, the name clearly's been made after Object's definition's been established

rotund ravine
#

What name

sullen wharf
#

In computer science, an object can be a variable, a data structure, a function, or a method. As regions of memory, objects contain a value and are referenced by identifiers.
In the object-oriented programming paradigm, an object can be a combination of variables, functions, and data structures; in particular in class-based variations of the para...

#

read that whole page

storm crystal
sullen wharf
#

and be happy

rotund ravine
#

Oop was made way before java

storm crystal
#

so what did people have in mind when saying "let's call class instances objects"

sullen wharf
#

๐Ÿ‘

storm crystal
#

what advantage does it give

storm crystal
sullen wharf
#

if you read carefully, it's not just a class instance, there's more to it. That's a simplified version of what it is

echo basalt
#

homie still displaying his trust issues ffs not doing this again

#

lukas what time you goin to work today?

sullen wharf
#

i have 40 minutes

echo basalt
#

fuck

#

was gonna ask you to go to domino's

sullen wharf
#

๐Ÿคช

#

tomorrow

echo basalt
#

nah

sullen wharf
#

we bussin

storm crystal
echo basalt
#

tomorrow we catchin that train

sullen wharf
echo basalt
#

nah tomorrow

sullen wharf
#

๐Ÿคช

#

nanarianao

rotund ravine
#

What do you work as lukas?

sullen wharf
#

just weekends tho

echo basalt
#

homie stocks the bananas at the local supermarket

rotund ravine
#

Do you drive the fruits?

sullen wharf
#

i mean

#

i'm mostly there staring at the ceiling

#

until the shop closes

#

because there's isnt much work

rotund ravine
#

Woah, why is it called operator then? Isnโ€™t that redundant?

#

Jkjk

sullen wharf
#

but I like to have some work outside of home

storm crystal
#

so do I dump all methods for SQLite in one class or make separate classes for it

#

like class for creating db

#

etc.

echo basalt
#

shoot for the stars aim for the moon

sullen wharf
#

You ain't cool, 'til I say you cool

echo basalt
#

the way I do my sqlite is by basically just having this huge abstraction

#

that does literally nothing

#

other than making stuff configurable

storm crystal
#

helpful

shadow night
#

is there some way to run a minecraft server from idea

sullen wharf
#

in here it's operator

#

so whatever

storm crystal
echo basalt
#

so then I make an interface for whatever storage

#

make a class that extends my abstract sqlite class and impls the interface

storm crystal
#

okay but

#

I asked

#

do I dump it to one class

echo basalt
#

and do logic

storm crystal
#

or make separate classes

#

for getting data making database removing data reading data

echo basalt
#

I'd say make one class per data type

#

So if you're storing player data and item data

#

You have a player data "DAO" and an item data "DAO"

storm crystal
#

?xd

#

why

#

I dont even know how many data types I will have

rotund ravine
echo basalt
echo basalt
#

not for you

storm crystal
#

k but you posted outdated guide

#

lol

echo basalt
#

so?

echo basalt
#

so?

storm crystal
#

means something must've been wrong / not working anymore with it

echo basalt
#

or

#

there's more content in the new guide

#

which is why I didn't share it

storm crystal
#

its illegal to post non spigot mc guides?

#

lol

echo basalt
storm crystal
#

you make it sound like that

storm crystal
#

like

#

rank, kills, etc.

echo basalt
#

pretty much

#

I'd honestly charge you for this advice because you're benefitting from my work and expertise

storm crystal
#

why

echo basalt
#

that'll be 15$ per message

storm crystal
young knoll
#

I'll do it for $14!

echo basalt
#

yeah but you're simply inferior

storm crystal
#

cash app or what

echo basalt
#

paypal or crypto

storm crystal
#

oh ure that crypto payment type deal

echo basalt
#

as previously iterated I'm not american

storm crystal
#

no thanks im not interested in supporting local cocaine addicts

sullen wharf
#

lmao

echo basalt
#

bros stereotyping harder than racist ppl

storm crystal
#

I mean we have national cash app system and it works pretty well

sullen wharf
#

@storm crystal

echo basalt
#

In that case

storm crystal
#

sometimes I forgor that it doesnt exist outside of my country

echo basalt
#

I accept MBWay

sullen wharf
#

as a great friend of Illusion and his Domino's pizza partner

#

i accept donations too

storm crystal
echo basalt
#

are you blind

#

I just said I accept it

#

๐Ÿ‘จโ€๐Ÿฆฏ

storm crystal
#

great for you

#

I dont

echo basalt
#

I never said you did

#

fly wing iq

storm crystal
#

you are like those Romani people in my nearby suburbs who force you to hold a small wooden statue or a flower and then call you to pay 30 usd for it

echo basalt
#

yeah except you're talking to me asking for help

storm crystal
#

but you shoved a code and asked for a price

echo basalt
#

and I can provide the value you need and decide to charge you the "pain in the ass fee" and now you're throwing a fit

echo basalt
#

clown_2 honk honk

storm crystal
#

pretty sure there was a command for that kind of stuff

echo basalt
#

I don't operate in the USA chad

storm crystal
#

so

#

can I just

#

make a class for managing data in general

#

and call it a day

echo basalt
#

try and see

storm crystal
#

judging by your comment

#

I wont try it

#

why would it not work

echo basalt
#

then why the fuck are you asking for help

storm crystal
#

"try and see" implies that something may not work

rotund ravine
#

Or that it will

echo basalt
#

or that it will

storm crystal
#

isnt it same type deal with configs?

#

if you want to get information

#

you get it

rotund ravine
#

Try and see

storm crystal
#

you are the last person that I expect to actually help

#

why would it not work

rotund ravine
#

?tryandsee

undone axleBOT
storm crystal
#

it still implies that its designed to fail

#

why would it

rotund ravine
#

Thatโ€™s a pessimistic approach

storm crystal
#

which you are talking about

rotund ravine
#

You should view life in a more optimistic way

#

Instead of โ€œit implies it will failโ€ you should view it as โ€œit implies it might workโ€

storm crystal
#

"try and see" from both you or that other guy towards me is no other than "go and waste ur time and come back with not working code cuz itll 100% wont work"

rotund ravine
#

Thatโ€™s prejudice and pessimistic thinking

#

Just because we donโ€™t want to entertain you most of the time does not mean we want you to waste your time.

echo basalt
#

the other guy has a name

rotund ravine
#

@echo basalt I messed up ur illusion index btw

echo basalt
#

fuck

storm crystal
#

unless ur parents actually called you ImIllusion

rotund ravine
#

His name i Bryan

echo basalt
#

it isn't but it could've been

echo basalt
sullen wharf
#

I can confirm his name is illusion

storm crystal
#

if thats true have you been bullied in school for that?

sullen wharf
#

๐Ÿ™

rotund ravine
#

Idk illusion is kinda badass

#

I am afraid heโ€™d probably be bullied more in high school for being a gamer

echo basalt
#

lukas met me in highschool

storm crystal
#

having discord nitro and setting up programming shenanigans on profile doesnt make you badass

echo basalt
#

tell em

sullen wharf
#

he's not a gamer

rotund ravine
#

Close enuf

sullen wharf
#

he's the class nerd that sits in the corner and talks with one guy

echo basalt
sullen wharf
#

that's me ๐Ÿ‘

rotund ravine
#

I enjoy anime sometimes

#

Vtubers too

#

I am badass

storm crystal
rotund ravine
#

Yes

echo basalt
#

I don't smoke thumbsup

sullen wharf
#

me and illusion actually started talking more actively because I went to him and asked wtf he was doing programming on his feet in the corner of the classroom

echo basalt
#

and I don't have an anime pfp thumbsup

sullen wharf
#

and he told me he was doing skyblock

#

and was LIKE YOOOO

storm crystal
#

and you dont get analogies well

echo basalt
#

and you don't get bitches well thumbsup

rotund ravine
#

Atleast he understand synonyms

sullen wharf
#

he didn't

rotund ravine
#

Illusion does

sullen wharf
#

oh yes

sullen wharf
#

true

echo basalt
#

I got a date with ur mum

#

ez

echo basalt
rotund ravine
#

Dang, remember to avoid police so they donโ€™t check ur car for overweight driving

sullen wharf
#

lmao

echo basalt
#

saw your mom's weight on a scale, about to ring her number phonehello

rotund ravine
#

@worldly ingot is ur mom jokes offlimit?

storm crystal
#

what is the point of interface if it only consists of empty shit, like you implement it and still have to fill methods

sullen wharf
#

oh jeez

#

there he goes

rotund ravine
#

?google

undone axleBOT
eternal oxide
#

?learnjava

undone axleBOT
rotund ravine
#

I like the graphic one better

#

?learnjava!

undone axleBOT
echo basalt
#

I'm so glad he's attempting to learn java

storm crystal
#

beloved w3schools doesnt explain it at all

echo basalt
#

he can finally start valuing all the other developers around him

remote swallow
#

get the car vehicle and bike thing out

storm crystal
#

like great you can do that

#

but why not just make those methods in a class

#

instead of implementing interface

cedar marlin
#

How do I send screenshots?

storm crystal
#

they state "1) To achieve security - hide certain details and only show the important details of an object (interface).", but what would you be actually hiding

remote swallow
#

a car and a bike are both vehicles, you want a method to take both

storm crystal
#

and from whom

remote swallow
#

you dont take two params that are nullable

#

you take a vehicle

echo basalt
storm crystal
#

what does nullable mean

remote swallow
#

null-able

#

its self explanatory

echo basalt
#

Habit 7e

storm crystal
#

then why wont you specify what you are taking in method and call it a day?

echo basalt
#

Dependency Inversion

remote swallow
#

because its an interface

rotund ravine
# storm crystal what is the point of interface if it only consists of empty shit, like you imple...

An interface in Java is a way to define a set of common behaviors that different classes can implement. By using interfaces, you can achieve abstraction, polymorphism, and multiple inheritance in Java. Let me explain these concepts briefly:

  • Abstraction means hiding the implementation details and only showing the essential features of an object. An interface is a completely abstract class that only contains abstract methods and constants. When a class implements an interface, it promises to provide concrete implementations for all the abstract methods. This way, you can program at the interface level, instead of the specific implementation level. For example, you can use the interface Animal to define the common behaviors of animals, such as animalSound() and sleep(), and then have different classes, such as Pig, Dog, and Cat, implement the interface and provide their own versions of these methods. You can then create an array of Animal objects and call the interface methods on each element, without knowing the exact type of each animalยนยฒยณ.
#
  • Polymorphism means the ability to perform the same operation on different types of objects. An interface is a way to achieve polymorphism in Java, because you can use the same interface reference to point to different objects that implement the interface. For example, you can use the interface FirstInterface to define a method myMethod(), and then have different classes, such as DemoClass, AnotherClass, and ThirdClass, implement the interface and provide their own implementations of myMethod(). You can then create a variable of type FirstInterface and assign it to any object that implements the interface, and call myMethod() on it, without knowing the exact type of the objectยนยฒ.

  • Multiple inheritance means the ability to inherit from more than one superclass. Java does not support multiple inheritance for classes, because it can cause conflicts and ambiguity. However, Java supports multiple inheritance for interfaces, because interfaces only contain abstract methods and constants, and do not have any implementation details. Therefore, a class can implement more than one interface, and inherit the behaviors from all the interfaces. For example, you can use the interfaces FirstInterface and SecondInterface to define different methods, such as myMethod() and myOtherMethod(), and then have a class, such as DemoClass, implement both interfaces and provide implementations for both methods. You can then create an object of type DemoClass and use it as either a FirstInterface or a SecondInterface reference, and call the methods from both interfaces on itยนยฒ.

storm crystal
echo basalt
#

An interface is a contract that describes what methods an implementing class has, so if you say you're an animal, you must surely have a breathe method or something

#

And you can pass a generic Animal and make it breathe

storm crystal
remote swallow
echo basalt
#

do your own research for anything else I'm not helping ppl who don't appreciate developers charging a fair price for their knowledge

rotund ravine
echo basalt
#

go watch that bald dude's yt vids

storm crystal
echo basalt
#

I'm seriously considering just blocking this troll

#

jan, opinions?

rotund ravine
# storm crystal at least have some respect for people who wrote those articles and cite them

19/11/2023
(1) Why do we need interfaces in Java? - Stack Overflow. https://stackoverflow.com/questions/3528420/why-do-we-need-interfaces-in-java.
(2) Java Interface - W3Schools. https://www.w3schools.com/java/java_interface.asp.
(3) What Is an Interface? (The Javaโ„ข Tutorials - Oracle. https://docs.oracle.com/javase/tutorial/java/concepts/interface.html.
(4) Why do we need interfaces in Java? - Stack Overflow. https://stackoverflow.com/questions/3528420/why-do-we-need-interfaces-in-java.
(5) Java Interface - W3Schools. https://www.w3schools.com/java/java_interface.asp.
(6) What Is an Interface? (The Javaโ„ข Tutorials - Oracle. https://docs.oracle.com/javase/tutorial/java/concepts/interface.html.
(7) Java Interfaces | Baeldung. https://www.baeldung.com/java-interfaces.
(8) Interfaces in Java - GeeksforGeeks. https://www.geeksforgeeks.org/interfaces-in-java/.

Baeldung

Explore the concept of Java interfaces and learn how Java uses them to implement polymorphism and multiple inheritance.

rotund ravine
#

But he still showed up cause phone

echo basalt
#

my turn

#

done

storm crystal
#

I still dont get the difference

#

making method1 and method2 in class

#

or making interace with those methods and implementing it into the class

#

I still need to fill it

#

with code

rotund ravine
#

Weโ€™re not ur teachers or your parents. Go pay someone to hold ur hand

storm crystal
#

nobody's forcing you to help, or brag about how you are not gonna help

eternal oxide
#

a car has an engine but a bicycle doesn;t. if you return a simple Vehicle Object a bicycle would have an engine method.

rotund ravine
#

But, the human is the engine.

eternal oxide
#

lol

#

you not helping ๐Ÿ™‚

rotund ravine
#

I know

#

Everything u said were explained in the links i posted

storm crystal
eternal oxide
#

you retun the interface when getting a car or bicycle, not the Vehicle

storm crystal
#

cant i make separate class for bike and not make engine in here

eternal oxide
#

yes you could

storm crystal
eternal oxide
#

yes

storm crystal
#

like consisting of only blank methods

rotund ravine
#

@drifting halo You want a go?

storm crystal
#

so I return

#

blank methods

sullen wharf
#

Interface Vehicle contains a brake method, both car and bike will implement Vehicle and have that method that is common in both

storm crystal
#

what happens then

sullen wharf
#

Wdym

storm crystal
#

what happens after I return interface

pseudo hazel
#

nothing

#

its very hard to understand what you are confused about

sullen wharf
#

Ye

rotund ravine
#

So. The blank methods specify conditions or methods things have in common, but doesnโ€™t implement the same. So Vehicle ss Lukas has said has a brake method.

Bike breaks differently than Car.

But to your code you just do

some method takes vehicle

Vehicle vehicle = this.vehicleManager.getVehicle(uuid);
vehicle.brake();

sullen wharf
#

Yay

rotund ravine
#

An interface does nothing by itself

sullen wharf
#

And he will find a way to not understand that

#

๐Ÿคจ

storm crystal
#

why make this (the first) when I can do this (second)

#

thats what im confused about

remote swallow
#

because you could have 900 animals

sullen wharf
#

Because you're missing out on abstraction and scalability

remote swallow
#

you dont want to make a method have 900 params

sullen wharf
#

Also, it's not right

#

As most animals have stuff in common

#

So why not?

echo basalt
#

He's asking like

#

Why would I have Animal pig = new Pig()

#

Rather than just using Pig directly

sullen wharf
#

Oh

echo basalt
#

My response is

sullen wharf
#

Depends on context

echo basalt
#

Let's say you have 20 animals

storm crystal
echo basalt
#

Are you really going to store 20 lists

storm crystal
#

lol

glad prawn
#

Pig is Animal and is Object

echo basalt
#

Or are you just going to have a List<Animal> barn

rotund ravine
echo basalt
#

Not really liskov more like DI

eternal oxide
#

Animal would be abstract so it can;t be instanced

echo basalt
#

Liskov basically means you can't unimplement methods through inheritance

storm crystal
#

why not allow access to information

echo basalt
#

You have all the information you need through the interface contract

#

You don't want to expose implementation details because they can change at any time

#

and regardless of implementation your code should work

drifting halo
storm crystal
#

yeah I dont get it

storm crystal
#

what if they change

#

like what happens

echo basalt
#

Your code should still work

drifting halo
#

just learn java dab

storm crystal
#

okay

#

and then

echo basalt
#

that's all

storm crystal
#

something bad happens?

echo basalt
#

It shouldn't break

#

and you don't need to know how it works

storm crystal
#

so why I need abstraction and interfaces?

echo basalt
#

the same way you don't need to know what type of collection your objects are stored on, if it's a set or a list who cares

echo basalt
quaint mantle
pseudo hazel
#

you can do whatever, its probably easier to see the actual benefit when you run into issues not using certain things

echo basalt
#

You can for example, make an interface which represents how your data is stored

storm crystal
echo basalt
#

And have an impl for mongo, for sqlite, for mysql

pseudo hazel
#

then dont use it

storm crystal
echo basalt
#

And interchange between impls yet keep the contract intact

storm crystal
echo basalt
#

that's a basic real example that you don't care about because you don't need to use anything other than yml

#

so why am I even bothering

storm crystal
echo basalt
#

I didn't

#

Here's an example of polymorphism

#

I have these interfaces and implementations for it

storm crystal
#

what about them

#

idk what I in circle is

#

like C is .java file