• 3 Posts
  • 102 Comments
Joined 3 years ago
cake
Cake day: June 24th, 2023

help-circle








  • That’s if their API implementation itself is just bad and underlying DBs aren’t . If they or someone else with bad practices manages the DB you may be in worse situation than before. In general, to me, shared DB is bad because it is hard to not cut corners in such design and ensure that DB owner does not break contract for all consumers. This is basically why APIs created - to guarantee contracts and encapsulate change. But I digress. My point is that it will be your responsibility to ensure schema changes adopted to expected contract. If data is not normalized/structured, like say, it’s JSON then I would stay away.



    • I don’t use AI code autocomplete. It was giving me nonsense and interrupts my thought process when I write code. Standard non-AI autocomplete is much better. I tried to use chat to generate medium size logic (up to 100 lines). Mostly it does not work or refining prompt takes more time than writing code myself so I stopped using it for medium sized tasks. I use it for small tasks up to 20 lines where I need an example of how to use specific API. What it does well is generating test cases (not tests themselves). I once tried to summarize set of made up requirements (can elaborate if anyone interested in), it instantly gave me idea of how far we are from AGI as it failed miserably.
    • I do not consider for my usage since I use it maybe once-twice a week on average. But generally, I think it’s a huge waste of resources, not only natural but financial and human
    • Claude 4 sonnet at work. Mistral for personal curiosity episodes
    • I already covered work part. For personal, mostly “searching” random info I couldn’t find via DDG or offloading social rituals such as congratulations

  • Lysergid@lemmy.mltoProgrammer Humor@programming.devduh-dum.
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    3 months ago

    Infrastructure is there to be used by apps/services. It doesn’t matter how it’s created if infrastructure across providers does not provide same API. You can’t use GCP storage SDK to call AWS s3. Even if API would be same, nothing guarantees consistent behavior. Just like JPA provides API but implementations and DBs behavior are inconsistent


  • Thanks! I didn’t thought looking them up as “Famine in Russia”. We started this conversation from Holodomor. When Amnesigenic was speaking about “that area”, so I wrongly assumed we talking about Ukraine territory only. Not to say there was no famine in other places, just did have associations with broader famine of 31-33.

    Going back to “periodic famine” argument, I don’t see how 3 times in 600 years is periodic and that’s including famine in 1315-17 which affected entire Europe all the way to England. I’m sure there were couple others which went under the radar.

    But I think it’s delusional to claim Holodomor was not man-made taking into account that major USSR’s ex-member Russia stated that it was “famine caused by forced collectivization” and “strongly condemn the regime that has neglected the lives of people for the achievement of economic and political goals”. So no, it was not yet another periodically occurring famine


  • Lysergid@lemmy.mltoMemes@lemmy.mlLemmy libs: "But stalin baddd mkayyy"
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    edit-2
    3 months ago

    IDK how you know did I try or not. Sorry I didn’t spent whole day searching of info you claim to be true when it took me 5 mins to debunk your other claims. If you have some rare knowledge or you are some sort of history expert you are doing poor job spreading what you think is truth.

    You need a source for what dates of establishment of Ukraine SSR or ASSR? Or Tatarstan femine, that is first hit in search - https://en.wikipedia.org/wiki/1921–1922_famine_in_Tatarstan. You are so protective of communists so I assumed you knew some basic dates on topic. If you don’t, that’s also first hit in search. Let me know if you need help with that.

    Also, adding “lol” doesn’t make it stronger argument, lol.


  • Couldn’t find any info on periodic famines at that area. Do you mind sharing any clue, like name, specific area, years? Genuinely interested.

    On communist part. Ukraine SSR was established in 22, Holodomor started in 32. Famine in Tatarstan started in 21, year after Tatar ASSR established. So something not adding up. Even if one ignores those. There were no famines after USSR collapse in both areas. Feel free to point one if I’m missing something.



  • I recently started setting up home server on Raspberry Pi 5. Having issues with raid1. I have 2 nvme PCIe gen 4 SSDs. There was power outages while writing. Now second disk keeps randomly falling. Though, I’m not sure if that’s the reason because I don’t know what was raid status before outage, also disk passes checks. First time it degraded, it tried to recover and it failed. I removed that disk from raid, recreated partition run some test using nvme-cli. Disk looked healthy. I re-added disk, rebuild started and completed successfully. Then I’ve written around 500Gbs of data and it degraded again. At that point I took a break.

    There are two things I’m yet to try:

    1. Change configs to use gen 2 PCI, currently it’s set to gen 3, but AFAIK pi 5 does not support gen 3 officially.
    2. Remove, format and write data to problematic disk directly. I hope this will give me an idea is this hardware issue or software issue

    I’m frustrated and will appreciate any hints.



  • Don’t get me wrong, I’d always choose html over js if I could. My problem with css, and web in general, that it’s too fragmented. It’s like those people who are designing css, html, js and browsers didn’t speak to each other whatsoever. So now there is entire industry of js frameworks to glue all shit together. Like, look at the WebComponents. Which supposed to be native, out of the box replacement. So much effort and they still cannot compete, in some cases they simply do not provide basic features needed to build complex UIs. Next time I can choose stack I’ll probably just go with htmx


  • Don’t know about tailwind but I used styled-components and not going back to vanilla css. CSS seems to be designed to be used with HTML, which did make sense back when it was created. Modern web is 99% JS and components composition which does not work well with Vanilla CSS in terms of class name uniqueness, specificity. Also it easy to dumb shit with CSS, like, I worked in the project where we had a lot of legacy global CSS. We had like dozen CSS styles which were adding margin to <label/>, <p> and so on. I mean no classes, just globally. I’ve been forced to add ‘all: unset’ to basically all my new components just to avoid changing global styles and breaking something else. Do not recommend.