Choose Your Theme
Warren Shea

Archive for the ‘Development’ Category

I feel unsettled. The question is: why?

Friday, September 3rd, 2010 at 1:51 am

Every once in a while, I have days where something doesn’t feel right. I’m unsettled. And I have no idea why…it’s sort of like depression but not quite…

It’s a feeling of…being unsettled, I don’t quite know how to explain it better. I start to question myself:
Is this where I want to be? Is my life on the right track? Why do I feel this way and how can I fix it?

The result is quite a bit of introspection.

So I’m going to write the things I thought about today…in a good day of self-reflection and self-analysis.

Work
I was feeling unsettled at work. Questioning if I’m where I want to be. I looked at the projects I’ve done and the projects that I’m looking forward to doing. The result was pretty disappointing. The projects I’ve liked have been the ones that I’ve started on my own, because I thought things could be better or streamlined. Or because I thought it’d be fun to develop, so I threw a business case around it :) The fun I have at work occurs when I make my own projects. When I look towards the future, are there enough interesting projects to satisfy my professional interest?

There are a lot of PROs of my current job and few CONs (everytime I make PRO CON lists, I think of Rory in Gilmore Girls…I remember her saying “Do not mock my Pro/Con list”…I ask the same of you as well).
PROs:
– I work in a centralized internet web team. What this means is that, from a learning perspective, I’m able to use, understand, and learn from various content management system. Well over 10 in my 3 years with this group. We work on tons of different platforms, sites, languages. I’m worried that if I were to go somewhere else, I might only be exposed to a few systems. What if they aren’t what I like? What if the tools are terrible? A strong reason why I like this job is I’m learning about a lot of things, learning from tons of different directions. Being a jack of all trades, my forte.
– I’m part of an internet team meaning: my stuff is public. And I’ve thought about this a number of times, I would not want to do intranet stuff. I enjoy being able to look/show others what I’ve done if there’s an internet connection available. I like that I can put things in my portfolio or resume that I’m allowed to. If I did intranet stuff, basically ALL my stuff would be locked down. Unable to show anyone or discuss.
– I’m in a team that, while we use outdated CMS systems, also explore new and exciting things around the web. Social media (Facebook, Twitter, Blogging) for example, maybe something with mobile devices, it’s the web…but a different part of the web. It’s brand new and exciting.

Basically, of all the places inside a large corporation that I could be, I’m exactly where I want to be. An important member of the main internet web team.

CONs:
– Working on an internet team means that you can’t use a lot of the technologies/techniques out there. A glaring one is PHP. We will NEVER do anything in PHP because of the lack of support. It’s disappointing as it’s something I would like to learn more about. Granted, I’m able to develop in PHP internally but that means the only time I would use it would be for a personal/internal project. And I do not want to do intranet stuff :P
– I’m starting to get tired of doing work below my skill. Granted, I’ve gotten less and less of that within the last few years but even the mindless jobs that I didn’t use to mind are starting to bother me. I ask myself “why am I doing this? is this what I want to be doing?”…which led to the last piece of written text.

There are more PROs, being close to home, flexible hours, being able to work from home, being one of the most important developers on the team and having the ability to pass off the crappy work I don’t wanna do delegate.

It looks like there may be lots of exciting, interesting work in the future for me so…to answer my questions:
Is this where I want to be?
Right now, the answer is yes.

