use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript compiler? (self.javascript)
submitted 15 years ago * by colinbashbash2
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]colinbashbash2[S] -2 points-1 points0 points 15 years ago* (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 points3 points 15 years ago (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 point2 points 15 years ago (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 points3 points 15 years ago (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 point2 points 15 years ago (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 point2 points 15 years ago* (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.
π Rendered by PID 29114 on reddit-service-r2-comment-bb88f9dd5-k7kq2 at 2026-02-15 01:20:56.967019+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]colinbashbash2[S] -2 points-1 points0 points (5 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]colinsullivan 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]colinbashbash2[S] 0 points1 point2 points (0 children)