ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Where to read Code? or Best practices to Learn Code?

    Water Closet
    readin code
    14
    151
    9.3k
    Loading More Posts
    • 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.
    • scottalanmillerS
      scottalanmiller @1337
      last edited by

      @Pete-S said in Where to read Code? or Best practices to Learn Code?:

      @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

      @WrCombs said in Where to read Code? or Best practices to Learn Code?:

      Mark up languages like HMTL and CSS ( I dont know what careers come from those, but they're options... )

      Web Designer. That's the one and only job with those skills.

      And front end programmer.

      Or backend programmer working on html export.

      Only insofar as those other roles often do web design. In large, fully separated teams, those roles don't do web design, it's still separate. in smaller shops they merge them, but it's someone who does front end programming who then also does the web design.

      Like how we might be in IT, but sometimes getting a bench tech or a facilities "mover" to physically move a computer is a waste of time so we just do it ourselves. It doesn't mean that moving furniture is part of IT, just that it is practical for people to cross job boundaries in a lot of cases. CEOs often empty the trash, but the act of emptying the trash is still janitorial, not managerial.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @WrCombs
        last edited by

        @WrCombs said in Where to read Code? or Best practices to Learn Code?:

        you said that HTML and CSS are not coding rather they are mark ups correct?

        That is correct. They are 100% markup, no algorithms.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @WrCombs
          last edited by

          @WrCombs said in Where to read Code? or Best practices to Learn Code?:

          But I can build a website out of HTML from the
          ....
          from scratch - and then mark up with CSS .
          Wouldn't only CSS be considered the mark up language?

          No, because HTML marks up and does nothing else. Look at the HTML. Forget that it's name has "markup language" right in it. Actually look at what it does... HTML "marks up" bits of text to say what it is.

          HTML is an extension of XML, the eXtensible Markup Language. The format is identical, just HTML is more specific. The most common thing in a markup language is to tag something as being something. That's all HTML does.

          1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @WrCombs
            last edited by

            @WrCombs said in Where to read Code? or Best practices to Learn Code?:

            I dont understand how software is created,
            but i understand web design a bit more

            Sure. That's normal because we all use software every day, but almost no one makes any, not even a little. But we all "make" documents all the time, even if we use tools like Word to do it. So the act of creating a document, and the resulting document being something we understand is common.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @WrCombs
              last edited by

              @WrCombs said in Where to read Code? or Best practices to Learn Code?:

              so do the 2 interchange ? I.e- writing html code for a website, and using php to write software to make a webpage within the html webpage? theoretical

              Not totally sure I understand the question. I'll rephrase and see if that helps...

              A website = HTML. Always, no exceptions.

              A web designer writes HTML themselves.

              A web developer writes software (Python, PHP, Ruby, Java, etc.) that writes HTML on the fly.

              WrCombsW 1 Reply Last reply Reply Quote 1
              • WrCombsW
                WrCombs @scottalanmiller
                last edited by

                @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                so do the 2 interchange ? I.e- writing html code for a website, and using php to write software to make a webpage within the html webpage? theoretical

                Not totally sure I understand the question. I'll rephrase and see if that helps...

                A website = HTML. Always, no exceptions.

                A web designer writes HTML themselves.

                A web developer writes software (Python, PHP, Ruby, Java, etc.) that writes HTML on the fly.

                that answers the question . The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                which was answered.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • ObsolesceO
                  Obsolesce @1337
                  last edited by

                  @Pete-S said in Where to read Code? or Best practices to Learn Code?:

                  @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                  @Pete-S said in Where to read Code? or Best practices to Learn Code?:

                  @travisdh1 said in Where to read Code? or Best practices to Learn Code?:

                  @WrCombs Static page, stick with HTML. Dynamic stuff, PHP with MariaDB.

                  Most important thing when working with dynamic web pages is sanitizing any input.

                  I'm almost downvoting that one.

                  Sanitizing is for losers, binding is for winners.
                  :smiling_face_with_open_mouth_smiling_eyes:

                  LOL so rather than google it - What are the differences between Sanitizing and binding input?

                  is that learned from PHP?

                  No, it's not language specific.

                  The difference is how the information the user supplied (for instance in a form) enters the database.

                  Binding means it goes directly from a variable in the program to the database.

                  Other option is to use the users data and assemble an SQL statement (database language). Problem is that the user can put SQL code in the information (called SQL injection attack). To avoid that you have to sanitize the input and remove or reencode the data from the user before using it to make an SQL statement.

                  And this is why I suggest SoloLearn so much. Because I did not know this a year or two ago, and learned it in the comments during a SoloLearn lesson on PHP. I did a little bit of PHP back in the day but it was a good refresher.

                  WrCombsW 1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @WrCombs
                    last edited by

                    @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                    The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                    No, because HTML is only a markup language and it does not have the ability to contain arbitrary code. It CAN hold JavaScript code, that is the one language that HTML can contain. But it's isolated code inside the page.

                    You can also use JavaScript to make HTML, like you do with NodeJS.

                    WrCombsW ObsolesceO 2 Replies Last reply Reply Quote 0
                    • WrCombsW
                      WrCombs @Obsolesce
                      last edited by

                      @Obsolesce said in Where to read Code? or Best practices to Learn Code?:

                      @Pete-S said in Where to read Code? or Best practices to Learn Code?:

                      @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                      @Pete-S said in Where to read Code? or Best practices to Learn Code?:

                      @travisdh1 said in Where to read Code? or Best practices to Learn Code?:

                      @WrCombs Static page, stick with HTML. Dynamic stuff, PHP with MariaDB.

                      Most important thing when working with dynamic web pages is sanitizing any input.

                      I'm almost downvoting that one.

                      Sanitizing is for losers, binding is for winners.
                      :smiling_face_with_open_mouth_smiling_eyes:

                      LOL so rather than google it - What are the differences between Sanitizing and binding input?

                      is that learned from PHP?

                      No, it's not language specific.

                      The difference is how the information the user supplied (for instance in a form) enters the database.

                      Binding means it goes directly from a variable in the program to the database.

                      Other option is to use the users data and assemble an SQL statement (database language). Problem is that the user can put SQL code in the information (called SQL injection attack). To avoid that you have to sanitize the input and remove or reencode the data from the user before using it to make an SQL statement.

                      And this is why I suggest SoloLearn so much. Because I did not know this a year or two ago, and learned it in the comments during a SoloLearn lesson on PHP. I did a little bit of PHP back in the day but it was a good refresher.

                      I really enjoy solo learn, The comments helps understanding everything that's going on.

                      1 Reply Last reply Reply Quote 0
                      • WrCombsW
                        WrCombs @scottalanmiller
                        last edited by

                        @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                        @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                        The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                        No, because HTML is only a markup language and it does not have the ability to contain arbitrary code. It CAN hold JavaScript code, that is the one language that HTML can contain. But it's isolated code inside the page.

                        You can also use JavaScript to make HTML, like you do with NodeJS.

                        I gotcha,
                        SO understanding all of them together is a great idea?
                        I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                        WrCombsW scottalanmillerS 2 Replies Last reply Reply Quote 0
                        • WrCombsW
                          WrCombs @WrCombs
                          last edited by

                          @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                          @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                          @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                          The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                          No, because HTML is only a markup language and it does not have the ability to contain arbitrary code. It CAN hold JavaScript code, that is the one language that HTML can contain. But it's isolated code inside the page.

                          You can also use JavaScript to make HTML, like you do with NodeJS.

                          I gotcha,
                          SO understanding all of them together is a great idea?
                          I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                          but It'd be better to learn python first?

                          jmooreJ ObsolesceO scottalanmillerS 3 Replies Last reply Reply Quote 0
                          • jmooreJ
                            jmoore @WrCombs
                            last edited by

                            @WrCombs Depends on whether you have picked web development or programming

                            1 Reply Last reply Reply Quote 0
                            • ObsolesceO
                              Obsolesce @WrCombs
                              last edited by

                              @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                              @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                              @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                              @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                              The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                              No, because HTML is only a markup language and it does not have the ability to contain arbitrary code. It CAN hold JavaScript code, that is the one language that HTML can contain. But it's isolated code inside the page.

                              You can also use JavaScript to make HTML, like you do with NodeJS.

                              I gotcha,
                              SO understanding all of them together is a great idea?
                              I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                              but It'd be better to learn python first?

                              Learn what you are interested in, otherwise you'll give it up too soon.

                              If HTML and CSS are fun, then why the hell not? Maybe after a few months or more down the road, you'll want to move on to programming languages, or maybe from doing html and CSS, you'll want to learn some Javascript to be able to do more with what you see on the web page. Then from there maybe Node.js or PHP.

                              It's up to you, really. If you want to do Python first, that's great too. Do what interests you.

                              1 Reply Last reply Reply Quote 1
                              • scottalanmillerS
                                scottalanmiller @WrCombs
                                last edited by

                                @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                                Yes, that is true. But keep in mind that "web development" is a lot more moving parts than just "development". So learning it "first" tends to be hard because you are not just learning markup, and programming at the same time, but also learning them in the context of them interacting!

                                Imagine trying to learn to write a book. But do so in the context of building a Rube Goldberg machine that you trigger and it types out the book through a series of actions!

                                WrCombsW 1 Reply Last reply Reply Quote 2
                                • scottalanmillerS
                                  scottalanmiller @WrCombs
                                  last edited by

                                  @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                  @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                  @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                                  @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                  The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                                  No, because HTML is only a markup language and it does not have the ability to contain arbitrary code. It CAN hold JavaScript code, that is the one language that HTML can contain. But it's isolated code inside the page.

                                  You can also use JavaScript to make HTML, like you do with NodeJS.

                                  I gotcha,
                                  SO understanding all of them together is a great idea?
                                  I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                                  but It'd be better to learn python first?

                                  I think no matter what, you want to learn to program before you learn to do web development, and the best place to start learning to program is Python.

                                  WrCombsW 1 Reply Last reply Reply Quote 0
                                  • WrCombsW
                                    WrCombs @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                                    @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                    I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                                    Yes, that is true. But keep in mind that "web development" is a lot more moving parts than just "development". So learning it "first" tends to be hard because you are not just learning markup, and programming at the same time, but also learning them in the context of them interacting!

                                    Imagine trying to learn to write a book. But do so in the context of building a Rube Goldberg machine that you trigger and it types out the book through a series of actions!

                                    Okay, That makes sense, In every "web development" program and book I've seen it starts with HTML and CSS to give the writer and idea on syntax and the front end part of web pages, then it goes deeper with Javascript or Jquerery and PHP (MySQL in most cases that i've seen. although any database server would work.. right? )

                                    scottalanmillerS 2 Replies Last reply Reply Quote 0
                                    • WrCombsW
                                      WrCombs @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                                      @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                      @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                      @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                                      @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                      The question i was going for was *can you write a html webpage, and put python, php, ruby, java, etc. into the html?

                                      No, because HTML is only a markup language and it does not have the ability to contain arbitrary code. It CAN hold JavaScript code, that is the one language that HTML can contain. But it's isolated code inside the page.

                                      You can also use JavaScript to make HTML, like you do with NodeJS.

                                      I gotcha,
                                      SO understanding all of them together is a great idea?
                                      I mean - HTML CSS JavaScript PHP (MySQL, and JQuerey) is a good idea to learn all the way around for basics of web development

                                      but It'd be better to learn python first?

                                      I think no matter what, you want to learn to program before you learn to do web development, and the best place to start learning to program is Python.

                                      I can understand that

                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller @WrCombs
                                        last edited by

                                        @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                        In every "web development" program and book I've seen it starts with HTML and CSS to give the writer and idea on syntax and the front end part of web pages, then it goes deeper with Javascript or Jquerery and PHP (MySQL in most cases that i've seen. although any database server would work.. right? )

                                        Yes AND it is like this...

                                        You have to learn...

                                        1. PHP as the "server development language."
                                        2. Databases, because you have to talk to something.
                                        3. HTML / CSS because this is the "presentation markup".
                                        4. JavaScript, a second programming language for doing things in the HTML.
                                        5. How to tie them all together.

                                        All very doable, but a lot to learn about all at once and keep straight which thing is doing what. And that's before we consider any frameworks, which are often used, like Laravel on PHP, and AngularJS on the front end, which is built on JQuery. The number of things you tend to learn is way higher than the necessary pieces. It gets nuts.

                                        1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @WrCombs
                                          last edited by

                                          @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                          (MySQL in most cases that i've seen. although any database server would work.. right? )

                                          That's correct. If you are writing your own PHP app, you can choose any database that you want to work with. Of any type.

                                          WrCombsW 1 Reply Last reply Reply Quote 0
                                          • WrCombsW
                                            WrCombs @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Where to read Code? or Best practices to Learn Code?:

                                            @WrCombs said in Where to read Code? or Best practices to Learn Code?:

                                            (MySQL in most cases that i've seen. although any database server would work.. right? )

                                            That's correct. If you are writing your own PHP app, you can choose any database that you want to work with. Of any type.

                                            And if you're not writing your own?
                                            (just out of curiosity)

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 7 / 8
                                            • First post
                                              Last post