[–] 6 points 2 months ago (1 child)

Mistakes are easy to make and you want them to show up immediately instead of randomly at runtime. If you have lots of tiles, change the fields later, or manipulate the data in code you'll make a typo or forget something eventually.

With a class, every tile is guaranteed to have all the fields, and if you give the fields explicit types, they're always guaranteed to be the correct type. If you do something wrong, you won't have to figure out why it's broken later, because the editor shows red before you even run it.

Also, the editor autofill only works when it knows what it's working with.

  • source
  • parent
  • context
  • Bug: Image links (lemmy.kde.social)
     

    [![](https://upload.wikimedia.org/wikipedia/commons/4/44/Narrow-banded_dartwhite_%28Catasticta_flisa_postaurea%29_underside_on_Mimosa_pudica.jpg)](https://github.com/Xyphyn/photon/)

    Above is an image inside a link. The image is broken.

    I poked at the source code and found that MdImage gets passed href of the parent link and not the image url itself. So the image component tries to display https://github.com/Xyphyn/photon/ instead of what its supposed to. It's probably caused by value meant for parent being sent to children via those ...rest params in MdTree, but I couldn't follow that enough to find out how exactly.

    Bonus: This bug lets me embed a video straight into the post

    [![](https://upload.wikimedia.org/wikipedia/commons/4/44/Narrow-banded_dartwhite_%28Catasticta_flisa_postaurea%29_underside_on_Mimosa_pudica.jpg)](https://www.youtube.com/watch?v=dQw4w9WgXcQ)

    [–] [S] 3 points 9 months ago* (last edited 9 months ago)

    I tried to contribute to ThiefMD last year, but then realized the author had disappeared and maintenance had stopped. The author's been gone for more than two years now, so I think it's reasonable to call the project dead. I checked the date and it seems that my open pull request celebrates its first birthday this friday.

    I originally tried to fork it and port it to GTK4, but most of the functionality relied on removed GTK3 stuff and the programming language itself is dead too - I had to compile Vala language server from source because the link to the debian repo was dead 6 months ago (and apparently still is!)

    Flathub was the first goal. It should be relatively easy to do Windows as well. I do need to make sure the code works on Windows, as there might be a few surprises, like forward slashes in paths. E: It was a good question, added a section about this to the readme.

  • source
  • parent
  • context
  •  

    Scratchmark released!

    Hi, about half a year ago I made a post asking for a little help with my Markdown editor. In case anyone got interested back then, I'm happy say that after a lot of work, it's finally published.

    There's still a lot to do, like image support and Markdown extensions (did you know that for example strikethrough and ^superscript^ aren't part of the core spec), but the fundamentals are at a level that I feel is acceptable to put out there.

    Thanks for everyone in at the original thread. Despite GTK sometimes making me want to do violence, naming was indeed the hardest part.

    [–] 4 points 1 year ago

    It does mean doing something: they have to spell out whether consumers should have rights on this or not. Currently it's undefined, which is equivalent to "not."

    popularizing your viewpont

    And the initiative works against that? You say the cause could have gotten more publicity without it? I really don't see how that could happen, or understand the point in guilt tripping over it.

    energy wasted

    I'm starting to think this argument is energy wasted.

  • source
  • parent
  • context
  • [–] 9 points 1 year ago (8 children)

    That's entirely backwards. I've boycotted these online kill-switched games pretty well, but that means fuck all because the general public is incapable of collectively caring about anything. Regulation on the other hand does have an effect, and should the initiative pass, EU is required to properly answer it.

  • source
  • parent
  • context
  • Naming is the hardest part (lemmy.kde.social)
    submitted 1 year ago* (last edited 1 year ago) by to c/opensource@programming.dev
     

    screenshot of the app

    Remember ThiefMD?

    Hey, anyone remember ThiefMD? It was an awesome markdown editor that I used to use a lot for keeping notes and writing school essays. Unfortunately, the maintainer disappeared from GitHub a couple years ago and the app has just sat abandoned since then.

    Last year I tried to pick it up and port it from GTK 3 to 4, but gave up as most of its functionality relies on things that were removed or substantially changed. It's also written in Vala, which seemed like a cool language until I found out it's super dead.

    Rewrite it in Rust meme

    About a month ago I got a notification from ThiefMD's discussions page as someone there asked about the future of ThiefMD. After the reminder of its existence, I found myself trying again, this time building a spiritual successor from scratch in Rust. It's getting close to a minimum viable product, and I can maybe try publishing it soon. Check out the repo here. There's just one roadblock before I can get to that.

    What do I call this?

    I'm kinda experiencing decision paralysis with the name, hence this post. I've been trying to find words related to ThiefMD, the cat mascot in the icon, or just writing in general. The approach got me a couple ideas, but I'm not sure how well they fit. Maybe I have to admit I can't have it as clever as I hoped. Any thoughts?

    • Copycat - This is kind of a ThiefMD imitator, and the name mentions cat.
    • Scratch mark - Cat reference that mentions markdown.

    Other things

    • I'm also struggling with the icon design. If you're a better artist than me, I very much accept help. See the icon issue with my sketches here.

    • If you have experience working on programs that manipulate files, I'd like to know how you handle them and minimize the risk of data loss. Destroying someone's work is the last thing I want to do.

    Thanks!

    cat

    tl;dr: need name for markdown editor

     

    Meta is excited to announce the launch of a new app designed for Lemmy. As part of our ongoing commitment to interoperability and user choice, this app will bring the community-driven discussions to a wider audience with an intuitive interface, seamless integration, and innovative features.

    Lemmy has been growing as a powerful alternative to centralized discussion forums, allowing users to create and moderate their own communities in a federated network. By supporting Lemmy, Meta aims to enhance the open internet while providing users with more options to connect and share ideas beyond walled gardens.

    Starting today, we’re inviting passionate users to test the alpha version of our Lemmy app. Your feedback will help shape its development, ensuring it meets the needs of decentralized communities while staying true to the principles of federation and user autonomy. If you're interested in getting early access and sharing your thoughts, try it now to be part of this exciting new chapter!

    You can try it here: https://lemmy.facebook.com/

    Source code

    Disclaimer

    I do not work for meta lol

    So, the post is a joke, but web client is a real thing that I've been working on for a bit over 2 weeks now. It isn't very usable yet, but I didn't want to pass the chance to make the announcement as Meta. If you have opinions and feedback on this, I'd actually like to hear that.

    formerly zucc's

    The nonsense at the beginning was mostly generated with a plagiarism machine, but maybe it's okay.


    Posted on April 1st via Photon Premium

    submitted 2 years ago* (last edited 2 years ago) by to c/rust@programming.dev
     

    Hi, I've been working on this app for playing MIDI files with different soundfonts. It's been a few months of work, but I think it's inching towards being good enough to publish for real. There are still a couple fundamental features missing before v1.0.0, but I thought it would be a good time to share it and ask for opinions in a programming community. Any critique on the app, or code? Do people out there even care about midi files this much? Thanks.

    img

     

    Part 1: https://lemmy.kde.social/post/1763180

    So I went and did it. Ordered an adapter and an intel ax200. It seems work just fine out of the box in linux. This cost me 25 to 30 euros total.

    Pics

    Antenna considerations

    The laptop was only designed for up to ac. The new card can do ax, which uses a different band. My router doesn't support ax, so I have no clue if that will see significant signal drop with the old antennae. I actually haven't even bothered to look deep enough to know if this even would be an issue, maybe it's okay.

    submitted 2 years ago* (last edited 2 years ago) by to c/apple_enthusiast@lemmy.world
     

    Edit: https://lemmy.kde.social/post/1921123

    I have this old '13 air. It's outta support, so I run fedora instead of macos. It has BCM4630 for wireless (🖕 Broadcom), which had me manually install a rather unreliable driver to ever get it working. Yesterday I updated, and it can't find any networks anymore.

    Instead of messing with broadcom drivers anymore, I'd rather replace the hardware with something better. Has anyone here tried this? Know what will work both in linux and macos, if I were to pass this thing to someone else later?

    view more: next ›