If you are mathematically inclined like a lot of people in HN, the best way might be getting an app like MyFitnessPal to figure out the maximum amount of calories you need to each every day to lose X kg in Y days, and commit to logging every single food you eat.
This helps really well for having an intuition in how many calories something has (a chicken sandwhich with mayo might have more calories in the mayo than in the rest of the sandwhich), and for stopping cravings (if I eat this cupcake now I'll have 200 fewer calories for dinner and I cannot afford it).
This is stressful, difficult, and kinda ridiculous, but for me it's the only diet that actually works. It helps if you cook at home and can choose ingredients easily.
This helps really well for having an intuition in how many calories something has (a chicken sandwhich with mayo might have more calories in the mayo than in the rest of the sandwhich), and for stopping cravings (if I eat this cupcake now I'll have 200 fewer calories for dinner and I cannot afford it).
This is stressful, difficult, and kinda ridiculous, but for me it's the only diet that actually works. It helps if you cook at home and can choose ingredients easily.