Make Code Things Make Sense

Constructors. That’s literally what seems to be associated with our titles as web professionals. Mine, also – if anything.

And as such, we’re meant to build things. On the outside, the clients love seeing things planted and blossom. Yet if we, the developers, rip it apart: the fighter pilot/poker snub/veterans come out. We comment, ridicule, suggestions, praise, and everything in the form of communication. The critique. Especially when the project is at a toss off stage.

Even before then, the developers are meant to make the very barebones make sense, irregardless of whatever level or standard. Clear naming conventions. Well indented code. Things like that. It’s really important to make meaningful comments and other items of note inorder to keep balance and sense within the realm of the code because of
random occurrences, such as updates that need to be done. These little steps here will help us make a little bit more sense with our coding.

Proper Use Of Indentation
Just a good way to organize your condition statements and other gangs of functions, conditional statements, and other items of note. It just helps keep the code clean and reading won’t be such a problem. Won’t kill you to doing so.


Use proper naming conventions:
This pretty much goes without saying. Better to have a .article_div than a .big_center_thing anytime. Especially in both CSS and Javascript. In JS, I’m usually the..

[itemtype]_[whatitis]

…just to make sure that I remember what goes in. It’s also useful for debugging. Leave the mysterious names for your social aliases.  For instance:

var array_choices = [];

I’ll have a list of choices to make in the item. Has to be done this way because I’ll be using an array to iterate through several decisions to use for a user to choose from.

Proper Commenting
Always leave proper comments during your coding in anything that you do. There’s no telling what could happen down the line. Better to prepare for the worst than expect the best. Be descriptive as possible. One line should do it.

/* This is where I’ll be making an alert */
alert();

Sure it’s a dirty job to make things that make sense, but with these tips, there will be LESS confusion on the follow through. Who knows? you might EVEN save lives and not pull off dangerous maneuvers, Maverick.

 

 

Make Things Make Sense

Proto App Test Drive or The Day I Got Shout Out By Adobe (Review)

 

 

After Adobe’s recent moves to take the Flash out of mobile and acquired Phone Gap, seeing them in the App game is excitement within itself. Especially with a wireframe builder. Yes – an App that produces Information Architecture like it’s stuck at your desk, creating the site/app groundwork to alternative music and Redbull!

Adobe has produced an app called Adobe Proto for the Android 3.2.  And of course, I had to try it. The app is great and does alot of things right. Gesture created elements, various media aspect support. You can even do 960px layouts! There’s exporting also, which also you to create an HTML representation of what was produced. The other drawback? well, if you save that and upload it to Adobe’s creative barn, it may not be editable again. Even with the Creative Cloud link. That there is a drawback that needs to be addressed.

Outside of that… well, …

Test driving @adobe #proto with a real wireframe that I built... on Twitpic

 

And of course, I got a shout-out during my dental waiting game usage.

 

Yes, it felt great for just a second! :D As for Adobe Proto, I do like the current system build minus those small things. Still, a great idea to use this for a tablet build. Definitely worth the $10 purchase for anyone into the site planning game hands down.

Best used when you’re sitting down for a long period of time. :D

 

 

Stuff You Missed Sunday Sprt. I – The First Step Is Admitting.

 

Don't Drink And Code

Developers Don't Drink And Code... unless it's at #devTO


First off: Wished I was more consistent here. TOTALLY DO. I must have only threw up one or two posts since this year has started. One of them goes out to @maricelarivera.   Before I get into that, let me tell you about this whole Stuff You Missed Sunday thing. Really, Stuff You Missed Sunday encompasses posts from both my blog and of course, when I drop down and do a tumblr for that week. Just a recap of crap you DID miss because we all know that we’ve got better things to do than skip posts in RSS Readers.

  • HTML and How The Heck Do You Start is pretty much that ONE post that I procured all week long. I really thought that this needed to be said. As stated, I’ll probably make a part two or elaborate on the basis of the HTML journey. Too bad, I didn’t have this sort of post when I started coding about ’99 or so.
  • UI/UX Developer Darcy Clarke’s blog did get something very crucial out this week. Something that alot of people need to read. Thanks for this post, friend. I can relate completely. Usually, with me – my posts/ideas/concepts don’t even leave my brain. Something that I would like to stop doing, also.
  • And of course, #devTO is back! As Chris stated: developers don’t take holidays. #devTO is no exception. We’re getting into Silverlight Pivotal and client relations from three of our mainstays!  And you thought that December was nuts! Sprint IX has several new surprises, including our BRAND NEW SPACE! …but you’ll need to check out the post to see how Harth we get up to. January 30th is the date. Looking forward to it!
  • The Toronto Android Users Group is starting up on January 22nd. After a reboot, and installing some of the Android SDKs, I have to say that I’ll definitely be ready to get into it! :) If you’re coming, make sure you’ve got the Android 3.2(or Honeycomb) installed. As… I’m doing… right… NOW!
