rushsteve1 / spinnerette

Simple Janet web development platform in Go, à la PHP
MIT License
12 stars 1 forks source link

Initial ToDo List #1

Open rushsteve1 opened 3 years ago

rushsteve1 commented 3 years ago

The first list of things to do in the project

Questions

jaidetree commented 3 years ago

Now that I've got a bit more perspective seeing it in action. supporting strings and response objects works quite nicely. At this point in time, feel it would be better to support strings and response objects.

My reasoning is:

  1. By requiring (import html), and using that to encode the content as a string, then it's communicating that html is just a library and encourages others to create alternatives where if we implicitly handled arrays we're showing a strong preference to janet-html and strings over everything else. This keeps it a more even playing field.
  2. Less ambiguity. If janet-html was supported implicitly, then newcomers may interpret it as either transforming into HTML or a JSON\edn tree.
  3. Supporting more kinds of implicit response objects seems like a small optimization that may be best to incorporate upon user requests and after a bit of discussion.

Ultimately it's your call, but I do like the django philosophy of explicit is better than implicit, and reducing magic.

In so far though this project is coming together quite nicely! I can see myself enjoying working with it on personal projects I just want to get out of my head.

rushsteve1 commented 3 years ago

ToDo List Part Duex

Questions