Jakobeha's recent activity

  1. Comment on What programming/technical projects have you been working on? in ~comp

    Jakobeha
    Link Parent
    Don’t you need to be in a sort of in-group to have a domain registrar? Like be registered with ICAAN? Or just pay another registrar for domains and add some markup. I think that’s a great idea,...

    Don’t you need to be in a sort of in-group to have a domain registrar? Like be registered with ICAAN? Or just pay another registrar for domains and add some markup.

    I think that’s a great idea, but I don’t see how you’d achieve it (and I’m not talking about implementation).

    5 votes
  2. Comment on "Java is fast but in practice, PHP sites run faster as PHP coders take more straightforward approach to design and don't get lost trying to implement exotic design patterns and endless abstractions" in ~comp

    Jakobeha
    (edited )
    Link Parent
    You might be interested in htmx, which does thing the “old way”. It uses JavaScript under-the-good but lets you write most stuff in HTML, and isn’t slow and bloated like what I think you’re...

    You might be interested in htmx, which does thing the “old way”. It uses JavaScript under-the-good but lets you write most stuff in HTML, and isn’t slow and bloated like what I think you’re alluding to.

    Yes, you can implement web forums entirely in HTML and I believe some websites still do so today. When the user clicks the “submit” button in an HTML <form>, the browser sends a request with the form data; the server can respond with a page containing the same form and any validation errors, or it can respond with a “success” page or anything else. There's also pure HTML client-side validation, which you should use whenever possible, because it reports errors instantly and is super easy to use.

    But importantly, with pure HTML forms, the server must send and the client must load an entire webpage, so this approach is actually slower than well-written JavaScript. JavaScript can communicate with the server before the user submits, to validate form inputs against server data as the user is typing, and it can send only relevant data, e.g., the validation errors instead the entire page.

    In this sense, htmx gives you the best of both worlds: you can write forms in plain HTML with the added features and efficiency of well-written JavaScript. The htmx website has many examples including one for this type of inline validation.

    1 vote
  3. Comment on "Java is fast but in practice, PHP sites run faster as PHP coders take more straightforward approach to design and don't get lost trying to implement exotic design patterns and endless abstractions" in ~comp

    Jakobeha
    (edited )
    Link Parent
    Yes, I should add a caveat that it only applies to old PHP. Modern PHP has classes, type declarations, and other features which make it suitable for building large-scale systems. Although at that...

    Yes, I should add a caveat that it only applies to old PHP. Modern PHP has classes, type declarations, and other features which make it suitable for building large-scale systems. Although at that point, I wonder if modern PHP with classes, explicit types, and design patterns isn't really different from Java.

    Facebook was (and in some places may still be) powered by PHP, but I know for a fact they've had major issues with it. Hence why they built a whole new language to interop with PHP, Hack. Also see this blog post from 2020, where they claim they've rebuilt the site from the ground up and mention some of the issues they've faced with the old site (like, how "dark mode and saving your place in News Feed had no straightforward technical implementation"!)

    2 votes
  4. Comment on "Java is fast but in practice, PHP sites run faster as PHP coders take more straightforward approach to design and don't get lost trying to implement exotic design patterns and endless abstractions" in ~comp

    Jakobeha
    Link
    The most important factor for choosing web framework (i.e. language), is what kind of website you’re building. The best choice, when possible, is none of them: make your site 100% static. Either...

    The most important factor for choosing web framework (i.e. language), is what kind of website you’re building.

    The best choice, when possible, is none of them: make your site 100% static. Either write the HTML (+ CSS + JS + assets) by hand, or use a static site generator like Hugo. Use a host like Github Pages: it will be significantly simpler, cheaper, faster for your users, and handle large request volumes better than anything you could do with any web framework.

    This is for sites whose content changes infrequently: personal sites, company homepages, news or blogs with infrequent updates and without comments. Even if your site hosts dynamic content like games or full-on apps, if there's no multiplayer/server-interaction and the download never changes, you should probably use a client-side framework and language which compiles to WebAssemly instead of JavaScript, but the server-side part can still be static.

    If your site does have frequently-changing content, then I'd recommend PHP if the server-side part is simple, Java otherwise. Some of PHP's original use cases are: a tiny "today's date and time" widget, a comment section, displaying data from a database. Using Java for a site with this kind of stuff is overkill, and I can totally understand all the unused features and unneeded abstractions slowing the site, plus making it more buggy and making the code harder to read and modify. But if your site is complicated (social media app like Facebook, content platform like YouTube, banking app) then those features abstractions aren't going to be unused and unneeded, and quite the opposite, if you try to implement everything in simple PHP you'll most likely end up with dysfunctional spaghetti code.

    Also, both PHP and Java frameworks like Spring Boot are old. They're certainly not bad choices given that they've had constant updates and are used by many sites today. But there new frameworks with new languages you may want to check out like Ktor and rocket.rs, and I know ones like PHP exist as well (no examples right now you could probably do something like that in Racket with a DSL)

    4 votes
  5. Comment on A very subtle bug in ~comp

    Jakobeha
    Link
    Bugs like these (with the steps it takes to debug them) are another reason why AI probably won’t replace programmers for even seemingly “easy” tasks anytime soon.

    Bugs like these (with the steps it takes to debug them) are another reason why AI probably won’t replace programmers for even seemingly “easy” tasks anytime soon.

    9 votes
  6. Comment on I skipped to the ending in ~life

    Jakobeha
    Link Parent
    It's anxiety-inducing to realize that you're in a much better situation than many people can dream of, and still feel incomplete. My advice is to do what you can to make the world a better place....

    It's anxiety-inducing to realize that you're in a much better situation than many people can dream of, and still feel incomplete.

    My advice is to do what you can to make the world a better place. See if you can find a job which applies your skills and helps others.

    2 votes
  7. Comment on Bosses mean it this time: Return to the office or get a new job in ~life

    Jakobeha
    Link Parent
    To be blunt, I feel the article doesn't really make an argument except "clickbait headline; here are some random facts and people's opinions on RTO". The statistics seem to be about the same this...

    To be blunt, I feel the article doesn't really make an argument except "clickbait headline; here are some random facts and people's opinions on RTO".

    The statistics seem to be about the same this year as they were last year (47%-44%). I don't know if productivity rising 1.3% is significant but it seems to me like it's about the same as well: too similar to make judgements.

    Plus, as you mention, it's specific to the field, company, and individual whether they are most productive in-office, hybrid, or remote.

    11 votes
  8. Comment on Bosses mean it this time: Return to the office or get a new job in ~life

    Jakobeha
    Link
    The only important info in that article.

    America’s top 10 metropolitan areas averaged 47 per cent of pre-pandemic levels last week, according to data from Kastle Systems. This time last year, the average was about 44 per cent

    About 52 per cent of remote-capable US workers are operating under hybrid arrangements, according to data from Gallup, while 29 per cent are exclusively remote. But although executives like Meta’s Mark Zuckerberg have argued that the rise of flexible work has had a deleterious effect on productivity, data from the US Bureau of Labor Statistics shows that labor productivity rose 3.7 per cent in the second quarter of 2023 and is up 1.3 per cent compared to this time last year.

    The only important info in that article.

    20 votes
  9. Comment on Microsoft might want to be making Windows 12 a subscription OS, suggests leak in ~tech

    Jakobeha
    Link
    I’m skeptical. Paid? Nobody buys paid OSs anymore except “enterprise” companies. Most people I know haven’t even upgraded to Windows 11. Cloud-based? It’s hard to see how Windows 12 could be any...

    I’m skeptical.

    Paid? Nobody buys paid OSs anymore except “enterprise” companies. Most people I know haven’t even upgraded to Windows 11.

    Cloud-based? It’s hard to see how Windows 12 could be any more “cloud-based” than 10 and 11. Most Microsoft apps are already on the cloud, most apps already exist as websites, and features such as files (OneDrive), settings, and even accounts sync.

    So what else does “subscription-based OS” mean? Major OSs already receive constant updates and new features.

    16 votes
  10. Comment on Sam Bankman-Fried is not a child in ~finance

    Jakobeha
    Link
    Idk, adulting is hard. I think most people are children in adult bodies The guy allegedly committed a crime though, lying and causing many innocent people to lose huge amounts of money. As an...

    Idk, adulting is hard. I think most people are children in adult bodies

    The guy allegedly committed a crime though, lying and causing many innocent people to lose huge amounts of money. As an “adult”, one of the rules I make sure to absolutely follow is “don’t commit crimes” (and even then, only big crimes)

    6 votes
  11. Comment on Unity reveals plans to charge per game install, drawing criticism from development community in ~games

    Jakobeha
    (edited )
    Link Parent
    I'm 100% certain it's at least going to go through some revision to remove that. Charges must be 1-to-1 with purchases, anything else is simply impractical. EDIT: already rolled back. Though they...

    I'm 100% certain it's at least going to go through some revision to remove that. Charges must be 1-to-1 with purchases, anything else is simply impractical.

    EDIT: already rolled back. Though they really have to tie the fees directly to purchases, or someone will find a way to exploit and rack up nonsensically high "install" charges.

    20 votes
  12. Comment on Unity reveals plans to charge per game install, drawing criticism from development community in ~games

    Jakobeha
    (edited )
    Link
    Unity is essentially the standard for indie games. And I kind of wish it wasn’t, because my understanding is that it’s a mess of crappy code and disjoint features glued together. Many times there...

    Unity is essentially the standard for indie games. And I kind of wish it wasn’t, because my understanding is that it’s a mess of crappy code and disjoint features glued together.

    Many times there are 2 or more ways to do the same thing: the legacy way which is “deprecated” but has less bugs and more community resources, or the new way which is extremely finicky/buggy and doesn’t yet have many resources. Naturally, most people choose the legacy option.

    My understanding is that Unreal is much better than Unity despite having bugs and legacy of its own, but it’s way too much for indie devs. Coding is done in C , which is a lot harder to get into than C#, and Blueprints aren’t a suitable replacement. But they’re allegedly coming out with a new language, Verse, which may make it easier for newcomers.

    Godot seems like the best competitor, and I really want it to succeed. But it just doesn’t have nearly as many features or community support as Unity, as well as having its own bugs and legacy features (though I believe the situation is better even with Godot 4.0, not all features have been ported to 4.0 yet). Maybe in the future.

    Other than those, there are IDE-based like Defold and Construct 2; engines without an IDE like heaps (Haxe), libGDX, and Bevy. The first 2 are more niche and have their own issues; and the latter are more niche and much harder for new developers to get into and even seasoned developers, to prototype and experiment with.

    So for now game-dev is kind of a mess. But maybe it always will be, because games are much more complicated than most programs. You won’t find most other kinds of software which need real-time rendering, real-time physics, real-time input, real-time network communication, fancy UI, and AI; plus art, music, advertising; all with super-interactive, rapidly-iterable development. Except game engines, which have all that in their provided libraries; in the editor, super complicated UI, efficient "preview" rendering, some form of collaboration or version control, configurability, and extensibility; plus code generation, integration with the generated executables (pause/resume, toggle debug info and widgets), and hot code reloading. (If those hugs lists didn’t have enough, I’m sure I’m missing at least 10 more things).

    7 votes
  13. Comment on Advice on insomnia due to noise pollution? in ~health

    Jakobeha
    Link
    It won’t help with the noise, but you can get blackout curtains to help with the light. The cars and streetlights are probably polluting the inside of your room. Good blackout curtains are heavy....

    It won’t help with the noise, but you can get blackout curtains to help with the light. The cars and streetlights are probably polluting the inside of your room.

    Good blackout curtains are heavy. They’ll filter out most but not all light in daytime (at least mine do), but at night they’ll make the room pitch black.

    Besides those and silicon earplugs, a job with semi-flexible hours also helps with my sleep. Personally I have trouble getting into a rhythm of falling asleep and waking up at the exact same time.

    1 vote
  14. Comment on What's your honest opinion about people who are not afraid of asking for what they want? in ~talk

    Jakobeha
    Link
    I like when people are direct but not rude. I think the world would be much better this way. But I understand that it isn’t so simple in practice. Because rude people are usually direct and nice...

    I like when people are direct but not rude. I think the world would be much better this way.

    But I understand that it isn’t so simple in practice. Because rude people are usually direct and nice people are usually not, I think being direct can make people subconsciously assume you’re rude and aggressive even if you really didn’t do anything to warrant it. And I sometimes assume direct people are rude and aggressive despite trying to look past my emotional bias and at what they actually say. This is especially true if you’re talking online, because in-person tone distinguishes friendliness from hostility.

    I think there’s a solution which lets you have it both ways: be direct, but use a small amount of filler to convey that you’re friendly and passive (when asking for what you want, unless you're the boss and it's related to your job, you should be accepting "no" as a possible answer). Small things like “hey, can you…” and then saying thanks, vs just “can you…”. The filler gives the opposite subconscious bias, but you still clearly state what you intend.

    Once you’re already friendly with someone you can be a lot more direct too, because they already have the right implicit assumption.

    2 votes
  15. Comment on Is a degree worth it? in ~life

    Jakobeha
    Link
    It depends on what job you want. If you work in a trade college probably won’t help you. But if you want to work in software you absolutely need a CS degree, I’m sure it’s the same for hardware...

    It depends on what job you want. If you work in a trade college probably won’t help you. But if you want to work in software you absolutely need a CS degree, I’m sure it’s the same for hardware and finance and other white-collar work. And doctors and lawyers need not just undergraduate but their own school.

    1 vote
  16. Comment on Overcome laziness in ~health

    Jakobeha
    (edited )
    Link
    I have no idea how to overcome laziness, I just show up and do the bare minimum and usually end up doing the thing regardless. Every day (or 3-5 days a week depending on what routine you follow),...

    I have no idea how to overcome laziness, I just show up and do the bare minimum and usually end up doing the thing regardless.

    Every day (or 3-5 days a week depending on what routine you follow), show up to the gym with a plan. But only force yourself to do the first set of each exercise, or just the first set of one exercise. Then, you can go home feeling accomplished even though you didn't do anything else, especially if it's your first day (also, apparently studies show you only need to do the bare minimum in order to get the benefits of exercise).

    It sounds stupid, but what ends up happening is you'll often end up doing the full workout, even though you only pushed yourself through the first 10 minutes. It's some sort of quirk of the human brain (at least for me and literally everyone I've heard from online and in-person) that once you start doing something, it becomes 1000% easier and more approachable, and you're suddenly motivated to finish even if you're a naturally lazy, unmotivated person.

    What also ends up happening is, assuming you don't skip too many days, you get into a routine and it's easier to continue not skipping days. This is why I personally like to workout every day, even if I do light cardio (i.e. walking) some days, because it helps with routine.

    Also, as others' mentioned, make it easier. Do whatever preparation you need before and make it as easy as possible (e.g. if you go in the morning, pack your gym bag the night before). Don't worry about showing up at 5AM, don't worry about how you'll look, bring your phone and music to distract you. Your goal is to show up and do the first set, not show up super awake and do a 2-hour super intense workout. You're not going to feel ready every day, nobody does; but even when you feel exhausted, you have enough energy to just show up and do 1 crappy set.

    If you do cardio, ideally walk or run or bike outside instead of on the machine. The treadmill makes running 10x worse.

    Lastly, nutrition. Food affects your appearance and health more than exercise. But like exercise you can make this easy too. You don't need trendy diets, difficult "healthy food" recipes, or severe calorie restriction; if you eat whole (AKA low-processed) foods and protein, you allegedly feel more satiated and have more energy, and some whole foods are cheap and easy like frozen vegetables, canned beans, and eggs.

    In all, with those 3 tricks (plan in advance; only force yourself to do the first 10 minutes; work smarter not harder), you can get a lot done and appear disciplined even if you're naturally very lazy.

    19 votes
  17. Comment on New LG TVs relegate I/O to a box you can set thirty feet from the screen in ~tech

    Jakobeha
    Link Parent
    Ironically I think this would work a lot better if they just put 1 more extendable, thick wire between the box and TV. And maybe remove the TV’s power outlet (TV gets power from the wire). Then...

    Ironically I think this would work a lot better if they just put 1 more extendable, thick wire between the box and TV. And maybe remove the TV’s power outlet (TV gets power from the wire).

    Then you have an annoying box somewhere where all of your wires are connected, and a pretty TV which only has 1 wire. Getting rid of that last wire is dumb, and wired connections are always going to be much better than wireless for things like real-time hi-definition streaming (where insane bandwidth and low latency actually matters)

    6 votes
  18. Comment on AP psychology effectively banned in Florida over lesson on sexual orientation, gender identity in ~life

    Jakobeha
    Link
    This is funny and a bit ironic, because I took AP Psychology and it taught me a lot of stuff I see and apply in the real world: conformation bias, cognitive dissonance, projection, personality...

    This is funny and a bit ironic, because I took AP Psychology and it taught me a lot of stuff I see and apply in the real world: conformation bias, cognitive dissonance, projection, personality disorders, flow state, even some mindfulness and therapy. Definitely one of the most useful classes I took in high school. This is despite the fact that [psychology is apparently junk science according to Google](https://google.gprivate.com/search.php?search?q=is psychology junk science%3F) (I agree it’s mostly just recognizing patterns in human behavior, but these patterns tend to hold, and most aren’t intended to be seen as definite or quantitative but just things to look out for)

    4 votes
  19. Comment on Has anyone unintentionally handicapped themselves while playing a game and liked a game more for it? in ~games

    Jakobeha
    Link
    When I was young and played New Super Mario Bros multiplayer with my brother, I intentionally let him get the big stars so I’d get Mega Mushrooms and then stomp him with that. (For anyone not...

    When I was young and played New Super Mario Bros multiplayer with my brother, I intentionally let him get the big stars so I’d get Mega Mushrooms and then stomp him with that.

    (For anyone not aware, the multiplayer has the same platforming as the single-player game, but the maps wrap around and coins/enemies respawn. There are also big stars, not the power-up stars, and you win after collecting a certain number but you lose one when damaged or the other player attacks you. Every 8 coins you collect you a power-up spawns above your head, and the power-ups are better the less stars you have and the more stars the other player has. So, instead of playing to win, I played to get power-ups and attack the opponent)

    Later in super smash bros, I handicapped myself to give my brothers a better chance of winning. So it evens out, sort of…

    1 vote
  20. Comment on Advice on choosing a class to take to meet scholarship requirements in ~life

    Jakobeha
    Link
    So there are 2 options: Take a mildly interesting and useful class, even though it probably won’t be as useful or interesting as a CS course Take an easy class which will be a waste of time, but...

    So there are 2 options:

    • Take a mildly interesting and useful class, even though it probably won’t be as useful or interesting as a CS course

    • Take an easy class which will be a waste of time, but not much time

    My advice and what I did, is to try and find an interesting class first and if you can, take it. For example, I took a class on music theory to satisfy requirements, and it turned out to be very good and I even used some of it later, even though my field is pure CS. The professor was very chill and I’m glad I ended up taking it, even if there was another class with less work.

    If you can’t find a class which is even mildly interesting, then of course go with the easiest class. Judging by your description and people’s suggestions I assume the first aid class isn’t much work.If it is, I suggest 2 1-credit classes, because the 1-credit classes can be extremely lenient in their assignments and grading, so even 2 of them may be less work than 1 full class. But you know what classes are less work better than me.

    Even if you decide to choose an interesting class, look or ask online (in your college’s subreddit, group chat, and ratemyprof) for info about the classes, but only factor them in if they’re especially good or bad. Because unfortunately, a really bad teacher can make even an extremely interesting class terrible, but if the teacher is only mildly bad and the class is very interesting, it can still be fun. Also, pay more attention to the details then the reviews themselves, look for verifiable information and downweigh blanket statements and opinions. Many students who get caught cheating or just don’t do work write super negative reviews about even the best professors, and some professors create burner accounts and write positive reviews about themselves (!).

    Lastly, don’t worry too much about it. A bit of extra work or boredom isn’t going to derail your college career or really do anything more than make you slightly less happy / more unhappy the semester.

    2 votes