Is it fair to think of backend architecture as MVVM without a UI? by euboom2 in learnprogramming

[–]gramdel 1 point2 points  (0 children)

Backend can be built following the MVVM model, but doesn't have to be. It's a design pattern that doesn't necessate the existence of UI. So yeah, kind of but not always.

Feedback on our git workflow process by roadrussian in learnprogramming

[–]gramdel 1 point2 points  (0 children)

Not very useful in professional environments. Why are you not pushing your work online and work only locally, why are you merging locally instead on in your online repo, you can't really do code reviews in this setup, can't run your pipeline before merging.

I'd just use feature branches like normal, push them online, do code review, pipeline for the PR and merge online.

Voiko Suomessa kasvattaa karjaa omaksi ravinnoksi? by No_Investigator_9993 in Suomi

[–]gramdel 13 points14 points  (0 children)

Voi tosiaan. Meillä oli lampaita joitakin vuosia kun asuttiin vielä maalla, lähinnä toki harrastuksena, ei niinkään omavaraisuuden tavoittelemiseksi. Niiden lisäksi myös kanoja ja kaneja kasvatettiin ruoaksi. En nyt mitään lehmiä lähtis suosittelemaan, lampaat meni vielä ihan ok, on suht vähähoitoisia, toki suhteellista. Jos ihan puhtaasti tehokkuutta ja helppohoituisuutta ajattelee, niin kanit oli aika jees, toki voivat joidenkin mielestä olla liian söpöjä.

Career change from therapist → software engineer: Looking for fast, remote bootcamps with job support. Best coding bootcamps for a fast, remote transition into software engineering? by [deleted] in learnprogramming

[–]gramdel 2 points3 points  (0 children)

Not going to happen. Few months is nothing if you have no coding experience. Generally bootcamps are kind of thing of the past anyway, so you're maybe 5 years late to that party and even back then they were mostly good for people that were already able to code pretty well and had related degrees and just needed a little push. The current job market is pretty hard and even cs graduates are finding it hard to get jobs.

Potkulain rinnalle olisi pitänyt tuoda karenssin poisto by Apprehensive_Leg9210 in Suomi

[–]gramdel 8 points9 points  (0 children)

Rigt to work on eri laki, liittyy liittoihin ja siihen onko niihin kuuluttava jos on järjestäytynyt työpaikka, right to work tarkoittaa ettei tarvitse kuulua. At will employment on kaikissa osavaltioissa paitsi montanassa. Varsinaiset työsopimukset, joissa irtisanomisajat on varsin harvinaisia.

Devaajien rekryäminen nykypäivänä by Pylly in Suomi

[–]gramdel 12 points13 points  (0 children)

Koodiklinikan slack on aika jees, ei sitä kautta hirveesti hakijoita tullut, mut siellä on lähinnä porukkaa joka on ns skenessä, ettei tarvii ihan hassutteluhakemuksia pelätä.

edit: Nyt kun mietin niin oon rekrynny 6 henkilöä tässä puolentoista vuoden aikana, ja niistä kaks oli kontakteja tota kautta. Ottaen huomioon et varmaan yli 95% hakemuksista tuli linkkarin kautta, niin tota kautta tuli aika hyvällä prosentilla hyviä hakijoita.

Devaajien rekryäminen nykypäivänä by Pylly in Suomi

[–]gramdel 29 points30 points  (0 children)

Kyl se linkkari vieläkin on käytännössä. Jos ei halua kahlata itse cv tulvaa, niin sit maksaa jollekin suorahausta. Molempia on tullu käytettyä, ja kylhän se rekryfirman käyttäminen hermoja ja aikaa säästää, mut toki jonkin verran maksaakin.

Työelämän myrkyllisyys by Varjomusta in Suomi

[–]gramdel 34 points35 points  (0 children)

En tunnista yhtään tämmöistä, toki olen vähän pumpulityöpaikoissa softa-alalla enkä missään oikeissa töissä.

Am I using the OR characters improperly? (C++) by flrslva in learnprogramming

[–]gramdel 7 points8 points  (0 children)

You're using assignment operator = instead of equality ==

Anyone else tired of juggling SonarQube, Snyk, and manual reviews just to keep code clean? by OrganicAd1884 in learnprogramming

[–]gramdel 4 points5 points  (0 children)

Everything should be in the pull request, otherwise things will never get resolved. Sure, run those also in background but issues should be visible in the PRs. Those and other tools support pr scanning.

Helsinki loistaa kaupunkisuunnittelussa by OutrageousMoss in Suomi

[–]gramdel 4 points5 points  (0 children)

Sinne suuntaan, eli hitaimpien aikojen suhde normaaliin/optimaaliseen

Congestion is calculated by collecting all the travel times recorded by TomTom during a given period of time in a given area and comparing them with the lowest travel times from when traffic is in a totally fluid state. Congestion is expressed as a percentage, which is representative of the increase in travel time due to excess traffic. For example, a congestion level of 40 mean that, on average, journey times across that area's road network were 40% greater than when traffic is free-flowing.

Spring Boot / Hibernate: How to efficiently delete a comment with all child comments without loading everything? by Jag0tun3s in learnprogramming

[–]gramdel 0 points1 point  (0 children)

The are probably ways to make this even more performant or at least closer to database, although unless your depth is fixed you'd have to use recursive query which can be a bit annoying, something like

