Skip to main content
added 2 characters in body
Source Link
J_H
  • 35.2k
  • 3
  • 32
  • 129

Actually, a bunch of those comments attributes look like it's not sensible to store a NULL in them. Is it really a comment if there is no message? And given their defaults, insisting that timestamps be NOT NULL is just too easy not to do it.

When you're small, spammers won't notice / won't care. If you grow larger, you will attract their attention. At which point you may want to renege on a promise you made to early users who made the site successful, and impose mandatory logins so that abusive accounts can be disabled or throttled. Also, reputation systems can improve the UX but they need an "identity" foundation to build upon.

Actually, a bunch of those comments attributes look like it's not sensible to store a NULL in them. Is it really comment if there is no message? And given their defaults, insisting that timestamps be NOT NULL is just too easy not to do it.

When you're small, spammers won't notice / won't care. If you grow larger, you will attract their attention. At which point you may want to renege on a promise you made to early users who made the site successful, and impose mandatory logins so abusive accounts can be disabled or throttled. Also, reputation systems can improve the UX but they need an "identity" foundation to build upon.

Actually, a bunch of those comments attributes look like it's not sensible to store a NULL in them. Is it really a comment if there is no message? And given their defaults, insisting that timestamps be NOT NULL is just too easy not to do it.

When you're small, spammers won't notice / won't care. If you grow larger, you will attract their attention. At which point you may want to renege on a promise you made to early users who made the site successful, and impose mandatory logins so that abusive accounts can be disabled or throttled. Also, reputation systems can improve the UX but they need an "identity" foundation to build upon.

added 99 characters in body
Source Link
J_H
  • 35.2k
  • 3
  • 32
  • 129

Actually, a bunch of those comments attributes look like it's not sensible to store a NULL in them. Is it really comment if there is no message? And given their defaults, insisting that timestamps be NOT NULL is just too easy not to do it.

Actually, a bunch of those comments attributes look like it's not sensible to store a NULL in them.

Actually, a bunch of those comments attributes look like it's not sensible to store a NULL in them. Is it really comment if there is no message? And given their defaults, insisting that timestamps be NOT NULL is just too easy not to do it.

added 2 characters in body
Source Link
J_H
  • 35.2k
  • 3
  • 32
  • 129

Well, it's your funeral,you can do what you want.

I I always recommend that folks persist UTC seconds since epoch (1970) in the database, and then worry about local zone offsets on the way in and the way out.

create table users (
    id ...
    username ...
    password text   not null,

IfWhen you're small, spammers won't notice / won't care. If you grow larger, you will attract their attention. At which point you may want to renege on a promise you made to early users who made the site successful, and impose mandatory logins so abusive accounts can be disabled or throttled. Also, reputation systems can improve the UX but they need an "identity" foundation to build upon.

Well, it's your funeral, do what you want.

I always recommend that folks persist UTC seconds since epoch (1970) in the database, and then worry about local zone offsets on the way in and the way out.

create table users (
    id ...
    username ...
    password text not null,

If you're small, spammers won't notice / won't care. If you grow larger, you will attract their attention. At which point you may want to renege on a promise you made to early users who made the site successful, and impose mandatory logins so abusive accounts can be disabled or throttled. Also, reputation systems can improve the UX but they need an "identity" foundation to build upon.

Well, you can do what you want. I always recommend that folks persist UTC seconds since epoch (1970) in the database, and then worry about local zone offsets on the way in and the way out.

create table users (
    id ...
    username ...
    password text   not null,

When you're small, spammers won't notice / won't care. If you grow larger, you will attract their attention. At which point you may want to renege on a promise you made to early users who made the site successful, and impose mandatory logins so abusive accounts can be disabled or throttled. Also, reputation systems can improve the UX but they need an "identity" foundation to build upon.

Source Link
J_H
  • 35.2k
  • 3
  • 32
  • 129
Loading