Live data from Hacker News

Show HN: Online web tools to get your work done faster

hreftools.com

31–37 of 37 posts

Re: Show HN: Online web tools to get your work done faster

#31
post #23

Earlier quoted context omitted.

That‘s perfecly valid HTML. Try it. Pass it to a validator.

As I said, we now have rules for broken HTML like that. Yes, it validates. It's Postel's Law run amuck.

The point is that this is legal HTML. The HTML spec does define all kinds of things as illegal (though it defines how the parser should handle them, for reasons of security and consistency), but these things are all legal. All have had the same behaviour forever, though omitting , and tags being legal is, I believe, new to HTML 5. But the rest (e.g. not closing a paragraph tag and not using quotes on simple attribute values) have been legal from the very start, and even popular, though they have fallen out of favour for authoring in recent years.

This is absolutely nothing to do with Postel’s law. I believe that Postel’s law is a terrible idea in most places—it leads to a lack of robustness in practice, and all kinds of security problems, because most programmers are frankly not good at their trade. Rather, the HTML spec defines all behaviour—so there is no liberality about it; you’re simply following the spec with no interpretation—which is the only way to write robust protocols and their implementations.

Re: Show HN: Online web tools to get your work done faster

#33
post #23

Earlier quoted context omitted.

That‘s perfecly valid HTML. Try it. Pass it to a validator.

As I said, we now have rules for broken HTML like that. Yes, it validates. It's Postel's Law run amuck.

How is this broken HTML, it's valid HTML

Re: Show HN: Online web tools to get your work done faster

#34

Earlier quoted context omitted.

If you don't have an established build process, I would consider a one-time minification of an established codebase to be a pretty poor decision. Either setup a trivial build script, or don't do it at all. EDIT: Clearly HN disagrees with me. Tell me, what does being a cowboy get you here? If it's a measurable performance boost, then as soon as you patch it again your site will seem slower. Unless you then manually mi…

I agree. Minify once it's released and you can test it quickly once to make sure there's no reference screw-ups, but as part of your development process - don't touch that file. I'd say most web developers follow this process though, I'd be interested to see statistics on minified sources. I'd say at least half of the websites I right-click view-source don't minify.

and stats on how many times these minify and unminify sites have been used would be interesting.

I've used them more than a dozen times. Some sites get the minification just to ramp up a google pagespeed number - not really for the end users - so why bother with a build process? Write some html, ftp. Then pagespeed numbers matter to some people and in some competitive industries - view source, web minify, ftp. done.

Re: Show HN: Online web tools to get your work done faster

#35

Earlier quoted context omitted.

I agree. Minify once it's released and you can test it quickly once to make sure there's no reference screw-ups, but as part of your development process - don't touch that file. I'd say most web developers follow this process though, I'd be interested to see statistics on minified sources. I'd say at least half of the websites I right-click view-source don't minify.

and stats on how many times these minify and unminify sites have been used would be interesting. I've used them more than a dozen times. Some sites get the minification just to ramp up a google pagespeed number - not really for the end users - so why bother with a build process? Write some html, ftp. Then pagespeed numbers matter to some people and in some competitive industries - view source, web minify, ftp. done.

But again, if it's so important, then why leave it a manual process?

If it's critical to the business needs, script it. If you need to do it every time you fix a bug, make it automatic.

Re: Show HN: Online web tools to get your work done faster

#36

What is the HTML compressor using? It’s missing quite a few opportunities. Take this input HTML: This is a title Well. I wonder… It produces this output: This is a title Well. I wonder… It converted “doctype” to uppercase (equivalent, but bad for compression). It didn’t strip and as superfluous. It didn’t remove unnecessary quotes around attribute values. It didn’t remove the unnecessary closing tags. Here’s what I s…

Uh, yeah. Now that we have rules for parsing broken webpages, let's intentionally break our webpages.

If it complies to the spec, it's by definition valid syntax and suitable for production. Now whether or not you want that in your source code is totally up to you.

Just because you can write your whole app in one line of JavaScript doesn't mean you should maintain that as source code. You sure want that as your production bundle though.

Re: Show HN: Online web tools to get your work done faster

#37
post #32

maybe it's just me but i feel like using of any of these "tools" would slow me down when compared to using the equivalent shell-foo or a language built-in/library. also seems like a terribly brittle externality to add to my life

oh man you can't delete comments? another reason why i shouldn't be on hackernews. nice work making something sorry for bein' a jerkk
Post reply on HN