Among all the web coding I have done this semester. This was by far the most familiar. It seems like every program relies on an if….else statement. And since life revolves around “choices and consequences”, it’s reasonable for a computer to think this way as well. The best part about this code is that you get to output whatever you want in a program provided conditions are met. The difficult part however, is when the computer doesn’t pass the conditional statement due to either a problem in the variables being tested, or the statement has a syntax error.
Author: Rey Manangan
PNG vs. GIF vs. JPG(mod3)
As of February 2019, this is the first time I am trying Photoshop. I played around with the tutorial photos and I am using one of them as a test. Three variations of the image include one that is in a PNG format, GIF format, and a JPG format. As I said this photo is not entirely mine, I do not own the rights to this photo, I simply wanted to see what happens if I changed the format.
I’m just going to jump right in into it. Among the three formats, GIF is the best one. The quality and transparency are basically the same when uploaded (even on a mobile device). Though, the download speed varies. From best to worst it goes: gif as the best, jpg in the middle, and png as the slowest.
Variables in JavaScript (mod3)
The most fundamental thing to learn in programming is how to set variables. Just pair two words or numbers together with an equal sign in the middle ( var something = “something else”). Of course there are certain rules with data types like: strings need to be in quotation marks. But, it’s not to difficult or thought provoking. Every program starts off with needing to set variables. My only complaint is having to display them. As someone who has been doing object oriented programming his entire college profession, you’d think that this would be simple. Apparently the rules aren’t the same for all languages. Calling one variable from a statement with multiple variables in it is the easy part. The challenge is calling all variables from that one statement (yet to figure out).
Introduction to JavaScript(mod2)
This is a relatively short blog post mostly because nothing really much is new. Have I had experience with Java? Yes. The tiniest of experience, but still experience. I am familiar with basic java, but it’s been a while so don’t expect even half a web page. Point is I haven’t dived deep enough into JavaScript to know anything really. It seems basic and similar to everything that I have done in the past. But we haven’t even touched the complexity of it yet and I’m looking forward to learning more. I do have to say that it does feel a bit different working on web pages with JavaScript than on general programs with Java.