Better HN
topnewbestaskshowjobs
Log inSign up

enyo

559 karma · joined Feb 20, 2013 (13y ago) · 53 submissions

Projects: https://www.dropzone.dev https://www.yesmeno.com https://www.pausewith.me https://www.colorglare.com
Submissions

31.

To close or not to close – Void HTML elements(medium.com ↗)

4 points · by enyo · 8y ago · discuss

32.

A creative way of presenting a music video(colorglare.com ↗)

1 points · by enyo · 10y ago · discuss

comment 12y ago · link · parent

Thank you.

comment 12y ago · link · parent

You are very mistaken if you think that I wish for JavaScript to die. It is neither my wish nor my forecast. I just hope that other languages will make it into the browser at one time.

comment 12y ago · link · parent

"overly-clever"? Not sure about that... BrowserScript seemed to fit. I didn't expect to get whipped that much over it. Maybe I'll just change it back to JavaScript and add a note that this can be applied to any other browser side language. I don't quite see what the big fuss is though, to be honest.

comment 12y ago · link · parent

In my opinion, Dart is the first browser side language, that has any possibility of changing this monopoly. I don't think that it's a good thing that JavaScript is the only language you get in the browser, but that has nothing to do with dogma (I coded a lot in JavaScript, and it has it's place).

As stated below, I will probably remove this Introduction, since it seems to distract from what this article is about. I hope you consider reading the article anyway.

comment 12y ago · link · parent

In all fairness, I stated "hopefully". I agree that it is more wishful thinking than reality. It just seemed strange to me to call "BrowserScript" JavaScript, since it should not be limited to JavaScript in my opinion.

I will probably remove that statement though, since a lot of people seem to have extremely strong feelings about that, and are distracted from what this article is actually about.

comment 12y ago · link · parent

Loading the content resources with AJAX allow you to preserve the current UI state. Depending on your website and your needs this step might be completely unnecessary.

It becomes necessary when you have elements that you want to persist on your page. That might be an audio player or the state of a menu that you want to avoid painting.

It's just about a better UX for your users.

comment 12y ago · link · parent

I'm sorry you feel that way.

This is my personal website. I also use it to showcase my photographs. I agree that they don't add anything to the content.

40.

Stop writing stateful HTML(colorglare.com ↗)

40 points · by enyo · 12y ago · 83 comments

comment 12y ago · link · parent

Yes it is! Who said that? (Or was that all you got out of the article?)

comment 12y ago · link · parent

It was "it's" before.

comment 12y ago · link · parent

Thanks. Corrected.

comment 12y ago · link · parent

I'm talking about the specs in the article (not how browsers interpret errors). So </br> may be interpreted as <br> but is actually a syntax error. I quoted the HTML5 specification in the VALIDITY section of the article.

comment 12y ago · link · parent

How to close void tags is more of a leitmotif to learn more about the whole subject, and the reason for investigating it. If you're not interested in understanding the core features of the markup language you're using, then this article is definitely not for you.

46.

To close or not to close – Void HTML elements(colorglare.com ↗)

358 points · by enyo · 12y ago · 158 comments

comment 13y ago · link · parent

Dropzone also supports click to upload, so you do not HAVE to drag'n'drop. It's just cooler if you can ;)

comment 13y ago · link · parent

You're not the first criticising this about my library. I used adapters in another lib of mine (http://www.opentip.org) and it worked great, but the work involved in testing all browsers is not comparable to just using jQuery (especially when working with events). But it is definitely on my todo list (https://github.com/enyo/dropzone/issues/39).

EDIT: PS: I also chose jQuery over any other lib just because it's the most wide spread. Personally I have worked with Ender, Component, RequireJS and don't use jQuery in all my projects.

comment 13y ago · link · parent

Do you mean a button, that, when clicked, uploads the image from clipboard? (https://github.com/enyo/dropzone/issues/38)

comment 13y ago · link · parent

Thanks for the suggestion. I created an issue for it and will try to add it soon: https://github.com/enyo/dropzone/issues/37

comment 13y ago · link · parent

I'm in the progress of developing hooks for removing (and programmatically adding) files. So this feature will be available soon. (https://github.com/enyo/dropzone/issues/36)

comment 13y ago · link · parent

Yes that's the bug in question. There isn't really a fix for it, but a very very ugly workaround. Look at ios-imagefile-megapixel to see how they fixed it if you want. Or you can wait a few days for my implementation will be better documented.

comment 13y ago · link · parent

Hi, I'm the author of Dropzone. iOS has a bug (as already mentioned by other users) resizing images in canvas. There are workarounds, and I already started implementation (https://github.com/enyo/dropzone/commits/ios-squas). Unfortunately ios-imagefile-megapixel doesn't meet my coding standards so I didn't want to just take the code of their implementation. I will release my fix soon.
12