My website: Themes
It’s pretty obvious that my themes idea has been a failure. It’s not like I haven’t been doing anything with my site. I’ve been blogging somewhat consistently though I haven’t been updating other aspects of my site like I usually do. The various sections, Hobbies and Projects, Gallery, and Language Reference are updated slowly and in some cases, never (poor Language Reference section :( ). It’s been so difficult doing/conceptualizing themes and I finally figured out why.

The difference with my site and http://www.csszengarden.com/ is that my site is ultimately more complicated. The buckets of content change frequently and there’s only 1 level of navigation. I’ve wanted to make 2 levels of navigation but it would be impossible to develop any kind of functional/interesting navigation that’s compatible with multiple CSS files. I would want a jQuery or DHTML or JavaScript navigation…but would that be adaptable by simply changing the CSS? The answer is no. Not only the navigation but the other aspect that would trouble me in the “Choose your theme” menu. Building it with my Blogger theme is easy, they’re just links. But even my Megaman theme, with the buttons, animated gif during mouseover….to create that solely with html and CSS would be impossible. So how did I create it? it’s a function in JavaScript. What’s preventing me from calling functions to create the menus in JavaScript? Nothing…except it’s ridiculously annoying to document.write HTML in a JavaScript file/syntax.

And so, I had an epiphany. But I’m slightly embarrassed as to why I didn’t think of this earlier. I will create the navigation and choose your theme…in PHP during the rendering of the site, and not have it created client side with JavaScript. Why didn’t I do this earlier? It goes against the CSS Zen Garden concept…which is what the themes idea is fundamentally about (that the site can change entirely with a simple change of CSS). But I’ve come to the conclusion that I will have to leave behind the resolve of mine to mimic that style of site if I truly wish to create an interesting, dynamic site with different types of navigations and different site personalities.

I’m going to spend my next major site updates converting the navigation and choose your theme code to be built in PHP and not JavaScript. With the ability to create new, interesting navigations and choose your theme menus, as complicated as I wish, I no longer have to think inside the box regarding the different themes I wanted to do. It will make the concept I have for the Naruto theme, and other themes I have in mind, way better.

My website: Content
I’m planning to restructure my site and its content in the near future. I’m unsatisfied with the navigation and the tabs. I’m limited to the amount of horizontal space on a single line for the navigation. I want to change that.

Home/Blog
About me – Portfolio – Resume
Hobbies & Projects – Galleries
References and Links – Language Reference – Site Reference/Links
Basically…4 buckets? I don’t know, I just made that list up on the fly…I will give it more thought. I definitely see that my site is….organizationally challenged.

I dislike the number of files I have, the number of if statements for editing content. I dislike that this site doesn’t really use a database and that my galleries is created with some PHP and creative client side thinking. It still doesn’t compare, efficiently, to what could be done with XML and AJAX, something I might pursue for my gallery. I need an easier way to update my pages…a CMS maybe but I doubt it’s worth it to build that. There are other projects I’d like to do….

Personal happiness
Going back to feeling unsettled, I always question my own personal happiness. When I was younger, I used to play this “why?” game with myself. I would say a random statement and ask myself “why?” repeatedly and I would ultimately always find my own personal meaning of life. For example:
1.
Warren A: I buy toys.
Warren B: Why?
Warren A: Because I enjoy displaying them, looking at them.
Warren B: Why?
Warren A: Because it reminds me what it’s like to be a child.
Warren B: Why?
Warren A: Because adults generally tend to forget the child within them, it’s something I never want to do.
Warren B: Why?
Warren A: Because it’s a time of innocence, a time of pure-hearted fun. The feeling I get when I’m reminded of a time like that is precious to me.
Warren B: Why?
Warren A: Because it makes me happy. And living a happy life is important to me because why would you want to live life any other way?

2.
Warren A: I work.
Warren B: Why?
Warren A: Because I need money.
Warren B: Why?
Warren A: Because money pays for food, shelter, and fun. Without money life would be difficult.
Warren B: Why (is that important)?
Warren A: Because I don’t want to lead a difficult life. I want one free of monetary stress. Because having more money will ultimately make me happier than not having it. And living a happy life is important to me because why would you want to live life any other way?

…..Okay, I think it sounds better in my head than written out. The idea is that fundamentally, you want to make yourself happy (that doesn’t sound right :/ ). Life is what you make of it and quite possibly THE underlying goal in my life is to be happy in it. And if I have to work hard or sacrifice things to achieve that, so be it. But I do believe you can work hard and still do something fun, something that makes you happy. Which is why I’m a web developer, combining hobby with profession. I wouldn’t have it any other way.

Conclusion
Back to the original issue…on a day like today, where I feel unsettled, I ask myself: Why? Why do I feel this way and how can I fix it? And when I look at my life and it’s fundamental goal of being happy, I don’t think there IS anything to fix. I’m in good health (for now). I’m in a stable, long-term relationship. I have a stable job that I enjoy. I have friends, family, pets. I do have any worries. I don’t have anything to complain about really…So why do I feel unsettled?

The truth is that I can’t come up with anything. So maybe nothing’s wrong.

.
.
.

I took a nap when I got home, after feeling unsettled for about 10 hours. And after a 1 hour nap, I felt fine. Looking at the world through refreshed eyes. Honestly, the only reason I can think of as to why I had this unsettling feeling…was a bad night’s sleep.

So that answers the titular question.

/poor climax is disappointing

Does using WordPress mean you’re not a great developer?

Wednesday, August 25th, 2010 at 12:38 am

I’m looking at someone’s site and wondering how good her development skill is. I look at the source code…and there are proper DIVs, CLASSes, IDs, a Doctype….it looks good…but I see “wp” and “wordpress” littered throughout the site and I think: How much of this site is done using WordPress as the primary focus of development and how much of this site is done with straight code/the developer’s work.

My site for example, uses WordPress, but there is not a single instance of “wp” or “wordpress” in my code other than
1. Links to other sites using WordPress
2. The WordPress Stats tracker

I use it ONLY for the blogging functionality, not the pages, themes, etc.

Again, this site was built integrating WordPress into my site and code, not the other way around (using WordPress to build a site).

Anyways…looking at this potential web developer, I can’t gauge her strength (in front-end web development skills). Who’s doing the developing? WordPress or her? I know I can’t see server-side code but WordPress is done in PHP…does she know PHP?

Back in the day (yeah, I’m old, what of it?) I could tell a good web developer from their code. But it’s harder now…though not impossible. WordPress has certainly made making websites easier…for the under skilled. But what does it say when a skilled developer uses it? I guess it says “I wanted something easy to use, something that already exists and that I don’t have to build myself”. Which is logical but…if you’re a developer, shouldn’t using a web tool be beneath you? Like if I used FrontPage or Dreamweaver design view to build my site, can I really call myself a web developer? When the tool adds unnecessary, unwanted <p> tags, <span> tags, doesn’t close <ul> and <li>…and if you can’t figure out, through the code, why the page looks good in design view and not on the browser…are you a developer?

I guess what I’m saying is that WordPress makes it harder to judge a person’s skill based on their code.

No real insight there -_-;

warrenshea.com, warrenshea, and Google Chrome

Sunday, August 15th, 2010 at 5:19 pm

I’ve decided to start trying to use Google Chrome a bit more, give it a chance as my default browser over FireFox.

There are quite a few interesting things (PROs)
1. typing words into the address bar performs a Google Search is one of them…that’s friggin awesome.
2. the UI is smaller, about 1/2 in size.
3. it’s faster
4. it’s seems to Crash less. Firefox has been crashing, for no reason, lately. It’s annoying!

CONs
1. No FireFTP, FireFox Developer Toolbar…need to find equivalents or something

Also, my site currently doesn’t render so well in Chrome. I have to do some debugging….which I’m doing right now!

I just learned about CSS Hacks for IE8 and Chrome. I knew them for IE and IE6…

#footer-container {
_margin-top:-214px; /* for IE6 */
*+margin-top:-214px; /* for IE7 */
margin-top:-212px\0/; /* for IE8 */
}
body:nth-of-type(1) #footer-container { /* for Chrome */
margin-top: 0px;
}

