Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. So I gave a dev a choice yesterday

So I gave a dev a choice yesterday

Scheduled Pinned Locked Moved The Lounge
csharpcollaborationcareer
89 Posts 40 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Slacker007

    Dalek Dave wrote:

    I would not hire anybody who denied VBA!

    I am a VBA guru. I don't look at VBA as bad but as a tool for the job. I unlike most others, started with VBA and VB. Then moved to C++, and C#, etc... If you hate VBA just because it is VBA then you are retarded and on my team you would be a waste of everyone's time. We have to work with VBA from time to time so it is par for the course.

    D Offline
    D Offline
    DragonsRightWing
    wrote on last edited by
    #73

    Slacker007 wrote:

    I unlike most others, started with VBA and VB. Then moved to C++, and C#, etc...

    Exactly how I got started - although I did a short bit of trying to learn CA Realizer - I started with Access and included VBA, then started using VBA in other Office products, then got VB 5 (and quickly moved to VB6). I got out of programming for a few years - and when I came back to it, I started with C#.

    Slacker007 wrote:

    If you hate VBA just because it is VBA then you are retarded and on my team you would be a waste of everyone's time. We have to work with VBA from time to time so it is par for the course.

    While I wouldn't use the term "retarded", I find it silly to be knee-jerk rejective of a servicable tool: in some cases, it is worth it so develop a whole standalone app to do a task in Excel or whatever - but in many cases, all that is needed is an user-defined function that can be used in a cell, or a bit of functionality that is only used in one spreadsheet - this is usually developed quicker and more practically in VBA - and I see no reason to reject the most practical tool for the specific job.

    S 1 Reply Last reply
    0
    • D DragonsRightWing

      Slacker007 wrote:

      I unlike most others, started with VBA and VB. Then moved to C++, and C#, etc...

      Exactly how I got started - although I did a short bit of trying to learn CA Realizer - I started with Access and included VBA, then started using VBA in other Office products, then got VB 5 (and quickly moved to VB6). I got out of programming for a few years - and when I came back to it, I started with C#.

      Slacker007 wrote:

      If you hate VBA just because it is VBA then you are retarded and on my team you would be a waste of everyone's time. We have to work with VBA from time to time so it is par for the course.

      While I wouldn't use the term "retarded", I find it silly to be knee-jerk rejective of a servicable tool: in some cases, it is worth it so develop a whole standalone app to do a task in Excel or whatever - but in many cases, all that is needed is an user-defined function that can be used in a cell, or a bit of functionality that is only used in one spreadsheet - this is usually developed quicker and more practically in VBA - and I see no reason to reject the most practical tool for the specific job.

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #74

      DragonsRightWing wrote:

      While I wouldn't use the term "retarded"

      You are correct...bad word to use in this situation. I just can't stand it when people hate something because everyone else hate's it when they themselves have never used it or tried it (shooting up heroin is a gimme...don't do it.) :)

      1 Reply Last reply
      0
      • I Isfeasachme

        LOL nobody says XL for Excel.

        D Offline
        D Offline
        DragonsRightWing
        wrote on last edited by
        #75

        Isfeasachme wrote:

        LOL nobody says XL for Excel.

        Almost everybody I know writes "XL" as an abbr. for Microsoft Excel - and it tickles my sense of humor that you would use "says" - since the two, when spoken, are virtually indistinguishable ... Dalek Dave states that MS uses "XL" to refer to Excel - but only gives the icon as evidence. Here is a link to [^]a large collection of MSDN blog posts which refer to Excel as "XL" Also, Rob Grainger is correct that the file extensions are relevant: .XLS = eXceL Spreadsheet .XLM = eXceL Macro .XLA = eXceL Addin .XLT = eXceL Template .XLSB = eXceL Binary Spreadsheet ...

        1 Reply Last reply
        0
        • R Rob Grainger

          I thought much the same until I tried to setup some numbering based on Heading levels (style-based) in Word 2007. It is possessed, despite Microsoft's protestations to the contrary (Blogs.Office.Com[^]). That they felt the need to write an article titled that way is condemnation itself. Numbers change to letters, indentation flies halfway across the page. You get it "working" save, and reopen a document to find everything screwed again. I've been using Word since Word for Windows 1.0, and VBA with it a fair few years. All all started going wrong post Word 6, when they started "intellisensing" too much - adding styles because you'd made a stretch of text bold and the like.

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #76

          Weird. Since using the heading styles and making all changes by editing them instead of just clicking numbered list and tabbing or formatting via clicking bold/12point/etc I've never seen that happen (ritual unfubarring of a company template that we can't get updated not withstanding). I just noticed in word 2k7 that hitting multi level number list and tabbing automatically cycled heading styles, which IIRC word 2k3 didn't do. Is the messed up document something I could look at? After years of dealing with a few bad templates at work I've gotten good at tracking down exactly what was broken in a file.

          3x12=36 2x12=24 1x12=12 0x12=18

          1 Reply Last reply
          0
          • M Mycroft Holmes

            We had a requirement that needed someone to write some VBA macros in Excel (2003) yesterday, both devs on the team denied any knowledge of VB/VBA/VB.Net I gave them a choice of doing the job in VBA or documentation, we should have some great manuals for this project. I was astonished that a person who calls himself a developer has no knowledge of office or macro programming, I thought we all got dipped in that stuff at some time.

            Never underestimate the power of human stupidity RAH

            K Offline
            K Offline
            Kenneth Kasajian
            wrote on last edited by
            #77

            They know VB and VBA, they just don't want to use it.

            ken@kasajian.com / www.kasajian.com

            M 1 Reply Last reply
            0
            • K Kenneth Kasajian

              They know VB and VBA, they just don't want to use it.

              ken@kasajian.com / www.kasajian.com

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #78

              If I thought that I'd fire the dev, the right tool for the job, I don't care what it is.

              Never underestimate the power of human stupidity RAH

              K 1 Reply Last reply
              0
              • J Jason Christian

                I think most of these replies miss the main point - VBA is easy, whether it is ugly or not. Any developer that can't figure out how to hack up some macros in Excel isn't worth squat. It is designed to be used by non-programmers, and I know plenty of accountant types that can throw together a macro (usually starting with the record function and tweeking from there) - so if someone calling themselves a programmer cannot figure it out, they should find a new occupation.

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #79

                I have our PM leading a junior dev through macro recording and tweaking, funniest thing you have ever seen.

                Never underestimate the power of human stupidity RAH

                1 Reply Last reply
                0
                • W wizardzz

                  I was given the task of "fixing" a project similar to the one you described. I bitched to my dev friends about it for a solid day. In the end, I just rewrote it into a C# GUI. It turns out currency brokers like custom GUIs more than Excel.

                  M Offline
                  M Offline
                  Mycroft Holmes
                  wrote on last edited by
                  #80

                  We just discovered that Silverlight has to be out of browser to support com object - back to VBA and macros.

                  Never underestimate the power of human stupidity RAH

                  1 Reply Last reply
                  0
                  • L Lost User

                    Slobos wrote:

                    Programming in VBA is very useful. I did some for ACAD, Word and Excel. It's easy, all you have to do is press F1 and learn few new commands. Still, overworked people can't do that. Or people that use drugs. Or people that hate their bosses for some reason. Or just too comfortable and arrogant people...

                    Agreed. I really have to laugh at the elitist attitude on this board, especially when dealing with subjects like VB and/or VB6. There have been entire INDUSTRIES spring up around the code written in VB6 and VBA and the developers here really seem to look down on it. It's hilarious in one way and sad in another. To "diss" skills that a developer might have in using those tools is very high-school IMHO. In my case I've spent the last 12 years developing and maintaining a system that is largely built on VB6 and VB.Net. Yes, we do have increasing amounts of the code in C# and I, myself, now only develop new code in C# - but it seems that the attitude around here is that if you used VB6 you are somehow a lesser skilled programmer. Let me put it this way. If that's your attitude, then I reserve you the exclusive rights of being WRONG. -Max

                    S Offline
                    S Offline
                    Slobos
                    wrote on last edited by
                    #81

                    I would have never learned MFC, get a grip on events and later learn how to do stuff in C/C++ if I had not learned VB6. I think my first VB was that one that had all user interfaces in toolbars like GIMP. I know CMD BASIC 2.0, 7.0, Simons Basic II, Spectrum's BASIC, LOGO, QBasic GWBasic...(oh who would remember them all...), SmallBasic, I have original IBM XT motherboard with BASIC built in BIOS (I think still hand made chips before Japanese polished first automatic machines for connecting silicon with CPU pins), there are bunch of other BASICS I don't remember any more (old small calculators, and god knows what else) but that is irrelevant. I still maintain code I wrote in VB6 like only 7 years ago and I am not going to rewrite it in C# (I use for ASP.NET). I worked as civil engineer and without AUTO CAD VBA and LISP I would have clicked my ass of way more than I did and with VBA. I also wrote and application that have earned me an "elite" title in 2h and 15 minutes... Regarding other languages I use(d) (PHP, and several script languages including JavaScript), Turbo Pascal, C, C++, assembly and they do require much more tears because I did not only learn those languages, my brains had to restructure them selves and I am professionally degenerated. I see C and C++ in cars, refrigerators and even girls... :omg: ... ... BUT I DON'T LOOK DOWN ON MY FIRST **** COMMODORE 64 BASIC V2.0 **** 64K RAM SYSTEM 38911 BASIC BYTES FREE READY. :cool:

                    I like being sober. It gives some kind of quality to life that I can't really put my finger on... it is like running life from console way less colors but so much more control.

                    modified on Saturday, February 19, 2011 3:16 AM

                    1 Reply Last reply
                    0
                    • F Fabio Franco

                      Not necessarily. You don't need to use VBA to develop aginst excel. It's possible to do it with C# and use the office libs the same way you'd do with VBA. With another advantage that you can do more stuff, you're not stuck with only VBA capabilities.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #82

                      While it's true that you don't need to use VBA to develop Excel automation, you'd code a whole lot more and generate a new executable just to run a few lines to automte, say, the formatting of a spreadsheet. I really don't get why people complain so much about VBA and VB for that matter. If you're of a certain age your first programming language was BASIC. It was on the ROM of all the most successful computers of all times. From the Sinclair to TRS-80 to Apple ][ to PC. The evolution of BASIC from an interpreted sequential language to a fully object oriented language as we have in VB.NET is amazing. So, if I had someone to ask me to code a macro or two to Excel, or any Office application for that matter, I'd do it in a heart beat. And, by the way, the macro language of the Visual Studio (ever since the original Visual Studio .NET back in 2000) is BASIC!

                      F 1 Reply Last reply
                      0
                      • D Dan Neely

                        Mark Wallace wrote:

                        Mind you, finding a dev who can edit a document in a word-processor without screwing the settings/structure/formats up is like finding gold in your bathroom

                        The same is true of 99% of users who try to apply any formatting to their documents. The difference is that if you point a competent dev to the styles gallery/editor and explain that to avoid screwing the document up that they should use styles similarly to how they use basic CSS instead of font tags then they'll be able to do fancy without trouble in the future. Try doing that with an MBA or someone holding a program managment certificate. :doh:

                        3x12=36 2x12=24 1x12=12 0x12=18

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #83

                        Dan Neely wrote:

                        if you point a competent dev to the styles gallery/editor and explain that to avoid screwing the document up that they should use styles similarly to how they use basic CSS instead of font tags then they'll be able to do fancy without trouble in the future_, he'll throw a hissy fit over how cr@p Word is, how stupid you are for using it, how everything should be done in plain text files, and how stupid you are for not seeing that._

                        Fixed. See if you can spot the element of "Been there, done that".

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        D 1 Reply Last reply
                        0
                        • M Mycroft Holmes

                          We had a requirement that needed someone to write some VBA macros in Excel (2003) yesterday, both devs on the team denied any knowledge of VB/VBA/VB.Net I gave them a choice of doing the job in VBA or documentation, we should have some great manuals for this project. I was astonished that a person who calls himself a developer has no knowledge of office or macro programming, I thought we all got dipped in that stuff at some time.

                          Never underestimate the power of human stupidity RAH

                          A Offline
                          A Offline
                          Avinash Tauro
                          wrote on last edited by
                          #84

                          This is a very common situation today. Many kids who have grown up on asp.net, don't even know that a button click event actually posts back depending on action and method attributes of form. These were the basics we knew from programming with asp and jsp. Similarly with vba, programmers should'nt just hate vba for the sake of it. Though those who have worked with vb and are expert excel (or word, access, etc) users would find vba easier. Programming vba is more about understanding how the business uses excel and knowing how to access cell ranges, charts etc. and manipulating them. The syntax is anyway very simple. I would have lost a large client if I wasn't good at vba. In this particular case, every morning, they wanted to email the company health dashboard to the top 10 guys in the company. It was done manually, but any changes to the dashboard would mean no daily mails till the excel dashboard was changed. This is where I stepped in and provided an automatic solution in vba within 5 days. If I had to create a c# application, it would have to go through their standard software project process which would take a minimum of 2 weeks. Once I get the Purchase Order, I would then begin programming it, taking another 2 weeks including deployment. This was 2 years back, and today they are my biggest clients. The dashboard is still running strong. So yeah I love VBA :)

                          1 Reply Last reply
                          0
                          • C Christian Graus

                            I've done some VB.NET and a smattering of VB6. I've never, ever, done VBA.

                            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                            D Offline
                            D Offline
                            Derreck Dean
                            wrote on last edited by
                            #85

                            It reminds me of the difference between the .net runtime of Silverlight and regular .net- it has less features, but any roadblocks you encounter that are caused by a missing feature can always be worked around. On a side note, I have a client who wants their invoicing system rewritten. The whole thing is a 10 screen nightmare built in excel vba, using hidden worksheets to store data. Ugh.

                            1 Reply Last reply
                            0
                            • L Lost User

                              While it's true that you don't need to use VBA to develop Excel automation, you'd code a whole lot more and generate a new executable just to run a few lines to automte, say, the formatting of a spreadsheet. I really don't get why people complain so much about VBA and VB for that matter. If you're of a certain age your first programming language was BASIC. It was on the ROM of all the most successful computers of all times. From the Sinclair to TRS-80 to Apple ][ to PC. The evolution of BASIC from an interpreted sequential language to a fully object oriented language as we have in VB.NET is amazing. So, if I had someone to ask me to code a macro or two to Excel, or any Office application for that matter, I'd do it in a heart beat. And, by the way, the macro language of the Visual Studio (ever since the original Visual Studio .NET back in 2000) is BASIC!

                              F Offline
                              F Offline
                              Fabio Franco
                              wrote on last edited by
                              #86

                              PJonDevelopment wrote:

                              And, by the way, the macro language of the Visual Studio (ever since the original Visual Studio .NET back in 2000) is BASIC!

                              Yep, you're right, in fact, BASIC was the first language I had some contact with. I know VBA allows simple tasks to be implemented quickly, but I prefer to avoid it. Not that it's not useful, but I prefer not to use it if I have an alternative. But when it comes to more complex stuff, I think it's more productive to build a stand-alone solution that will interop with excel, as I've done before. I think the overhead is pretty small and maintainability makes it worth it. If the situation didn't allow, of course I'd do it with VBA, but I wouldn't be joyful about it. And in the end, I beleive pretty much all the resistance to BASIC and it's derived languages comes to personal preference and bad experiences others have had with it because of some of it's flaws or because they had to maintain some bad code written in it. VB can be appealing sometimes, as it was to me when I was a teenager but I've seen many programmers mature and start to despise it in our current OOP world. The importance of BASIC in the history of cumputer can't be denied, it's just that I "prefer" to stay away from it, as many do too.

                              1 Reply Last reply
                              0
                              • M Mark_Wallace

                                Dan Neely wrote:

                                if you point a competent dev to the styles gallery/editor and explain that to avoid screwing the document up that they should use styles similarly to how they use basic CSS instead of font tags then they'll be able to do fancy without trouble in the future_, he'll throw a hissy fit over how cr@p Word is, how stupid you are for using it, how everything should be done in plain text files, and how stupid you are for not seeing that._

                                Fixed. See if you can spot the element of "Been there, done that".

                                I wanna be a eunuchs developer! Pass me a bread knife!

                                D Offline
                                D Offline
                                Dan Neely
                                wrote on last edited by
                                #87

                                Apparently your cow-orkers are much more ornery and stubborn than mine.

                                3x12=36 2x12=24 1x12=12 0x12=18

                                1 Reply Last reply
                                0
                                • M Mycroft Holmes

                                  If I thought that I'd fire the dev, the right tool for the job, I don't care what it is.

                                  Never underestimate the power of human stupidity RAH

                                  K Offline
                                  K Offline
                                  Kenneth Kasajian
                                  wrote on last edited by
                                  #88

                                  Well, I don't know for sure, but in my experience, a lot of programmers don't want to work in BASIC because it makes it seem as though they don't know a more difficult language. Plus there's a lot of non-programmers who can use BASIC, and they don't want to be one of those people. It's all kinda dumb, in my opinion. BASIC was my first programming language, and I still like coding in it. I've also written lots of assembly language and C++ happens to be my favorite language currently. I currently code mostly in C#, but I'm not sure if anything can beat something like Python for productivity. I'd like to think most serious programmers aren't that picky.

                                  ken@kasajian.com / www.kasajian.com

                                  1 Reply Last reply
                                  0
                                  • S Slacker007

                                    Dalek Dave wrote:

                                    I would not hire anybody who denied VBA!

                                    I am a VBA guru. I don't look at VBA as bad but as a tool for the job. I unlike most others, started with VBA and VB. Then moved to C++, and C#, etc... If you hate VBA just because it is VBA then you are retarded and on my team you would be a waste of everyone's time. We have to work with VBA from time to time so it is par for the course.

                                    M Offline
                                    M Offline
                                    Member 3156670
                                    wrote on last edited by
                                    #89

                                    One of the largest VBA code I ever saw in Excel is implemented by Instromet for Gas Metering application for our Natural Gas Processing Plant. It is a marvellous application, one can hardly think so much can be done through VBA in Excel, a sort of real time application where metering variables are taken from field instruments via virtual COM ports.

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups