HNHacker News
TopNewBestAskShowJobs

XLcommerce

185 karma · joined June 20, 2011

submissionscomments
XLcommerce··on Going Simple with JavaScript
c'mon you know i meant that 10-20 lines are for an ie6+ solution.

You have to justify why you use something additive, not why not to use it.

If your decision not to use jQuery (or another lib that makes your life easier) is because of performance then you're optimising much too early.

Personally I optimise for developer time first and raw performance much further down the line.

And dom querying is not usually the bottleneck in most sloppy sites... its way too many event listeners. And jQuery comes to the rescue once again with extremely easy (to read and write) event delegation.

Sorry I don't mean to offend you or anything... but if you're rejecting jQuery or extjs or zepto etc. on the basis of performance then you're probably doing it wrong. Keystrokes count. Libraries allow you to focus less on plumbing. That's the whole point.

XLcommerce··on Going Simple with JavaScript
lucky you.. you don't have to support anything below ie9. Not everyone has that luxury.
XLcommerce··on Going Simple with JavaScript
Yeah sorry that one liner is pretty ugly. Also I don't see the issues with chaining and debugging. Chrome has a v.good debugger. And to top it off querySelectorAll requires ie8+.

Why not just use a extremely well tested library that automatically gives you full browser support? All for the equivalent price of one very small jpeg file.

XLcommerce··on Going Simple with JavaScript
you're kidding right? Off the top of my head event normalization is worth its weight in gold.

Oh and try querying for something like this in ie6.

'.class + .other_class > .yet_another_class'

Having css3 query support in legacy browsers is awesome.

Not to mention productivity gains from method chaining and batch assignment such as

$('.somehting').find('*').css({'font-weight': 'bold'});

Do you really want to type the 10-20 lines of JS that are required to make that happen? I don't.

XLcommerce··on Going Simple with JavaScript
I think the point is that learning how to program around all the browser quirks is such a monumental waste of effort and time. So in reality i'd say jquery (or any other lib like it that smooths out inconsistencies) is required. Unless you enjoy pain or have something to prove :)
XLcommerce··on Going Simple with JavaScript
I've recently thought about going 'Naked' JS, but I'm dubious about the benefits.

I haven't dug into the code, but doesn't jQuery already use native methods like querySelectorAll where available?

I guess if all you need is to query the document and you know your target audience is running a modern browser... then sure, save yourself 31k :)

XLcommerce··on Show HN: Mothereffinanimatedgif
No worries. I was v. disappointed when I had to fall back on flash for resizing. Felt great having client side image resize and upload (with progress) without using flash.
XLcommerce··on Show HN: Mothereffinanimatedgif
Just fyi:

uses filereader. There is a bad (crashing) memory leak in Chrome.

Bug report here: http://code.google.com/p/chromium/issues/detail?id=114548...

Beware if you intend to use filreader to read many large files. Allocated mem never gets released.

Spent 2 days getting a html5 client side image resizer/uploader only to hit this killer bug.

Had to use Flash in the end, which by the way performs like a demon on binary data.

XLcommerce··on A minimal CSS layout framework
border-box is the only sane way to work with boxes... it's the way things should have been from the start. The mental gymnastics involved in box layout is so unnecessary :(
XLcommerce··on Post-Mortems For Ten Products I've Built
wow that is a long list! what time period are we talking here? Some of the ideas seem like they would need at least 12 months if not more to successfully bring to market. Are you sure you aren't jumping to the next big thing before giving the last a good go?
XLcommerce··on Web Standards
Developers are ambitious. We want to build better apps now not in 6 years time when the W3C have finally moved on this or that issue. Right now webkit is enabling developers so it wins. Supporting every browser is either economically not viable or not possible without sacrificing features. If mobile firefox wants to compete it needs to step up. If developers are voting with their feet and actually using webkit features in the wild then they are defacto standards. Firefox better pull its finger out or it will die.
XLcommerce··on Show HN: Github for Designers
Great work. I can really see a use for this kind of thing for designers.

My favorite is the side by side view. Speaking of which there is a bug in latest chrome on win where the side by side panels get dragged when using the scrollbar.

XLcommerce··on Khan Academy: It’s Different This Time
I think we're in agreement. I totally agree that good teachers need to be rewarded and that and bad teachers need to be identified and helped or sacked. We owe that to our kids.

I never said that it cant be measured. It's just really hard to do it right.

The solution is not to simply use private sector type performance reviews since correcting for differences within the school is difficult let alone correcting for differences between schools.

Measuring teacher performance is a hot area of debate around the world, and a consensus for how to "do it right" hasn't yet emerged.

Lots of questions need to be fairly addressed:

-- Will testing be able to differentiate between school-based and non-school-based influences on student performance?

-- Will testing be able to differentiate between the influences of different teachers on individual students or groups of students? What might be the ultimate extent of increased standardised testing?

-- What criteria are intended to form the basis of a performance-based pay scheme?

-- If the predominant criterion used is to be student progress as measured by standardised testing, what measures will the Government take to ensure the implementation of valid and appropriate testing regimes and instruments?

These questions come from an issues paper published by Australian Primary Principals Association.

Also from the paper:

In jobs where pay is linked to performance: The criteria for determining the payment of additional rewards are to be objectively determined: whether in volume of product or sales, increase in profits, or additional hours worked. More accurately put, the context of the industries in which systems of this kind work well are those where outputs and outcomes are easily, and objectively, quantifiable. This quantification can usually (although not always) be reduced to monetary terms.

So how exactly to we quantify and reward the teacher who helps her students develop skills that 'are not quantifiable'?

PS: In Australia primary and secondary teachers can't get tenure, however given a powerful union it is difficult to sack teachers, and this admittedly is a big problem.

XLcommerce··on Khan Academy: It’s Different This Time
Not really. I would have though that: 'do it a lot and you'll get better at it' is fairly self evident. Obviously testing of some sort would help us to determine how much better one became.

I'd go so far as to say that it would be very difficult not to improve at something you were doing over a period of time.

XLcommerce··on Khan Academy: It’s Different This Time
I understand your points and they're all fair in the context of programming as a job. Code is code and can be evaluated in an atomic fashion, its objectively either good(correct, efficient etc) or not.

How exactly do you accurately assess teaching? Test scores? I've worked at very tough schools. High unemployment, high crime area. Good teaching in this context meant the teacher showed up, made it through the year without having a mental breakdown and student attendance was > 50%.

On the flipside I've worked at top tier private schools where success was gauged by how many of our students were in the top n% for the state.

Teachers fear outside assessment from bureaucrats. Here in Australia we even have league tables for schools, and there has been talk of tying teacher pay to student performance. Obviously a worry if you are a classroom teacher who understands the human component of teaching (ie it's more than test results in a spreadsheet).

In my opinion to truly assess a teacher you'd need to observe their teaching for weeks to see how they deal with the myriad of situations that arise in the classroom. What we end up with though is standardised testing which ends up telling us what we already know.

XLcommerce··on Khan Academy: It’s Different This Time
Are you a better programmer now than you were 5 years ago? How do you know? Has anyone evaluated your work and told you are now 18% more efficient than 5 years ago?

It may not be 100% accurate (since we are all masters at deluding ourselves), however it is possible to self-assess. Speaking as a teacher I know that my work is much better than it was 7 years ago (when I started). Simply delivering the material so many times has meant that I now have far more effective ways of describing and teaching certain concepts. I know that 7 years ago teaching a 10th grader how to iterate over an array would have taken 5 false starts and 4 weeks worth of instruction (bearing in mind that many lack motivation). Now the same content takes half the time because I can anticipate what kinds of questions will arise and how to deal with them effectively.

Oh and teacher evaluation is hard. Teachers fear it because it's done by non-teachers to teachers. And as some comments on this thread indicate the world is full of monday morning quarterbacks who have lots of opinions without any real experience.

XLcommerce··on Why Do Cells Age? Extremely Long-Lived Proteins
Meh... you're entitled to your opinion. I wont lament the 'threat' to my unborn children's children. Of course if you're content to treat death as 'natural' then you're free to embrace it. I for one wish for eternal life... I can't imagine this ever getting boring.
XLcommerce··on Show HN: I built an easier way to browse ThemeForest
Great site, however hate the infinite scroll. Makes it impossible to bookmark your place in the list (and is very disorienting). Also the animations of new tiles coming in are choppy and distracting.

Would work much better as a simple paged list with an option to set page size for people who prefer more options/page.

XLcommerce··on The Unintended Effects of Driverless Cars
this doesn't sound like a show stopper to me... simply an opportunity for someone to invent a one-size-fits-all car seat :)
XLcommerce··on PHP Fog is Free Forever, and Now Even More Free
are you serious? So you want a free domain too? some people!
XLcommerce··on [dead]
Not only that, but the content is shamelessly scraped without even the decency of including an attribution to the original authors.

This post should be getting flagged and thrown out!

XLcommerce··on [dead]
Why not link directly to the original demos/tutorials? Why is the repo actively designed to block me from finding the original authors?

This is quite bizarre. Not even the zip files have attributions... wtf is this?

eg: gloss under effects + UI has absolutely no context and the original can be found here: http://plugins.jquery.com/project/gloss

by someone called Alaa Badran.

Scraped content, stolen link juice and no attribution in the repo zip, instead there's a text file with www.DAVIDHIGGINS.me/repo/ link????

classy

XLcommerce··on Codify: native coding environment for iPad
Apple already allows JS (and other) interpreters to be embedded as used in projects such as Titanium and Impact game engine.
XLcommerce··on Show HN: A storebuilder contained in a single text area
This is an MVP. As such I think it works marvelously. Bells and whistles can be added later and if they're added with the same ideology of simplicity first then this could be a real winner of a product.
XLcommerce··on Show HN: A storebuilder contained in a single text area
How about a small merchant with a bricks and mortar store that wants the most friction less way possible to list goods online? Business people are busy. If it takes 30 sec to set up a store that's a big win.
XLcommerce··on Show HN: A storebuilder contained in a single text area
Love the idea. The execution is perfect. Really caught my attention because I'm developing my own store builder.

Works magnificently well for techies because we are all familiar with store admin areas, publishing a site etc. Great if techies are your target market.

For an average Joe it might be a bit confusing. People may not even realise they are building a store, and instead think... 'Why can anyone just add a listing to this page?'

To help with this a guided tutorial may be useful.

All the best.

XLcommerce··on Video: Quantum Levitation
from the comments

In the lab we succeeded in putting up to 0.5Kg on top of one disc. Keep in mind that the thickness of the superconducting layer is ~1micron ! Its a strong effect.

XLcommerce··on Adobe Muse - HTML websites without writing code
There is no reasonable argument for going out of ones was to cater for non-js users. It's on by default in every browser. If a user turned it off for whatever reason they they'll know to turn it on again if they need to.
XLcommerce··on Anonymous hijacks Syria's government pages
How are people in Syria accessing the net? If it's mostly mobile and/or ie6 then I hope this was tested on those platforms.
XLcommerce··on Vandalised home puts pressure on Airbnb
Spam is a problem with a technical solution. Determining the 'goodness' of a person seems a lot harder.
← PreviousPage 2 of 3Next →