• 3 Posts
  • 32 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • I have used AI to give me the syntax and function names I need, then researched those functions and found better ones instead.

    I once asked AI to show me how to do something and it gave me a 20 line script. After 2 hours working with it, I finally got it to work. Another 30 minutes of optimizing and got it down to 3 lines. A bit more research and I discovered that what I wanted was actually a language feature, and I just needed to call a single function with a single argument.

    AI occasionally saves me time, and usually causes a significant time waste.




  • Is “main” a valid Java identifier?

    yes
    package main;
    
    public class main {
    
        static main main;
        String Main;
    
        main(String main) {
            Main = main;
        }
    
        main(main main) {
            System.out.println(main.Main);
        }
    
        main main(main main) {
            return new main(main);
        }
    
        public static void main(main...Main) {
            main:
            for (main main : Main) {
                main = (main instanceof Main) ? new main(main): main.main(main);
                break main;
            }
        }
    
        public static void main(String[] args) {
            main = new main("main");
            main.main(main, main);
            main = main.new Main(main) {
                main main(main main) {
                    return ((Main)main).main();
                }
            };
            main.main(main);
            main.main(main,main);
        }
    
        abstract class Main extends main {
            Main(main main) {
                super("main");
            }
    
            main main() {
                main.Main = "Main";
                return main;
            }
        }
    }
    

  • Tracking is not unique to electric cars, just new cars.

    Large power stations are more efficient than small engines.
    Many electric car owners also have solar panels.

    Refining enough fuel to transport an average car 100km uses enough energy to transport an average electric car 50km. That’s just refining, not including searching for or collecting the oil, or transporting the fuel to fuel stations.
    It’s so much electricity that most oil refineries have dedicated coal or gas power stations.

    As long as you are only considering cars, electric cars are superior in almost every way, and are constantly getting better.

    A diesel bus is still better than an electric car (although an electric bus would be better still). Trains and trams would be ideal, but require more upfront cost, so are easier for lazy or corrupt politicians to oppose.










  • Diagnosed as an adult

    My parents tried punishments and rewards to get me to do my homework. Neither worked. They never considered that I was telling the truth when I said “I can’t do that”. No matter how hard I tried, there were some simple things that I just couldn’t do. (I did get an apology as an adult when they finally had the missing information).

    On the other hand, I was so good at the other subjects that I didn’t have to study or even try until I got to higher education, then I didn’t know how and failed badly.

    Diagnosing early can help with getting access to medication later in life. Medication can be helpful with controlling focus, but be aware that children often don’t have the vocabulary to tell you that the medication has uncomfortable sides effects, so you’ll need to be aware of them (and consult a professional - not just a random internet person).

    ADHD isn’t an attention deficit disorder, it’s an attention regulation disorder. Hyperfocus is just as common as a lack of focus, and it’s not possible to force a hyperfocus or even direct it on the correct task. It is possible to do a task that’s different from the current hyperfocus, but it takes a lot of energy.

    Be aware of burnout, work with the ADHD not against it where possible, but keep in mind that sometimes things are just going to be difficult.

    You seem to care, and know where to ask for help. You’ll do fine.

    Edit: I would love to give you tips for how to get daily tasks done, but my partner still has to remind me to eat some days. If you ever find out, please let me know.