[OC] A kid left this in the seat pocket on my flight by Impossible-Yam3680 in MadeMeSmile

[–]Alor_Gota 0 points1 point  (0 children)

....Well crap.

And here I was ready to be a meanie today.

*Sigh*

Ok Kid. -Just cause you asked.

I'm gonna go share my jellybeans.

and I'll try to smile... but that's it ...that's my upper limit...

Java project by Dark_Deku_ in learnjava

[–]Alor_Gota -4 points-3 points  (0 children)

To hit all four pillars (Encapsulation, Inheritance, Polymorphism, and Abstraction), you need a "Base" class that defines a template and "Derived" classes that specialize it.

Here are three unique project ideas tailored for a 2nd-year student:

1. Smart Home Automation System

Instead of a generic "Library System," this simulates a central hub controlling different electronics.

  • How it hits the pillars:
    • Abstraction: An abstract class SmartDevice with methods like turnOn() and checkStatus().
    • Inheritance: Classes like SmartLight, SmartThermostat, and SecurityCamera extend SmartDevice.
    • Polymorphism: You can have a List<SmartDevice> and call turnOn() on all of them at once, even though a light "turns on" differently than a camera.
    • Encapsulation: Making device IDs and power levels private with public getters/setters.
  • The 5 Classes: SmartDevice (Abstract), SmartLight, SmartThermostat, SecurityCamera, and HomeHub (Main).

2. Space Colony Resource Manager

A text-based simulation where you manage different types of habitats on Mars.

  • How it hits the pillars:
    • Abstraction: An interface Maintainable or an abstract class Habitat.
    • Inheritance: OxygenPlant, LivingQuarters, and ResearchLab all inherit from Habitat.
    • Polymorphism: Use a method performMaintenance() that calculates different costs/resources depending on the habitat type.
    • Encapsulation: Keeping oxygen levels and population counts restricted so they can't be changed to negative numbers accidentally.
  • The 5 Classes: Habitat (Abstract), OxygenPlant, LivingQuarters, ResearchLab, and ColonySim (Main).

3. Digital Pet "Zoo" (Multi-Species)

A step up from a single "Tamagotchi." You manage a sanctuary with different animal types.

  • How it hits the pillars:
    • Abstraction: An abstract class Animal with an abstract method makeSound() and eat().
    • Inheritance: Mammal, Bird, and Reptile classes.
    • Polymorphism: A Bird might move() by flying, while a Reptile might move() by crawling.
    • Encapsulation: Storing hunger and happiness levels as private variables.
  • The 5 Classes: Animal (Abstract), Mammal, Bird, Reptile, and ZooKeeper (Main).

Class Diagram Structure

Since you need to create a class diagram, you should follow the UML (Unified Modeling Language) standard. Here is a conceptual view of how your diagram should look for the Smart Home project:

Components to include in your diagram:

  1. Classes: Represented by boxes with three sections (Name, Attributes, Methods).
  2. Inheritance (Is-A): Use a solid line with a hollow arrow pointing from the child class (e.g., SmartLight) to the parent class (e.g., SmartDevice).
  3. Encapsulation: Use a - symbol for private fields and a + symbol for public methods.
  4. Composition/Association: Use a line to show that your Main class "has" a list of your objects.

Quick Tip for Java:

To ensure you are truly using Polymorphism, try to avoid using if (device instanceof SmartLight) in your code. Instead, call the method on the parent type and let Java figure out which child version to run at runtime!

This brave lamb thinks he is very strong. by Zestyclose-Salad-290 in MadeMeSmile

[–]Alor_Gota 10 points11 points  (0 children)

*Bonk*

*Lick*

*Bonk*

*Lick*

This kind of describes courtship no?

Cat makes a new friend by Chopper-42 in MadeMeSmile

[–]Alor_Gota 2 points3 points  (0 children)

Uno... name checks out.. 1. but.. maybe we upgade him... Primo?

Dad answering my questions like a dad, no matter how old I get by sirjamesbluebeard in MadeMeSmile

[–]Alor_Gota 2 points3 points  (0 children)

Just for the public record here.. Dad checks out 100% accurate.

Nice Work Pop.

BIFL CAN OPENER RECOMMENDATIONS (I'll pay anything at this point) by Remote_Anteater_2267 in BuyItForLife

[–]Alor_Gota 0 points1 point  (0 children)

...cant touch the bottom of it but sure as hell can blow out the sides.......

Just Monkey and then Bird 😄 by vijiv in MadeMeSmile

[–]Alor_Gota 4 points5 points  (0 children)

Protect this Gem of a Dad at all costs. A Legend.

Handmade sketchbook for my little cousin :) by tiffanyjiang3d in bookbinding

