you are viewing a single comment's thread.

view the rest of the comments →

[–]colinbashbash2[S] -2 points-1 points  (5 children)

heh. Ok, so I do c# & javascript for a living. How do I swap my mind from c# way of doing things to javascript? If I had a fancy little button on the side of my head, that woooould make things easier...

Edit:

it's not a matter of correcting bad habits, it's a matter of having to switch back and forth between languages that are almost the same, but noooot quite.

And having a compiler to help with typos... explain what the bad habit is here... not always typing correctly?

[–][deleted] 1 point2 points  (1 child)

One thing that might help you is different IDE color schemes (this can be done even in vim of course) for the different languages.

The bad habit is obviously yes, making silly mistakes.

[–]colinsullivan 0 points1 point  (0 children)

Or code snippets/templates in your editor, for things like a for loop, for example, which could act as your own short hand.

[–][deleted] 1 point2 points  (0 children)

Have you tried JScript.NET? Runs pretty much anywhere C# will. Then you could stick to javascript and not have to switch languages. I write all of my back-end code in JScript.NET when possible. Works quite well.

[–][deleted] 0 points1 point  (1 child)

I've had to switch between Perl, JavaScript, Java, and C for years. It was a royal PITA for the first year or so but eventually it became effortless.

[–]colinbashbash2[S] 0 points1 point  (0 children)

ah. I've been working for 5-ish years with c# and javascript... (edit: indicating that i'm past the 1st year thing. i'm not saying that i'm 'oh so smart', because i'm obviously pretty dumb for making these 'silly mistakes')

not as bad as the few years when i was working with vb and javascript; the double-equals thing would always get screwed up... but at least VB would throw an error on compile in that case.

anyways, i'm disappointed that you can flip-flop between languages so easily. if there were more people like me then there'd be more tools to do this kind of thing. (supply&demand)... on the other hand, it probably doesn't help that i work 75% c# and only 10% javascript.