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. Code as plain text? Plain wrong I say [modified]

Code as plain text? Plain wrong I say [modified]

Scheduled Pinned Locked Moved The Lounge
javadatabasevisual-studioxmlquestion
14 Posts 5 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.
  • P Phil Martin

    The earlier thread about tabs/spaces/indentation just reminded how much I wish those things were not even topics in the software industry. If you could click your heels three times and the whole software industry could change, would you still keep plain text for your code? If the whole IDE, diff and the whole ecosystem could change, would you still keep things the same? I wouldn't. Well, not in plain text I directly work on. I would much prefer a system where I query for the code I want, in the form I want, and I get to edit it how I want, and it gets pushed back to the source code repo in a semantic way. Sure there are wrinkles, and a thousand and one corner cases of "what if I rename this, and that, and do this, it just won't work!", but for me, if those problems could be solved, my work day would be so much simpler. Want to annotate code with diagrams? Not be limited to just half-arsed xml to document your work? Be able to add meaningful links between code that are retained across changes. View flow charts of code, and even modify code with flow charts. View your class with methods ordered any way that suits your style. Coworkers don't have to work the same way. I think there was a "Code Bubbles"[^] thing a while back that touched on much of this, but for Java code, and it looked pretty sweet. Wishful thinking? You bet.

    modified on Wednesday, January 19, 2011 10:13 PM

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #3

    Where I work now, a "rules-based" system is in place. There is a GUI interface and you define an application by dragging and dropping rules and setting properties. You can even define "sets" of rules as larger pieces of an application. But eventually you have to write some actual code to implement the rules, even if it's basically just an if. That's my argument against what you describe -- at the lowest level, there must be actual code in some language that can be compiled to machine instructions. Can you store that any way other than as plain text? Will you simply store each plain text statement separately?

    <Program Language="BASIC">
    <Statement Line="10" Comment="Assign the value 42 to the variable X">LET X = 42</Statement>
    <Statement Line="20" Comment="Assign the value 3.145 to the variable Y">LET Y = 3.145</Statement>
    <Statement Line="30" Comment="Display the product of X and Y">PRINT X * Y</Statement>
    <Statement Line="40" Comment="Terminate the program">END</Statement>
    </Program>

    or maybe the other way around would work better?

    <Statement Line="10" Code="LET X = 42">Assign the value 42 to the variable X</Statement>

    The code is still simple plain text; it's just stored differently. And you know that no one will write and maintain the comment properly. No, sir, I'll stick with code in plain text thank you very much. (And they can have my text editor when they pry it from my cold dead hands.)

    modified on Thursday, January 20, 2011 1:00 AM

    P 1 Reply Last reply
    0
    • L leppie

      While 'GUI' coding seems to make sense, it fails to scale completely.

      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #4

      leppie wrote:

      it fails to scale completely

      Or does it completely fail to scale?

      L 1 Reply Last reply
      0
      • P PIEBALDconsult

        leppie wrote:

        it fails to scale completely

        Or does it completely fail to scale?

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #5

        PIEBALDconsult wrote:

        Or does it completely fail to scale?

        Yeah, that one, sorry, my mind is still stuck in native language so early in the morning. ;P

        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

        P 1 Reply Last reply
        0
        • L leppie

          PIEBALDconsult wrote:

          Or does it completely fail to scale?

          Yeah, that one, sorry, my mind is still stuck in native language so early in the morning. ;P

          ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #6

          x86?

          L 1 Reply Last reply
          0
          • P PIEBALDconsult

            x86?

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #7

            PIEBALDconsult wrote:

            x86?

            Nope, AFK75.

            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

            1 Reply Last reply
            0
            • P Phil Martin

              The earlier thread about tabs/spaces/indentation just reminded how much I wish those things were not even topics in the software industry. If you could click your heels three times and the whole software industry could change, would you still keep plain text for your code? If the whole IDE, diff and the whole ecosystem could change, would you still keep things the same? I wouldn't. Well, not in plain text I directly work on. I would much prefer a system where I query for the code I want, in the form I want, and I get to edit it how I want, and it gets pushed back to the source code repo in a semantic way. Sure there are wrinkles, and a thousand and one corner cases of "what if I rename this, and that, and do this, it just won't work!", but for me, if those problems could be solved, my work day would be so much simpler. Want to annotate code with diagrams? Not be limited to just half-arsed xml to document your work? Be able to add meaningful links between code that are retained across changes. View flow charts of code, and even modify code with flow charts. View your class with methods ordered any way that suits your style. Coworkers don't have to work the same way. I think there was a "Code Bubbles"[^] thing a while back that touched on much of this, but for Java code, and it looked pretty sweet. Wishful thinking? You bet.

              modified on Wednesday, January 19, 2011 10:13 PM

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

              IBM had something a few year back that tried to do something like what I think you are suggesting - it obviously never took off, but I think it would be good if it was done 'right' Have you seen things like the Lego MindStorm (I think that's the name) which uses a flowchart/icon/boxes and lines paradigm to program quite complex behavior. It would be fascinating to develop something like that for business programming!

              ___________________________________________ .\\axxx (That's an 'M')

              P 1 Reply Last reply
              0
              • L leppie

                While 'GUI' coding seems to make sense, it fails to scale completely.

                ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                P Offline
                P Offline
                Phil Martin
                wrote on last edited by
                #9

                I don't want GUI coding, I want more intelligent code storage.

                1 Reply Last reply
                0
                • P PIEBALDconsult

                  Where I work now, a "rules-based" system is in place. There is a GUI interface and you define an application by dragging and dropping rules and setting properties. You can even define "sets" of rules as larger pieces of an application. But eventually you have to write some actual code to implement the rules, even if it's basically just an if. That's my argument against what you describe -- at the lowest level, there must be actual code in some language that can be compiled to machine instructions. Can you store that any way other than as plain text? Will you simply store each plain text statement separately?

                  <Program Language="BASIC">
                  <Statement Line="10" Comment="Assign the value 42 to the variable X">LET X = 42</Statement>
                  <Statement Line="20" Comment="Assign the value 3.145 to the variable Y">LET Y = 3.145</Statement>
                  <Statement Line="30" Comment="Display the product of X and Y">PRINT X * Y</Statement>
                  <Statement Line="40" Comment="Terminate the program">END</Statement>
                  </Program>

                  or maybe the other way around would work better?

                  <Statement Line="10" Code="LET X = 42">Assign the value 42 to the variable X</Statement>

                  The code is still simple plain text; it's just stored differently. And you know that no one will write and maintain the comment properly. No, sir, I'll stick with code in plain text thank you very much. (And they can have my text editor when they pry it from my cold dead hands.)

                  modified on Thursday, January 20, 2011 1:00 AM

                  P Offline
                  P Offline
                  Phil Martin
                  wrote on last edited by
                  #10

                  I want my text editor. Noone will ever take that away from me. Just let them try and I'll go all John Simmons on them :) I just want my code stored in a more flexible way that lets me put more than just text in there, and when I do ask for code, it spits it out in a form I want to read it in, not some form someone else thought was good at the time.

                  1 Reply Last reply
                  0
                  • L Lost User

                    IBM had something a few year back that tried to do something like what I think you are suggesting - it obviously never took off, but I think it would be good if it was done 'right' Have you seen things like the Lego MindStorm (I think that's the name) which uses a flowchart/icon/boxes and lines paradigm to program quite complex behavior. It would be fascinating to develop something like that for business programming!

                    ___________________________________________ .\\axxx (That's an 'M')

                    P Offline
                    P Offline
                    Phil Martin
                    wrote on last edited by
                    #11

                    Yeah, the Lego Mindstorms are interesting, though I've never used them "seriously", just had a look. I used labView for a while, and it was nice as far as it went, but just was not as quick to implement things as writing code. I think it just boils down to me knowing that I don't want things the way they are now, but I also don't know what I'd really like :)

                    1 Reply Last reply
                    0
                    • P Phil Martin

                      The earlier thread about tabs/spaces/indentation just reminded how much I wish those things were not even topics in the software industry. If you could click your heels three times and the whole software industry could change, would you still keep plain text for your code? If the whole IDE, diff and the whole ecosystem could change, would you still keep things the same? I wouldn't. Well, not in plain text I directly work on. I would much prefer a system where I query for the code I want, in the form I want, and I get to edit it how I want, and it gets pushed back to the source code repo in a semantic way. Sure there are wrinkles, and a thousand and one corner cases of "what if I rename this, and that, and do this, it just won't work!", but for me, if those problems could be solved, my work day would be so much simpler. Want to annotate code with diagrams? Not be limited to just half-arsed xml to document your work? Be able to add meaningful links between code that are retained across changes. View flow charts of code, and even modify code with flow charts. View your class with methods ordered any way that suits your style. Coworkers don't have to work the same way. I think there was a "Code Bubbles"[^] thing a while back that touched on much of this, but for Java code, and it looked pretty sweet. Wishful thinking? You bet.

                      modified on Wednesday, January 19, 2011 10:13 PM

                      P Offline
                      P Offline
                      peterchen
                      wrote on last edited by
                      #12

                      - Text as base format - Full syntax parser / DOM library included with the IDE - Code Bubbles for navigation

                      FILETIME to time_t
                      | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                      P 1 Reply Last reply
                      0
                      • P peterchen

                        - Text as base format - Full syntax parser / DOM library included with the IDE - Code Bubbles for navigation

                        FILETIME to time_t
                        | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                        P Offline
                        P Offline
                        Phil Martin
                        wrote on last edited by
                        #13

                        Yes please. Could you have done by Monday pretty please? :)

                        P 1 Reply Last reply
                        0
                        • P Phil Martin

                          Yes please. Could you have done by Monday pretty please? :)

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #14

                          Sorry, I have an... appointment on Saturday, and a life on Sunday. Maybe next week.

                          FILETIME to time_t
                          | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                          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