Go Back   Tactical Gamer > General Forums > Hardware & Software Discussion


Hardware & Software Discussion Hardware and Software discussion and troubleshooting. Tweakers and Overclockers welcome!

Reply
 
Thread Tools
Old 05-28-2007, 06:09 PM   #16 (permalink)
 
icky's Avatar
 
Join Date: Jul 2005
Location: Ottawa Valley
Posts: 6,154
Re: Visual Studio macros help?

That's a neat idea Marstein. Again it comes down to the extreme complexity of the existing code though.

I got my VB macro working last week, so I'm happy.
__________________
Peace through fear... since 1947!
icky is offline   Reply With Quote
Old 05-30-2007, 02:45 AM   #17 (permalink)
 
marstein's Avatar
 
Join Date: Jul 2005
Location: Half Moon Bay, CA, USA
Age: 42
Posts: 840
Wink Re: Visual Studio macros help?

Quote:
Originally Posted by icky View Post
Again it comes down to the extreme complexity of the existing code though.
My opinion on this is that you have to refactor the code anyhow. This looks liked it could be mentioned in thedailywtf.com e.g. http://worsethanfailure.com/Articles/The-Dimmer.aspx

When someone else takes over the code they probably will rewrite it - because it will be impossible to figure out what it is doing.

Leaving it this complex is a time bomb.

Too bad I didn't see this earlier: stay away from vi - emacs is the way to go. It's macros are much easier and you can convert them to Lisp. Let's turn this into a religious discussion about editors and refactoring!
__________________
Gigabyte P35-DS3R, 2GB, 8800GTS 640MB, Core2Duo E8400
marstein is offline   Reply With Quote
Sponsored links
Old 05-30-2007, 11:41 AM   #18 (permalink)
 
icky's Avatar
 
Join Date: Jul 2005
Location: Ottawa Valley
Posts: 6,154
Re: Visual Studio macros help?

Heh... I've used both vi and emacs many time, but I went much deeper with emacs. I found the powerful If I had to pick a preference, I would go with Notepad++.

The code I'm working on is not so bad at all. It is just an unusual approach, where the data is embedded in the code rather than being read in from configuration files. The result is that some extra effort is spent entering the data and less effort is required to define and manage config file formats. It is certainly not hard to understand.

We twice did a cost-benefit analysis of converting to a different data storage method and both times we chose to continue. I can pretty much guarantee that nobody will ever rewrite this code.
__________________
Peace through fear... since 1947!
icky is offline   Reply With Quote
Sponsored links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 07:51 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
©2004-2008 - Tactical Gamer - All Rights Reserved