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.
https://imgs.xkcd.com/comics/exploits_of_a_mom.png
https://xkcd.com/327/Just looking up
difference between static and dynamic websites
didn't do me any good.what's the difference other than one is database server language(dynamic) and the other is html (static)
-
@WrCombs Just what the words mean. Static = content doesn't change. Dynamic = content changes.
-
@travisdh1 said in Where to read Code? or Best practices to Learn Code?:
@WrCombs Just what the words mean. Static = content doesn't change. Dynamic = content changes.
That's what I figured. but thanks for clarifying
-
@WrCombs said in Where to read Code? or Best practices to Learn Code?:
why?
because I want to see if I can!
I want to try different things and see what works for me and if it's something I can do- ultimately.I can empathize with this concerning almost anything I want to learn.
-
@EddieJennings 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?:
why?
because I want to see if I can!
I want to try different things and see what works for me and if it's something I can do- ultimately.I can empathize with this concerning almost anything I want to learn.
at least im not the only one- plus it's great experience on resume's and in general.. IMO
-
@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: -
@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:Well yeah, but there isn't a classic XKCD for binding
-
@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?
-
@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.
-
@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 characters.
OH! okay that makes sense.
I've heard of SQL injections before, I read an article years ago on them and how to prevent them . I just didnt remember. -
@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.
-
@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?:
@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 characters.
OH! okay that makes sense.
I've heard of SQL injections before, I read an article years ago on them and how to prevent them . I just didnt remember. -
@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.
-
@WrCombs said in Where to read Code? or Best practices to Learn Code?:
Haven't started any projects yet, cause I dont understand Python. where as with HTML and CSS (so far) It makes sense- I put in what I want it to do and what I want to be there, and it works.
Distill this to help understand...
What you understand is web design or, more generally, making documents. Using HTML is basically like a "more technical" form of making a Word document.
What you don't understand is programming. Or more generally, making software.
-
@WrCombs said in Where to read Code? or Best practices to Learn Code?:
python looks like it's all math, basically up to this point.
In the same way that cooking and recipes are all math... which is to say "they have math, but they are not math."
-
@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.
@scottalanmiller weird question - and Im a noob (as already said multiple times) however,
you said that HTML and CSS are not coding rather they are mark ups correct?
But I can build a website out of HTML from the<!doctype: html> <html> <body> <!-- some website information here --> </body> </html>
from scratch - and then mark up with CSS .
Wouldn't only CSS be considered the mark up language? -
@WrCombs said in Where to read Code? or Best practices to Learn Code?:
Under that, I feel like it'd be good practice to build a website from scratch, use mark ups and add python.
You guys have said multiple times "having a goal in mind while learning is best because if you dont you'll get distracted."
But how do I do that?
learning PHP as @bnrstnr said?Absolutely not. You are missing the BIG picture stuff of "what is programming" and "what is web design." Just randomly changing syntax isn't going to change the fundamentals.
Python = PHP. Python is just a little easier for a noobie to learn, that's all. Both are programming languages, they do exactly the same things, both are equally "math".
-
@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?:
Haven't started any projects yet, cause I dont understand Python. where as with HTML and CSS (so far) It makes sense- I put in what I want it to do and what I want to be there, and it works.
Distill this to help understand...
What you understand is web design or, more generally, making documents. Using HTML is basically like a "more technical" form of making a Word document.
What you don't understand is programming. Or more generally, making software.
Yes, I would say that is correct.
I dont understand how software is created,
but i understand web design a bit more -
@WrCombs said in Where to read Code? or Best practices to Learn Code?:
SO - How do I start?
if the answer is python, skip it. because I'm already in the classes for python.It is, the answer is "stay focused." If you want to try to learn programming, you need to push through till you understand.
If you don't want to learn to program, then stop and focus on something else. Don't just stop and start programming over and over.
-
@travisdh1 said in Where to read Code? or Best practices to Learn Code?:
Static page, stick with HTML. Dynamic stuff, PHP with MariaDB.
But to explain this...
Web design is ALWAYS making HTML. Always, no exceptions.
Then why PHP and a database? Because making HTML is "making a web page." Writing a web page generator in PHP is "writing software to make a web page for you."