Background
With the help of AI, I can now handle both frontend and backend development for a single feature. The backend language we use at my company is Python, so I'm keeping a record of what I learn.
Boolean Logic
Python uses and, not, or
def is_dev():
return (
not is_prod()
and not is_staging()
)
JavaScript uses !, &&, ||
function is_dev() {
return !isProd() && !is_staging()
}