--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
<full disclosure> It has been my experience that people who like
Eclipse do not like IntelliJ and vice-versa. I like IntelliJ - a lot.
</full disclosure>
Donald
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
I find that, as brought up earlier, Scala has a number of features that
minimize my need to use IDEs. In particular, the ability to put multiple
classes in a single file is huge. In developing my various Android apps,
I tend towards an activities.scala containing all of my app's
activities, particularly as some are only a few lines long.
But a huge stumbling point I'm finding are imports. I don't encounter it
as much with Lift, as the codebase isn't as large and is becoming more
familiar to me, but under Android I find myself forgetting which
packages certain classes are in and desperately missing IDE features
that add missing imports.
I was wondering if I was the only one in this situation, and if anyone
had any tips? I tend to put all imports from a single package on a
single line, but those lines can get rather long at times.
back when I learned Java years ago, I read that "import foo.*;" was
frowned upon, though I don't remember why specifically. Yet I see folks
using "import foo._" more liberally in Scala codebases. Is that still
frowned upon, or are there aspects of one language that make wildcard
imports preferable in Scala while not being so in Java? Or was this
unpopular ten years ago due to speed whereas now processors are fast
enough to introspect packages fast enough that it doesn't really
matter? Or are we as Scala users typically using command line tools and
paying close attention to our compiler output to notice warnings about
one import shadowing another, whereas IDE users might not be?
I'd be very interested in hearing folks' takes on this. I can't count
how many times I've had to Google for a fully-qualified class name
because someone's Java code didn't include it and they simply took it
for granted that I could press a single key and have that class imported
automatically. Frustrating!
Without IDE, using import with _ is nice/quicker for writer, but it's
hell for readerS.
When there is multiple import with _, the reader, who didn't write the
code, spare lot of time to find from where a Type, method, object come
from.
Reader could be :
* the man who try understand the code, learn the api (and need to read the code)
* the man who want to refactor the code
=> keep lot of useless import when he extract method, type,...
because it's ease
=> lot of time spend when move a Type into an other package
* ...
* the man who write the code several time ago
IMHO :
* coding scala without IDE is +/- ease for single developer or small
team who own/understand the api. But it become very hard in other
case.
* emacs with lot of time spend to search/configure lib (like
yasnippet, ctags+anythings[1], mvn/sbt connector... ) is an IDE, and
lot of time to learn emacs (note that I stop using emacs since I stop
coding in scala 2.7.7, and contibute to eclipse plugin as (eclipse is
my IDE java coding)).
/davidB
[1] http://www.emacswiki.org/emacs/Anything
--