Profile

Cover photo
Brad Jennings
231 followers|855,574 views
AboutPostsPhotosYouTubeReviews

Stream

 
Of course, there is no such thing as Loch Ness Monster. It's really just aliens in a submersible!
looking for Nessie #GoogleDoodle
1
Add a comment...
 
Join the Pony Express to deliver 100 letters! #GoogleDoodle
1
Add a comment...

Brad Jennings

Shared publicly  - 
 
The family of four fell ill at this hotel in the Virgin Islands. The two teenage boys are still in a coma, and the father is aware but paralyzed. The mother is going through physical therapy. The culprit is methyl bromide (a.k.a. bromomethane), a pesticide outlawed in the US, but a-ok in the territories. It was applied by Terminix before the family arrived at the hotel.
Two Delaware boys remain unconscious after accidentally inhaling a pesticide in their Caribbean vacation rental.
1
Add a comment...

Brad Jennings

Discussion  - 
 
Delegation Pattern question. I understand that it is common to extend (ie. inherit) Java API classes. I also understand that some classes must be inherited because they contain abstract methods and fields. An alternative to inheritance is delegation; create an instance of the desired class within your own class.

Under what circumstances should a programmer choose the Delegation Pattern over Inheritance? In other words, when you look at the API, what are the keywords that indicate that a class should be "inherited", "instantiated", or "implemented"?
1
Holger Müller's profile photo
 
The short answer is : whenever you can, use Composition/Delegation over inheritance.
Inhertiance (of code, using the extends keyword for a potentially abstract base class) can introduce a number of subtle problems: "fragile base class" (something your class depends upon changes in a new release of the base class) and "breaking Liskow's substitution principle" (inherit from something to specialize it, like a Square being a special Quadrangle, but breaking the setHeight() and setWidth() methods, because a Square has to have the same height and width) are two of the more popular examples.

I teach my students to only inherit code (=extend a base class) if they can't help it - like when you need a GUI panel with a customized drawing "procedure".

Inheritance of a contract for a certain behavior, what you get when your class implements (keyword) an interface, is a different story - I think this is one of the most powerful features of the Java language, because you can have reference variables of interface types - and totally not care what object is behind that reference. You just use what the interface promises, and the implementing class will do the work. And you can swap it out for a different one even at runtime :-)

edit: corrected typo
Add a comment...
Have him in circles
231 people
Cien Mason (23 Shadows)'s profile photo
Phil Ballard's profile photo
Michael J. Daugherty's profile photo
LivHOME Atlanta's profile photo
Graphix Gruntz's profile photo
ramesh soni's profile photo
sonia mcgowan's profile photo
shuli natan's profile photo
samuel bampoe-addo akuffo's profile photo

Brad Jennings

Shared publicly  - 
 
"With my tongue in your tail?" ~Petruchio to Katherine
1
Add a comment...
 
I'm having a time trying to understand observable lists and how to observe changes to database table fields using JavaFX and Java. I have managed to piece together a working application, but just don't understand how observable lists really work. Does anyone have any good tutorials or videos that might help. English only please. TIA
3
Iago Frota's profile photo
 
I'm also having the same doubt.
Add a comment...
 
Not Java specific, but I've noticed many users mention GitHub. Is GitHub the standard online repository for sharing Java code with others?
1
Adrian “Boom” Nwk's profile photoTyler Pentecost's profile photoMalachi de Ælfweald's profile photoBrad Jennings's profile photo
4 comments
 
Thanks all. 
Add a comment...

Brad Jennings

Shared publicly  - 
 
Back in the early 90's I listened the crap out of this album. It was on audio cassette. I no longer have the tape, but I now have the technology to listen to the album in pristine digital format. I'd like to share this trip down memory lane with my friends. Enjoy!
1
Add a comment...

Brad Jennings

Shared publicly  - 
 
With the TCAP coming up, this graphic makes me smile.
Amy Knepper originally shared:
 
Things I think about when I'm trying to fit my kids in the "subjects I have to teach or else" box. 
1 comment on original post
1
Add a comment...

Brad Jennings

Discussion  - 
 
How do you know when to use a pre-defined Class (Abstract, Interface, etc...) and when to roll your own class to do something? My confusion comes from an understanding of the language syntax, but not the API. My frustration comes when I know what I want to do, but when I seek help I get lost in the API documentation.
1
Holger Müller's profile photo
 
You use the API whenever you can. It contains well designed (well, mostly - java.util.Date, anyone?) stable, well tested, widely used standard code. You can roll your own for educational purposes, but "for real", you don't.

Say you need a List datastructure. You can of course roll your own, but you can also use the well established interfaces and classes provided by the API - complete with efficient, state-of-the-art hybrid sorting and binary search, shuffling, reversing, read-only-wrappers and concurrency-enabling lock-wrappers if you need them. Why re-inven the wheel?

edit: corrected typo
Add a comment...
People
Have him in circles
231 people
Cien Mason (23 Shadows)'s profile photo
Phil Ballard's profile photo
Michael J. Daugherty's profile photo
LivHOME Atlanta's profile photo
Graphix Gruntz's profile photo
ramesh soni's profile photo
sonia mcgowan's profile photo
shuli natan's profile photo
samuel bampoe-addo akuffo's profile photo
Basic Information
Gender
Male
Story
Tagline
Fun Fact: I was born on the longest day of the longest year since 46 B.C.
Salesmen are great, service department is consistently terrible. I won't be taking my car for service here, however I would recommend buying from them. The dealership has great prices and will negotiate just about anything. Oil changes require an appointment even on weekdays. With an appointment it takes an hour to change the oil. They are supposed to wash the car, but haven't done so in any of my service visits. The technicians always leave a mess in the car (paper, smudges) and don't return the seats to original position. I'm concerned the work performed is as shabby as their habits, but I'm not a mechanic so can't judge based on that. However, it took them 3 trips to fix the TPS fault they should have fixed the second time around... and I had just bought the car a week prior. Buy the car, but don't have it serviced here. I have owned the following cars and had them serviced at every place from dealerships to my garage. RH is not the worst (one shop forgot to put oil back in my car during a change) but they are at the bottom of the list. '87 Nissan Sentra Sedan '80 Chevy Camaro '85 Chevy Cavalier '88 Chevy Beretta '97 Ford Taurus Sedan '97 Toyota 4Runner '00 Honda Accord V6 Sedan '10 Honda Accord 4cyl. Sedan '10 Honda Pilot EX '07 Toyota Camry SE '08 Honda Odyssey '08 Honda Pilot '05 Honda Odyssey '10 Toyota Sienna '13 Toyota Camry SE
• • •
Public - 4 months ago
reviewed 4 months ago
Only game in town. This place needs some competition. When you deal with this company, be sure to get names and numbers of those you speak with.
Public - 4 months ago
reviewed 4 months ago
Good, cheap, food. Classic and clean atmosphere. Awesome service every time we've gone. We have taken our kids and their cousins (up to 8 kids and 6 adults) there many times. The place is very kid friendly.
Public - 4 months ago
reviewed 4 months ago
Went for a conference. Very nice amenities. This hotel has a glass elevator system.
Public - 4 months ago
reviewed 4 months ago
23 reviews
Map
Map
Map
I had our family photo taken here. very well done.
Public - 4 months ago
reviewed 4 months ago
Only place within spitting distance of my house. Just a car wash with nothing special to add. Price is higher than most because it has little nearby competition.
Public - 4 months ago
reviewed 4 months ago
Cozy atmosphere and great service make up for lousy coffee.
Public - 4 months ago
reviewed 4 months ago