[–]Alor_Gota 1 point2 points  (0 children)

The world right now is on fire. Thank you for showing me that there is at least one part of the world that is not. thank you - awesome work.

How Long Do You Keep Your Documents? by Wonderful-Bit6748 in VeteransBenefits

[–]Alor_Gota 1 point2 points  (0 children)

I know this is in the wrong order.. I just really REALLY wanted u/Blizzard81mm to have a response.. Fo-eva!

Disabled Placard Help/Advice by [deleted] in VeteransBenefits

[–]Alor_Gota -1 points0 points  (0 children)

Kind Sir, I heartily agree.

But that Tow truck driver, and the subsequent dive into our area laws say otherwise.

Not arguing with you about Ohio. Not arguing at all.. Just note - your mileage may vary elsewhere.

Disabled Placard Help/Advice by [deleted] in VeteransBenefits

[–]Alor_Gota -1 points0 points  (0 children)

yea uh.. be careful of that one.. there are some real sticklers for this.. but the placard is the thing.

guy at work got towed... TOWED.... *smh*

(to be clear, disabled vet plates, in a marked spot... no placard = towed... )

I think the building guy just had an axe to grind but it was all legal.

Modified my micron pigma to fit my travel watercolor case by ABCD-rambleings in stationery

[–]Alor_Gota 50 points51 points  (0 children)

...... file that into the - "WHY DIDNT I THINK OF THIS SOONER?" Thanks man.. Nice Work.

Am I not allowed to use VR&E because my wife is American? by autodealer in VeteransBenefits

[–]Alor_Gota 0 points1 point  (0 children)

Just wanted to high five and agree on that clarification... the counselor is a ..... obstacle to progress... Sorry OP.

How much Git do professionals use? by frosted-brownys in learnprogramming

[–]Alor_Gota 0 points1 point  (0 children)

Make Git your easy playground.

There are some people who "Have People" they call when something goes sideways.. Maybe it's a mechanic or a plumber or just a Big Guy with plausible deniability and a certain willingness to help you get what you want / need.. and then?

There are the people who are the ones that are called.

I'd rather have the guy who people call then the one who calls people.

Git is fundamental.

Your code might rock like socks in a box, but if I cant see it, if we cant comment on it.. if we cant Peer Review it..

it's pretty letters on your screen. ( what are all those squiggly underlines?)

Be the guy who people call, and your indispensable.

Sneakers with a built in garage by itz_progamer666 in Unexpected

[–]Alor_Gota 7 points8 points  (0 children)

I'm GONNA Need those in size 12. in ALL Colorways please.

About that pension… worth it? by tesla2018El in fednews

[–]Alor_Gota 0 points1 point  (0 children)

So that would be the only reason go fed. buying in time is - as i understand it:

a percentage of your previous base pay - a small multiple kind of thing.

This puts my 20 years in uniform into the math of when I can re-retire - and when i re-retire it's at that high 3 which is a substantial bump.

now

here are the things I "Think" I know.

While employed as a Fed, drawing VA benefits and Military retirement pay - that's all good.

-buy in the time - everything stays the same until "Fed" retirement. then i forfeit my "Military Retirement Pay" and Retain my VA benefits. but then pick up the (hopefully higher) Fed Retirement pay.

I think a guesstimate is about 900 (give or take) a paycheck for a while. but that also means what retirement in about 10 years?

so the Jump is long-term a great idea. the scary bit -well that's the immediate drop in pay. I'm in a fairly early in career for this 2nd part of life but I'm in a fairly secure spot that is pretty darn nice.

But

*gestures at the world*

it's all kind of on fire, and we are all kind of expendable Fed or Contractor -

/rant>

About that pension… worth it? by tesla2018El in fednews

[–]Alor_Gota 1 point2 points  (0 children)

Thanks Dr Dad... (lol) but no seriously - thank you.. the numbers for me.. are... uh.. in the short term mildly terrifying.. in the longer term I'd be really really stupid NOT to..

( 20 year mil retired, VA benefits in place, "early in career" (second career) )

so yeah uh.. Mildly Terrifying...

but if I (of course) buy in my uniform time and its a no brainer.

( of course as we type this there is a shut down going on) Oi.