Choose Your Theme
Warren Shea

Archive for the ‘JavaScript / Java Frameworks’ Category

<in Orcish> Werk Werk!

Friday, March 18th, 2011 at 1:48 am

So the senior developer that works with me has gone on vacation this week so I’m helping out with 3 of his tasks.

And while the timelines are tight (one week) and as of today (Thursday), I’ve only fully completed 1 of them, I gotta say that I’m having more fun working than I have in months. I can’t disclose the nature of the projects for obvious reasons…but 2 of the 3 of them involve learning something new or building something interesting. And the third project, the one that doesn’t involve learning something new…likely won’t get done by the end of this week :D

Anyways, one of them, let’s call it Project X, involves
1. Developing in a better language than I’m used to.
2. Developing on a different browser and platform.
It’s just…different. Challenging but within my reach.
The best part is that I can apply the things I’ve learned in Project X to warrenshea.com. So I may do that in the near future. Again, I can’t tell you what I’m doing yet….be patient, I’ll reveal it in a matter of time.

So on Sunday-Monday, I worked from 2am-6am. That was brutal and pretty much messed up my day. Good thing for Overtime Pay :) Well, technically I slept from 6am-noon so I missed a few hours in the morning. But ah well, I made it up that night (had to do some testing from 5pm-7pm).
Tuesday – Worked from 9:30am-10:30pm on Project X (13 hours)
Wednesday – Worked from 9:30am-Midnight on Project X (15.5 hours)
Thursday – Worked from 9:30am-4:30pm on Project X, went to Richmond Hill to have dinner with my family (parents, niece, nephew, bro, etc.), came back, worked AND FINISHED Project X! WAHOO!
Friday (tomorrow) – Work on Project Y from 9:30am-5pm, go to a basketball game (Raptors VS Wizards), maybe go to a birthday dinner after, and then come home and hopefully work on Project Y
Saturday – Possible Birthday party (another one), possible Toronto Comicon. If I don’t do that, I’ll be working on Project Y.
Sunday – Project Y.

So Project Y involves (from a technical standpoint)
Taking a Querystring from the URL
Loading a server generated XML via a JSP (see next point) but using the Querystring from the URL (thus, using AJAX to generate the XML as it needs to be after page load)
The JSP loads the XML from a cross-domain XML (this must be done so that my page can access the XML and prevent the cross-domain issue)
Anyways, eventually I end up with the XML, unique to the querystring.
I parse it, output the content to the page. I need to create a paging system manually (I’m using only HTML and JavaScript here, no server side languages).
And done!

Well, as I wrote that out, it doesn’t seem hard at all. Time consuming, but fun. Not doing standard HTML/CSS/JavaScript….using AJAX, XML, Querystrings (in JavaScript)…it’s interesting.

Anyways, that’s Project Y. Sounds easy, the (not hardest but) time consuming part will be outputting the XML into the page…I did the same thing here: [Redacted] a couple years ago…that was fun. God, there’s SO MUCH JAVASCRIPT on that page. browserDetection functions because I didn’t know jQuery at the time. JavaScript AJAX calls because I didn’t know jQuery at the time. Multiple XMLs, JSON….I had months to do that thing. Project Y has 3 days. So I’m gonna work my arse off partly because of the responsibility I feel that I need to deliver to the senior developer, but mostly because I simply can’t wait to do this. Not sure how much I’ll learn but it certainly sounds fun. 2 days to do it is pretty tight, especially considering it’s the weekend and I might do other stuff on Saturday….but I’m always up for a developing challenge.

I swear, if I didn’t have to work the next day, I would have pulled all nighters doing what I was doing this week. I loved it so much. Coding all night, just me, my music, my text editor and my focused, enthusiastic, eager mind. It’s not everyday I’m so excited to do work after all…I may as well milk it.

Anyways, off to bed. Based on the amount of sleep I’m gonna get tonight…I predict being very tired for the Raptor game tomorrow. Stupid me. Seriously.

