Post #173,751
9/12/04 10:10:02 AM
|
That was just 1 example
For me the prefix drives me nuts. In any case you still have errors like if (a = b) and many others. Do you have autocompletion, intellisense, teh ability to jump to declarations etc. in Emacs?
|
Post #173,762
9/12/04 11:56:29 AM
|
Re: That was just 1 example
The prefix may drive you nuts, but it's a demonstrably better way to code.
Autocompletion: yes. I don't use it; I know what I'm typing, and having an editor suggest what it thinks I'm doing annoys me to no end.
Intellisense: same as autocompletion, isn't it?
Jump to declarations: yes. I don't use it, because I know where I'm going and it's easier to just do it.
There's a Java interpreter as well (BeanShell).
I've used a lot of IDEs. They all just get in the way compared to Emacs.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #173,765
9/12/04 12:07:39 PM
|
What I meant was ...
that it suggests gives you a tooltip of the parameters. I for one never remember the order of parameters in System.arraycopy and many other Java API's, the IDE in a tooltip lets me know the order of parameters.
I didn't mean jump to declarations, but jump to a method in another class that you are using because you want to see something, or find all the usages of this method, or all the implementers of this Interface, etc.
I also find that the syntax checker is very useful, it marks in red all teh lines taht won't compile so that I don't need to run my Ant build and find all my silly little typos.
|
Post #173,766
9/12/04 12:10:39 PM
|
Re: What I meant was ...
As I said, I hit Javadocs 3 to 4 times a day.
Jump to another class: it's in there. I don't use it because I find the dired mode more useful.
I've used several IDEs with syntax checkers. The utility compared to simple highlighting is not a large delta, compared to everything I'd lose if I stopped using emacs. I believe someone's written an incremental compile mode for emacs, too.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #173,770
9/12/04 12:17:03 PM
|
I never really used Emacs ...
so I can't compare. From everything I have heard Emacs is tremendously productive. Note, the developers at Infoworld are using Ultraedit and VI (as well as Emacs). There is no way that VI or Ultraedit is as productive.
|
Post #173,772
9/12/04 12:19:08 PM
|
No argument there.
Simple text editors are a bad joke.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #173,789
9/12/04 2:28:09 PM
|
But if they're using VIM and calling it VI
then I would have to disagree. VIM has syntax checking (nice pretty colors to show you your errors).
The only thing that an IDE has that VIM doesn't (for me), is a nice way to profile the code so that I could tell what sections of code were taking the longest.
|
Post #173,767
9/12/04 12:11:09 PM
|
I find the prefix to be distracting
It distracts me from reading the variable name and understanding what the variable does. Instance variables are important and should be as clear as possible. I prefer the Smalltalk paradigm where parameters are usually prefixed by "a" for example:
public void setName(String aName) { name = aName; }
It serves the same purpose.
|
Post #173,769
9/12/04 12:14:43 PM
|
That would work as well.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #173,930
9/13/04 12:50:53 PM
8/21/07 6:29:38 AM
|
Use leading underscores for ivars - less distracting
I agree that mThing is ugly. Mostly because for most people, reading involves pumping text through a sound generator and then into your auditory processor (hence that little voice in your head when you read). This is why deaf people have a harder time learning to read than the hearing.
OTOH, _thing is good for ivars. I'm never tempted to pronounce the underscore.
That was lovely cheese.
--Wallace, The Wrong Trousers
|