T
thufir
To get rid of this redundancy, one can add special-case rules or
additional keywords for those idioms.
The minor copying of an idea from ruby isn't bloat, though.
-Thufir
To get rid of this redundancy, one can add special-case rules or
additional keywords for those idioms.
Actually, it's your mantra. I'm repeating it to help you.
thufir said:Well, everything else being equal, college would be an asset.
-Thufir
Arved said:Like Lew I learned FORTRAN (FORTRAN 77) in university, along with VAX
Assembler.
Tell us again why you need to change the Java language to deal with an
optional, non-language-mandated idiom?
You do realize that getters and setters are not part of the language
inherently, right?
In addition, a good CS curriculum will cover(among other things)
algorithms and data structures in depth, something that is not usually
emphasized in standalone programming courses, and also not something
that teach-yourself programmers tend to study.
Stefan said:»He used this funky ergonomic keyboard
http://www.kinesis-ergo.com/essential.htm
and when he typed it sounded like one of those ratcheting
noisemakers you spin over your head at new years.
I once came to ask him a question that I thought would
take me half an hour to figure out on my own and he
replied, "Well, let's find out" and in less than a minute
he whipped up a piece of code that answered my question.
My jaw was on the floor.«
http://xooglers.blogspot.com/2005/12/they-say-its-darkest-before-dawn.html
What's the downside to what?
Arved Sandstrom said:Of course, by the blogger's own admission he wasn't
exactly a technical type.
Stefan Ram said:Ron Garret was a researcher for NASA's Jet Propulsion Lab
before he joined Google in June 2000 as employee No. 104.
In 2000, he also wrote papers such as
»Lisp as an Alternative to Java«
http://www.flownet.com/gat/papers/lisp-java.pdf
(His name was »Erann Gat« then.)
thufir said:Making getter and setter methods annotations (or the option to use
annotations instead) wouldn't, to my view, bloat Java. I don't see the
downside.
Tris said:The downside is that a 1:1 mapping of variables to get/set methods
exposes your implementation as much as making all those variables
public. That being said, I don't think your annotation idea would
bloat Java either.
Patricia Shanahan said:Providing get/set methods for a variable does not expose the
implementation as much as making it public.
The downside is that a 1:1 mapping of variables to get/set methods exposes your implementation as much as making all those variables public. That being said, I don't think your annotation idea would bloat Java either.
Oh, a previous persons suggestion (I think this sounds right, but
pardon the syntax):
@getters: foo, bar
@setters: baz
@gettersAndSetters: foobar
so there would be flexibility, and if you didn't want something
exposed just don't list it.
Patricia said:Thufir wrote:
...
How about public vs. default visibility? I have had a situation in which
I wanted classes in the same package to be able to both set and get, but
classes outside the package to only be able to get.
How would you insert logging, or set debug breakpoints, in
auto-generated methods?
Not that I am particular positive about the idea, but if it were
to be implemented, then I would expect the automatic stuff to
have default behavior (public access, single assignment/return etc.)
but be overridable by a programmer implementation.
Arne
Arne said:Not that I am particular positive about the idea, but if it were
to be implemented, then I would expect the automatic stuff to
have default behavior (public access, single assignment/return etc.)
but be overridable by a programmer implementation.
Tim said:Well-designed classes almost never have getter and setter methods. Why
make it easier for people who are trying to write bad programs?
Tim Smith said:Well-designed classes almost never have getter and setter methods. Why
make it easier for people who are trying to write bad programs?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.