DPC Radio: Profiling PHP Applications

Derick Rethans

The web is full of useful advice focussed on pushing out the last bit of performance of your code. They mention trivial changes. like changing every occurrence of print with echo even suggesting to use for instead of foreach. These optimisations help, but you are not going to notice it unless they’re in a tight loop with many iterations. It is also a wrong approach for tackling performance issues. Before you can optimise, you need to find out if your codeis actually slow; then you need to *understand* the code; and *then* you need to find out where you can optimise it. This talk introduces tools and concepts to optimise the optimisation of your PHP applications.

You can find Derick’s talk slides over on his site [PDF]

Digg This  Reddit This  Stumble Now!  Buzz This  Vote on DZone  Share on Facebook  Bookmark this on Delicious  Kick It on DotNetKicks.com  Shout it  Share on LinkedIn  Bookmark this on Technorati  Post on Twitter  Google Buzz (aka. Google Reader)  
Posted in DPC Radio | Leave a comment

RESTful Delete with SLIM, jQuery and JSON

Original Post. Click here to see the video.

RESTful Delete with SLIM, jQuery and JSON

flattr this!

 

Posted in All Podcasts, video | Leave a comment

SitePoint Podcast #142: The Last Panel of 2011

podcast-default-115x115

Episode 142 of The SitePoint Podcast is now available! This week the panel is made up of Louis Simoneau (@rssaddict), Stephan Segraves (@ssegraves and Patrick O’Keefe (@ifroggy).

Listen in Your Browser

Play this episode directly in your browser — just click the orange “play” button below:

Download this Episode

You can download this episode as a standalone MP3 file. Here’s the link:

Subscribe to the Podcast

The SitePoint Podcast is on iTunes! Add the SitePoint Podcast to your iTunes player. Or, if you don’t use iTunes, you can subscribe to the feed directly.

Episode Summary

Here are the main topics covered in this episode:

Browse the full list of links referenced in the show at http://delicious.com/sitepointpodcast/142.

Host Spotlights

Interview Transcript

Louis:: Hello and welcome to another episode of the SitePoint Podcast, we’ve got a panel show this week, Patrick and Stephan are on the line with me, hi, guys.

Stephan: Hey, Louis:!

Patrick: Hey, Louis:!

Louis:: Our newest member of the panel, Kevin, could not make it this week so there are only three, but we’ve got a lot to talk about so I reckon it will be a good show.

Patrick: Yeah, we didn’t like him so we kicked him off the show, no, (laughter), just kidding, just kidding.

Louis:: That’s not true.

Patrick: No, that’s not true.

Louis:: Kevin’s great and he’ll be back next panel show which I believe will be in the New Year because next week I’ll be doing an interview and then we’ll be taking two weeks off for the holidays.

Patrick: Yes, two weeks vacation that we get every year (laughter).

Louis:: Well deserved, it’s been a great year of podcasting.

Patrick: Excellent, yes. You joined the team, so.

Stephan: It’s hard to believe it’s been a year.

Louis:: I don’t even remember when I came, when I started doing the podcast.

Patrick: I don’t know, we’ll have to look that up, but –

Stephan: We’ll have to look that up, yeah.

Patrick: It was in 2011 I’ll tell you that.

Stephan: (Laughs) Thanks, Patrick.

Louis:: It was #110 on the 1st of May 2011.

Patrick: May 1, 2011, excellent. So a good seven months into the show come January 1st. And of course you had been kind of the interview host in some ways; Kevin had secretly snuck you in.

Louis:: Yeah, I’d done a couple of shows before that.

Patrick: To do some of his work (laughs), and then we brought you on officially, so, excellent!

Louis:: So this makes it the last panel show of the year so the pressure’s on, but we gotta kill it.

Patrick: Yes, absolutely, let’s kill the show.

Louis:: (Laughs) with that in mind I’ll throw it to you, Patrick, for the first story.

Patrick: Cool. So my story is about Firefox, and Firefox is my browser, I still have not yet downloaded Chrome. Actually I said on this show that I was going to finally download it, and to test a bug, but the person emailed me back and said the bug has resolved itself (laughter), so I still didn’t need to. But plenty of other people are downloading Chrome because according to Statcounter.com it became in November the second most popular browser in the world, behind IE, and got ahead of Firefox; it has overall the market share of 25.74%, Firefox, both versions 3.7 and 4.0+ are down to 25.24%, so Chrome is up .5%, half a percent, and Firefox lost a full percent of ground, more than a full percent of ground in just one month with Chrome gaining .69, and I guess, finally, it’s been on a steady ascent, achieving that number two browser mark. And I guess one of the things I’m wondering about Chrome is does it have the metal, I guess you could say, to challenge Internet Explorer. Internet Explorer did see a gain in November as well, it went from 40.18 to 40.63, it say a marked gain in the U.S. going from 46.11 to 50.66, so a 4% gain in the U.S., but then again Chrome hasn’t lost in months and months it seems, it just continues to go up. So, can Chrome challenge Internet Explorer?

Louis:: To me the interesting thing here is I always see the Chrome and Firefox use as sort of being championed by the more techie crowd, and they’ll get all their family and friends to upgrade their browsers and to switch away from IE, and I wonder if that’s going to be slightly less the case with the new IE, right. From IE9 and IE10 we’re seeing great performance, good security, good support for standards, and I’m wondering whether if someone gets a brand new Windows computer tomorrow would you be less likely to try and get them to upgrade or switch their browser than you would have been five years ago when someone got XP with IE6.

Stephan: That’s a good question.

Patrick: That’s a fair question. I don’t know the answer to that question.

Stephan: Well, it’d be really great if we could see the numbers on how it did with the conversion, it’d be awesome; I’m sure Google wishes they knew what the conversion rate was on different things because I notice in certain plugins that Google has, like Google, I think it’s Analytics, they — I’m using it in WordPress, and if I use Safari it pops up and tells me that I’m using and outdated browser, the AdSense, or the Analytics plugin for WordPress. So, I find that interesting, so do you think like people that are publishing websites using WordPress or some kind of plugin that Google makes are getting these popups and going, hey, I’m gonna go download that because it’s from Google or do you think that it’s really family members that are driving this?

Louis:: Yeah, maybe, there’s something to be said, I mean Google did put out a pretty significant marketing push for Chrome, they did some ads, they did some TV ads, and I think the Google name resonates for a lot of people with respect to the Internet, and it gives you an impression, of speed at least, that was considerable I’d say a year or two ago; I think the other browsers have sort of caught up now. Yeah, I’m not sure, I mean personally like you, Patrick, I’m a Firefox user, and I’ve switched to Chrome on my work machine because I have a lot of stuff open and it’s kind of a little slightly underpowered machine, and I find that Chrome does better on limited resources, but on my home machine which is a pretty powerful box I use Firefox because I just prefer the feature set. To me it seems like it was definitely a hugely important thing for the Internet and for us as web developers to have at least one browser that wasn’t put out by a private company with ulterior motives. And I think Firefox is super important on that respect because the Mozilla Foundation’s only goal is trying to make the Internet better and trying to advance standards, so I think it’s super important that they stick around at the very least, so hopefully Chrome won’t put too big a dent in.

Patrick: Yeah, it’ll be interesting to see what exactly I guess the plateau is for Chrome because looking at the chart I mean it’s just been up, up, up, up, up. It has gained year over year about 13%, 12 to 13%, and that’s come directly from Firefox and IE; Firefox has fallen 6% and IE has fallen about 8%, so 8+6, 14, 13% gain, I mean it’s coming right from it, so I don’t know what the plateau will be for Chrome but it’ll be interesting to watch I guess.

Stephan: The gain is about to be the Chrome version number, I mean once they hit 15% gain, you know, we’re on Chrome 15 now, so; every show I bring this up, any show that we talk about Chrome I gotta bring up the version number because they’re like on version 15 and we’re on IE8, you know (laughs).

Patrick: Maybe that’s how they have to dumb it down, that’s how they have to dumb down the marketing. Is IE on version 9, version 10, what is that, those are pitiful numbers, we’re on 30 America, the world; we are double what they are!

Louis:: Chrome doesn’t really advertise its version number at all, like you have to dig a little to even see what version, you go onto the website and you just download Chrome and it updates itself in the background, you don’t even know you’re getting a new version.

Stephan: Exactly.

Patrick: Yeah, that’s a good point, good point.

Stephan: Isn’t that the way Firefox has kind of gone?

Louis:: Firefox is doing that but it’ll still tell you, it’ll still, like it told me recently we’ve recently updated to Firefox 8, you want to restart and it’ll be running. I still think the background way of doing it is probably the best because it allows them to push across updates rapidly and transparently without disrupting users.

Stephan: Yeah.

Patrick: Right, yeah, just to draw a conclusion to the numbers, I mentioned the U.S. numbers, IE’s like 50.66, Firefox is still number two in the U.S., 20.09, and Chrome is third at 17.3, and where Louis: is, Australia, IE has a 40.72, Firefox
23 ½ almost, and Chrome just almost 21, so, Firefox is still number two in the U.S. and in Australia.

Louis:: Where are those gains coming from for Chrome?

Patrick: Well, Chrome is strong in the UK, I know that, I pulled up the numbers for the UK as well, IE is 42.82%, Chrome is number two, 24.82, and Firefox is 20.56, so Chrome has been number two in the UK for a few months, since July; so that’s one country where they are strong. I don’t have an easy way to look at necessarily which countries they’re the strongest in, but the UK is certainly one area that they are leading the way and are just, looks like, 18% below IE. So, yeah, I guess part two of this discussion that I wanted to bring up is an article about — at ReadWriteWeb by John Paul Titlow, the headline was, Is Firefox Doomed? And there are two reasons he asked this question, first, of course, is the market share slip, and then second is that Mozilla’s three year partnership with Google is coming to an end or has come to an end in November. Back in 2008 they signed a three year deal for Google to be the default search engine in Firefox, and Google has contributed about 84% of Firefox’s total revenue during that span. Three years is up, the deal is up, haven’t heard any news about it being renewed, so you have a sizeable chunk of the money that, I guess you could say powers Firefox, may disappear. Now, he says Microsoft might just jump right in line to pick up if Google lets that lax and take that default search engine mark from Google, but right now there’s no news about that. So, is Firefox in trouble or did Firefox accomplish its goal?

Louis:: Like I said before, I think it’s hugely important that there be an independent browser on the market, so I think that for us as web developers and for geeks and people who love the Internet I think it’s a huge benefit to have something that’s not driven by the need to sell advertising or the need to convert customers. I think already even the Chrome new tab pages has changed a little bit and is kind of gradually edging into the direction of trying to get you to install Chrome Apps or to use Google products, and that’s kind of a concerning slip away from just being a tool that you access the Internet indiscriminately with. So for me it’s hugely important, but, so when you said that 80-something percent of the revenue, is that 86% of the revenue coming into Firefox or that Firefox generates or is that of the Mozilla Foundation’s operating revenue in its entirety?

Patrick: So, where that number comes from is ZNet’s Ed Bott, and he mentions in an article that in 2010 84% of Mozilla’s 123 million in revenue came directly from Google, that’s roughly 100 million in funds that will vanish or be drastically cut if the deal is either not renewed or is renegotiated on terms that are less favorable to Mozilla. So, I don’t know how you want to read that necessarily, if it’s 84% of Mozilla’s revenue is what he says, but 84% of Firefox’s money or 84% of Mozilla’s money, either way I guess it’s still a sizeable sum.

Louis:: Yeah, that’s huge. It seems like what you were mentioning that this is an opportunity for another competing search provider to jump in and snap up that partnership. It sounds pretty reasonable, right, I mean as far as I can tell Bing is still somewhat struggling, and this would be a great way to bump up the share. The question is would that be acceptable to Firefox users, you know; if you download Firefox and suddenly you’re on Bing, is that somewhat of a jarring experience if you’re a Google user.

Patrick: Does Firefox signing a search deal with Google, with Microsoft or with whoever, fly in the face of the idea that we need a browser that doesn’t need to sell ads and doesn’t need to sell things if they’re selling the default search engine, or I guess do we understand the need for them to have money, or how does that, I guess, coexist?

Louis:: I don’t know. It feels to me like it’s a pretty minimal item, right, I mean there’s going to be a default search engine one way or the other, right, and it’s pretty much guaranteed that that search engine would be either Bing or Google because those are pretty much the two major offerings, sorry to all the other players in the search space. So, you know, if they can get a deal and get some money out of it I think it’s a win-win. The thing is that’s not influencing any other aspects of the code, and they’re not changing the user interface in response to these pressures, so I still think they have a stronger independent position than the other browsers in the market.

Stephan: As long as they don’t sign a deal with Yahoo I think they’ll be okay (laughter). Sorry, had to insert a little humor there, you know.

Louis:: That’s alright, that’s alright, that would be hilarious. I can imagine loading up Firefox 10 and suddenly Yahoo is the default, what’s going on? (Laughter)

Stephan: Delete, delete!

Louis:: I can’t find anything, where am I?!

Patrick: Whoever will give them the hundred million.

Stephan: I don’t think Yahoo has a hundred million to do it.

Louis:: Is that the amount; is it a hundred million dollars?

Patrick: Well, that’s the estimate if you take 123 and 84% of 123 million is about 100 million dollars, so, and I think that’s the end.

Louis:: Wow. Sorry, I’m just testing Yahoo, wow, that’s awesome. I just searched for SitePoint on Yahoo because I hadn’t done it in forever, and the first result is a sponsored ad for eBay.com.au/guitar, which says bargain SitePoint here, bid and win SitePoint on eBay Australia.

Patrick: SitePoint’s available, finally! And it’s not on Flippa?

Louis:: And it’s ebay.com.au/guitar so I assume, oh no, it’s actually SitePoint items, that is weird. Anyway, just a moment of passing nostalgia for the Yahoo search engine there. Alright, I apologize to all our Yahoo listeners; you got a lot of great products.

Stephan: (Laughs)

Louis:: Oh no, wait, they sold Delicious (laughter).

Stephan: Ha, ha, ha, ha, snap! They still got Flickr.

Patrick: I gotta step in now and say that, you know when I was coming up and developing websites for the first time I loved Yahoo, and I still hold hats and glove for Yahoo because they do have some good products. Now, put Delicious aside, they’ve always been strong in like Yahoo Finance, that’s a strong product, Yahoo Sports is a strong product.

Louis:: Oh, yeah, that’s true. Yeah, that’s a good point.

Patrick: The fantasy sports stuff they do, they have these niche products that are very strong that I’ve always used, and then of course they do so many different things and a lot of things they don’t well, and that’s really the problem I guess, but, you know, Yahoo, I hope Yahoo comes back and these strong products get the shine that they deserve I suppose.

Stephan: Bring back Pipes.

Patrick: (Laughs) bring back Pipes.

Louis:: Is Pipes dead?

Stephan: It’s not dead it’s just not, I don’t know, it’s not up-kept really well.

Louis:: Right. That’s a good — it’s a good product, it’s a great idea.

Stephan: I still use it, it’s just that –

Patrick: It’s still there.

Stephan: They haven’t put a lot of use, they haven’t done a lot to it, like they’ve just given you this — like there’s so much more they could do to it. Anyway, I’m getting off-topic, sorry.

Louis:: I think we’ve been off-topic for a little while here.

Patrick: No, we’re already off-topic, this is the Yahoo segment! (laughter).

Louis:: Alright, maybe time to move on to the next story. I’ll take this one. So this is something that I spotted on Hacker News yesterday, and what has happened is that the jQuery plugin site is offline and has just been shut down by the jQuery team. Now what the comments here on the post on Hacker News, there’s a couple comments by some of the core team at jQuery and mentioning that they’re working on a new plugin site and they’re gonna blog about that in the next few days. But basically what happened is they were concerned with a lot of sort of spam in the plugin site, so this was at plugins.jquery.com, so if you go there now you see just a simple message saying “The plugin site is currently unavailable, we’ve been looking to provide a high quality spam-free experience for some time, and we’ve just decided to temporarily shutter the existing site and will be providing more details on the new site soon.” So basically they’ve just shut the whole thing off and said, look, we’re working on a new one, but basically as we were working on the new one we came to the conclusion that a lot of the content on the current one was so spammy that rather than just try and clean it we’d turn it off, so it’s a pretty drastic move.

Patrick: Yeah, and by the time we do another show a month from now or there around they’ll probably have the new site up, so we’ll probably be talking about that.

Louis:: Yeah, I’m interested to see what’s going to come out of it and how it’s going to differ from the previous one. I have to say I didn’t really use the jQuery plugin site very much, usually a lot of times when you search for a jQuery plugin for something on Google the results you’d find would actually be the developer’s personal site where they posted the plugin rather than on this central location. But there are definitely other examples of this kind of thing done well, if you look at WordPress, WordPress’ plugins and add-on site and Mozilla’s add-on sites are really well done, and they’ve got a good way of floating the quality content at the top and curating it by the community reviews. So it’ll be interesting to see what the jQuery team’s put together, but I just thought it was an interesting move rather than wait until the new one was ready and do a switchover and like, hey guys, we got this new plugin site, they just went, oh, yep, the old plugin site is crap so you can’t use it, and we’ll build a new one eventually but we’re not gonna tell you when.

Patrick: Well, when you put it like that, yeah (laughter). Because in my head is was like, well, you know, we didn’t like what we had so we’re gonna take it down for a few days, it’ll be back soon, and we love you; that’s how I read it, I don’t know.

Louis:: (Laughs) Well, I think there are a couple of different ways to read this, right, and it seems to me like a bit of a blog post rather than suddenly hitting — I don’t think there’s actually even a blog post on the jQuery blog about it, yet; they said there was gonna be a blog post about what happened soon, but basically some developer was just working on this and decided, well, you know what — I mean I know we’ve all had those days, right, when you’re looking at the thing and thinking ‘this is all crap, I just want to tear it down’.

Patrick: The podcast sucks, my life is ruined, shut it all down, it’s garbage.

Louis:: Yeah, right, you have those days, but it looks like someone really carried through on this one.

Patrick: Is that an ultimatum of a dare? I’m just kidding.

Stephan: Wow, I’m just reading through some of these comments, it’s just, you know, it’s funny to see people get really upset, and there’s other people like trying to justify it, and then there’s other people giving the technical reasons; comments are hilarious, I love comments (laughter).

Louis:: I love comments in some places, it’s not always — if you ever find yourself reading the comments on like a major news outlet’s website that will make you hate humanity in record time.

Stephan: We’re gonna get to that. We’re gonna get to that in my story, so don’t jump the gun yet.

Louis:: Okay, I won’t jump the gun, but comments, I mean obviously on Hacker News and Reddit, you know, these sites thrive on the quality of the community, and you get great insight and great trolling as well, even, you know, even when they’re trolling they’re entertaining.

Stephan: Nothing like good trolling. Nothing like good trolling (laughter).

Louis:: Well, on that note, do you want to just jump into your story?

Stephan: Yeah. Yeah, so, Brent Simmons who runs Inessential.com has a blog post up called The Pummeling Pages, and it’s quite a good read just from a perspective of you reading a website and what the Web has become in the past, oh, I don’t know, five years, six years. And he really talks about how his use of Reader, in the Reader button in Safari, and how quickly he’s using it when he goes to different websites. Just from the idea that you know there’s all these ads, there’s comments everywhere, there’s just junk all over what used to be useful pages, and it’s not just run-of-the-mill blogs, it’s news sites that we actually use, and he draws a comparison to the merchants war where this was predicted before; lower class people would be subjected to a ton of advertising while upper class people were being insulated, and I don’t know if that’s actually true, but I know that we’re being hit with a lot more advertising for what amounts to not better content, right. So, it’s a good read about just getting rid of the junk off your page. And I just want to know what you guys think.

Louis:: Well, I think like I was saying before, there’s a distinction here between the way mainstream publications approach this versus the way sort of Internet publications approach this. So, a traditional newspaper site that’s been ported into the Internet definitely tends to suffer from this problem where you’ve got a thousand share buttons and widgets and comments, and it’s like a 1200 word article split onto seven pages that each take about seven seconds to load. I love the first sentence of this essay, by the way, he starts the whole thing off with, “I made the mistake of going to a website today,” period; great way of kicking into it, so I really like this essay. But there are a lot of specialized blogs out there targeting a specific niche or just, you know, that started this Internet publication that are a lot leaner. And do you think maybe it’s just because these traditional publications have leases on offices and have all this staff that they need to support, and as they’re declining revenues from their print publications they’re constantly under pressure to jack-up the amount of money that they can bring in through the sites where a lot of the newer generation of Internet based content providers were sort of lean from the start, and whatever money they make from their ads by providing quality content that differentiates them from the rest isn’t enough to cover what they need to pay.

Stephan: Well, he kind of touches on this, and he talks about he worked for a company that worked with a bunch of publishers, Taplinks is the name of the company, and he said that the number three thing that they had in common, that all of these different publishers had in common, was the unanswering, unswerving faith in supreme value of analytics. So they would look at their numbers and say, well, that article got a lot of hits, let’s write another one like that, right, and that’s the totally wrong way to do it, right. I mean if we’re writing articles just to get hits then we’re doing the wrong thing, we should be writing articles because there’s something to be written, not because we want ad money, so maybe that’s the first step.

Patrick: Well –

Stephan: But you need money, right, Patrick?

Patrick: Awkward laugh. Right, I mean I don’t know — if that’s wrong then I would say a lot of people are doing it wrong right now. And I think it’s — I don’t think it’s all bad to write articles that people want to read, I don’t think. Because that’s another way to read that sentence, that’s another way to say that same thing is that people are writing content that people come for, right?

Stephan: Eh, but I don’t know about that, though, because to me you can make –

Patrick: In some cases.

Stephan: — money without forcing people to look at a bunch of ads for a good article, like why do you have to fill the page with a bunch of junk.

Patrick: So this is a tough discussion because I’m not sensitive to advertising, ads don’t bother me, really, they don’t; ads on the Web don’t bother me at all. The only thing that bothers me is, and it’s only occasionally, is when there’s sound that plays automatically in-ad, that is decidedly rare on most publications that I read.

Louis:: But what about when it affects the load time significantly, and when they artificially –

Patrick: That doesn’t bother me.

Louis:: — try and inflate the pageviews for those advertisers by paginating the article needlessly.

Patrick: Okay, so that, the paginating, great word, is, uh, you know, I’ll confess to being maybe a little bothered by that, slightly perturbed perhaps (laughter), but it just doesn’t bother me that much because, you know, when most people complain about ads on a website I look at that site and I say that’s no big deal, because I look at content and I look at ads in percentages, most pages that I visit don’t have ads in even 30% of the page, and/or even 30, 35, 40%, more than half the page is other stuff, content, logos, navigation, etcetera, and that’s what I try to weigh on my sites, which I would say have less than average volume of advertising versus let’s say similar sites or other websites on the Web, because that’s where websites are, on the Web. So, I almost feel just to — I guess to present the counter to this is that there’s a sense of entitlement that shows its ugly head sometimes because there’s such a subjective thing that goes on with these comments where some people feel these ads are too — or there’s too many, they don’t like the type of advertising, they don’t like what the ads about; these publications have to make money to sustain themselves, and it’s not always one ad a page or a couple ads a page, and it’s not always going to be targeted to the topic. If it isn’t showing nudity, right, or cigarettes or alcohol, and it’s not popping up and it’s not playing noise, then I don’t have a problem with it for the most part, it doesn’t bother me.

Stephan: But that’s kind of the point though, Patrick, I think is that in some of these places they are popping up.

Patrick: But that’s rare though.

Stephan: But these are supposed to be reputable sites some of them.

Patrick: I mean that is so rare though on news sites to have a popup ad these days for the amount of pages that I visit.

Stephan: You’re saying you never get — like I’ll be on my phone and I’ll go to a link that I see on Twitter and it’ll be to some news site, some reputable news site, and instead of me being able to go to the article I get a little popup that keeps me from scrolling through the content, and I gotta wait five seconds.

Patrick: Right, so an overlay or an interstitial, yeah.

Stephan: Yes!

Patrick: I get those ads and honestly they don’t bother me. I can see why they bother some people, but they just don’t bother me all that much. Not so much that it makes me hate the Web or hate the publication or want to find a way to screw them of that revenue by viewing their content in some other means, it just doesn’t push me that far. I understand it pushes some people that far, but, I think that this is a case where this is an issue people complain about, but instead of complaining show me how I can make the same revenue through another method, show me that; if I can’t then we have a problem because people want to make more money, they want to do it more often than not in a way that’s appropriate for their audience, show them a way to do it, and if you can then you’re a genius and you’ll be a millionaire. If not then it’s one of the challenges we have to face today as a publisher online.

Louis:: I think, Stephan, coming back to the original point, it seems like this is a divide that’s maybe always existed in news, right, if you look at traditional newspapers, right, the division between sort of, what, the tabloid approach and a broadsheet approach, is pretty much that, right, I mean the tabloid papers have traditionally gone this same route of analytics, and you know this headline will sell more copies and it doesn’t matter how good the content is we just want a headline that’ll sell more copies, and if that happens to be trashy celebrity gossip then that’s what we’re gonna print. And there’s always been space for both approaches in print media, and I think there will be space for both approaches in online journalism as well, in online content publication of all kinds you’ll have people with the attempt to create good content with an attention to design, and there’ll be other people who are driven by analytics to just cram the whole thing full of ads and headlines that’ll get the most clicks, and paginate out the content and do all these other dodgy tricks to try and get more ad revenue. And maybe the jarringness, though, comes in the sense that some of the businesses that were on one side of the line in the print world have gone over the other side of the line in the digital world, right. So, you know we’ve seen a lot of traditionally, what you said, reputable or respectable news sources that have sort of embraced this more tabloid style approach to their online presence. And like what I was saying earlier, I think that a lot of the newer, the newer generation of dedicated online publications, a lot of them have taken the approach of really just focusing on the design, providing quality content, and a few targeted ads with partners that give them good rates based on conversions instead of just pageview banners from old print advertisers, if that makes sense; that was a bit of a rant.

Stephan: No, I agree. So do you click on ads, though, when you go to new sites?

Louis:: No.

Stephan: I’m interested.

Patrick: He’s gonna say no. He’s gonna say no, no, everyone says no.

Stephan: Do you click on ads, Patrick?

Patrick: No one ever clicks on ads. I will click on an ad if I find it interesting, I mean the funny thing is, and I have this conversation with people who are technical, I’m sure you guys do too sometimes, and no one ever clicks on ads, they don’t look at ads, they don’t know ads, they just don’t see them. And my response to that is always, sure you do; unless you have them blocked through Ad Blocker or something similar, if they allure on the page advertising will have some impact on you, it might be minor, but, advertising isn’t there just to be clicked on either. Let’s not forget there’s other forms of advertising besides cost-per-click, CPM ads and ads that are meant to establish a company or for branding or whatever, and even if you don’t click on ads, ads still have value for the advertiser, for the publisher and possibly for the viewer. And, I mean, yeah, so that’s my thought on that. I have clicked on ads before and I’ll click on ads where they’re interesting, and what I always tell people, though, is to vote with your feet, right?

Louis:: Yeah, I mean I agree with you, I’m not going to say I don’t click on ads ever. I don’t click on ads on these mainstream news sites because most of the time they’re crap.

Patrick: Right.

Louis:: Most of the time they’re ads for cars or new phones or shopping or, you know, just –

Patrick: Nothing that you partake in.

Louis:: — mass market crap. Whereas if you look at design or development sites that I read, if they have ads they’ll be for either books or courses on web design and development or new tools or things like that, that even if I don’t intend to buy it I might want to find out what it is or what it’s about, so I’ve definitely clicked on ads in a niche, it’s just that usually the stuff on the major news outlets are just not stuff that I have any interest in so I tend to ignore it. But as I was saying earlier, I don’t regularly read on those sites either because the experience, as this essay has put it, is so unpleasant that it makes it really not worth the while.

Patrick: Yeah. Just to comment on what I was saying about voting with your feet, what I mean is that if you like someone’s content then visit their website or subscribe to it in the means that they provide. I don’t necessarily believe in the idea, though I know many do, that if I like someone’s content I’ll find some other way to read it outside of ways they allow and do what I want to it. A lot of people do that, a lot of people feel that way, I don’t feel that way; if I don’t like the experience they provide and it bothers me enough then I don’t feel that I’m also entitled to consume their content. That may seem idealistic, I suppose, but that’s just how I view it; if someone does do that to their website where they butcher it so badly or there’s ads I don’t like or the experience is so poor that I can’t enjoy the content then I don’t visit the website and they lose traffic, that’s the approach that I recommend that people take.

Stephan: See I’m not saying people should go out there and start stealing content, I think for me, you know I use Instapaper, I’ve said that before, and so sometimes I will grab an article on a news site because it won’t load fast enough on my phone, I’m just like I can’t wait for this so I just download it to Instapaper and then I’ll read it later. So am I stealing the content, I don’t know, I still read the website when I can get on my computer, you know, like the New York Times, I’ll still read it on my computer, and I’ll still look around the site, so am I stealing the content, I don’t know. What do you think, Patrick, give me your moral opinion on that.

Patrick: (Laughs) Uh, no, I don’t think so. I don’t think you’re stealing the content. We’re at a crossroads, I think, and we’ve been at the crossroads for a while, and I don’t know who’s winning or losing or what the longterm effect is going to be, but you know there are a lot of tools out there that are used to circumvent advertising, and those are concerning just because people want to think that there’s a limitless way to make money online, but there’s not, right, there’s essentially — everything goes back to two main things, either get money from the people who enjoy your content or you get money from the people who want to reach the people who enjoy your content, and from there there’s a lot of division. But, it’s essentially always those two things, so there’s one or two parties you’re getting money from, and it’s definitely challenging and getting harder and more difficult I would say to, in some ways, and less difficult in others, because advertising online the revenue spend the companies are allotting is going up, so that’s a good thing, but there are more companies out there and there are more tools that people are using to circumvent the advertising, whether it be Adblock or something else. So it’s definitely challenging, and what I encourage people to do is just to, you know, if they enjoy someone’s content support them and do what they can to make sure they’ll be here tomorrow.

Stephan: So here’s a question for you guys, just kind of a theoretical question. If you had a donate button on a site for someone whose content you really enjoyed, would you prefer to do that or would you prefer to click on an ad for them, which is more genuine?

Louis:: Oh, the donate is definitely more genuine, it’s definitely a clearer expression of, hey; it’s a tip jar, right? You know, this is great content and here’s two bucks or here’s whatever; clicking on an ad I’m sort of indirectly supporting them by supporting someone else, and maybe it’s disingenuous because I click on the ad and then not buy the thing. If I’m clicking on the ad just to provide them with revenue then that’s needless, right, that’s costing this other company that’s advertising money to make the site look less pretty so that I can give a small fraction of money to the person that I like their content, right, that’s needlessly circuitous, but does it work better than donate, and I guess it depends on how direct and how personal a connection you have with your readers. There are some people whose blog I read that if they asked for donations I would definitely give it to them because they’ve established themselves as a clear personality that’s doing this because they love to do it, and I like their website and I like the content they put out and I know who they are, I’d give those people money, but there are some other organizations that I just don’t have that connection and it might be a bigger leap to click donate, right?

Patrick: I agree with Louis: about clicking ads to click ads, that’s a bad thing, don’t do it, it throws the whole value proposition out of whack for everyone, it inflates numbers for publishers, it inflates numbers for advertisers, it’s just bad. So you don’t wan to click ads just to support a publication, click an ad if you have any interest in it; if that’s why you’re clicking it then it’s genuine and do it. You know and as far as like donate, donate buttons, donate buttons to me I would never add one because they look desperate to me, and maybe this is just a matter of verbiage, right, and a semantical thing I’m saying, but instead of having a donate button play with micro-payments however you can. Now maybe that is subscription, maybe they can subscribe to your content for exclusive content or to see it first or to see it without ads, you know, make that sort of thing available, three dollars a month, five dollars a month, ten dollars a month, depending on the value of what you provide and how much you think you can get; I think it’s good to have that. Now as far as what would I do, you know, right now I don’t subscribe to any publications like that, and I am in a place financially where I don’t necessarily want to do that right now, but when I’m not in that place I would definitely consider it. If given the choice between viewing ads or paying something, I would say I’m more likely to want to just view ads or have ads on the page, and have myself be counted in whatever analytics program is serving the ads, and then I’ll benefit them in that way as well, but if you can you know it’s great to provide options to your readers.

Stephan: So maybe I’ll do a little experiment and say support my writing and have a little donate button and just see what happens on my site.

Patrick: (Laughs) for badice.com?

Stephan: Yeah, yeah, I don’t know, maybe I will.

Patrick: (Laughs)

Stephan: We’ll see. What’s so funny about that?

Patrick: I might just give you money.

Stephan: (Laughs)

Patrick: I don’t know; you got to have regular content.

Stephan: I do have regular content now; I’ve been blogging a lot more, thank you very much.

Patrick: Now? Okay, yeah.

Stephan: Yeah, see; see you don’t even read it so it doesn’t matter.

Patrick: No, no, I’ve subscribed, November 30th, November 29th, November 13th, November 4th, four posts in November.

Stephan: Yeah, that’s pretty good.

Louis:: That’s not bad.

Patrick: (Laughs)

Stephan: It’s quality stuff, man, it’s quality; quality over quantity (laughter).

Patrick: Put up a pay wall!

Louis:: Alright, I think we should wrap this up and go to spotlights because it’s turned into kind of a long discussion.

Patrick: I’ll go first, good discussion, guys. My spotlight is a skit that was on Saturday Night Live on this past Saturday, it is called Batman, it is an SNL digital short, Andy Samberg as Batman, Steve Buscemi as Commissioner Gordon, what else do I need to say (laughter), I think that sets it up perfectly, and if you haven’t seen it yet go check it out. Let’s say Batman is a little too attached to Commissioner Gordon.

Louis:: (Laughs) Ah, that’s terrifying. I will have a look.

Stephan: I can go next. I have an article in the New York Times called Do You Suffer from Decision Fatigue. And it’s just a good read about all the decisions we make everyday and kind of the toll it takes on us mentally, physically, physiologically, just some interesting stuff, and I’d say we all need to read it just so, you know; everyday you’re making tons and tons of decisions, and it does play a part, it does stress you out without you even knowing it, which is interesting.

Louis:: Awesome. I love this kind of stuff; I’ll definitely give it a read. My spotlight this week is surprise, surprise, web development related. One of the designers, I believe, at GitHub, Director of Design at GitHub, sorry, posted this just today which is this Ruby based library that has the purpose of generating documentation for CSS. So it’s a lot like these other documentation generators for programming languages except for CSS, and it can be used either with plain CSS or if you’re using a preprocessor like Sass or LESS, and obviously it’s just been released on GitHub so it’s a brand new project, but I was having a look at it and someone who has a pretty constant inability to organize my CSS in any way, shape or form, it’s just one giant file filled with stuff, and I pretty much use control F to find the thing I want to edit, this looks like a really good way of organizing and providing clear documentation, sort of saying, alright, so this dot star is a button that lets you favorite your content and it looks like this, and in a hover state it’ll look like this, and it generates out some pretty good-looking documentation. So definitely keep an eye on this as it develops.

Patrick: Sweet.

Stephan: What’s this written in?

Louis:: It’s written in Ruby, so he’s written — he wrote a specification for it which is just how to write your documentation, which obviously is just in your CSS as comments at the top of each declaration, and he’s written a Ruby library which takes that and generates sort of an HTML documentation file from it.

Stephan: Yeah, that’s cool, that’s really nice. And in the corporate world documentation rules, so.

Louis:: (Laughs) And looking at the — so he’s got an example screenshot, I don’t know if you saw this, Stephan, of what the sort of the output style guide looks like.

Stephan: Yeah.

Louis:: And it really looks fantastic. I’m like if I came unto a new project and had to write CSS and I had a style guide like this, that would be, you know, a dream.

Stephan: Yeah, I mean that’d be really helpful, and I’m not even really into CSS, but I could see where this is really useful for someone new to a project, it’d be great.

Louis:: Awesome. So that’s a wrap for this week. I think we lived up to our expectations for the last panel show of the year, I think we really killed it, congratulations (laughs).

Patrick: It’s dead.

Stephan: It’s dead.

Patrick: There will be no more.

Louis:: Yeah, so it’s been a great year, guys, thanks for all your warm welcome on the show, I’ve had a lot of fun.

Patrick: Awesome. Thank you, you’ve done a great job.

Louis:: And I’ll be back next week with an interview show, and then we’ll be seeing — we’ll be, I don’t even know how to say this; we’ll be seeing the listeners in the New Year in some way, shape or form.

Patrick: We’ll be coming back with a vengeance, as I told Kevin (laughter). That was my guarantee; you’ll be back with a vengeance in January! Yes, dramatic.

So let’s take it around the table. I am Patrick O’Keefe for the iFroggy Network; I blog at managingcommunities.com, on Twitter @ifroggy, i-f-r-o-g-g-y.

Stephan: I’m Stephan Segraves, you can find me at badice.com, and I’m on Twitter @ssegraves.

Louis:: You can follow SitePoint on Twitter @sitepointdotcom, that’s sitepoint d-o-t-c-o-m, and you can follow me on Twitter @rssaddict. If you want to find out more about the Podcast go to sitepoint.com/podcast, that’s where you can find all of our past episodes, leave a comment on this show to let us know what you thought and also subscribe to the feed if you want to get it automatically, and if you want to hit us by email that’s podcast@sitepoint.com. Thanks for listening everybody, and to Patrick and Stephan wishing you both a happy New Year and I’ll talk to you again in January.

Patrick: Happy holidays.

Stephan: Yep, have a good one.

Theme music by Mike Mella.

Thanks for listening! Feel free to let us know how we’re doing, or to continue the discussion, using the comments field below.

Posted in All Podcasts, sitepoint | Leave a comment

The Debate on Remote Work for Web Developers – Lately in PHP podcast episode 18

By Manuel Lemos
The recently published article on attracting talented Web developers by offering remote job positions raised an interesting debate on the challenges, advantages and disadvantages of this way of working.

This debate was the main topic of discussion of the episode 18 of the Lately in PHP podcast with Manuel Lemos and Ernani Joppert, who were joined by César Rodas. César is a top PHPClasses contributor that has been working remotely for several years for companies around the world.

They also comment briefly on the PHP 5.3.9 and PHP 5.4 release candidate versions announced earlier in November.

Posted in All Podcasts, php classes | Leave a comment

Episode 94: Keith Casey Interview from Zendcon 2011

I got a chance to sit down with (the legend) Keith Casey. Keith’s well known in the PHP community with his web2project project (among other things) and is now poised to be a greater force in the worlds of Twilio and the Austin tech scene. Volume is a little quiet here, so turn it up to hear Keith’s words of wisdom :)