Damn….on my list of things to learn:
CSS3
HTML5
jQuery
ASP.NET 4.0

It’s difficult staying current, especially staying current on so many languages/techniques. Like I told my co-worker, being a jack of all trades does not work as a professional. You have to pick 1 or 2 things and devote yourself to that…now…what do I devote myself to? I don’t know….

I like being a jack of all trades :'(

PHP > ASP.NET? + SWFObject + Google Javascript Libraries API

Tuesday, August 10th, 2010 at 9:15 pm

Actually…I’m not entirely convinced of the above statement (PHP > ASP.NET). I just know that within the last week, I was building something in ASP.NET. Today I was building something in PHP. Both were simple CRUDs…actually, more like C(reate) R(etrieve) U(pdate)s…(btw, the D(elete) is the last one). And PHP was so much easier to develop in, a bit harder to debug (my errors consisted of: Parse error on line: #) but….everything is just so much faster and simpler!

Even with drag and drop controls, Visual Studio design view, etc…I found it more fun and easier to develop in PHP.

Anyways, it was good to develop in both and stay away from ASP Classic.

I developed some good PHP today, finished what I needed to do. Back to my .NET project!

Man…I walked home today and thought of 2 other things to blog about but I can’t remember them now that I’m at home >:( I’ve got some defective RAM and the only ROM I came across was the Royal Ontario Museum.

OMG i just spent like, 20 minutes putting that button in…the reason was that this google page:
http://code.google.com/apis/libraries/devguide.html#swfobject has some code,
load request: google.load(“swfobject, 2.2″);
but they forgot 2 quotes, it should be
load request: google.load(“swfobject”, “2.2”); !

DAMN YOU GOOGLE! HELP ME OUT AND FRUSTRATE ME AT THE SAME TIME ! If you weren’t the best (minus Wave and Talk), I’d hate you! But no…I (would) still love (to work for) you.

/malnourished. will develop for food.

Finally, a .NET project!

Friday, August 6th, 2010 at 5:11 pm

I’m excited! I’m putting my textbook knowledge to good use on a project that could be built in ASP Classic VB…but I thought I’d finally step out of my comfort zone and attempt something harder.

I’m excited, not only am I using .NET, I’m also learning about this Google Bar Chart API which lets me create an image like this:

Out of code like this:
<img src=”http://chart.apis.google.com/chart?cht=bhg&agent=jgcharts&chs=340×240&chxt=x,y&chf=bg,s,F3F3F3&chd=t:16.7,16.7,0,66.6&chbh=a,0,35&chds=0,100&chxr=0,0,100&chxl=1:|1.25%20%%20-%203.50%20%|%3E3.50%20%%20-%205.75%20%|%3E5.75%20%%20-%208.00%20%|%3E8.00%20%%20-%2010.25%20%&chco=0079C1&chm=t16.7%,000000,0,0,13|t16.7%,000000,0,1,13|t0%,000000,0,2,13|t66.6%,FFFFFF,0,3,13″>

I have plans to go to Taste of the Danforth today and Jersey Boys tomorrow…but in the meantime, I hope to be coding. I just know I’m gonna think about this project during these 2 events…it’s gonna pop into my head and my mind is gonna wander, thinking about solutions to the problem.

Excited! I <3 projects that motivate me. Especially when they’re work projects because I know I can’t not do it…I know my laziness, ADD, never finishing attitude won’t come into play here…because that sort of Warren only shows up during personal projects, not for work projects. /can’t wait to go home and code :D