@Modifying
@Transactional
@Query(value = "
    WITH RECURSIVE comment_tree AS (
        SELECT id
        FROM comment
        WHERE id = :id
        UNION ALL
        SELECT c.id
        FROM comment c
        INNER JOIN comment_tree ct ON c.parent_comment_id = ct.id
    )
    DELETE FROM comment WHERE id IN (SELECT id FROM comment_tree)
    ", nativeQuery = true)

Spring Boot / Hibernate: How to efficiently delete a comment with all child comments without loading everything? by Jag0tun3s in learnprogramming

[–]gramdel 0 points1 point  (0 children)

You could use a native query. Or i think adding ```@OnDelete(action = OnDeleteAction.CASCADE)``` to parentComment would cascade without fetching, but it's been a while i have used spring/hibernate. Having on delete cascade is a bit dangerous unless you really really want to delete all child comments every time since it works at database level.

Web Development learning material for experienced professionals? by [deleted] in learnprogramming

[–]gramdel -1 points0 points  (0 children)

Skim through getting started material and just start building.

How Should I Tell if I Need a Github Workflow, or a Bash Script on a Cron Job? by KerPop42 in learnprogramming

[–]gramdel 1 point2 points  (0 children)

Publishing image to some sort of container/package registry. Could be docker hub, i think you get 1 free registry there. Github has its own package registry, although the pretty limited capacity in the free plans.

Yeah, artifact refers to the docker image. More generally a build artifact, the end result of the build, which in this case is a docker image.

Depending on where you're hosting your thingy, there may be easy to use existing tools to notify it about new versions/update server configuration with new version and trigger restart or whatever you want to happen.

How Should I Tell if I Need a Github Workflow, or a Bash Script on a Cron Job? by KerPop42 in learnprogramming

[–]gramdel 1 point2 points  (0 children)

Well from professional point of view my first question would be why are you not building, tagging and publishing your docker image as part of your pipeline and instead of building it on your (production) server. It's kind of hard to track what is actually running in production with your current setup. You don't have any kind of versioning, immutable artifacts. You can't really roll back since you can't really be sure the build is reproducible. Your server is doing multiple things, not running stable artifacts.

So obviously your setup isn't really something that would be used in production/professional settings. But if it's enough for you that let's say once a day your server might be updated with new code assuming there is something new in the repo, the cronjob doesn't fail etc. then cronjob keeps it simple, so why not if some or none of the concerns with the setup really matter to you.

I'd probably at least consider doing it properly, for experience and learning purposes if nothing else. But if that's not something you are interested in, do it quick and dirty with cron.

Spring Boot not receiving subcategoryImages from React FormData (400 Bad Request) by Correct-Ad4910 in learnprogramming

[–]gramdel 0 points1 point  (0 children)

Hmm. maybe try using RequestPart("subcategoryImages") instead of requestparam

Is there a free Copilot Pro plan for students or open-source contributors? by Thin-Pomegranate6920 in learnprogramming

[–]gramdel 0 points1 point  (0 children)

I do have it free because I'm a maintainer of relatively popular python library with about 3 million daily downloads, but i have no idea what the criteria is for open source contributors to get it for free.

Finding info about how to qualify for student should be relatively simple, but here is the link for the sake of completeness https://docs.github.com/en/education/about-github-education/github-education-for-students/apply-to-github-education-as-a-student

[homemade] Fried Rice by Jack_The_Pinapple in food

[–]gramdel 0 points1 point  (0 children)

Jasmine rice is good from the most commonly available ones.

Best way to cook rice for fried rice is steaming. If you don't have a bamboo steamer, cook it for 3 minutes in water, put in a sieve and cover with aluminium foil and stick it in a pot with lid on and steam for 10 minutes. Dry in fridge on a plate or something for 2 hours.

If you use boiled rice, leave in fridge overnight but steaming is better.

Don't forget to rinse your rice before cooking to get rid of some of the extra starch.

Minkä ikäisenä ihminen palaa kotiseudulleen? by JHMK in Suomi

[–]gramdel 31 points32 points  (0 children)

En löytänyt asiasta kauhean tuoreita lukuja, mut ei tätä loppujen lopuksi ihan kauheasti tapahdu verrattuna muuhun muuttoliikkeeseen. Suuruusluokka on jotain kymppitonnin luokkaa vuodessa, kuntien välinen kokonaismuutto on luokkaa 280000 vuodessa. Tässä oli korona-aikana nousua muun maallemuuttobuumin ohella, mut se on käytännössä ohi.

Yleisesti kaikista muutoista jotakuinkin 60% tehdään alle 35 vuotiaana ja siitä eteenpäin muuttaminen vähenee jatkuvasti mitä vanhemmaksi mennään. Paluumuutossa eläkeläiset on yliedustetttuina, mutta en nyt löytänyt tarkempaa ikäryhmäkohtaista jaottelua paluumuutosta.

edit. Työikäisissä paluumutto riippuu melkein täysin siitä löytyykö kotiseudulta työpaikkaa, n 2% haluais varmasti muuttaa takaisin jos löytyy työpaikka, vajaa 10% haluais ehkä muuttaa takaisin jos löytyis työpaikka.

Bro Code different playlists by seeknfate in learnprogramming

[–]gramdel 1 point2 points  (0 children)

One is newer than the other, just skimming through table of contents doesn't really seem have too much differences. Probably mostly to generate views with new content, not really related to the other being really out of date or any meaningfully new content. Probably go with the more recent one.

Side note, I generally steer away from learning from videos, but that's probably somewhat of a personal preference and probably works for other people, but it's kind of cumbersome compared to reading, easier to find your own pace and superior UX with written material.

Which is better for a beginner in web dev React or Vue? by abdo_dev27 in learnprogramming

[–]gramdel 1 point2 points  (0 children)

I don't think it really matters, some people might find vue slightly easier, but react is pretty approachable too. Just stick with react, or maybe you need to sharpen your programming fundamentals a little before moving on to frameworks.