The Glade 4.0

"Turn the lights down, the party just got wilder."
It is currently Sun Nov 24, 2024 8:39 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: My code has purpose!
PostPosted: Mon Sep 27, 2010 12:05 pm 
Offline
Sensitive Ponytail Guy
User avatar

Joined: Fri Sep 04, 2009 10:18 pm
Posts: 2765
About 5 months ago, I became curious as to whether or not I could write a VBA macro that would be capable of editing itself. In total, I spent about 4 weeks researching, writing, testing and polishing code to accomplish this. I then shelved it as an entertaining and educational bit of work, but one that had no current practical application.

Today, my boss told me I need to train a co-worker to take over maintenance of my project. I dusted off my re-write subroutines, incorporated them into the project, and told my co-worker "click that button to perform the update".

Conclusion : writing spiffy code is good, finding useful applications for said spiffy code is even better.
Also, I think I deserve a long lunch today :D

_________________
Go back to zero, take a pill, and get well ~ Lemmy Kilmister


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 27, 2010 1:13 pm 
Offline
I got nothin.
User avatar

Joined: Thu Sep 03, 2009 7:15 pm
Posts: 11160
Location: Arafys, AKA El Müso Guapo!
Quote:
I could write a VBA macro that would be capable of editing itself.


3 years later, Skynet has become self-aware.

_________________
Image
Holy shitsnacks!


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Mon Sep 27, 2010 2:55 pm 
Offline
Sensitive Ponytail Guy
User avatar

Joined: Fri Sep 04, 2009 10:18 pm
Posts: 2765
Müs wrote:
Quote:
I could write a VBA macro that would be capable of editing itself.
3 years later, Skynet has become self-aware.
You are now the third person to make that connection, and you know what they say about threes ;)

_________________
Go back to zero, take a pill, and get well ~ Lemmy Kilmister


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 27, 2010 2:58 pm 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
I'm sorry, but if a VBA script destroys humanity, we deserve it, because that's pretty pathetic.

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
 Post subject: Re: Re:
PostPosted: Mon Sep 27, 2010 3:24 pm 
Offline
Rihannsu Commander

Joined: Thu Sep 03, 2009 9:31 am
Posts: 4709
Location: Cincinnati OH
Shelgeyr wrote:
You are now the third person to make that connection, and you know what they say about threes ;)


They are prime?


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Tue Sep 28, 2010 8:45 am 
Offline
User avatar

Joined: Wed Feb 03, 2010 8:20 am
Posts: 1037
Kaffis Mark V wrote:
I'm sorry, but if a VBA script destroys humanity, we deserve it, because that's pretty pathetic.


I've worked with it (and fixed a lot of it), and I can say VBA does slowly destroy your humanity...

_________________
Image Image Image Image Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 28, 2010 10:07 am 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
Hmmm...polymorphic/self-modifying ms-office-embeded VBA scripts?

In all seriousness, I'll be at least slightly surprised if you project doesn't wind up setting of someone's AV heuristics :P

As aside, I remember that one of my first mind-blowing experiences in my first high-school CS class was writing a program that prints itself (i.e. its source code). I'm not sure why I thought the source code should somehow be different than printing any other file, but it just seemed weird to me that you could do this.

Years later, when I first got involved with Linux, my mind would be blown yet again when I learned that part of the standard process for making a binary release of a new version of gcc was to make the new compiler compile itself. :?

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Tue Sep 28, 2010 10:09 am 
Offline
I got nothin.
User avatar

Joined: Thu Sep 03, 2009 7:15 pm
Posts: 11160
Location: Arafys, AKA El Müso Guapo!
Stathol wrote:
Years later, when I first got involved with Linux, my mind would be blown yet again when I learned that part of the standard process for making a binary release of a new version of gcc was to make the new compiler compile itself. :?

Image

_________________
Image
Holy shitsnacks!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 28, 2010 10:31 am 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
Okay, touché, Vlad. I laughed.

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Tue Sep 28, 2010 12:31 pm 
Offline
Sensitive Ponytail Guy
User avatar

Joined: Fri Sep 04, 2009 10:18 pm
Posts: 2765
Stathol wrote:
Hmmm...polymorphic/self-modifying ms-office-embeded VBA scripts?

In all seriousness, I'll be at least slightly surprised if you project doesn't wind up setting of someone's AV heuristics :P
The automated editing doesn't worry me near so much as the portion of scripting which reads data from the registry. The day I wrote that bit, I was concerned about getting a call from IT but they seem to have either not noticed or not cared.

_________________
Go back to zero, take a pill, and get well ~ Lemmy Kilmister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 203 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group