Apos's recent activity

  1. Comment on Sad state of cross platform GUI frameworks in ~comp

    Apos
    Link Parent
    I think that's the future. Game engines / framework are really optimized. And they give so much more freedom. Especially with MonoGame, you can really control your program's architecture.

    I think that's the future. Game engines / framework are really optimized. And they give so much more freedom. Especially with MonoGame, you can really control your program's architecture.

    1 vote
  2. Comment on Sad state of cross platform GUI frameworks in ~comp

    Apos
    (edited )
    Link Parent
    Nowadays, I find that it's easier to just use MonoGame even for application UIs. It's a game framework which allows me to do some really fancy stuff like write shaders for custom stuff. I just...

    Nowadays, I find that it's easier to just use MonoGame even for application UIs. It's a game framework which allows me to do some really fancy stuff like write shaders for custom stuff.

    I just wrote my own UI and input libraries for it. I can design my UIs to work with mouse, keyboard, gamepad, touchscreen.

    It's pure .net core (development works in windows, mac, linux) and works everywhere: Desktop, mobile, consoles like Xbox, PS4, Switch, etc.

    Something nice with MonoGame is that it has a cousin project called FNA https://fna-xna.github.io/. Going from one to the other is rather seamless since they share the same API. There are also some really big players that rely on both those projects.

    2 votes
  3. Comment on Sad state of cross platform GUI frameworks in ~comp

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

    Apos
    Link
    I started this new project: https://github.com/Apostolique/Texo I've been meaning to do that project since 2013. My goal is to create a music composition algorithm that is similar in nature to...

    I started this new project: https://github.com/Apostolique/Texo

    I've been meaning to do that project since 2013. My goal is to create a music composition algorithm that is similar in nature to Milton. https://github.com/serge-rgb/milton

    It's coded in MonoGame.

    Main features I want will be infinite canvas with zoom, pan, rotation. Midi input and output. And ability to generate music sheets.

    2 votes
  5. Comment on Suggestions for free video editing software in ~tech

    Apos
    Link
    I like https://shotcut.org/ lately. I found it really easy to learn. Also it's free and open source.

    I like https://shotcut.org/ lately. I found it really easy to learn. Also it's free and open source.

    4 votes
  6. Comment on GitHub's new notifications: a case of regressive design in ~comp

    Apos
    Link
    I agree 100%. New UI really breaks my workflow. It tries to do too much. It feels like it wants to control me instead of the other way around. The old page is why I preferred GitHub over GitLab's UI.

    I agree 100%. New UI really breaks my workflow. It tries to do too much. It feels like it wants to control me instead of the other way around.

    The old page is why I preferred GitHub over GitLab's UI.

    2 votes
  7. Comment on The underappreciated else keyword in Python in ~comp

  8. Comment on The underappreciated else keyword in Python in ~comp

    Apos
    Link Parent
    I had that as a proposed loop in my language. I had named it the coil loop. I have since dropped it.

    I had that as a proposed loop in my language. I had named it the coil loop. I have since dropped it.

    2 votes
  9. Comment on Don’t try to sanitize input. Escape output in ~comp

    Apos
    (edited )
    Link Parent
    Didn't follow the full conversation, but nice! Edit: Actually, you're both right. Instead, try this: var name = "var name = \"John\"; var rate = 100;"; console.log(name); console.log(rate); //...

    Didn't follow the full conversation, but nice!

    Edit: Actually, you're both right.

    Instead, try this:

    var name = "var name = \"John\"; var rate = 100;";
    console.log(name);
    console.log(rate); // This will throw an error.
    eval(name);
    console.log(name);
    console.log(rate); // Now it has a value.
    

    Without the eval, it's pretty hard to execute the code stored in a string. And strings from textboxes are auto escaped because otherwise they wouldn't be valid string types.

    Edit2: Actually /u/Deimos is most likely right about the strings not being escaped. In the context of the source code, you need to escape for the parser to understand what's going on. Once the parser has gone over the string though, it doesn't need to hold on to the escape character \.

    So really, to execute the string as code, you need the interpreter to evaluate the string.

    5 votes
  10. Comment on Don’t try to sanitize input. Escape output in ~comp

    Apos
    (edited )
    Link Parent
    You don't see escape characters. Try with console.log(JSON.stringify(name)); Edit: Actually, that just shows what the string would look like in code. See edit below for my thinking process.

    You don't see escape characters. Try with console.log(JSON.stringify(name));

    Edit: Actually, that just shows what the string would look like in code. See edit below for my thinking process.

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

    Apos
    (edited )
    Link
    I'm giving a talk today in front of ~60 people about "weekend" projects for programmers. Projects that last between 4 to 8 hours in general. I'll update this post later with more concrete details....

    I'm giving a talk today in front of ~60 people about "weekend" projects for programmers. Projects that last between 4 to 8 hours in general. I'll update this post later with more concrete details.

    Edit: It went really well, I should be updating this post with what I presented tomorrow.

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

    Apos
    Link Parent
    Did you do the test yet? How did it go?

    Did you do the test yet? How did it go?

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

    Apos
    Link Parent
    I'm not sure yet. I don't have many contacts.

    I'm not sure yet. I don't have many contacts.

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

    Apos
    Link Parent
    Wow, that's really innovative! Though I find it makes me dizzy.

    Wow, that's really innovative! Though I find it makes me dizzy.

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

    Apos
    Link Parent
    This is so cool! I'm surprised it's not more common.

    This is so cool! I'm surprised it's not more common.

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

    Apos
    (edited )
    Link Parent
    Yeah, came up with it last week (or the week before?). It's based on the guess the number game that you do in computer science courses. I talked about it to other people. One point that came out...

    Yeah, came up with it last week (or the week before?). It's based on the guess the number game that you do in computer science courses. I talked about it to other people. One point that came out was that it might be hard to train people to use that. I made a few people try it, but it seems like it doesn't take too long to figure out for them. (I didn't use any weird things like double clicks or long presses so that helps.)

    Another issue was how to recover after an input error. But I put a mechanic to break out of every combo. That makes it feel very responsive. (Also feels so much better than having to fix a mistake on something like the Apple TV.)

    Next steps would be to add more characters, and perhaps predictive word suggestions.

    Something cool to try would be a password mode. I think people could easily write their passwords without seeing the cursor. That would let you connect to an account even in a room full of people.

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

    Apos
    (edited )
    Link
    Last week I got annoyed when writing text on "virtual keyboards". I decided to make a proof of concept for a binary search text input mechanism. https://apos.itch.io/binaryinput I streamed my...

    Last week I got annoyed when writing text on "virtual keyboards". I decided to make a proof of concept for a binary search text input mechanism. https://apos.itch.io/binaryinput

    I streamed my whole creation process here: https://youtu.be/6YO2cDFNMEk

    I really like the result. I think with a bit more work, it could be quite a lot better but for now I consider the proof of concept a success.

    Edit: Updated the colors: https://video.twimg.com/tweet_video/EPygQpRXsAMlFw-.mp4

    I think that with blue for left and red for right, it's even easier to pinpoint a letter even without looking at the cursor.

    25 votes
  18. Comment on Epic Games Store holiday sale has started - sales, one free game per day, and $10 off on everything $14.99+ in ~games

    Apos
    Link Parent
    Close enough, that game was so great! Little Inferno really makes you think when you take the time to look deeper.

    Close enough, that game was so great! Little Inferno really makes you think when you take the time to look deeper.

    2 votes
  19. Comment on Epic Games Store holiday sale has started - sales, one free game per day, and $10 off on everything $14.99+ in ~games

    Apos
    Link Parent
    I really wanted to play 7 Billion Humans. Hopefully you're right! Tomorrow Corporation is great, bought their other games.

    I really wanted to play 7 Billion Humans. Hopefully you're right! Tomorrow Corporation is great, bought their other games.

    2 votes
  20. Comment on Looking for a domain name registrar and a hosting provider for Intergrid in ~tech

    Apos
    Link Parent
    I use Namecheap's hosting. I like it for my purposes and their support was great so far.

    I use Namecheap's hosting. I like it for my purposes and their support was great so far.

    1 vote