For anyone struggling with this I have two things that might help
In the moment, you need to get out of bed. Doesn’t matter with you do. You’ll feel tired again after a while and then you can go back to bed. You don’t want your brain associating your bed with being awake
More systemically though. You might not be getting enough exercise. Especially if you work at a desk, or are a student. I like going on long walks, but just find something that works for you. The key here is to experiment
My new thing is to fall asleep around 10-11 pm, then wake up around midnight and not be able to go back to sleep until 2-3 am. That or wake up for like 10-15 minutes every hour or two all night long.
I also had this problem onest, but I solved it, just drink much water one hour before you go sleeping. I drink nothing, and go to the bathroom, right before I want to sleep, I drink only a little, little bit and try to sleep.
It works, Trust me.
Yea, and than I am waking 20 minutes before my alarm rings up. :)
The consistency of when you eat (or the lack thereof) plays a bigger role in this than the diet itself, although it’s known that heavy meals in the evening can disrupt sleep.
IMO, Ruby is a better Python than Python. It’s simpler, has a cleaner syntax, and if you want to do funky stuff metaprogramming can allow you to do cool, and sometimes unspeakable things. Python has great library support, and slowness and Rails did make Ruby unpopular for a bit, but I would love to see a Ruby resurgence that wasn’t to do with Rails, because it is truly a lovely language to use.
Hell, I would say that in 2023, it’s easier/faster to get something set up and working in Rails than it is with frameworks like Symfony, Express, ASP.NET, etc.
Python feels more like writing JS/ECMAScript without any punctuation.
I don’t know Ruby enough to judge, but I’ll have to say, hard disagree on this particular statement for me. JS to me feels like a bastardized C with some functional-inspired syntax tacked on top, while Python feels like writing English.
I’d wager that most people haven’t used Ruby in anger, so don’t really have the comparison. Those that have used it have probably only used it in a Rails context, which IMO is a fairly limited environment to really play with Ruby.
I definitely love the language, but the ecosystem, library support, and some of the companies that jumped on the initial Rails bandwagon can be extremely backwards and resistant to change in tech.
Can you elaborate on the python part? I’m not a programmer ( I don’t work in the field but I studied programming in high school) but I see python mentioned everywhere, is the language obsolete?
It’s not obsolete, it’s very good, still is. Just that Flask and Django both built on top of Python. So if it’s like late 90s or early 00s. Definitely before either Django / Flask. Python isn’t the new and thing of 2022.
telegra.ph
Oldest