As for going forward, I have a few posts up for throwing up, in the works. I cleaned up my PC, so we’ll see if I can wow the crowd better this week!

HTML and How The Heck Do You Start?

Recently, a friend of mine asked about how to get into HTML and CSS. It’s her resolution. Codeacademy‘s many have ALSO asked the very same question as they created a resolution behind the idea.  Hopefully, there is a purpose towards learning HOW to HTML and it doesn’t start with “everybody’s doing it”. To generate content by oneself – makes sense. To keep it in reserves for when one needs to whip it out on a CMS that gives one the right to HTML in blog posts – cool. But to just have around because a certain mayor is doing it – doesn’t reaaaaaaally cut it. Coding usually solves problems with syntax and is a very useful skill. Just saying.

The way I started didn’t rely on websites, but a big book on HTML in ’99. Then, I started exploring tags, methods, structures, and the like. Mostly through geocities, homestead, and a slew weird video game website ideas. Actually taking courses was another good step which ultimately made me more aware of the skill that I needed. These days, it’s more expanded.

Hopefully, they’ll start these lovely people off with what the internet is. From its’ 1970s start up until its’ first graphical updo that transpired in the early 90s when HTML was taking shape and tags, such as the <img> one, were getting rules of engagement from BBS systems to form what we have today. Oh, I’m sure they go THAT far. As for myself, I’ll give a bit of what happens when sites are accessed. Then again, I still have to dig more into that myself. The conversations were very deep.

As the web is made up of a vast mass of computers connected to each other, think of it as a pretty much as a crapload of universes in Stargate. Browsers usually have a translator in hand for what browsers are about to give to the user visually. Or, Web Browser Engine, if you will.

Example: The Mozilla Firefox client is the prodominent user of the Gecko rendering engine, while Safari and Chrome use the Webkit one. Internet Explorer takes either the reformed Lynx version or Trident(as it did for countless years up to the recent 10 preview). And Opera uses Presto.  Because of some decrepencies, rendering engines differ in terms of how things are translated. From more padding on some elements to elements that have not received translations yet. Even different platforms do the same. Sometimes, web browser engines can be compared to a translator with a foreign language: some translators know certain words that others have yet to uncover.

Each of these computers have addresses, or IP Addresses and URLs. The web browser is similar to a Stargate, or a car dashboard, or door, if anything. After the address is plugged in, the browser takes the user to the address. This opens the universe with the computers files on hand in the folder where the address is pointing to. There is a default page chosen, which usually is index.html – which is coded in HTML or Hypertext Markup Language. They can made in Notepad, or editors like Adobe Dreamweaver to get a bit more help with the syntax.  Pages are formulated this way:

<!doctype “html”>
<html>
<head>

</head>
<body>

</body>
</html>

Instead of seeing disjointed sentences and egos of words through greater and less than signs, the browser acts as an interpreter for the pages that be. It translates the page’s tag markup into something more visual. Well, the body part.

<body>
<p>…that went well.</p> <strong>this is me bolding something</strong> and this is me <em>adding an emphasis to it</em>
</body>

Each of these things, like the <p>, are called elements. The body tag deals with visible elements.

The head usually is accessed first for meta information, the title, and any sort of behavior code, or javascript, that needs to be accessed prior to setting up the page.

