I speak about what worked for myself about the psychological part (I lost 20kg in 2 years).
First it was to not enter in a willpower fight. I did accept that I will fail, and I did fail many times (sorry did not count, often in the beginning and I was still failing from time to time until the end). But every time i failed, instead of giving up i was telling to myself "ok you failed, but it worked for X days, you trained your body to eat less, let's start again, it will be more easy this time." And it was true. With time your body require less food to fill "full" even when you fail.
Also a lot of ppl here are talking about fasting. I'm not sure about it at all. Your brain may try to prevent the next "fasting time" and may try to trick you to eat more. I would advise to eat at very regular times so your brain "knows" when you will eat (for me: 6:00/12:00/19:00 +/-30mins). Take time to eat, move in another place, etc ... so you appreciate it more.
I liked the cheat days principle because it gives you short term goals, and it helps to keep some pleasure eating food. It also helps to not bring your diet with you when you go to lunch with friends/family. I also noticed that with time I was cheating less during these days.
Preparing food for myself also saved money, sometimes it helped for motivation.
> I'm not sure [fasting] at all. Your brain may try to prevent the next "fasting time"
There are a lot of varieties of 'fasting'.
Intermittent Feeding or 'Time Restricted Eating' involve upping dietary fat to control hunger feelings and ensuring daily caloric needs are met within a shorter timespan. This leaves the body enjoying 'fasting' benefits for longer while enjoying a normal diet.
When I read it first time, it was ok to start to write C programs. When a read it again later I understood that it was much deeper and complete than it seemed first time.
Then, every time I learned something in programming using C (studying operating systems), I read K&R again and found that the answer was there even if I didn't see it before. So it was a good way for me to "validate" that I understood something new.
Note that I never used C at a very high level, and I don't know what is modern C programming, so it may not apply.
I use it in a messy way, but it's what i want : take a note quickly.
I create a page by day with the calendar and there is a full text search tool for when I need to find and old note
I also like the task plugin : you put a todo mark in any page and you have an icon to regroup all the "todos". I put some keywords sometimes, to help to remember later or when i'm using the search tool.
There is a picture plugin, but it's just keeping a link to the real picture, so it's lost when you move it.
I know there is the same kind of tool for vim, but i didn't try it.
First it was to not enter in a willpower fight. I did accept that I will fail, and I did fail many times (sorry did not count, often in the beginning and I was still failing from time to time until the end). But every time i failed, instead of giving up i was telling to myself "ok you failed, but it worked for X days, you trained your body to eat less, let's start again, it will be more easy this time." And it was true. With time your body require less food to fill "full" even when you fail.
Also a lot of ppl here are talking about fasting. I'm not sure about it at all. Your brain may try to prevent the next "fasting time" and may try to trick you to eat more. I would advise to eat at very regular times so your brain "knows" when you will eat (for me: 6:00/12:00/19:00 +/-30mins). Take time to eat, move in another place, etc ... so you appreciate it more.
I liked the cheat days principle because it gives you short term goals, and it helps to keep some pleasure eating food. It also helps to not bring your diet with you when you go to lunch with friends/family. I also noticed that with time I was cheating less during these days.
Preparing food for myself also saved money, sometimes it helped for motivation.