# if-else 之debug跟爸爸媽媽對我的關心 ###### tags: `CWL` `Buddhism` `Programming` `CS` [TOC] ## Chinese contents ▍與爸爸媽媽日常的關心常常產生反面的效果 QQ 💡 寒流來襲,聽到「今天很冷 你怎麼穿這麼少」反而刻意不穿暖 💡 正翻開書,聽到「你怎麼都沒在讀書」馬上把書丟開出去玩 💡 正在跟同學打麥塊,聽到「不要打了 給我去唸書」只好再打三個小時 頻繁重複的叨念 形成了心理學中的制約(Conditioning) 只要被唸 -> 就有股情緒推動我們反射性反著做 呵呵 這類制約行為在程式語言中稱作條件判斷(conditionals) 也就是:如果(if)...我就(do)... ``` 例如 if _爸媽說往東_, do _往西走_ 可以加入替代陳述:如果(if)...我就(do)...; 不然(else)我就... 例如 if _爸媽說:今天很冷 你怎麼穿這麼少_, do _穿短袖短褲出門_; else _帶件外套在身上_ 再加入鏈狀條件:如果(if)...我就(do)...; 再如果(else if)...我就(do)...; 不然(else)... 例如 if (爸媽說:不要再打麥塊惹), do(用力地給它打下去); else if _爸媽溫柔地提醒 do _心不甘情不願關上電腦; else _打到天花地老,建造史詩大帝國 ``` 制約的好處是:形成習慣、節省腦力、快速反應,但可能導致自己忘記,當初做反應的目的與背後邏輯,以及確認這個行為長期下來,是不是對自己有利,幾年後是否還是合理有效 例如出社會後,每當聽到爸媽說「早點睡,不要熬夜」,還是反射性地產生厭煩與抵抗,但卻忘記熬夜會造成自己身體健康下滑的事實 嘗試觀察思考自己情緒的生成原因是一件非常有趣的事情,大家可用 if-else statement 去觀察一下,為自己的幸福 debug! ## English contents There are sometimes negative outcomes after parents caring about their children. Such as, During heavy winter strikes, we, kids will hear "Today is very cold outside, remember to wear your jackets." Then we decide not to wear anything and go out. When we are trying our best to open the first page of our school book, hearing our parents saing "Why arn't you studying". We decided to throw away the book, and go playing Minecraft. The repeated nagging has become something, in psychology, called "Conditioning". Being nagged by parents -> Doing the opposite way In programming, this is called "Conditions". It is: If (Being nagged by my mom): do (Do it the opposite way) The pros of conditioning: - Make something a habit - Reduce our brainpower - Efficient and fast response The cons of conditioning: - Forget the logic behind our actions - Ignore the consequence of the actions For instance, our parents will ask us to sleep early. But, we are conditioned to arise the resistance to sleep early. Instead, we may watch Netflix without the truth that "stay up late will make my body health go down no matter what my mom say." Sometimes, we do need some constrictions by our parents or even ourselves. Because without conditions and boundaries, just like people with too much conditions and restrictions, both will have some deviant Behavior. Using "If-else" to analyze your daily life, body, speech and mind. And debug it to make your life happier and happier ^^ ## Diagram picture