<!doctype “html”>
<!– What type of document this is. The start of html according html5 standards. –>
<html lang=”en”>
<!– the first html tag that is needed on ALL documents(html5 declaration). –>
<head>
<title>That great site</title>
<meta charset=”utf-8″ />
<style>
/* ///// [ get the style] /////////////////////*/
@import “style.css”;

</style>
</head>

In a situation, where server-side code(where the code relies on an engine gives access to non-client side elements such as databases) is being used, it’s the same deal, yet the code(whether it be php, asp.net, cold fusion) is interpreted into HTML so that the browser can STILL use it.

When it comes to how the page loads, the content, or HTML, is gathered first to give the page a map to use.

Content is important. A page should always be laid out in a way where elements, that need to be first, SHOULD BE FIRST. I know, I know. Yelling – but seriously. If the stylesheet can not be acquired, at least the rendering will get these elements in the way they were meant to come together. The presentation and behavior come after this. Presentation being the Cascading Stylesheets, that creates the visual effect of the page through its’ own set of code. It controls font display, borders around elements, images, placement to a degree. Stylesheets are style guides in a way because they give out these rules for elements to
follow.

At times, the sheet is declared by calling it, or them, in a separate file, usually in the head.
<style>
@import “/style.css”‘
</style>
<link href=”/style.css” type =”text/stylesheet”  />

Styles are declared this way:
/* Making the paragraph tags turn into red and give them a different font type. */
p { color: red; font-family: arial;}

Behavior, Functionality, or Javascript as we call it, is used for functional issues such as getting Google Analytics or making a page have pre-loaders.

How one should go about building web pages: Well, remember the page’s basic framework. Then start with the html content to lay out what’s needed. When that’s good, get on to the css presentation to make the page look the way you would like. When the presentation’s all well and good, IF one has functionality that’s needed. Nowadays, JavaScript libraries, such as Dojo, Protoype, and the infamous JQuery, handle MOST of that, inorder to ensure that the page is ready before actions happen.

<script>
// Saying hello
alert(“hello”);
</script>

As for further reading material, I have several suggestions for the online part:
http://w3schools.com  to start one off right.
http://www.kirupa.com/
http://alistapart.com/
http://smashingmagazine.com/
http://sitepoint.com

If you’re into books: HTML Utopia: Designing Without Tables by Rachel Andrew & Dan Shafer from Sitepoint is a highly recommended title to understand the CSS portion of internet coding.

The latest version of the HTML markup is 5, but it feels more like a hodgepodge because there isn’t very much support for a certain features across browsers. XHTML(or extensive HTML) is a good point to go with, also.

There are many ways to learn how to HTML. As for me right now – hey, I gave a basic rundown for getting into it. Though validators won’t be around until the 2014, you could still use HTML5 today pending that one has a boilerplate attached to get browsers that AREN’T sending you updates automatically – if they didn’t exist. I’ll expand on it more in other posts.

Even #DevTO has a 2011 Recap Edition

2011, like any year, had the whole “get whatever we’d love to do happenin’” mantra. Businesses, startups, podcasts, blogs – stuff like that. As does any year past the ’99. At #devTO, we took that one seriously for the 2011th year.

… and it DIDN’T DIE!

http://www.devto.ca/2012/01/devto-a-year-later/ << you knew we had to pull that out. Even though #devTO technically had a bit of work done between a few members in 2010, 2011 was our official start. #devTO bro Chris Jones takes on the task of reviewing the year that produced our monthly event. We couldn’t have agreed more with the success and talks thus far – both dev and non-dev of course.

A bit of terminology here:

  • dev: The folks who procure code on a regular basis.
  • non-dev: The folks who do not. We still love you!

Going forward, we’ll just be better keeping the same structures intact. I was glad that there was a take-away from the sessions(or sprints). Whether it’s an idea for a web business, or a contact that you found hard to meet. There was always a possibility for a meetup at #devTO. Also, with the Toronto interactive scene, there is a possibility that the talks will cover it. That being said: anyone into Android robotics?

For anyone who’s still on the “Mondays aren’t good for me” rants: there will be a major alternative. For any other inquiries, check the website(devTO).