tedsanders / betthebill

The best way to split a bill quickly and fairly
3 stars 0 forks source link

To do: Validation #12

Closed tedsanders closed 9 years ago

tedsanders commented 10 years ago
  1. Validate numerical entries
tedsanders commented 10 years ago

All browsers are handling non-numerical entries differently. IE11 doesn't allow nonnumbers. Chromes allows nonnumbers. Firefox allows nonnumbers but turns box red.

Oh well. I haven't seen anything break. I'm gonna remove it from 2.0 milestone but leave this as an open issue.

tedsanders commented 10 years ago

Hmm. Actually alphabet characters don't break things, but on some browsers numbers+alphabet characters do. Chrome is ok though.

tedsanders commented 10 years ago

Putting nonnumbers in can also break the graph. Slices will be invisible when you type numbers back in.

tedsanders commented 10 years ago

http://gsferreira.com/archive/2014/05/angularjs-smart-float-directive/

tedsanders commented 10 years ago

https://gist.github.com/LeoDutra/3057153

tedsanders commented 10 years ago

https://www.wolframcloud.com/objects/e4e8bff2-3fd1-403e-b9cf-2c809b995ccf?x=%22five%20plus%20pi%22

Wolfram is so underrated. I just built a natural language parser API in a couple lines of code. Go check out the link. It understands strings like "five plus pi * 4"

tedsanders commented 10 years ago

Hmm, not smart enough to understand roman numerals. Which Wolfram|Alpha understands.

tedsanders commented 10 years ago

Hmm, also does "pi" but not "e"

tedsanders commented 9 years ago

Wolfram validation looks amazing, but I'm afraid it may not be around in 10 years. Plus I'm lazy. Shelving for 3.0. Also fixed numberical validation bug where it was validating for integers instead of floats. Not sure when that happened, but it's fixed now.