A legislative mandate would do what decades-long efforts have failed to do: force districts to make computer science a priority by offering the class.