My Personal (Developer) Resolve

Wednesday, January 12th, 2011 at 1:31 pm

Resolve
To be awesome at (almost) all aspects in the limited stage of the web.

*The following is a list on all the web-related items that I already know, would like to learn, and have no interest in learning (despite being related to the web). Some points may not seem to make sense, that is because my knowledge in the area is so terrible that I don’t know what I’m writing >_<

This Resolve includes:

  • The ability to develop proficiently in various development languages, frameworks, and techniques including:
    • ASP.NET 4.0 C#
    • ASP 3.0 VB (Classic)
    • HTML5
    • PHP 5
    • XHTML 1.0/HTML 4.01
    • JavaScript
    • MS SQL (and mySQL)
    • Ruby (on Rails) (maybe…)

    • CSS2
    • CSS3
    • SASS
    • OOP
    • AJAX
    • JSON
    • XML
    • XSL/XSLT
    • DOM
    • DHTML

    • jQuery
    • Prototype (and script.aculo.us)
    • MooTools

    • Google Chart API
    • Facebook API
    • Twitter API
    • Google Search Appliance API

  • The ability to develop for major browsers including Chrome, Firefox, Internet Explorer, Safari and (maybe) Opera
  • Familiarity with Web Accessibility standards including:
    • WCAG 2.0 standards
    • CNIB (The Canadian National Institute for the Blind) Priority Level 2
  • Understanding of fundamental SEO principles and Analytic tools including:
    • Google Analytics
    • Google Search Appliance
  • Knowledge of various Content Management System and Web Publishing tools including:
    • Drupal 7 and Drupal
    • WordPress and Blogger
    • Vignette 7 and Vignette 6
  • Proficiency in various graphic programs including:
    • Photoshop
    • Fireworks

This Resolve does not include:

  • Mobile development (although this may change in the future)
  • Email development
  • Development of non-web languages including:
    • C
    • C++
    • Java
    • Visual Basic
    • Perl
    • Python
  • Development of non-web languages that are fundamentally from the list above including:
    • JSP (Java) (although this may change in the future)
    • Mason (Perl)
    • Django/Zope (Python)
  • Development of supporting web languages:
    • ActionScript
  • Proficiency in web-related tools including:
    • Flash, Premiere, Illustrator
    • Silverlight (although this may change in the future)

What’s next (for me in web development)?

Thursday, September 16th, 2010 at 5:54 pm

So, the last few days I’ve learned a couple of things
1. My fundamentals suck. I don’t read any books, other than the ASP.NET one that I’m “currently” reading. I never read any html, asp, css, javascript book or anything. Everything I’ve done, everything I’ve learned my entire web career has been self taught or looked up, ie: I look up what I want to do, do it, and learn that “method” and use it elsewhere. For example, if I wanted something to loop, I would look it up.
Learn about for, while, do while. Make my change that needs the loop. And down the road, apply my knowledge to something else.

What this means is
a) I’m strong because I’ve looked a lot of things up.
b) I’m strong because I’m good at thinking outside the box…because I’m able to apply what I know creatively to get something accomplished. And if I can’t think of a solution like that, I look it up and add to my knowledge base.
c) I’m weak at fundamentals. I don’t know the “right way” (by that, I mean, the shortest, most efficient way) to do things because I find creative workarounds to accomplish the same thing. Like when I built a calendar from scratch. A feat in itself but time wasted when I could have used a control or other source code available.
For example: I didn’t know what display: block did. I thought it was just the opposite of display: none. I thought everything was inherently display: block’ed unless you specified display: none, which would hide it. I never learned what display: block was, I just guessed it’s functionality based on some use and the difference between that and display: none.

Conclusion: I will begin my re-education and buy/read some books on: CSS2.
I will learn CSS3 and HTML5 from a book so I get my fundamentals down. From there, I’ll continue learning what/how I currently learn….which brings me to my next point.

