News for hackers. Stuff that matters.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by rustc on Sunday August 22, 2021 @06:53AM (#28264454)
> There are two forms of licenses available for TypeIt -- an open source license, a limited commercial license, and an unlimited commercial license.

> Open Source License

> An open source license exists as GPLv3, and permits you to use TypeIt in any open source or personal project. Along with many other details, the GPLv3 license requires that any publicly released code using TypeIt be licensed under the GPLv3 as well.

I'm not familiar with using GPL licensed code on the frontend. If I include TypeIt on my site using a <script> tag, do I need to release all frontend JS on my website as GPL? What about the CSS/HTML code? What about the other dependencies I use on the page, like React or Vue, or third party dependencies like Google Analytics?

And do the exact same rules apply if I bundle my whole app into a single JS file (which is more common these days)?

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by geofft on Sunday August 22, 2021 @09:10AM (#28265184)
The unsatisfying practical answer: No company whose business relies on their website is going to be comfortable assuming the answer is no. So "commercial" usage, where "commercial" is defined as "worth suing and has lawyers who are worried about being sued," needs to buy a license, and "personal" usage, which is the complement of that, doesn't.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by IAmEveryone on Sunday August 22, 2021 @08:05AM (#28264786)
I have no clue. But, based on the theory that I really just don't want to get sued, even if I happen to be right, it seems important that neither does the author:

> permits you to use TypeIt in any [...] personal project

That's trying to establish some requirement to be non-commercial, which the GPL doesn't do. In fact the author here should know this better than most people, considering they are trying to sell something that's also GPL-licensed.

So if you get a good lawyer to give an all clear to use this in your Uber-for-Platypus-Stylists venture, they will get just as mad as if you don't.

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by rustc on Sunday August 22, 2021 @08:29AM (#28264927)
Good point. It says "any open source or personal project". I think the "or" implies it's ok to use in non-open source projects as long as they're "personal". However the repo just contains the standard GPL-3.0 license, so I'm not sure.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by cxr on Sunday August 22, 2021 @09:56AM (#28265491)
It's interesting to see people start getting license-conscientious when the GPL family is mentioned, esp. for concern over how to obey the license terms.

The MIT license is one of the most popular licenses for Web developers, but it has license terms, too, and almost no one cares about whether they're following them—in fact many people don't.

Are you following the MIT license terms now? If not, are you going to start?

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by rustc on Sunday August 22, 2021 @10:41AM (#28265849)
> in fact many people don't

Do you have any examples?

> Are you following the MIT license terms now?

Yes, I believe I am.

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by cxr on Sunday August 22, 2021 @12:14PM (#28266686)
The MIT license has two conditions:

1. You must reproduce the copyright notices

2. You must reproduce the MIT License terms themselves

(To be clear, this applies to "_all_ [emphasis mine] copies or substantial portions of the Software".)

Many, many, many projects satisfy the first condition but drop the ball when it comes to the second. This has been discussed on HN before. I don't have a link.

> Do you have any examples?

<https://hn.algolia.com> for one example among a glut. I actually hedged by choosing to go with "many" in my first comment (and above) instead of "most". It probably is "most".

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by gitgud on Sunday August 22, 2021 @08:41AM (#28264996)
A bit confusing to read. The landing page says "the most versatile typing utility ever", programming typed languages is what comes to mind before literally typing on a keyboard... Maybe it's intentionally vague to be funny...

Interesting project though!

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by ComputerGuru on Sunday August 22, 2021 @06:20AM (#28264288)
I think the title is broken? It’s currently just “Show HN: A”
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by jawns on Sunday August 22, 2021 @07:22AM (#28264571)
I guess we'll have to install TypeIt to see the rest of the title typed out.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by jfax on Sunday August 22, 2021 @06:49AM (#28264425)
Thought it would be a new programming langauge, in the tradition of naming as B, C, D, F#...
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by isaacimagine on Sunday August 22, 2021 @07:23AM (#28264576)
The E programming language [236] is pretty cool, no need to skip it :P

[236]: https://en.wikipedia.org/wiki/E_programming_language

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by JadeNB on Sunday August 22, 2021 @07:35AM (#28264628)
Perhaps it could be called A Programming Language?
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by jodrellblank on Sunday August 22, 2021 @08:02AM (#28264765)
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by petepete on Sunday August 22, 2021 @10:17AM (#28265662)
That'd make googling for tips that bit more difficult!
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by qnsi on Sunday August 22, 2021 @06:31AM (#28264341)
I thought its about javascript types not about typing and was confused as hell at the beginning
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by _query on Sunday August 22, 2021 @07:49AM (#28264700)
This looks really great! Congrats on launching!
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by tqwhite on Sunday August 22, 2021 @09:02AM (#28265142)
Why? Is the point to show typing animation?

Maybe I'm dumb. What's the use case?

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by quickthrower2 on Tuesday August 24, 2021 @01:27PM (#28292110)
Often used for headings to demonstrate how versatile a product is.

For example if I am selling a cup the heading would be typed out:

Awesome cup! Perfect for coffee.

Then coffee gets backspaced out and it types tea.

Then that gets backspaced out and it types hot chocolate

Etc.

Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by logankeenan on Sunday August 22, 2021 @09:41AM (#28265380)
I use a typing library in my app to showcase the different things that might be typed into a text field. It draws attention to that particular spot in the app too.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by inetsee on Sunday August 22, 2021 @10:03AM (#28265539)
A lot of programming tutorials on Youtube animate the typing in of text. That was the first (and only so far) use case that I thought of.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by gingerlime on Sunday August 22, 2021 @10:10AM (#28265603)
my pet peeve with typing UIs is that they often break on mobile and cause the rest of the page to jump up and down as the text is being typed and inevitably lines get added or removed.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by dave_sullivan on Sunday August 22, 2021 @09:12AM (#28265193)
Nice! I've been looking for something like this.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by chanpatorikku on Sunday August 22, 2021 @08:50AM (#28265071)
i thought some other similar typing library has already been available. maybe i am wrong. Nice library.
Re:Show HN: TypeIt – A Versatile JavaScript Animated Typing ... by ciaran16 on Sunday August 22, 2021 @09:17AM (#28265226)
Since this appears to allow arbitrary html, I can see this causing some XSS vulnerabilities if used with user input.