Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Let’s keep these short and to the point.

Not everyone has a first and last name.

Internet connections can cut out at any moment while using a web form.

  • Show a proper error and test for this using your web browser development tools.

  • The fetch api won't have an error response / status code in these cases

<select> inputs without a value attribute in the option tags will submit other-language values if client-side translation is activer

  • use <option value="hello">hello</option> instead of just <option>hello</option>

Python3’s built in round function will round .5’s towards the even choice

  • round(0.5) == 0, round(1.5) == 2, round(2.5) == 2

    # Hack
    def rounder(number, ndigits=None):
        return round(number + 1e-8, ndigits)

  • No labels