I am the developer of Summit for Lemmy.

  • 145 Posts
  • 929 Comments
Joined 3 years ago
cake
Cake day: June 13th, 2023

help-circle

  • The problem I find is it can take a year or longer before you learn what is idiomatic and what isn’t and it’s not always obvious. You can ask colleges of course but it can slow down development drastically if you need to ask often. Most times, you don’t have the luxury of practicing the language for a year before you ship code so you can use AI to get a general sense of what is best practice in that language. Worst case if AI gets it wrong, it will get caught in review.

    As for understanding code bases, I’m working in code bases with millions of lines of code. Before AI I would usually ask someone to point me in the general vicinity or spend 30 minutes trying to find the right ballpark to look at for a particular thing. With AI, it can usually find it in 5 minutes or less. I still learn where the code lives if I need to reference it again in the future so I don’t really see much of a downside here other than that I get to save a chunk of time from having to pore through hundreds of source files.



  • This is one of my favorites of all time so I did spend a lot of time testing many different recipes. The one by the NYT is the closest and the revelation to add the spices at the very end really solved one of my biggest issues with this dish which is that the cumin flavor always seemed to be too weak for my liking. I’m guessing cumin suffers a lot from flavor degradation as it’s cooked so adding it at the very end alleviates that problem.

    Here’s my current iteration of this recipe (I make it a lot so I change things often):

    Cumin Lamb

    Ingredients

    • 1 lb (450g) lamb shoulder (leg is ok but less flavorful)(hack: use thinly sliced lamb shoulder [the kind used for hotpot])
    • 2 teaspoons cornstarch
    • 1 tablespoons soy sauce
    • 1 tablespoons Shaoxing wine
    • 1 tablespoons cumin seeds
    • 3 tablespoons oil
    • 1/2 cup dried Chinese chili peppers
    • 1 small white onion, sliced (1 cm strips)
    • 5 cloves garlic, minced
    • 1 cup cilantro, chopped
    • ¼ teaspoon salt

    Spice mix

    • 1 tablespoon cumin powder
    • 1 - 3 teaspoons cayenne pepper (adjust to your heat preference)
    • ½ teaspoon sugar
    • ½ teaspoon salt
    • ¼ teaspoon ground Sichuan peppercorns (Optional)

    Instructions

    1. Combine lamb with corn starch, soy sauce, Shaoxing wine, salt, 1 tbsp oil. (Do this before preparing the other ingredients to give the lamb some time to marinade). (If you are using hotpot style lamb, skip this step and add the ingredients directly to the pot when cooking the lamb.)
    2. Combine the ingredients for the spice mix in a small bowl.
    3. Toast the cumin seeds. Heat a skillet over medium-low heat and dry roast the cumin seeds for a few minutes, stirring occasionally until the color of the cumin changes to a dark brown. Turn off the heat and transfer to the spice mix bowl.
    4. Add oil. Cook white onions on medium-high until slightly charred. ~2 minutes. Transfer to bowl.
    5. Heat 2 tablespoons of oil in a large skillet over medium-high heat until hot. Add lamb and chiles. Cook, tossing quickly, until meat begins to brown. Add garlic. Cook until most of the liquid has evaporated and lamb is cooked through.
    6. Coat lamb with spice mix. Add back the onions. Turn off the heat. Taste the lamb and adjust salt as necessary (with salt or soy sauce).
    7. Add the cilantro. Serve with rice.

    Notes: If you want to add msg, you can just dump it in the spice mix. I prefer using thinly slices lamb shoulder blade (the kind for hotpot), I find the increased surface area makes it even more flavorful.





  • I’m still writing 90% of my code by hand at work. I think if you have total or close to total mastery in your domain, you should probably work faster than AI.

    It takes a while for AI to generate code (Opus is pretty slow) and then you have to go review it and do rounds and rounds of fixes. It might be faster to use AI if there were unknowns or if you werent quite sure how to write the code. Otherwise I just find it faster to write it myself.

    That being said I do use AI under some soecific circumstances:

    1. im working in a code base or area of code im unfamiliar with
    2. Im working in a language in unfamiliar with
    3. prototyping ideas
    4. generating boilerplate heavy code

    For 1. And 2. I dont usually have ai write code for me. I would just ask it questions like “how do I write X in an idiomatic way in language Y”.

    For 3, I have it generate code that I then toss and rewrite if the prototype works.

    For 4, this is rare in a good code base. Most of the boiler plate heavy code at work is in unit tests.




  • The stats aren’t from the app. They are from lemmy itself. Also the flag has been removed. It was added due to a misunderstanding. I assume the warning will disappear on the next release of the app.

    To give a bit more context, Summit’s server aggregates stats about Lemmy as a whole and serves these stats back to the app. Technically this can be done by the app but then each user would be hammering various servers and also the data is large. There will be a way to not use the server in the next update. The stats are only used for the search page.