Journal firstpostrobot's Journal: Should it be open-sourced? 5
I'm facing a difficult choice! Do I release the source for the First Post Robot?
Pros:
* I'll learn what I could do better.
* Others will learn from my efforts and improve their legitimate coding skills.
Cons:
* I'll learn how lame my code is.
* Others will learn from my efforts and improve their illegitimate haXor skillz.
What do you think?
I'll let y'all in one one deep secret: the First Post Robot is a Visual Basic application. And I'm not even using the wininet.dll low-level calls: I'm using the drop-in Microsoft Internet Control. Is this lame so far, or what?
Update (12/11/02)
In the comments, MinnKotaMarine asked if it's an actual VB app, or a VBS script. I can't reply to the post (due to bad posting from this IP, wonder who did that?), so here's some info.
It's an actual VB application, mostly because that's what I'm most familiar with. Although reading the VBS scripts of virii like the LoveLetter worm has been very interesting! (Our office got so many copies that we were shut down, and I had nothing better to do than reverse-engineer the cause of our troubles.)
I started out using the MSHTML HTMLDocument object without a WebBrowser control, building on an HTML Parser example I found on the 'net. This worked fine, except that it looked like the only way I could submit a POST (as opposed to a simple GET) was with some C-style API calls that would be difficult to make from Visual Basic.
So I dropped in the WebBrowser control, and somewhat by accident (since I never installed the help files), discovered that I could simply click the button!
If elemChild.getAttribute("type") = "submit" Then
' We only want the "Reply" option
If LCase$(elemChild.getAttribute("value")) = "reply" Then
' Push the reply button!
SetStatus "Pusing the Reply button!", False 'not summary
elemChild.Click
This may have been possible with the HTMLDocument object as well, but by this point I had discovered that having a WebBrowser control on my form made it a lot easier to figure out what was going on with Slashdot's responses. I finally threw out the HTMLDocument object entirely, though I still use the MSHTML.HTMLBaseElement class to traverse the links and forms collections of the WebBrowser.
Lameness litmus (Score:2)
yay VB! (Score:1)
source (Score:1)
I see that as a good thing..