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

    Dipping Toes Into Programming

    Developer Discussion
    16
    142
    18.7k
    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
      last edited by

      https://medium.freecodecamp.org/every-time-you-build-a-to-do-list-app-a-puppy-dies-505b54637a5d

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

        @scottalanmiller said in Dipping Toes Into Programming:

        https://medium.freecodecamp.org/every-time-you-build-a-to-do-list-app-a-puppy-dies-505b54637a5d

        My first project that I'm almost finished with is a nutrition calculator for my protein bar recipe.

        That basically covers the first two chapters and a little into 3.

        Though, there's about 65 form fields to handle, so it's quite big without me knowing how to handle all those fields, especially due to them initially being generated automatically by like 4 lines of PHP.

        I'll link it after it's finished, it's quite nice for it's purpose.

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

          Cool

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

            @scottalanmiller said in Dipping Toes Into Programming:

            Cool

            I'm pretty close to being done with my first project to drive home chapters 1 and 2 of the book (plus what I learned on SoloLearn).

            Edit: It takes advantage of HTML5 and PHP7+ only features ๐Ÿ™‚

            Here's the results so far:

            First Screenshot:
            This is the default page, and all of this is automatically generated and filled in with just a few lines of PHP, and allows you to adjust as needed before submitting how much one bar weighs.
            0_1521777918836_1a32ad09-6e8c-4607-ab94-64bc999ea572-image.png

            Second Screenshot:
            This shows the results of everything from the first screenshot.
            0_1521778015722_6b1eb8c1-e107-4714-896e-f4990f62f279-image.png

            I know I need to work on formatting and prettyness a bit, but my main goal was first functionality.

            I also have error handling, and defaulting to ZERO:
            0_1521778124030_82deadb9-3fa6-4640-b366-c82ccfbdb8a4-image.png

            As well as injection prevention, null setting before any handling, and strict checking:
            0_1521778245010_da8aa7b1-7d55-45d0-a3cd-f0f6e394682d-image.png

            A snippet of just the $grams variable (but applies to everything):
            0_1521778343606_419b4e5a-e65b-401b-97aa-b80a3aaa397a-image.png
            (that's an old comment to myself that I haven't removed yet)

            JaredBuschJ 1 Reply Last reply Reply Quote 3
            • ObsolesceO
              Obsolesce
              last edited by

              For the rest of the chapters, I'll be doing other projects (two of which I started already and got as far as I could with the knowledge of chapters 1 and 2 (some of 3)) and will do those as I go through the book... also, I will make this Protein Bar Nutrition Calculator way more efficient on the back end as I learn more.

              1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @Obsolesce
                last edited by

                @tim_g said in Dipping Toes Into Programming:

                @scottalanmiller said in Dipping Toes Into Programming:

                Cool

                I'm pretty close to being done with my first project to drive home chapters 1 and 2 of the book (plus what I learned on SoloLearn).

                Here's the results so far:

                First Screenshot:
                This is the default page, and all of this is automatically generated and filled in with just a few lines of PHP, and allows you to adjust as needed before submitting how much one bar weighs.
                0_1521777918836_1a32ad09-6e8c-4607-ab94-64bc999ea572-image.png

                Second Screenshot:
                This shows the results of everything from the first screenshot.
                0_1521778015722_6b1eb8c1-e107-4714-896e-f4990f62f279-image.png

                I know I need to work on formatting and prettyness a bit, but my main goal was first functionality.

                I also have error handling, and defaulting to ZERO:
                0_1521778124030_82deadb9-3fa6-4640-b366-c82ccfbdb8a4-image.png

                As well as injection prevention, null setting before any handling, and strict checking:
                0_1521778245010_da8aa7b1-7d55-45d0-a3cd-f0f6e394682d-image.png

                A snippet of just the $grams variable (but applies to everything):
                0_1521778343606_419b4e5a-e65b-401b-97aa-b80a3aaa397a-image.png
                (that's an old comment to myself that I haven't removed yet)

                I find more comments to be better. because I will code something and after testing and deployemnt, I won't touhc it for 4 years and without comments I have no fucking clue what I was thinking when I did something a certain way.

                I mean I can read the code and see what I did and what it does, but that says nothing for why i did something.

                ObsolesceO 1 Reply Last reply Reply Quote 4
                • ObsolesceO
                  Obsolesce @JaredBusch
                  last edited by

                  @jaredbusch oh, that comment was a to-do comment, that I've finished doing but never deleted that reminder.

                  But yeah I have comments everywhere, just not in the screenshots.

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

                    I'd like to substitute Honey for something else more healthy... yeah it's better than added sugar, but still... it's "sugar".

                    I could probably make up for that weight with 100g more of other ingredients, and more water. But it wouldn't be as sweet. it's such a tasty recipe as-is though.

                    dafyreD travisdh1T 2 Replies Last reply Reply Quote 1
                    • dafyreD
                      dafyre @Obsolesce
                      last edited by dafyre

                      @tim_g said in Dipping Toes Into Programming:

                      I'd like to substitute Honey for something else more healthy... yeah it's better than added sugar, but still... it's "sugar".

                      I could probably make up for that weight with 100g more of other ingredients, and more water. But it wouldn't be as sweet. it's such a tasty recipe as-is though.

                      Nobody wants to eat healthy food that tastes like ๐Ÿ’ฉ .

                      1 Reply Last reply Reply Quote 0
                      • travisdh1T
                        travisdh1 @Obsolesce
                        last edited by

                        @tim_g said in Dipping Toes Into Programming:

                        I'd like to substitute Honey for something else more healthy... yeah it's better than added sugar, but still... it's "sugar".

                        I could probably make up for that weight with 100g more of other ingredients, and more water. But it wouldn't be as sweet. it's such a tasty recipe as-is though.

                        Honey is a whole different thing than processed sugar. Yes, you can't go crazy with it, but it's so much better than sugar.

                        1 Reply Last reply Reply Quote 0
                        • D
                          dave_c @Obsolesce
                          last edited by

                          @tim_g
                          Some editors handle the TODO's very well when prefixed like this:
                          //TODO: whatever ...
                          /TODO: whatever .../
                          Thay way you can have a look of all of your pending stuff in one place
                          0_1522032136990_156ea2bc-5715-41b1-bd0b-6e18dfb54662-image.png
                          The editor in the picture is PhpStorm

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

                            @dave_c said in Dipping Toes Into Programming:

                            @tim_g
                            Some editors handle the TODO's very well when prefixed like this:
                            //TODO: whatever ...
                            /TODO: whatever .../
                            Thay way you can have a look of all of your pending stuff in one place
                            0_1522032136990_156ea2bc-5715-41b1-bd0b-6e18dfb54662-image.png
                            The editor in the picture is PhpStorm

                            That's pretty neat.

                            Any idea if VSCode can do that? Can't look right now.

                            stacksofplatesS scottalanmillerS 2 Replies Last reply Reply Quote 0
                            • stacksofplatesS
                              stacksofplates @Obsolesce
                              last edited by

                              @tim_g said in Dipping Toes Into Programming:

                              @dave_c said in Dipping Toes Into Programming:

                              @tim_g
                              Some editors handle the TODO's very well when prefixed like this:
                              //TODO: whatever ...
                              /TODO: whatever .../
                              Thay way you can have a look of all of your pending stuff in one place
                              0_1522032136990_156ea2bc-5715-41b1-bd0b-6e18dfb54662-image.png
                              The editor in the picture is PhpStorm

                              That's pretty neat.

                              Any idea if VSCode can do that? Can't look right now.

                              There's an extension for it.

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

                                @tim_g said in Dipping Toes Into Programming:

                                @dave_c said in Dipping Toes Into Programming:

                                @tim_g
                                Some editors handle the TODO's very well when prefixed like this:
                                //TODO: whatever ...
                                /TODO: whatever .../
                                Thay way you can have a look of all of your pending stuff in one place
                                0_1522032136990_156ea2bc-5715-41b1-bd0b-6e18dfb54662-image.png
                                The editor in the picture is PhpStorm

                                That's pretty neat.

                                Any idea if VSCode can do that? Can't look right now.

                                VSCode can do just about anything. It's the best development environment out there right now, IMHO.

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

                                  R and Python are joining forces, in the most ambitious crossover event of the yearโ€”for programmers

                                  http://flip.it/sM7EuI

                                  Relavant now that I'm doing a course in Python

                                  1 Reply Last reply Reply Quote 2
                                  • B
                                    Baldwin_Cannon
                                    last edited by

                                    Not bad news, but honestly, I can not stand R language

                                    travisdh1T 1 Reply Last reply Reply Quote 0
                                    • travisdh1T
                                      travisdh1 @Baldwin_Cannon
                                      last edited by

                                      @Baldwin_Cannon said in Dipping Toes Into Programming:

                                      Not bad news, but honestly, I can not stand R language

                                      R is really meant for math, using it for programming or running anything else is painful because it's not designed to do anything else.

                                      matteo nunziatiM 1 Reply Last reply Reply Quote 0
                                      • matteo nunziatiM
                                        matteo nunziati @travisdh1
                                        last edited by

                                        @travisdh1 said in Dipping Toes Into Programming:

                                        @Baldwin_Cannon said in Dipping Toes Into Programming:

                                        Not bad news, but honestly, I can not stand R language

                                        R is really meant for math, using it for programming or running anything else is painful because it's not designed to do anything else.

                                        And still I prefer matlab/octave

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