File Download (32:54 min / 23 MB)

Posted in All Podcasts, WebDev Radio | Leave a comment

SitePoint Podcast #141: Pygg with Andy White

Episode 141 of The SitePoint Podcast is now available! This week our regular interview host Louis Simoneau (@rssaddict) interviews Andy White (@arcwhite) from startup incubator Pollenizer on their social payment startup, Pygg.

Listen in Your Browser

Play this episode directly in your browser — just click the orange “play” button below:

Download this Episode

You can download this episode as a standalone MP3 file. Here’s the link:

Subscribe to the Podcast

The SitePoint Podcast is on iTunes! Add the SitePoint Podcast to your iTunes player. Or, if you don’t use iTunes, you can subscribe to the feed directly.

Episode Summary

Andy and Louis discuss the challenges of getting a social payment system up and running technically, and getting people to take it up and use it.

Browse the full list of links referenced in the show at http://delicious.com/sitepointpodcast/141.

Interview Transcript

Transcript To Follow.

Theme music by Mike Mella.

Thanks for listening! Feel free to let us know how we’re doing, or to continue the discussion, using the comments field below.

Posted in All Podcasts, sitepoint | Leave a comment

SitePoint Podcast #140: Web Page Bloat

podcast-default-115x115

Episode 140 of The SitePoint Podcast is now available! This week the panel is made up of Louis Simoneau (@rssaddict), Kevin Dees (@kevindees), Stephan Segraves (@ssegraves and Patrick O’Keefe (@ifroggy).

Listen in Your Browser

Play this episode directly in your browser — just click the orange “play” button below:

Download this Episode

You can download this episode as a standalone MP3 file. Here’s the link:

Subscribe to the Podcast

The SitePoint Podcast is on iTunes! Add the SitePoint Podcast to your iTunes player. Or, if you don’t use iTunes, you can subscribe to the feed directly.

Episode Summary

Here are the main topics covered in this episode:

Browse the full list of links referenced in the show at http://delicious.com/sitepointpodcast/140.

Host Spotlights

Interview Transcript

Louis: Hello and welcome to another episode of the SitePoint Podcast, another panel show this week covering the news and events in the Web and the world of web design and development over the past few weeks. This is a special panel show because we’re welcoming a new member of the panel, Kevin Dees, hi Kevin.

Kevin: Thank you for having me and hello.

Louis: Absolutely a pleasure. And we’ve also got the two remaining members of our regular panel, Stephan and Patrick.

Stephan: Howdy, howdy.

Patrick: The last men standing (laughter). Hey Louis; welcome to the show Kevin.

Kevin: Thank you, thank you.

Louis: So, Kevin, do you want to maybe just introduce yourself for the listeners and then we can dive straight into the stories.

Kevin: Sure, I can. So, I am Kevin Dees, that’s my name, I run a website called Kevindees.cc where I do interviews and post about just the random thoughts that I have, so that’s where I’m most known. And I also do another podcast called The Web Weekly where I met Patrick and our relationship started and has gone on from there. So that’s kind of me in a nutshell and, yeah, I’m excited to be on the show, I’m excited to be here and just talk about web and web design and all those wonderful things.

Patrick: Kevin was a listener of the SitePoint Podcast on and off, so that’s sort of how we first met, and we’ve hung out at a couple conferences and of course he’s done some interviews on his site, so that’s kind of what led us to invite him to join the show. But also, Kevin, can you tell us a bit about your development background and what makes you a fit for a web development podcast.

Kevin: Sure, great. I have been developing websites for some time now, geez, I don’t even know how many years; I made my first website when I was nine if that tells you anything, and I quit for a little while just because I was a kid, but I’m back and I’ve been doing it for, whew, at least six-plus years now. Basically I’m a WordPress developer, PHP developer, and I also deal with front-end code, so CSS, HTML and JavaScript. I’ve made a few WordPress plugins and I’ve made some plugins also for browsers, for example, I’ve made a plugin that helps IE7 specifically support the pseudo elements before and after, so I’ve done a few things like that and I’ve worked for agencies, I’ve freelanced, I’ve run my own businesses, and so I have a little bit of experience, or at least I’d like to think, in the Web community.

Patrick: Excellent, excellent. Well, welcome aboard.

Kevin: Thank you.

Stephan: Welcome aboard.

Louis: Yeah, welcome. The first thing that’s worth sort of talking about a little bit this week is — and this happened pretty much I think the exact day we recorded the last panel show, so it’s been a little over two weeks now so it’s probably old news to anyone listening, but since we haven’t had a chance to talk about it, Adobe has resigned Mobile Flash as a platform that they’re working on, so I guess go HTML5.

Kevin: Yay, go HTML5, yay.

Stephan: Woo hoo.

Louis: So I guess we won’t dwell on it because like I said it’s an old story, I just wanted to shoot it out there and I guess we can always revel a little bit in the decline of Flash.

Stephan: Now, now.

Kevin: I think it’s an interesting story and news because Flash has been the plugin of choice, right, for not only the desktop but they were hoping to become at least the one for mobile, and so to see them back down from that and to focus their efforts on different areas I think starts this trend for other companies to basically take HTML5 more seriously, or maybe it is that Flash and Adobe are the last tools to really take that approach.

Louis: Yeah, it’s kind of played out interestingly and the way it’s developed in the sense that the iPhone didn’t have Flash and then Android added Flash and it was still kind of in this nebulous space where we didn’t know whether it was going to be a major part of the mobile web or not, and I guess now we know, now we know the answer.

Patrick: Yeah, one more iteration of Mobile Flash for Android is on the way at least, Flash will be available to Android 4.0 users for the end of the year, but that appears to be the fond farewell according to a story by Shamus Bellamy at PC World. But Flash for the desktop is still around much to many of our listeners’ chagrin, so that’s — don’t take this the wrong way, this is just mobile Flash just in case your heart skipped for a second and you didn’t hear the mobile part.

Kevin: I have a story, my first story on the show, yay, jQuery mobile its final release is out and so everyone can start to use this, it’s finally out of beta and release candidates, the supported operating systems if you haven’t heard of it are IOS, Android, Blackberry, Windows Phone, Palm; so those are kind of the core ones. And essentially what this does is it allows your site to have the same feel as a native app on a phone, more leaning towards the iPhone and its experience, so you have transitions and dropdown menus, that kind of thing, that kind of fit with that space. So, you know, I think this is an interesting release in that responsive web design has been — kind of been the trend for a while now, and when these other technologies like jQuery or jQTouch when it was first come out, so it’s now jQMobile, when these platforms first came out there wasn’t responsive web design. And so to see these other platforms continue to move on alongside responsive sites will be interesting to see when people try to use these things, right, because sometimes jQuery Mobile will be the correct solution and other times responsive will be, so, you know and plus it’s kind of — jQuery Mobile’s kind of one of those things you just kind of turn on that works, right.

Louis: Yeah, I mean I’m definitely impressed by the progress that this has made, I remember the original sort of alpha release and it was utterly broken on my phone, at least in the experience that I had with it, and it looks really slick now I have to say, I mean I still have a bit of a, you know, a concern that it includes a bit too much UI and visual stuff, like it has a very clear look to it that comes bundled with it, whereas most of the time if I was looking for a JavaScript framework for mobile I’d really just want, you know, give me some events and get out of my way and I’ll handle the UI, but if you wanted like a jumpstart into developing a mobile web app that felt as native and as slick as possible I think it’s definitely an impressive product. But like you said, it’s interesting to see how that’s going to play against the more responsive approaches where you can build sort of one website for all devices rather than have a specific mobile targeted app.

Kevin: Yeah, it will be interesting because most people that go in, and I know when I go and make websites if I go mobile I normally will use the responsive style of doing things whether it’s a fluid or elastic system or actually using media queries, right, so just something that’s more device agnostic. And so a plugin like this I can see people using or myself using when maybe you’re trying to put this together something quickly, trying to put together something on the fly, maybe an app idea or a presentation, but I think it’s going to circle around that one word which is app, right, it’s not going to be the flavor for the website, it’s going to be web apps I think that’ll use this mostly.

Stephan: That’s the key for me really is that this is an application design tool for me. If I was going to jump into it I think that’s what I would use this for, I don’t think I would use it to turn my homepage into a mobile friendly site, I think I would if I had an app idea this would be where I’d go to start that idea; I don’t think I would go to the iPhone SDK or anything, I think I would come here.

Louis: Yeah. If anyone hasn’t had a look at it, definitely go to jquerymobile.com and have a look because there’s a lot of cool widgets for forms, for all kinds of behaviors in widgets on the website, and the whole thing is there as a demo, you can click around and play with it directly on the website, so worth having a look at if like you said, Stephan, for something where you want a quick launch into building a mobile web app.

Patrick: So what’s the next best story?

Louis: (Laughs) Are we doing these in order of quality, oh shoot, I would’ve gone first (laughter).

Patrick: I don’t know, I’m just saying what’s the next best one.

Stephan: So there’s an article in the Business Insider today about YouTube upgrading the HTML5 player, and it’s kind of the sign of the times as YouTube gets ready to get rid of Flash completely. Some of the things that they’ve done, they’ve enabled annotations and captions, they’ve made 480p and 1080p both options now, and you get native full screen support for Firefox and Chrome, so some cool stuff there all done in HTML5.

Louis: Yeah, the annotations in captions is big because when they first rolled out the HTML5 player a lot of people pointed out that those features were really lacking and as long as it didn’t have all the features of the Flash player it was only sort of a cool thing for web developers to look at and geek out on, but it wouldn’t really be an alternative because it was lacking some of the core features, but it’s good to see that they’re adding that stuff in now.

Stephan: Yep. Oh, I was going to say you can also sign up to kind of test this out if you want, on their page you can go — say you want to use the HTML5 player and that way you can report bugs and things like that, so it’s cool.

Patrick: Yeah, the story by Noah Davis says it ends with “The moves are another blow in Flash’s inevitable defeat.” So he’s quite bearish on Flash’s future, and it makes me think if HTML5 takes away media playing, if it really gets it right and Flash is no longer seen as the standard that it once was when it comes to video and audio playing, does it go back to being a niche kind of design tool as it once was many, many years ago or is this is for Flash, is this kind of the last hurrah, is the last thing that it really does well at this point?

Louis: I don’t know. It’s kind of interesting because I went to the Melbourne Web Developer Meetup last night which was just downstairs in our building at 99Designs, and I was giving a little quick talk on some of the fraud prevention stuff we do at Flippa, and I don’t regularly give talks so I don’t have keynote or PowerPoint installed on my computer so I just really quickly Googled, you know, I tried the Google Documents presentation thing and it was kind of crappy (laughter), so I just quickly Googled like online presentation tool and I found this thing called SlideRocket and threw together something in about a half hour that morning, and it was really, really good, it was a really great tool, you can import images from Flickr directly, it connects with — you can show a live Twitter stream in the presentation and it’s all online, and it’s all built in Flash and it was really good, like it really felt like using a desktop application in the browser, and I don’t feel like there are very many pure HTML apps that have exactly that level of quality, I mean obviously Google Docs is great but I have to say like the experience that I had with this as a Flash app was really, really good. So I think it probably still does have a place for certain, you know, very rich application functionality.

Patrick: Hmm, yeah.

Kevin: I feel like this is probably not the best move for me to go ahead and try to boost Flash just a little bit, but I would like to play devil’s advocate and tread on some dangerous ground here and say that when it comes to Adobe in the Flash side of things, the main part of Flash, right, is that it’s an authoring tool, so as long as Adobe can continue to sell that platform to designers or developers they can continue to make this market right, so I see the biggest benefit for them having Flash on any computer is the sheer marketing power that that offers, right, 99% of computers is kind of the standard number. So when you look at that that’s free advertising for Adobe on every system, and so I feel like they’ll be okay with letting that go because the real profits come from the authoring tools, and as we see with like Adobe Muse and these other tools that do like animations and things, you know, they’re going to move more towards that way. And the other part of this that I’d like to harp on just a little bit is when I make sites with say a JavaScript slide or slideshow I can’t really use HTML5 too much on sites quite yet just because Internet Explorer, right, but when you use these JavaScript frameworks as, you know, a placeholder for what used to be Flash, you run into problems with these transitions on the older browsers, where if you move images around it’s really jittery and those sorts of things. So I think Flash will continue to have its place in video and things like — I mean obviously most folks don’t use it for slideshows anymore, but there is a place for it in that spot because I mean maybe you guys have had the same experience as me, but when you’re making a website and you try to make a jQuery slideshow, if you have large images that are highly detailed every time it has to move it has to redraw that image on the screen, just uses up a lot of bandwidth on your computer.

Louis: Yeah, I guess I mean especially with older browsers JavaScript performance has increased exponentially in the last few releases of at least Chrome and Firefox, but, well, even IE their performance in IE9 and IE10 has been impressive, but if you’re looking to support anything a little bit older than that it can definitely be a bit of a challenge, yeah. This is where a lot of cases where the standards crowd would argue that’s a good case for sort of a responsive and graceful degradation approach, you don’t need a giant front page slider on old browsers, it’s like trying to play a color show on a black and white TV, to borrow a quote from last week’s interview show.

Kevin: Good points.

Louis: Cool. I had a little bit of a short story as well that I wanted to talk about, and it is kind of I guess relevant to that if you’re stretching the limits of what constitutes a segue here, but this has to do with website performance and it is a story on Pingdom.com which is just a blog post that they wrote recently about the fact that over the last year on average web pages have become 25% bigger, so this isn’t the actual pixel size but the download size of websites. So what they did is they went through the http archive website, gathered statistics for the top 1,000 websites in the world and looked at stats over the past year; the average page size a year ago was 626 kilobytes and currently it’s at just around 780 kilobytes, 784, so that’s pretty massive growth in a very, very short span of time don’t you think?

Stephan: Yeah, to say the least (laughter).

Patrick: I wonder at what rate bandwidth adoption is growing like as comparable to this, it would be interesting to see those two numbers side-by-side.

Louis: I think if you include mobile usage bandwidth has actually probably gone down over the past –

Patrick: Okay, drop those mobile — drop the mobile stuff out of it then (laughs).

Louis: Well, you can’t, right, that’s the whole point, you can’t.

Patrick: But this is the home pages right? I mean this is the default desktop designed home pages, not like a mobile version, not a responsive version but the actual just default what you see on your laptop.

Louis: Yeah, I guess that’s an interesting question is, you know, I mean I think it’s fair to say that it’s unlikely that over the past year any of the top thousand websites would have any sort of conditional loading or advanced responsive designs where if you load it in a small window it will only load a subset of resources and then it will go out and get stuff. I mean that’s a pretty cutting edge technique that I don’t think a lot of these top websites will be using, at least not just yet, or maybe people like Google and Facebook will be –

Patrick: Right.

Louis: — to be fair.

Patrick: But many of them probably would direct you to a mobile version if you were using a mobile device.

Louis: Yeah, you might be directed to a mobile version, so that is fair.

Patrick: Right, yeah.

Louis: But in this case if you look they’ve got charts of sort of where the size increase comes from, and a lot of it comes from increases in amount of JavaScript and images, so the actual markup hasn’t grown significantly, CSS has grown a little bit not much, even Flash has grown a little bit, not much, but then the JavaScript has increased nearly 50%. So I don’t know whether that’s due to people increasingly falling back on using JavaScript libraries as opposed to hand coding stuff which can be a bit bigger or maybe using JavaScript techniques to sort of polyfill support for new HTML5 and CSS3 features that they want to try and use, so there are a lot of possible explanations; some of it could be that developers are lazy I guess.

Patrick: (Laughs) Well, no, it’s not that, absolutely not that, we love developers.

Stephan: No we’re not (laughter).

Patrick: But you know it makes sense when you think about where a lot of these redesigns have gone. It seems like more and more it’s the big bold image, and I guess you could say that they could be compressed or things can be done to limit the impact of that, but more and more when I visit websites, news sites and sites with any sort of regularly updating content, it’s a big bold image I’m greeted by, and sometimes this has part of a slider which I guess would speak to the JavaScript, too, where it’s showing these big bold images, three to five of them the most recent content that’s available to try to get your attention, so I guess in that way it kind of makes sense.

Louis: Yeah, but I guess my point is for a lot of those people so you’ve got this big slider on your front page and rotating out images is a pretty short snippet of JavaScript.

Patrick: Right.

Louis: And if that’s all you’re using then you can write, you know, maybe less than a kilobyte of JavaScript and have it do that, but a lot of these people will be using jQuery and then a jQuery plugin that were really built to handle every possible slider combination or situation.

Patrick: So, to sum it up Patrick’s thought is stupid (laughter), next! So, anyway, there are numbers shown to the size increase per content type, and as you mentioned JavaScript up 44.7%, actually CSS was second on a percentage basis although it didn’t really go up much file size-wise from 30 — I guess when you’re going from 24 kilobytes to go to 30 it’s a 25% increase, but dealing with sheer volume of kilobytes it’s clearly far and away images gaining about 80, it looks like exactly 79 kilobytes.

Louis: Hmm.

Patrick: Yeah, so those kilobytes, man.

Kevin: What do you guys think about the fact that websites are simply easier to build now with sites like WordPress.com and Tumblr where anybody can go in, create a site and then download their 16 social media plugins, all these plugins for these things, and that may attribute to some of this, so maybe it’s not just web designers getting lazy but perhaps just the fact that the average Joe can go in and start plugging away and doing things on their site that they wouldn’t normally have the ability to do because of the ease of access.

Louis: I think that might be a valid point. In this particular case because it’s a survey of the top 1,000 sites I don’t think there would necessarily be an impact of amateur developers on these numbers.

Kevin: Right.

Louis: But I think that’s probably if you’re looking at the Internet at large there probably is a lot of poor website performance that’s due to those new tools and that ease of use.

Kevin: So this isn’t factoring in the dot com for wordpress.com?

Louis: Probably not. But although even on the top websites in the past year you mentioned these sorts of social media plugins, and they definitely have proliferated a lot over the past year. I don’t know if you went back and — pick any major news media outlet and go back abut a year and they maybe had share on Facebook and now they’ve got the Facebook Like button, the Tweet button, the Google+ button and who knows how many other options, and that’s a lot of JavaScript that’s being loaded in, so that might definitely be a cause for this.

Patrick: And it’s interesting, Kevin, when you mention that what you brought up in my mind immediately was how WordPress recently touted that, and we talked about this on the show, I think Brad Williams brought it up obviously, they were touting that WordPress according to an in-house survey they determined that they are powering 14.7% of the top billion sites worldwide. And I know that I’ve heard either that or a top x number of sites being powered by WordPress online as the software grows in popularity, and so I say this facetiously that this growth in kilobytes could then be tied to the growth of WordPress infiltrating the top one thousand sites. Obviously I’m joking, but it’s funny that you made that suggestion.

Kevin: I think it would be interesting to see whether or not it included the sub-domains at WordPress, I mean you would hope that they didn’t.

Louis: Yeah, it’d be cool to see; I don’t know if they have a list of which sites were included, a websites tab on the http archive, yeah, okay, so it’s this — so I’m just having a quick look, I think this is a bigger list. If you go to httparchive.org and click on the websites tab you’ll see there are 37,000 total URLs indexed, and I’m just sort of scrolling through them and they don’t look like any of them are sub-domains of wordpress.com, so it looks like they’re all sort of top-level domains.

Patrick: Right.

Louis: Well, not top-level but, you know, they’re all domain names. Yeah, so what I was going to say about this, though, is that it really does highlight the importance for web developers to learn about and to focus on issues relating to front-end performance; there’s so much stuff that can be done to make this better and to make your pages load faster, and the time it takes your web page to load is maybe the number one feature that people are going to be happy about, so, yeah, I think it’s super important, people should spend more time making their websites run faster and less time just adding new stuff to them.

Kevin: So, speaking of site performance, it would be interesting to see how the new Foursquare site holds up because they just recently redesigned their site. I found this out through Sam Brown on his website, he had spoken about them launching the site, and I think an interesting part of this redesign is their focal point which is the signup with Facebook button. So they’ve basically taken the regular signup with email functionality off the screen, so there are no fields on it except for the signup with Facebook button, and so they’re using the signup with Facebook button to basically pull in I would believe the majority of their users, right, so I don’t know if you guys are seeing this trend, and I was interested to see what your thoughts might be on that.

Patrick: Yeah, I mean we’ve talked about open ID and Facebook and all these other login systems, and it’s interesting because I’m always the curmudgeon I think (laughter), that says no, no! I want email, I want a username, I want to have my own unique login and not rely on Facebook, but, more and more people are using it for identification.

Louis: Yeah, I mean I’m definitely among those who prefers to develop my own systems and not sort of rely on Facebook or Twitter or whatever for core aspects of the website, but when talking to the marketing people on our team or even at SitePoint and they love the stuff; when we do the Christmas sale at sitepoint.com for the last few years the sort of comment thread has been just a Facebook comment thread and that has been really, really good for letting people share it easily and you’re just logged in and it’s a seamless experience for most users, and you see it on a lot of news sites now, I don’t know if you guys have noticed this trend where you’ll be on a news web page and you scroll to the bottom and it’s just a Facebook comment thread.

Patrick: Yeah. Yeah, and you know it’s interesting because if you have developer talent and programming talent then obviously you’re able to manipulate those comments and work with Facebook’s API. Just recently a WordPress plugin was released that allowed you to sync comments with Facebook, and so, you know, WordPress bloggers won’t just lose their comments if they shut off Facebook comments. But I definitely think it’s a situation where that sort of thing it’s really dependent on the use; obviously Christmas sale short-term once a year not that big a deal as far as maintaining the content long term, but you’ve got to be careful not to hand over too much of your ecosystem to Facebook, and like I know why people do it, I know why they’re very powerful, how many people use Facebook, it’s immense. And I’m sure they’ve done their testing, I’m sure FourSquare isn’t stupid, I’m sure they’ve done some A/B testing and figured out what converts well and that’s probably what’s driving the decisions is data that’s saying using Facebook sign-in and making it that easy will drive more people to use FourSquare.

Louis: Yeah. I can see how it makes sense, but like you said I’m a little bit skeptical and always a little bit concerned about relying on an external service for any core aspect of the site’s infrastructure. Just speaking about the redesign itself, though, I’ve just logged in, I hadn’t logged in to FourSquare on a desktop forever, I guess it’s just not something that you use on a PC usually, but the new dashboard looks really good, you’ve got this sort of map at the top which shows recent check-ins with avatars on the map and all local things, you’ve got a history of recent activity from your friends, it’s got some suggestions of nearby businesses you might want to check out, it’s a really, really nice interface, I’m impressed.

Patrick: Yeah, I like it as well, it looks really nice, clean, fresh, all those ways that you would describe it, but only thing I notice is as you scroll you get that top bar that stays with the page and looks similar to Twitter I would say, the font off the top of my head looks similar, and the search bar is there, I’m not saying Twitter originated it, I’m sure they didn’t, but it seems like we’re seeing that more and more where there’s this top bar that’s consistent as you scroll on all pages; is that a new convention, are we going to see that proliferate on every website?

Louis: I think for websites where you have sort of account management being a constant thing that you want, especially anything that — see, the thing about Twitter I find is it’s got such a long feed of stuff that having to scroll all the way back to the top to get to change to navigate to your profile or to search, it’s getting in the way of users’ ability to use the site, so for me I think it’s relevant if you have a really, really long page that just sort of scrolls infinitely with an activity wall, for example.

Patrick: Yeah, it does seem like it’s becoming more and more standard with those pages, not only FourSquare now and Twitter, but also Google+ obviously uses it, Facebook does that, and yeah, I mean as these social websites grow I think it is something we’re going to see and also see across different platforms like open source platforms that run forums or social networks to make it easy, as you said, to manage that profile.

Louis: Yeah, well I mean the WordPress admin bar is a great example of — and that was fairly recent, that was only one or two point releases ago that was added.

Patrick: Right.

Louis: And very similar approach. It’ll be interesting to see how this develops, if there are any frameworks out there or plugins, I know I was just saying the plugins are dangerous because they add all this bulk to your page needlessly, but in this case you know it seems like a great opportunity for someone to put together a little package of stuff that gives you this fixed static top bar menu functionality.

Patrick: Who cares about a few kilobytes between friends.

Louis: Well, that’s how it starts (laughter).

Patrick: It’s a slippery slope. You now kilobytes are a gateway drug to slow page loading (laughter). But it’s funny, you know what that makes me think of, I don’t know if you guys have seen this Sprint commercial, but it’s about data and how much data you can use on Sprint and how fast data builds up, and it starts with a counter on kilobytes and the kilobytes go slowly. You know, it starts with a single digit then two then three digits, and it goes up to then a megabyte once it hits a thousand kilobytes, and then the megabytes go faster than the kilobytes did, and it’s like one of those things where if you actually knew anything about this you know that kilobytes would go fast, it would slow down as you got to megabytes; and gigabytes, the gigabytes just fly by but, again, it’s a mainstream commercial and no one really would care all that much, but the geeks among us, the techies among us are like why are the gigabytes going faster than the kilobytes. Anyway.

Stephan: I just want to know what that woman is doing all day, like what is she on her phone constantly (laughter).

Louis: 25% growth of web page size a year, I think that means it’ll double every roughly three and some-odd years, so we could get there, I mean that’ll be exponential in no time and the gigabytes will be flying by.

Stephan: Oh, man.

Patrick: Need those unlimited data plans.

Louis: Actually it would be cool to calculate at 25% a year how long it will take for the New York Times home page to reach a gigabyte (laughter). I’m sure it’s not even outlandish, I’m going to do the math after the show and I’ll post it in the comment thread.

Patrick: Very good, very good.

Louis: Do you want to kick us off with the spotlights, Kevin; given it’s your first show?

Kevin: Sure, I’d love to. So my spotlight for today is Postmark, Postmark is a paid service but what it does is incredible. So if you’ve ever made a website or web app that uses email you know how painful it is to actually get the email in the inbox, you have to make it past the ISP, you have to make it past the spam filter and the client, and you know all the other parts that are in between that. And what Postmark does is it gives you an API to play with, after you verify a few details, to basically skip over those steps yourself, so they’ve gone through all the hard work to help make sure that your email arrives as intended, and there are plenty of plugins and things for this, you can do it with PHP, JavaScript, they even have a plugin for WordPress if you have a WordPress blog. So I would check it out, you get your first thousand emails for free and every thousand after that is just $1.50, so there’s no reason not to use this service, it’s super cheap, I mean even on my own blog email is fairly rare, and I know that WordPress commenting system also uses emails but you can always turn those off.

Louis: Yeah, so this is something unlike — so I’m just now looking over it, but it seems like whereas things like Campaign Monitor or MailChimp are more focused on sort of marketing email lists where you can sort of track subscribers, this seems like it’s more for actually sending email from an application, so sort of account activation or notifications or new messages or that sort of thing from an application, right?

Kevin: Correct. So I mean sites that use this are things like Forest, Readability, Tender, you have all these applications that use those; if you’ve ever made a web app before you’ll know that, like I said, getting email to the actual inbox as you want it to is kind of hard, and so if you run a big website, let’s say if you’re running the Forest forums, if you’ve heard of those, and somebody signs up for your site, right, they have to click that activation link to activate their account, but if they never get the email there’s trouble, right, and you have to deal with the support hours and all that stuff. So if you’re using a service like this, you know, obviously you can get your email delivered for your web apps and it’s done right.

Louis: Yeah, it looks pretty nice and the pricing seems very reasonable as you were saying.

Kevin: Yeah. So I haven’t been using this personally, but I’m fixing to make the transition to use this for all of my stuff, I mean there’s no reason not to use this and it should be used.

Louis: Cool. Well, let us know how that turns out.

Patrick: Yeah, and the website for this is postmarkapp.com for those looking for it.

Kevin: Correct.

Patrick: Alright, I’ll go next. My spotlight is off-topic as usual (laughter), I’m going to throw it back to the –

Louis: Really, what a surprise (laughter).

Patrick: Really; really, really, really. I’m going to throw it back to the Epic Rap Battles of History. They just posted the “Final Battle” between Nice Peter, the person who you see in most rap battles and whose channel it’s on, and Epic Lloyd who you also see in all videos, but it’s them, the individual people battling it out for the “Final Battle,” now, will it be the final battle? I’ll let you decide, but since I first featured the Epic Rap Battles of History series back in April, I believe here on the SitePoint Podcast, they’ve releases such epics as Christopher Columbus vs. Captain Kirk, Mister T vs. Mr. Rodgers, and Dr. Seuss vs. Shakespeare, so if you haven’t been keeping up-to-date this is your chance to get back into it. And you can find it at youttube.com/user/nicepeter or Google it and all roads will lead to Epic Rap Battles of History.

Stephan: And I’ll go third. Mine is a write-up that I find hilarious called How to Write Unmaintainable Code and Ensuring a Job for Life (laughter). And it’s pretty fantastic, there’s like for naming, naming your variables, just use a baby name book, you’ll never be at a loss for variable names (laughter). Be abstract, make heavy use of words like everything data, handle, do, digits, just random digits for your function names, just great stuff, so if you’re worried about your job have a look at this.

Patrick: This is a guide to best practices, is that correct, is that how I should read this? (Laughter).

Stephan: Exactly, the manifesto.

Louis: Wow, this is actually pretty long.

Stephan: Yeah, it’s really long.

Louis: There’s an amazing amount of stuff in here, it’s got guides to like really good obfuscation (laughs).

Stephan: How to hide forbidden globals (laughs).

Louis: Ah, man, yeah, terrifying.

Kevin: I love this one, it’s Mary Poppins = Superman+Starship divided by God (laughter).

Patrick: Oh, gosh.

Stephan: You’re welcome.

Louis: I’m not going to show this to any of my co-workers. Fantastic. Mine for this week is something that someone else talked about last night at the Melbourne Web Developer Meetup, it is a little JavaScript library called Jasmine, you can find it at pivotal.github.com/jasmine. They describe it as a behavior driven development framework for testing JavaScript code, so it is exactly what it sounds like, it’s sort of a unit testing framework for JavaScript, so they sell it as follows, it doesn’t depend on any other JavaScript frameworks, it doesn’t require a DOM and it has a really straightforward syntax, so it’s pretty cool, if you just have a look at the website they’ve got a little example there showing how to set up a simple expectation; if you’re not familiar with behavior driven development I guess there’s a lot of other reading out there, but if you are familiar with test driven development and you’ve been using it in your server side code then it might be interesting to have a look at using it in JavaScript as well, at least I will be next time I write JavaScript.

Patrick: (Singing) You know that I’ve got Jasmine on my mind. That’s a song, sorry (laughter), it’s a song by Black Rob featuring Carl Thomas, anyway, very good. I’m tempted to hand that programming guide to like — I mean wouldn’t it be funny to hand that to someone who was just wanting to get started in programming and then watch them just be terrible, and it excites me, and that would be very mean, but it’s like if that was someone’s first guide, like they just found this and somehow missed the heading and thought this was an actual guide like what would the end result be? I’m curious, quite curious.

Louis: I’ve seen code that looks like it was written as if this had been taken as a literal guide (laughs).

Stephan: Good job, Stephan.

Kevin: Wasn’t that called Geocities back in the day?

Patrick: Oh, ho, ho, wasn’t that called Geocities back in the day, Kevin said, yeah (laughter).

Louis: I never saw their implementation code; I’m probably saner as a result of it. Yeah, awesome, I guess we can wrap it up then.

Kevin: I’m Kevin Dees and you can find me at kevindees.cc and also on Twitter as @KevinDees.

Patrick: I am Patrick O’Keefe for the iFroggy Network. I blog at managingcommunities.com; on Twitter @ifroggy, i-f-r-o-g-g-y.

Stephan: I’m Stephan Segraves; you can find me at badice.com and on Twitter @ssegraves.

Louis: And you can follow SitePoint on Twitter @sitepointdotcom, that’s sitepoint d-o-t-c-o-m, and you can follow me on Twitter @rssaddict. If you want to leave a comment on this show or find any of our previous shows just go to sitepoint.com/podcast, we’d love to hear what you think; you can also email us at podcast@sitepoint.com. Thanks for listening!

Theme music by Mike Mella.

Thanks for listening! Feel free to let us know how we’re doing, or to continue the discussion, using the comments field below.

Posted in All Podcasts, sitepoint | Leave a comment

Episode 93: Brian Hitney – The Cloud and Beyond

Got a chance to catch up with Brian Hitney. We’ve met up a few times over the last couple of years, but I think this is only our second interview. Brian’s focusing on cloud computing efforts (MS Azure, etc) these days, so we pivoted around that for some time.

File Download (73:25 min / 50 MB)

Posted in All Podcasts, WebDev Radio | Leave a comment

DPC Radio: Distributed Couch Apps – Embracing eventual consistency

Kore Nordmann

CouchDB is a prominent representative of the NoSQL movement. Using its integrated web server and eventual consistent replication you can not only distribute data, but also full application code. This even works for clients which are not always connected to the internet, like e.g. mobile devices. This session gives you an insight Couch apps, their beauty and pitfalls.

You can find Kore’s slides over on http://talks.qafoo.com/

Digg This  Reddit This  Stumble Now!  Buzz This  Vote on DZone  Share on Facebook  Bookmark this on Delicious  Kick It on DotNetKicks.com  Shout it  Share on LinkedIn  Bookmark this on Technorati  Post on Twitter  Google Buzz (aka. Google Reader)  
Posted in DPC Radio | Leave a comment

PUTting Data with jQuery

Original Post. Click here to see the video.

PUTting Data with jQuery

flattr this!

 

Posted in All Podcasts, video | Leave a comment