Tuesday, July 26, 2016

PHP and Forms

Knowing how to use PHP to request/send data to a server and specifically process or collect form data is very important, seemingly a top use case for a typical website.  It's been valuable to brush up on my use of forms elements and attributes, as well as learn more about PHP.  This week, we've primarily used arrays as well as $_GET and $_POST to collect form-data.  $_GET reveals its data in the URL, so I tended to not want to use it in favor of $_POST.

I've been working at an internship over the last several weeks.  Last week was rather rough, and now I'm delayed in completing this week's assignment, which is disappointing.  By tomorrow, however, it should be ready for submission.

Tuesday, July 19, 2016

Intro to PHP

Learning PHP is delightfully less challenging than I thought it would be, given I've already studied other programming languages.  It's definitely the case that each new language approached is easier to use than the one prior....  Some idiosyncratic syntactical quirks include the period-style concatenation.  Otherwise, there is always the $output = sprintf("With result: %s and %s", $var1, $var2);

Also, PHP doesn't seem very strict, which actually may make things more difficult in a way....  We'll see.

I'm working on a program that will try to utilize global, static and local variables, reviewing the differences and ways to utilize these, but within multi-nested for loops and conditionals, it has sometimes been difficult to determine with certainty.  Specifically, I'm producing a labyrinth for this week's assignment.  So far, I have not been clever enough to give it a randomly generated circuitous pathway, as I had intended, so it's not very impressive and merely showcases the elements, variables, loops and statement types we're studying this week.  While it looks pretty pathetic, it's actually been fun to try to see how many ridiculous conditionals I can produce in the futile attempt to make it challenging.  Here is one random instance; just imagine really high walls and intimidating creatures roaming within:

Tuesday, July 12, 2016

Internet Programming!

I didn't think I wanted to pursue a career, specifically, in front-end web design and development, but, I must say, writing HTML5 (Hypertext Markup Languge) and CSS3 (Cascading Style Sheets) this week was a lot of fun, very enjoyable.  My personal website utilizes the bootstrap framework and showcases links, tables, images, various other elements and attributes and a little bit of CSS3's WebKit for Safari and Chrome.  My goals were to keep the DOM organized, without redundant or thoughtless markup, and to imitate something of the look of modern web design.  There's room for improvement in these respects, but I'm happy to have produced this product and am inspired to write more and keep it up.  Also, I've set up a foundation on which I could add JavaScript or JQuery, in the future.

Configuring a connection to the host on Aptana wasn't difficult, but maintaining the file path in the Project Explorer was, somewhat; like Eclipse, with which I have some experience, it's rather finicky.  I've got what appears to be duplicate paths, where one is the remote and the other local.  I work in the local system, which saves to my computer, and then synchronize the two, via the latter's connection to the host, to push changes.  (On one occasion, I had re-opened the closed software to find my web project had disappeared -- this probably due to an issue with space on my hard-drive(!) which had caused my computer to crash and not save properly -- so I don't know if my re-writing the files or re-downloading them from the host was a causal factor in all this or whether it is always the case, regardless, so I'll need to look into it further and hope there aren't any issues going forward!)  Otherwise, Aptana's predictive text capability, if you will, is really, very convenient, as is the sort of confirmation it gives of the validity of elements and attributes.