Well It Is Free

Why does Dev-C++ even bother with an “Auto-Indent” feature? Here, I type the same two code samples. I type only the code and let Auto-Indent handle the rest.

My coding style:

Alternate coding style:

Writing some code then turning it off:

Not a big deal in that last case, but what happens when you are working inside a huge multi-tiered nested structure? Do you really want to manually indent all of that? Especially while your dual-core supercomputer, the one that can execute billions of instructions per second, just sits there idle?

So the end result seems broken, let’s examine what the process of trying to fix it is like. I call these correction processes crap rituals. Programmers are probably all to familiar with these.


Ok let’s hit enter and type the brace…


What I expected but not what I want, lets backspace the brace…


Ok gone, just gotta backspace to the right spot…


Almost there, just gotta press Shift and–


–what the fuck?

Even worse, this is what we get in the Options screen:

Caret will position to first non-whitespace of preceding line“. No, caret gave up and went to column 0. And why is the checkbox for Auto Indent grey? Regardless if the box is ticked or not, the background is grey. Usually that means it’s an option for a subset of features, some being on some being off. That doesn’t really seem to mean anything here.

Lastly, when you type a close curly brace, the behavior of future deletion changes depending on where the cursor is. If the cursor is directly to the left of the brace and you press Backspace, it backspaces more than one positions, as if you just removed a tab. But there wasn’t a tab - you can click (or arrow-key) to any individual space between the left margin and the curly brace. So sometimes it removes a little and sometimes it removes a lot? And why does Backspace behave this way but Delete does not? Why did they even bother implementing this?

This is a common issue in many IDEs out there. Auto-Indent features are supposed to save us time, not give us more work trying to figure out when to expect a space or a tab or ok if I press backspace now it’ll go to column 0 so I better click over here and press delete twice then hit enter so it indents the new line properly ok now I can move back up and close my brace. If your Auto-Indent forces people to create, test and tweak crap rituals, then your feature has failed.

I have to say my (limited) experience with Microsoft’s Visual Studio IDE’s have been pretty good in this regard. It does what you expect and allows you focus on your code.

34 Comments »

  1. Blake Householder Said,

    October 30, 2007 @ 10:45 pm

    Code editors also refuse to recognize the existence of colors or graphics. They could do a ton of text highlighting and background color changes, and draw lines between linked things (like say connecting matched braces or parentheses). But nooo, we’re stuck in the stone age.

  2. 680 game treo Said,

    February 21, 2008 @ 7:53 am

    A Centro Competitor? - TreoCentral…

    A Centro Competitor?TreoCentral, FL -Jan 17, 2008But I’ll stick with my Treo 680 and I wouldn’t choose the COM-2 over a Centro…

  3. california counter granite top Said,

    February 21, 2008 @ 10:52 pm

    Top-Quality Countertop Company Featured in…

    Top-Quality Countertop Company Featured in Homeowners’ Resource SiteEmediawire (press release), WA -Jan 30, 2008The 1.25-inch stones are stronger, can better support their…

  4. johnmazarr Said,

    March 14, 2008 @ 11:42 am

    A Realistic $250K First Year Income Potential

    Less than four years ago I was driving this beat-up ‘94 VW with a rusty muffler. Within two years of creating this system I was making more than my doctor, accountant, and attorney COMBINED… while working less than 40 hours a week FROM HOME! Together with my group of leaders we are now seeking qualified entrepeneurs sharein the incredible results of our system.

    for more information check this site out….
    make money online

  5. johnmazarr Said,

    March 20, 2008 @ 2:58 am

    A Realistic $250K First Year Income Potential

    Less than four years ago I was driving this beat-up ‘94 VW with a rusty muffler. Within two years of creating this system I was making more than my doctor, accountant, and attorney COMBINED… while working less than 40 hours a week FROM HOME! Together with my group of leaders we are now seeking qualified entrepeneurs sharein the incredible results of our system.

    for more information check this site out….
    make money online scams

  6. Steven Said,

    April 6, 2008 @ 12:40 pm

    My best friend told me about this site. I thrust him, so I opened my Internet-browser and went surfing! After reading these news I was totally impressed by this article, even if it’s not true it’s written in a way that makes you believe it.

  7. Justin Said,

    April 9, 2008 @ 3:59 am

    This blog is simply smashing. In my humble opinion of course. As this post is rather debatable I don’t think all your blog visitors are going to agree with it.

  8. Anabolic Said,

    July 16, 2008 @ 11:01 am

    Teen Lesbian

  9. Tiffany Preston Said,

    July 16, 2008 @ 11:03 am

    Asha Kumara

  10. Sasha Blonde Said,

    July 16, 2008 @ 11:04 am

    Sandee Westgate

  11. 18 Years Old Said,

    July 16, 2008 @ 11:05 am

    Deepthroat

  12. Exgirlfriends Said,

    July 16, 2008 @ 11:07 am

    Freaks Of Cock

  13. Black Butts Said,

    July 16, 2008 @ 11:08 am

    Butt Fetish

  14. Free Shemale Said,

    July 16, 2008 @ 11:09 am

    Free Teen

  15. Free Black Said,

    July 16, 2008 @ 11:10 am

    Free Creampie

  16. Free Hardcore Said,

    July 16, 2008 @ 11:12 am

    Free MILF

  17. Arab Street Hookers Said,

    July 16, 2008 @ 11:13 am

    Big Tits Curvy Asses

  18. Latin Girls Said,

    July 16, 2008 @ 11:14 am

    Midget Cum

  19. Bang My Wife Said,

    July 16, 2008 @ 11:16 am

    Mr Big Dicks Hot Chicks

  20. Pimp My Black Teen Said,

    July 16, 2008 @ 11:17 am

    Tinys Black Adventures

  21. Round Mound Of Ass Said,

    July 16, 2008 @ 11:18 am

    XXX Proposal

  22. Bus Stop Whores Said,

    July 16, 2008 @ 11:20 am

    Blind Date Bangers

  23. Mr Chews Asian Beaver Said,

    July 16, 2008 @ 11:21 am

    I Spy Camel Toe

  24. Big League Facials Said,

    July 16, 2008 @ 11:22 am

    The Big Swallow

  25. Giants Black Meat White Treat Said,

    July 16, 2008 @ 11:24 am

    Horny Spanish Flies

  26. Lesbian Teen Hunter Said,

    July 16, 2008 @ 11:25 am

    Big Tit Patrol

  27. See Her Squirt Said,

    July 16, 2008 @ 11:26 am

    Big Cock Teen Addiction

  28. Casting Couch Teens Said,

    July 16, 2008 @ 11:28 am

    Coeds Need Cash

  29. College Teens Book Bang Said,

    July 16, 2008 @ 11:29 am

    Teeny Bopper Club

  30. Amateur Girls Said,

    July 16, 2008 @ 11:30 am

    Threesomes

  31. Busty Alli Said,

    July 16, 2008 @ 11:33 am

    Debbie Teen

  32. Little Danni Said,

    July 16, 2008 @ 11:34 am

    Brandi Belle

  33. Big Tits Round Asses Said,

    July 16, 2008 @ 11:36 am

    Big Mouthfuls

  34. tramadol order Said,

    July 23, 2008 @ 11:38 pm

    tramadol…

    tramadol hci side effects…

RSS feed for comments on this post · TrackBack URI

Leave a Comment