Janeice DelVecchio

+ Follow
since Sep 14, 2009
Janeice likes ...
Eclipse IDE Spring VI Editor Java Linux Windows
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Janeice DelVecchio

Adding on to what Scott said.... to make things abundantly clear.....

Conceptually, an "overloaded operator" exists in a language where I can change the meaning of the operator for a particular object (only objects not primitives AFAIK).
If you look at examples in c++ you can instantly tell how this works: https://www.programiz.com/cpp-programming/operator-overloading

This link gives a really good definition of why what Java is doing is not "operator overloading": https://www.tutorialspoint.com/why-is-operator-overloading-not-supported-by-java

If we want to talk about technicalities and interesting nuances.....

The spec refers to what we call the token that is the plus sign in several contexts, and defines concretely what they do in each of those contexts:
Unary plus operator: https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.15.3
Additive operators (both primitive addition and String concatenation operators): https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.18

The token itself is a different operator based on the context in which it occurs (and has a different name, ex unary plus operator vs concatenation operator). The compiler knows what the context is, and generates different instructions based on that information.

We can see evidence of what's going on when we examine the instructions generated by the compiler.


When we compile and run javap -c on the class file we can identify that these are, in fact, two completely different instructions with similar human readable syntax:

9: invokedynamic #3,  0              // InvokeDynamic #0:makeConcatWithConstants:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
24: iadd

Cool, huh?
You can restart any time you like. Or pick up where you left off. Your choice.

I have not updated the solutions for Java 11, but I am not opposed to you using it as long as you're not opposed to potentially a little more back and forth while we work out the most readable solution.

Send your assignment to nitpick@javaranch.com
Sometimes stuff goes to my spam box for whatever reason so PM me here on the ranch if I don't reply within a day.
4 years ago

Campbell Ritchie wrote:Good to see you again, Janeice

Always good to see you.

Martin Vashko wrote:

Also, which language/library does the book tool use? Is it a VBA or .NET?  (Or, hopefully, something else? )

Java with spring boot and poi. Could have been done in any language that has a library for word doc. If it were docx, I would have used straight xml traversal.
You're very welcome. I am really so happy you both liked it so much!
You and Scott did most of the work implementing all the rules you needed. My thing is just an engine to run the rules.

It was way more helpful to you than it ever was to me. I wanted to use it to run rules against the code in the text, but with all the snips and one liners, it was hard to write rules meaningful for the code at that level.
That said, it was really nice to know there were certain things that I didn't have to look for while I was editing.
I am still here doing nitpicking! That said I have not seen any emails lately. If you have sent something to the nitpick email address and have not heard from me, send me a pm. We will get you sorted out.
4 years ago
Yay! I'm so happy for you! And proud of you! And happy everyone has publicly/ officially agreed what we all know about you.

4 years ago
I'll have someone reach out to you.
4 years ago

Christopher White wrote:How about now? Still open?

4 years ago
You've been super helpful.

I didn't even know aliases existed! That's neat!
5 years ago
Thank you!

Yes the converting is something I've had to mess with when I was working with spark. I can see where if you have a mix it would be more painful.

Enjoy the rest of the week here for your book promo!
5 years ago

Campbell Ritchie wrote:Good to see you back

Lovely to see you as well.
5 years ago
I see no benefit to python if I know java. All the spark libraries do everything I need, particularly with the spark 2 apis. To me, python is for folks who want to crunch something together without knowing a lot of syntax pomp and circumstance. But that's just my religion.

Is there any detriment to mixing some java classes with scala in an app?
5 years ago
I have used java mostly for big data (spark) development. That said, I know that spark is natively written in scala. Is there any benefit to using one over the other?

Are there ever benefits to using Java over scala?
5 years ago
CattleDrive Hall of Fame

Student NameBasicOOPServletsJDBC
John Ackerman
Terry Broman
Lance Finney
Barry Gaunt
Margaret Gillon
Peter Gragert
Richard Hawkes
Louise Haydu
Kate Head
John Hembree
Manju Jain
Joyce Lee
Pauline McNamara
Carol Murphy
Daniel Olson
Marilyn de Queiroz
Jason Adam
Jon Anslow
P. Mark Beattie
Matt Fry
Greg Harris
John Godfrey
Kelly Loyd
Michael Matola
Jeremy Medford
Greg Neef
Katrina Owen
Michael Pearson
Dirk Schreckmann
John Abong
Pat Barrett
Richard Barton
Ben Beetle
Peter Berquist
Richard Boren
Bill Bozeman
Richard Broersma
Susan Brown
Nick Cabell
Josu? Cede?o
Kenneth Cobbs
Kimberley Coburn
Joel Cochran
Ed Connery
Donald Cossitt
Kenn Cowling
Sherry Cuenco
Janeice DelVecchio
Gerald Dettling
Colm Dickson
Craig Dighton
Wirianto Djunaidi
Terence Doyle
Kurt van Etten
Phil Freihofner
Stuart Goss
Juliane Gross
Dan Jones
Johannes de Jong
Rob Keefer
Elouise Kivineva
Diego Klappenbach
Rory Lynch
Panday Manako
David Mason
Marie Mazerolle
Armando Moncada
David Morisset
Amy Phillips
Matthew Phillips
Slobodan Popovic
Rick Prevett
Adam Price
Sharon Ross
Ronald Schindler
John A Simpson
Justin Simpson
Gillian Smith
Kristin Stromberg
Dick Summerfield
Jeremy Thornton
Sam Tilley
Adam Vinueza
Chuck Wannall
Amber Woods
Christie Xu
Garry Ba 
Kyle Blythin 
Connie Boyd   
Ryan Burgdorfer   
Nick Burgett   
Ashley Bye   
Mark Channer   
Rajan Chhibber   
Eric Christensen   
Bryant Constant   
Sean Davis   
Mark Gandy   
Stephanie Grasson   
Jane Griscti   
Doug Hattrem   
Tom Henner   
Laura Holcombe   
Brian Holsenbeck   
Sam Hume   
David Junta   
Marcus L?ubli   
Joyce Lambert   
Thomas Leak   
Nathan Leniz   
Ian Lubelsky   
Jay Lyche   
Stuart Malloch   
David Malott   
Vince Mansel   
Ian Matthews   
Dav McCartney   
Joe McGuire   
Jack Moore   
Mike Neumann   
Brian Nolan   
Tom Purl   
Paul Ralph   
Robert Richardson   
Fred Rosenberger   
Gabe Schenz    
Nick White 
6 years ago