Testing Your Language Snobbiness
Posted on June 16, 2008
Filed Under Politics | 11 Comments
What if somebody showed you their programming language helped them program faster?
Would you switch? Would you try it?
What if somebody showed you their human language helped them think faster?
Would you switch? Would you try it?
Why do you ask?
I was in Germany for the past few weeks, and saw something notable: For any sufficiently long German text (more than a full paragraph), the equivalent English translation was about 10% shorter. In addition, English almost completely lacks accented characters (naïve is an English word with an accent). If the average English text is always shorter than the average German text, then there is a theoretical advantage to typing English: fewer different characters and fewer total characters in order to convey the same idea. This causes fewer problems for the typist.
The text samples I saw were all from museums, so this may not even be explicitly true for German/English. However, the main question remains: How much "better" are some languages than others? If a language is actually better, can it be provably shown? If someone proved it to me, would I use it?
This works for both programming languages and human languages.
Popularity: 16% [?]
Chance and Pasteur
Posted on June 13, 2008
Filed Under Quote | 1 Comment
“Dans les champs de l’observation le hasard ne favorise que les esprits préparés.” (In the fields of observation chance favors only the prepared mind.)
~ Louis Pasteur
Popularity: 8% [?]
Visual Studio and Emacs… at the Same Time!
Posted on June 9, 2008
Filed Under Computer Science | Leave a Comment
Or, I Finally RTFM, and saw that it was good.
If you’re like me, you started using Microsoft’s compiler when you started to learn to program. I don’t consider this a loss: Visual C++ has a very good debugger, and code completion is always helpful. What was a loss was learning to program C++ on Visual C++ 6.0 and spending the first part of college re-learning C++, but that is another rant for another day.
In my development environment, Windows was replaced by Unix, and my editor switched to Nano. I had heard about the Great Vim/Emacs Debate , and eventually sunk my teeth into Vim. I used Vim for about a year and a half, and recently started trying out Emacs, just to see what it had to offer. I liked its development paradigm enough that within a month, I never looked back at Vim, except to make some of the Emacs key bindings more Vim-like.
I then found that I was going to be using Visual Studio extensively in the future. Again, Visual Studio has quite a lot to offer, but it just isn’t Emacs. I decide that I’m going to customize Emacs to be compatible with Visual Studio (or, as much as possible), but I find providence: Visual Studio has Emacs key bindings!
How Do I Enable Them???
In Visual Studio 2005,
- Go to Tools -> Options -> Environment -> Keyboard
- Click the selection box for "Apply the following additional keyboard mapping scheme:"
- Click "Emacs"
What Works?
So far, it looks like it includes a good portion of the Emacs functionality. Things that I have found that works correctly:
- Basic Movement Keys : M-b, C-b, etc.
- The kill ring ! This was a pleasant surprise.
- C-x C-f, C-x C-s , and C-x C-c. They are not perfect, as it looks like they don’t all work perfectly when Visual Studio first starts up. Once you open up your first document, you are good to go!
- Transpose functions! Again, much to my surprise, M-t worked perfectly. However, the most useful one, transpose line, doesn’t seem to work.
- C-<space> starts highlighting. This is how I wish it worked in Emacs, so this is actually an improvement from my end. People who have been customizing it since 1897 may feel differently.
- And many more!
What Doesn’t Work?
One of the first things I tried to do was type M-x compile, and it was a no-go.
What M-x DOES do is perform Visual Studio actions, such as Action.AddDialog . I’ve never used Visual Studio actions, but just in case you find them useful, there you go! Some of the Emacs actions are there. If you go to the place where you enabled the key bindings, you can search for ones containing "Emacs"
It also looks like tabbing doesn’t work correctly . If you start a new line, it won’t tab you to the spot you want. C-j gives me the behavior I want, but I’m not sure I’m willing to forego such a basic editing requirement. It looks like I can bind commands to any key combination BUT <Tab> (pressing <TAB> for a key binding moves to the next selection box. Ugh.), so I have no idea if this is fixable. If not, I’d consider this a dealbreaker.
Popularity: 13% [?]
« go back — keep looking »