Re: [OT]: vim tabs/spaces (Re: pattern matching)

"Douglas Lewit [email protected] [ocaml_beginners]" <[email protected]> Wed, 30 Mar 2016 09:15:59 -0500
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CAM0XMJSVR9=efDq4rrqaik06b3UpxxRMZJLT9GTAwn4cjTtMsg@mail.gmail.com>
Hey Ken,

Thanks for the encouragement.  It's very helpful.  If you don't mind my
asking, where did you get your M.S.?  Just curious.  Did you like the
program?

I didn't realize that Vim was a C/C++ favorite.  I do almost all my Java
programming in Vim.  Eclipse is great too, but it has so many autocomplete
features that I think it makes students kind of lazy.  I mean, for example,
Eclipse will warn you if you forgot to implement an abstract method in an
abstract super class.  It has autocomplete and then you just scroll down
and pick the class method that you need, etc, etc.  That's okay, but then
it encourages this lazy attitude where Eclipse does it all for you.  A lot
of my profs have this mantra, "We don't teach Java.  We teach Computer
Science".  I think that is so lame!  I mean.... that's like a piano teacher
who says, "I don't teach piano.  I teach music".  WHAT???  I had this
really super smart Algorithms prof last summer, hard teacher but extremely
generous with office hours, and I really learned a lot from him.  Well,
anyhow, I was kind of shocked when he said to the class.... "Hmmm.... I
know ints are passed by value, but are Integers passed by reference?"  I'm
like.... are you serious?  You teach this stuff and you really don't know
that?  I almost took Data Structures with this clown ( I quickly dropped
and got into a different Data Structures class with someone who really knew
the language ) and he created something like public class BowlingGame and
then stored the file in Practice.java or something like that.  Then he
scratched his head and said to the class.... "Gee, I wonder why it won't
compile!"  I was like.... ARE YOU KIDDING ME???  The first rule of Java is:
 the class name and file name have to match!  I really had to wonder why
this guy was teaching a 300-level Java class if he didn't even know the
language that well.  To me the language is extremely important because
that's the environment in which all the theoretical stuff really comes to
life and gets tested and implemented.  To me a computer scientist without a
computer ( used to be called a mathematician! ) is like a musician without
an instrument or a baker without a kitchen.

That's my problem with some profs.  I've had great ones.  I had Rachel
Trana ( AMAZING PROFESSOR, one of the best ) for Discrete Analysis and
Computational Biology.  I can't believe she's an adjunct.  She's 1000%
better than most of the full-time professors in my department.  I've had
some others that are amazing.  They love what they teach, they love to
teach, and they are there to help students.  Other professors are like the
Grinch that stole Christmas!  Mean, ill-tempered, petty.... not very
charming people!  I see your point Ken.  I think some of them do become
jaded, burned out, and let's face it.... it can be hard work, a lot of
research, a lot of office hours and test preparation, and at the adjunct
level the pay is horrible.  ( Although most tenured profs have pretty nice
salaries. )

Who wrote that book on Non-Violent Communication?



On Wed, Mar 30, 2016 at 8:46 AM, Kenneth Miller [email protected]
[ocaml_beginners] <[email protected]> wrote:

