tag:blogger.com,1999:blog-1968162265124958136.post481248642457017567..comments2022-03-24T15:20:22.996-07:00Comments on Programming: Careful with those stubs, mister!Unknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1968162265124958136.post-12273087779117282322008-11-10T23:57:00.000-08:002008-11-10T23:57:00.000-08:00Great work.Great work.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1968162265124958136.post-48549613857580140692008-03-06T20:18:00.000-08:002008-03-06T20:18:00.000-08:00I think IDE's let you concentrate on the important...I think IDE's let you concentrate on the important parts of coding. Especially with generating code for you. If you think about it, what kind of code could a IDE generate for you? Not something complex, because there is no way it can know what your program is going to do. The job of the IDE is to make all of those simple mundane tasks even simpler and less mundane. For example, whenever you're writing a method and you realize you need another method so that the method you are writing can call that one. Why would you want to stop what you are doing and go write that method and lose your train of thought. The power of an IDE is that you can write that method as if it exists and have it generate a stub for you which you can come back to later and write. If a task I need to do is stupid enough a computer can do it, I'm all for it. Why should I spend my time on something that simple when there are more complex items to concentrate on?Allen Madsenhttps://www.blogger.com/profile/10533050079620249877noreply@blogger.comtag:blogger.com,1999:blog-1968162265124958136.post-80824931028216901602008-03-06T06:48:00.000-08:002008-03-06T06:48:00.000-08:00Yeah, that seems to be one of the hand-holding qua...Yeah, that seems to be one of the hand-holding qualities of .Net, which isn't at all a bad thing. I haven't done much with IDE's in terms of extensive code generation or anything like that, though. Probably should start, but I just feel "removed" from the code if I'm not typing a majority of it myself. I like IDE's for things such as syntax highlighting, bracket matching, code formatting, etc...privatehttps://www.blogger.com/profile/03880873364536538926noreply@blogger.comtag:blogger.com,1999:blog-1968162265124958136.post-74980355696048322352008-03-05T16:59:00.000-08:002008-03-05T16:59:00.000-08:00I've noticed some interesting things when generati...I've noticed some interesting things when generating stubs in with IDE's such as Eclipse and .Net. When Eclipse generates new stubs it puts a TODO task item into the stub along the lines of "//TODO - this stub was auto generated" and because it has this comment in it, there is special highlighting to signify that the method has not been implemented yet. In .Net it employs a very direct approach to get your attention that you have not implemented a method. When you auto-generate a method in .Net it inserts a exception being thrown that says the method has not been implemented. So if you run your program and reach a place where you call an unimplemented method, you will get an exception telling you so.Allen Madsenhttps://www.blogger.com/profile/10533050079620249877noreply@blogger.com