2. I’ve often wondered if I should move away from front-end web development and move to back-end. I’m good at both, stronger on front-end (that’s my job). But front-end does get kind boring in the way of “deep” thinking, something I really love. I thought I’d learned enough about front-end to try something more complicated…but because of 1 (above), I realize I’m not as strong as I thought, maybe there’s still room to stay in the front-end side. The thing is, with CSS3 and HTML5, where HTML5 is fundamentally different from HTML 4.01 and XHTML 1.1, there’s still a lot to learn. I imagine HTML5 will bridge the front-end and back-end development sides…but since I don’t know too much about HTML5, I can’t confirm that statement.

Conclusion: I will continue what I’m doing, both front-end and back-end. I will try to learn CSS3 and HTML5 early and decide whether or not it’s enough to satisfy my “deep” thinking. I will start working on something more complicated to fulfill my back-end need…which brings me to my next point.

3. I’m getting bored with warrenshea.com. Not in terms of blogging, but in terms of updating the site, creating themes, in terms of content/difficulty. I’ve launched 2 themes in the last week, I probably should have staggered myself, but there isn’t/wasn’t any challenge in doing my gmail theme. The idea was fun, the design was okay (like always), but the development was tedious. There are 4 themes I want to do still but currently have no motivation to do any of them. They all include a little “quirk” which would make the development interesting…but not interesting enough.

Conclusion: I think I’ll take a break from warrenshea.com for a bit (again, not the blogging aspect). I’m going to spend more nights re-re-re-re-catching up with ASP.NET….and planning the “EPIC SITE” site I want to build.

I know I write that ever 2 months but THIS TIME I MEAN IT :@

Is there a better way to code this?

Friday, June 4th, 2010 at 11:08 am

(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;

I’m just joking That’s just the first part of the jQuery framework :)

I pride myself in great, but not perfect code. I like doing things right, efficiently…the best I can given the situation, deadlines, etc. Obviously the code CAN be better as I’m not a great developer…but I do the best I can so even if there are flaws in code, it’s done to the best of my current abilities and I’m proud of it.

Sometimes though, I get really wrapped up in my current way of thinking…and I forget to take a step back away from my code and ask myself if it’s good enough, adaptable enough, reusable, etc. For example, I developed something a year or so ago. I was very happy with it but it wasn’t adaptable and efficient. Yesterday, I took the same code and cut it down to 20% of what it was originally…which is a lot and kind of shows you how poor the code was before.

Anyways…sometimes you have to take a step back, take a break, look at code after 30 minutes or a good night’s sleep…to really make it great. A weary mind from all-nighter coding just dulls your mind and standards. Too much enthusiasm leads you to impatient and inefficient coding. Like when you code poorly just to get something to work…and then don’t go back to fix it and make it efficient because of deadlines, etc. Sometimes it’s just too much fun to try to solve something, no matter how it’s done. But really, it’s good to go back after you’ve solved the problem…and make the way you did it better.

/urge to blog during work is bad…i was working so well this morning too -_-;

Damn you syntax! Why you gotta be all…similar but different

Wednesday, May 12th, 2010 at 11:59 pm

ELSEIF or ELSE IF?

do IF statements need END IF or can you just use parenthesis { }

OR or || ?

AND or && ?

!= or <>?

NOT(statement) or !(statement) ?

Why is x=y sometimes a comparison, not a declaration (it might be just VB that does that?)

VB uses &, PHP uses ., JavaScript uses +…C# uses…I don’t remember… + I think? Why must concatenation have so many different methods

” or \” or “” ?

<!–– ––> or <%-- --%> or /* */

‘ or // ?

Don’t get me started on Arrays! Sometimes Dynamic, sometimes size is fixed…then there’s ArrayList…

I just want to code but I always get caught up in incorrect syntax. I should really finish my Coding Language Reference. It’s really frustrating knowing what to code but getting caught up on “grammar”.

Like, I know how to eat and apple but I don’t know how to cut it or bite into it or liquefy it…or…that’s a terrible analogy

I’m feeling a dry spell of good posts lately. This is no exception.