• 1 Post
  • 26 Comments
Joined 11 months ago
cake
Cake day: November 27th, 2023

help-circle

  • Yeah, I think you’re already on the right path with that, those are good basics for anything computer science related (and usually required classes if you take CS in college). Perhaps add Numerical Analysis to that list.

    Also, Operations Research has some interesting optimization algorithms, and Statistics is useful for anything related to Machine Learning.


  • I’m a mathematician by training who has worked extensively (and exclusively) in the software field. While I realize I’m probably biased here, I think I write very solid code and have rarely received any complaints from trained software engineers about it.

    I did however also take quite a few computer science classes in college and have spent a lot of time learning how to write better, more readable and maintainable code. Having had quite a few jobs at the start of my career where I was the only programmer on a project and therefore forced to eat my own dog food has certainly also helped.








  • CmdrKeen@lemmy.todaytoVoyager@lemmy.worldBugNotice - App switcher icon
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    10 months ago

    Weird, both the official Reddit app and Lunar for Lemmy also have a custom icon feature and they don’t seem to be having the same issue.

    Even after restarting my phone in order to fix it, Voyager “forgot” its icon again after simply closing and reopening it. I did not even change the icon.

    EDIT: after some experiments I found out that this problem only seems to occur when the “O.G.” is used. Is the iOS app perhaps simply missing a small version of that icon?




  • I’m not sure that’s a bug, that’s always been like this IMO. Every tab has its own history, so if you switch tabs and later go back, it’ll be at the same place you left off. I.e. if you last had the “Unread” box open when you were on the inbox tab, that’s what you’ll see when you go back there.



  • UPDATE: I played around with this some more and DID get it to replicate in the browser after all, confirming that it is, indeed, random.

    When this situation occurs, it appears that the itemsRef prop on the Feed component still holds the old feed items.

    I also noticed that unlike the other pages that contain a Feed component, the ProfilePage doesn’t have a FeedContextProvider (which keeps a copy of that itemRef), so I tried wrapping it in one, hoping it might resolve the problem. Unfortunately, it did not seem to help.




  • Yes that would be even better. I do tend to post a lot of images so I don’t mind that being the default. But I think it should be customizable because everyone is different.

    The question is, would such a feature simply change which tab is selected by default when you make a new post, or should it change the order of the tabs. And if it’s the latter, in what order should the other two be?

    It’s relatively easy to implement a setting to choose one of the three types as the default because a component for that already exists. But there isn’t a component that lets you pick things in order of priority yet.


  • IDK, virus scanners and malware detectors could do these things before AI.

    You could search for stuff like directly accessing the ~.ssh directory, or any invocations of wget or curl to download external scripts and run them through an interpreter and flag those for closer inspection.

    If you want to get fancier, automate installing packages in an isolated environment (like a container or VM) and keep track of every file system access and network request they make.

    Sure, eventually they’ll figure out ways to obfuscate those things, too, but it could at least prevent people from doing things in such blatantly obvious ways.



  • You mean these? Does it use them internally, because I haven’t really seen them in any Svelte code.

    If so, what does it matter what the compiler does in order to make your code work, so long as it’s legal? It’s perfectly valid JS, that’s all that counts.

    I wouldn’t say Svelte is weird as much as it’s different. That’s the whole point after all. Instead of adding a bunch of library bloat and keeping an entire copy of the DOM to constantly compare to and derive changes from, it compiles your components down to native JS that manipulates the DOM directly, like you would by hand. Except of course the compiler uses different ways to achieve that than you would, but that’s because it doesn’t have to care about readability, as long as it creates valid and efficient code.