• 0 Posts
  • 102 Comments
Joined 2 years ago
cake
Cake day: June 26th, 2023

help-circle

  • What the hell? You don’t know me or my kids, why are you coming at me about my parenting? You’re talking out of your ass about raising kids. They don’t go straight from babies to adults, there is a lot of in-between, trial-and-error. Sometimes they cry, in public even (gasp), and we handle it. Sometimes they misbehave and we handle it. They’re not going to learn anything by being locked away from society. And if being out in public with other people who might have children with them is so hard for you, maybe you should order in and watch Netflix.


  • You’re assuming a lot about a person’s situation who would be traveling internationally with a baby. They may not have a choice. In general, babies and their parents have as much right to exist in public as you do. Of course the courteous thing to do when your child is being disruptive is to try and calm them or remove them from the situation, but that’s not always possible. I’ve gone into a restaurant with a very happy baby that only turns sour after the food is ordered. All you can do sometimes is just try to mitigate it until you can get your food in to-go boxes and get out. Also worth noting that the main issue with flying for babies is the pressure change and not being able to deal with it. People will often yawn or chew gum to relieve it, and for babies you can give them a bottle or something chewy (depending on age) and it does the same thing.











  • Some of this is probably just getting to know your tools. Learn the language, look at others’ code and interrogate what they did and why. The higher-order functions (scary-sounding term, but they’re not actually scary) you mentioned are useful, go learn them and use them.

    Some of it might also be (I haven’t seen your code) getting a better understanding of the problem you’re trying to solve. Figure out what all the separate pieces you need are, and then break those pieces into their pieces and so on, until you’ve got simple, self-contained chunks of functionality that you can give simple names to. Some of those might be functions, or you may find that they’re simple enough that they don’t need to be. Refactor and think about how to make the problem simpler. I think a lot of it is just staring at your work and dreaming of ways the make it simpler and easier to read.

    If you really want to optimize for performance, that can come later once you really have a feel for it.