>
>
> Hi Doug,
>
> I appreciate your enthusiasm, and we're here with you in the spirit of
> learning.
>
> Eclipse really is the defacto standard for Java work, because it just does
> so much so well. Vim may force you to learn now, but after you learn maven
> and have 13 other libraries you depend on, you will move past vim for Java.
> Vim is still a great tool, but it's predominantly a C/++ programmer's
> favorite.
>
> Sometimes people in academia actually just want to pursue their own
> interests, and other times they get a bit jaded, because their enthusiasm
> is so infrequently matched by their students. Think about it this way -
> what if you had to put up with people haggling for points every day, who
> hadn't actually tried, but that always seemed to step on your pride for
> craft and engineering? It might drive you nuts if you had to deal with
> everyone who just wants to get a piece of paper so they can go work
> somewhere and forget everything you said.
>
> What I said might not be the most accurate, but actively exercising
> empathy and understanding while you're talking to your professor (or anyone
> for that matter) can really return value, although you should do it only
> because it's the good thing to do first and foremost. There's a good book I
> read not too long ago called Non-Violent Communication, it's really sweet
> and simple, but basically, if you exercise those principles when you speak
> to him, I bet you can get him to care.
>
> In any case, don't worry about the eclipse problem, you're on the right
> path to learning. When you take your learning into your own hands and
> actually strive to be the best you can be, you're deriving value that other
> students can't and won't. After you graduate, you'll learn that what
> matters isn't some GPA, although that might help you out in the beginning,
> but what you've done and who you work with.
>
>
>
>
> On Wednesday, March 30, 2016 9:31 AM, "Douglas Lewit [email protected]
> [ocaml_beginners]" <[email protected]> wrote:
>
>
>
> Thanks Oliver!  I'm gonna try this in my .vimrc file.
>
> This Saturday morning I'm giving myself a break from my Java class to
> attend a Chicago Ruby conference where the topics include Vim versus Atom (
> never heard of Atom before, but it should be interesting ) and I want to
> ask some questions about catching errors in user-entered input.  It's also
> a great way to meet people, interact, make friends ( and probably make
> enemies too!  Oh well.... )  I think that's really important.  The path of
> the computer programmer/scientist/hacker/etc can be a lonely path at times,
> and I think it's very beneficial to study and learn with friends, peers,
> co-workers, classmates, etc, etc.  I have found on MANY occasions a
> classmate will explain something to me much better than the professor can.
> Although to be fair I have encountered some really wonderful professors.  I
> wish we had more of them.  My Java prof this semester actually said on the
> first day of class, "I want you all to know that I don't care about you!
> I'm just here to make more money for my pension!"  Well sure, we all want
> $$$$, but I can't imagine this guy's rudeness to actually announce that on
> the first day of class!  But I guess I should give him kudos for his being
> extremely honest--although rather blunt and obnoxious about it.  Anyhow,
> back to editors.  So I told this guy that I'm not really into Eclipse that
> much.  Eclipse is okay, but I think it fosters some laziness in Java
> programmers.  I prefer Vim because then I am forced to really memorize
> stuff and really know what I'm doing.  So I asked him, "Can I use Vim
> instead of Eclipse?"  He said, "Not a problem.  Use whichever IDE you want
> to!"  Well.... guess what?  On the midterm he actually asked some dumb
> question about file preferences in Eclipse!!!!  Geesh!!!!  I almost blew a
> gasket, but hey, I got a B on the midterm, so I guess I can't complain that
> much.  But still.... why do these professors deliberately misdirect
> students in this way?  I just don't get it.  There are professors who
> really love to teach.... and then there are professors who want you to step
> on sharp nails before you get your degree.  I just don't get it.  Oh well.
>
>
> On Wed, Mar 30, 2016 at 2:08 AM, Oliver Bandel [email protected]
> [ocaml_beginners] <[email protected]> wrote:
>
>
>
> Zitat von "Douglas Lewit [email protected] [ocaml_beginners]"
> <[email protected]> (Tue, 29 Mar 2016 19:28:26 -0500)
>
> [...]
> > But I must confess that I don't really use Emacs that much anymore. I've
> > become more of a Vim guy. The reason is simple. I've noticed that Vim has
> > way more online resources and online support than Emacs. There is online
> > help for Emacs too, but.... it just seems like I need a PhD. in CS or
> > Physics from MIT in order to utilize those resources. The Vim tutorials
> > are a little more "down to earth" for the "average" programmer. ( I kind
> > of hate that word "average", but you know what I mean. ) I've also found
> > that when I write a file in Vim, it looks really weird when I open it up
> in
> > Emacs. All the tabs and indentations are way too big! I think in my
> > .vimrc file I specified a tab of 4 spaces, but when I open the file in
> > Emacs I end up with one tab being equal to like 8 spaces or something
> like
> > that. Very annoying.
> [...]
>
> This looks like you just use TAB-spaces and have changed vim's settings
> in a way that you display a TAB as 4 spaces, but did not expanded the TAB
> to four spaces.
> So, when emacs shows TAB as eight spaces, you could change the
> display-settings in emacs too.
> Or if you want to automatically replace TAB by spaces, you need to use
> "expandtab" in vim.
>
> You could use (for your .vimrc-file):
>
> set expandtab
> set sw=4
> set tabstop=4
>
> Then TAB will be replaced by four spaces.
>
> (When editing Makefile's, you need to use ":set noexpandtab" to switch
> off the replacement
> of TAB with spaces.)
>
> Ciao,
> Oliver
>
>
>
>
> 
>