Good point. I think knowing where to draw that line comes with experience (and having to fix lots of other people’s code).
Good point. I think knowing where to draw that line comes with experience (and having to fix lots of other people’s code).
I would have liked some comments explaining the rules we are trying to enforce or a link to the product requirements for it. Changing the rules requirements is the most likely reason this code will ever be looked at again. The easier you can make it for someone to change them the better. Another reason to need to touch the code is if the user model changes. I suppose we might also want a different password hash or to store the password separately even a different outcome if the validation fails. Or maybe have different ruled for different user types. When building a function like this I think less about “ideals” and more about why someone might need to change what I just did and how can I make it easier for them.
There are some monitoring tools which take a snapshot of the process table every few minutes. If you happen to run one of those, and your process happens to be running when the snapshots is taken you can catch it.
If this is a postgresql server and you have logging turned up with pids being logged, and the pin in question was a database process, you can probably find it in the database logs.
While I don’t tow more than 2 or 3 times per year, I like to daydream about owning a boat. I need to be able to tow one to imagine I could own one some day.
Try Duluth Trading Company. They have very high quality clothes for large men. They are pricey but totally worth it for fit and durability.
Most people I know support Trump because they perceive him as a “strong man”, which they value in a leader. They see Democrats as “soft”. They his wealth, his treatment of women, his treatment of employees, and his reaction to being shot as signs of strength. Another reason is they see him as being more supportive of their one true religion. He comes across as the chosen one and closer to God than most.
If the Ukranian numbers are to be believed (~1500 casualties/day) then this is about a 1 week supply of cannon fodder.