Live data from Hacker News

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

hreftools.com

21–30 of 37 posts

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

#21

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.

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

#22

I'm curious, who here has a development workflow such that compressing/minifying code via an ad-hoc web tool makes sense? I've always just included it as part of a build process, or at the very least would pipe it into uglifyjs command line. I'm sure everyone's got their own needs but I just don't understand how that would be useful.

You're touching up an old website for your old client and have just a few minutes to...ah, I wonder if there's a quick minimizer out there somewhere? That might be fun to try, and we did just add a bit more overhead to the site.

I haven't done this exact thing, but I've done similar things many times. Not every project has or should have a build process. And unfortunately not all of them even have a command line...

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

#23

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.

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

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

#24
post #23

Earlier quoted context omitted.

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

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.

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

#25

I'm curious, who here has a development workflow such that compressing/minifying code via an ad-hoc web tool makes sense? I've always just included it as part of a build process, or at the very least would pipe it into uglifyjs command line. I'm sure everyone's got their own needs but I just don't understand how that would be useful.

There's a whole world of developers out their that can't automate anything their IDE doesn't support. For many hitting F5 is their build process: https://blog.codinghorror.com/the-f5-key-is-not-a-build-proc...

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

#27

I'm curious, who here has a development workflow such that compressing/minifying code via an ad-hoc web tool makes sense? I've always just included it as part of a build process, or at the very least would pipe it into uglifyjs command line. I'm sure everyone's got their own needs but I just don't understand how that would be useful.

You're touching up an old website for your old client and have just a few minutes to...ah, I wonder if there's a quick minimizer out there somewhere? That might be fun to try, and we did just add a bit more overhead to the site. I haven't done this exact thing, but I've done similar things many times. Not every project has or should have a build process. And unfortunately not all of them even have a command line...

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 minifiy again. And again. Until you setup a build script.

If it's not a measurable performance boost, (And I doubt that you know either way because if you're not setting up a trivial build script then I highly doubt you're putting in the time to profile) then what do you get? The next person to come along gets to have a harder time debugging because you don't have source maps?

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

#28
post #17

Earlier quoted context omitted.

Thanks for the feedback. At initial step, I don't focus much on this thing. I will provide a nice contact page in future.

Perfectly reasonable. I would then suggest changing it from "Contact Us" to "hello@hreftools.com" to prevent any confusion (Principle of Least Astonishment) :)

Doing this will invite bad bots to spam my inbox.

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

#29

Earlier quoted context omitted.

You're touching up an old website for your old client and have just a few minutes to...ah, I wonder if there's a quick minimizer out there somewhere? That might be fun to try, and we did just add a bit more overhead to the site. I haven't done this exact thing, but I've done similar things many times. Not every project has or should have a build process. And unfortunately not all of them even have a command line...

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.

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

#30
post #17

Earlier quoted context omitted.

Perfectly reasonable. I would then suggest changing it from "Contact Us" to "hello@hreftools.com" to prevent any confusion (Principle of Least Astonishment) :)

Doing this will invite bad bots to spam my inbox.

"Bad bots" are reading HTML source code and will find your email address anyway.
Post reply on HN