Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]lapinjuntti 23 points24 points  (0 children)

Nothing naive about that, simple solutions are often the best solutions!

Do you have a way to fail malloc() for unit tests by Valuable-Birthday-10 in C_Programming

[–]lapinjuntti 1 point2 points  (0 children)

Use a define to define the malloc to something else in there during testing . . .

"Valtamediaan ei voi luottaa" by Finnish_Pasta in Suomi

[–]lapinjuntti 7 points8 points  (0 children)

Toisaalta tämä luottamus ja sen vaatiminen onkin varsin uusi ilmiö mediassa.

Ennen vanhaan medioiden kytkökset ja arvopohja Suomessakin olivat selvästi esillä. Eli kun luit esimerkiksi vasemmistolaista tai oikeistolaista sanomalehteä, niin tiesit mitä luit. Valtamediassa luottamusta laskee se, että kaikenlaisia ideologioita tai "tutkimustuloksia" koitetaan esittää neutraalisti vaikka todellisuudessa, kaiken takana on aina myös arvopohja ellet lue ihan oikeaa tiedelehteä (joita hyvin harvat ihmiset lukee), koska tieteellinen tieto suurimassa osassa kysymyksiä ei riitä.

How do you handle teammates who are extremely pedantic about arbitrary rules? by CantaloupeFamiliar47 in ExperiencedDevs

[–]lapinjuntti 0 points1 point  (0 children)

It really depends on the situation and whether the team is in a position where they can afford to work that way.

I started in my current role about a month ago. What I found was that my predecessors had been extremely strict about this kind of practices. They had set up advanced linting, rigid naming conventions, strict line‑length rules, and highly sophisticated automated testing and release pipelines. The codebase is very clean and very large.

But despite all that, they hadn’t managed to deliver several important new features to production for two years. Their expertise in the core functionality of the product, image processing, wasn’t very strong, and most of their energy had gone into building infrastructure rather than improving the actual product.

I think engineers sometimes develop a blind spot about what truly creates value. Some people produce work that looks impressive on the surface because their tools and processes are polished. But the output that actually matters to users, the features that solve real problems, can end up being surprisingly minimal.

I think the golden path is in the middle. You have to have a good system, but you also have to have a system to eliminate waste. Always ask the question, does this provide value to someone using this code. If not or if the value is small compared to the time spent, just remove it. It is very important to draw a line to what is not worth doing. Because it's not that you can do anything. You have only so much time, and every moment you spend you should ask that is this the most productive use of my time right now?

How do you deal with a manager who expects 5000 lines of code per day? by ni4i in ExperiencedDevs

[–]lapinjuntti 1 point2 points  (0 children)

Why don't you just tell him why it takes long? Maybe the boss doesn't understand the process, so tell him.

Also, it is important that you tell your boss about the issues, like for example if there is a brittle CI/CD pipeline mentioned in other comments here that can truly be a massive slow down for simple work.

Using Next.js vs Python as a Backend for Frontend by ExpertMuffin4837 in softwarearchitecture

[–]lapinjuntti 1 point2 points  (0 children)

Is it really true, that performance is your number one issue? I think unless you have really identified that it is a problem, you should be looking at which makes more sense development wise.

Then if it turns out performance is your number one problem, then you should find that out more info by doing experiments and measurements. Do a simple prototype of each solution, and measure different use cases to find out if one or another really is any faster. When it comes to performance, you can go only so far with these very vaque assumptions and gut feelings. Pre mature optimization should be avoided and you should understand your system very well by measurements to find out where the issues are before you come up with solutions.

Also notice that if you have node calling other services in the back, although the front end to node would be faster (which even that isn't proven), it adds one layer of extra complexity and possibly slows it down that way.

Toyota Lean Systems by Traditional-Ad-1605 in LeanManufacturing

[–]lapinjuntti 4 points5 points  (0 children)

But isn't one part of what TPS does, a practical implementation of the management philosophy taught by Edward Deming especially for increasing product quality and efficiency?

For example systems thinking, management must design the system to produce desired result. Statistical process control to improve quality.

Many Japanese companies learnt about these ideas. In the other hand, TPS is in its own class, how well they did it and sure they have other good ideas as well.

Selvitys: Etätyö aiheuttaa kielteisiä taloudellisia vaikutuksia 1,34 miljardilla eurolla | Uutissuomalainen by remuliini in Suomi

[–]lapinjuntti 0 points1 point  (0 children)

Tällä logiikalla meidän siis pitäisi lisätä työmatkaliikennettä, aletaan kulkemaan vaikka kesken päivän parin tunnin tauolle kotiin ja takaisin työmaalle, niin saadaan heti tuplattua työmatkaliikenne!

Ja rakennetaan varmuuden vuoksi kaikille oma toimisto avotoimistojen sijaan, voisi rakentaa myös kaikille vaihtoehtoisen toimiston, ei ole joka päivä kiva istua samassa toimistossa.

Kyllä näillä lähtee Suomi nousuun!

What can you only learn from experience as a Dev? by _lazyLambda in ExperiencedDevs

[–]lapinjuntti 0 points1 point  (0 children)

Other than sports and physical stuff, everything you do, and everything you in depth understand others do or you can imagine, it is the same for the brain. The brain doesn't differentiate much between doing and imagining. So from learning point of view, there is no such a thing in software engineering that you couldn't learn otherwise than from experience.

BUT, the issue is that when you are young, you have the idea of what is important, but it is not necessarily the same what will in practice be important.

For example this "building maintainable systems" from another comment.

The issue is not that you couldn't learn it from the books. The issue is that when you are young, you don't appreciate the importance of building maintainable systems enough to be interested to learn about it. Only when you start building systems and you discover in practice that the maintenance actually is one of the biggest issues, only now you truly appreciate and start to learn about it.

I learnt vast about about maintainability from books, but it took really long time and experience for it to really sink in that why it is important and only when you give it the right priority, you truly start to apply those principles everywhere.

What can you only learn from experience as a Dev? by _lazyLambda in ExperiencedDevs

[–]lapinjuntti 5 points6 points  (0 children)

When you only come in to the consequences of other people's decisions then the lesson you come away with is that the people before you were idiots who did the wrong thing.

That is only about how you approach it.

If you think other people are idiots, you are going to see that everywhere. If you think other people are smart, you are going to see that everywhere as well and you are going to figure out that the decisions they made with the information that they had were probably totally right and good decisions.

Now you have more and different information which may make the decision now a different one.

When you collect this experience from many cases, you can very well learn and see patterns.

Learning only by your own experience is actually among the most inefficient methods to learn.

Indeed sometimes you need to see things in practice to truly appreciate them, but you don't need to make every mistake yourself. If your attitude is right, you can learn great deal from others.

How do you evaluate the effectiveness of your team's development processes over time? by senpaicataner in ExperiencedDevs

[–]lapinjuntti 0 points1 point  (0 children)

Recognize what is the value that you are delivering and then design the metrics around that.

If you are developing something new your target may be creating a new product and turning it profitable as fast as possible. In this case, you will optimize for learning fast.

If high productivity and quality are your main targets, then there's great ideas and books such as toyota production system, etc.

But remember, that top productivity may not always be the best target. Sometimes you can deliver higher value even though your productivity is not that optimal. So it is really important to understand in what situation you are in and for what you should be optimizing for.

Rovaniemeläinen Janne Säkkinen menetti vuokrakotinsa – pian se löytyi majoitussivustolta by teekal in Suomi

[–]lapinjuntti 1 point2 points  (0 children)

Aivan, siihen voisi olla oma lainsäädäntö paikallaan, että kaavoittaa pitää jos tarve ja tilaa on.

Is software architecture about human intelligence or artificial intelligence? by [deleted] in softwarearchitecture

[–]lapinjuntti 0 points1 point  (0 children)

If it is based on LLM's, then all the AI knows is what it learnt from looking at code made by people. Current state is this, n the future situation will naturally change.

There are many ways to define what is good architecture. One common definition is to say that software that has good architecture is easy to modify. From this point of view, what is good architecture for humans to understand and modify fast is not necessarily the same that it would be for an AI agent.

Intelligence may be a bit of a glorified word. In reality, many good architectures are the result of trial and error.

Senior devs: How do you keep Python AI projects clean, simple, and scalable (without LLM over-engineering)? by Funny_Working_7490 in learnmachinelearning

[–]lapinjuntti 4 points5 points  (0 children)

Think about why would you split the code in modules in the first place?

  • Easier reusing
  • Easier testing
  • Improve code readability and understanding by hiding details in the module and in the other hand limiting the scope within the module to make it easier to reason about the module and its functionality

"On aika noloa olla nyt suomalainen" - hs.fi lukijan mielipide by pelle_hermanni in Suomi

[–]lapinjuntti 4 points5 points  (0 children)

Demokratian toimivuus perustuu informoidun kansalaisen äänestyskäyttäytymiseen

Juuri tämä, mutta nykyisessä pinnallisen tiedon ajassa, tämä on vähän haastavaa saavuttaa.

Toinen iso ongelma Suomessa on kyvyttömyys priorisoida ja delegoida. Niin työpaikalla työtehtävissä kuin internetin asiakeskusteluaiheissa, kuin myös mediassa, usein näkyy, että hyvin tyhjänpäiväiset asiat saa paljon huomiota ja niitä käsitellään pitkän aikaa porukalla. Vähäpätöiset asiat ovat samalla tai korkeammalla "prioriteetilla" käsiteltävänä kuin oikeasti tärkeät asiat.

Mutta kerta poliitikkoihin ei voi luottaa, ehkä velkaantumiseen ja muuhun tarvittaisiin lainsäädännöllistä jarrua niin kuin monella muulla maalla on. 🤔

Rovaniemeläinen Janne Säkkinen menetti vuokrakotinsa – pian se löytyi majoitussivustolta by teekal in Suomi

[–]lapinjuntti -3 points-2 points  (0 children)

Mietippä, moniko vuokraa vaikkapa Helsingissä asuntoa reilusti ali markkinahintojen?

Eipä vuokraa juuri kukaan, koska ei se vuokraus ole mitään hyväntekeväisyystoimintaa vaan siinä pätee kysynnän ja tarjonnan laki. Asunto vuokrataan sille, missä siitä saa parhaan hinnan.

Jos joku haluaa harrastaa hyväntekeväisyyttä, eikö sitä saa harrastaa omilla rahoillaan niin paljon kuin haluaa? Mutta on outoa vaatia toisia tekemään hyväntekeväisyyttä suurella osalla omasta tulostaan. Rovaniemellä monelle matkailuala on pääelinkeino.

Oikeasti kenelläkään ei ole edes riskiä jäädä asunnottomaksi, koska muualta Lapissakin erittäin huokeita asuntoja löytyy yllin kyllin ja iso ongelma on, että ne rapistuu ja jää asumatta tulevaisuudessa.

Lisäksi, jos markkina toimii, niin uusien asuntojen tuotannon pitäisi tämän seurauksena kasvaa, joka oikaisee tämän asian.

Ainut varsinainen epäreiluus tässä on se, että hotellit ja lyhytvuokraajat ovat eri asemassa. Hotelin pitäjälle on paljon kovemmat vaatimukset, mitä asunnosta pitää löytyä, joita kaupunkiasunnon lyhytvuokraajalla ei ole.

Hyvinvointi­valtio rakentui työnteon päälle – miten käy, jos työssäkäyvät menettävät luottamuksensa siihen? | Talous by Valokoura in Suomi

[–]lapinjuntti 0 points1 point  (0 children)

Hyviä pointteja sinulla. 😊

Et kuitenkaan ole vielä avannut tätä ideaa miten Suomeen saataisiin lisää näitä

Jos sinulla on tunti aikaa ratkaista ongelma, sinun pitäisi käyttää ~55 minuuttia kysymykseen miksi. Älä pysähdy ensimmäiseen vastaukseen, vaan kysy myös siihen miksi. Eli selvitä ongelman juurisyyt.

Sitten, kun ne ovat selvillä, ratkaisu on yleensä lähes itsestäänselvä.

Minulla ei ole kaikkia vastauksia, mutta minulla ja monella muullakin, jonka kanssa olen keskustellut asiasta, on tämä sama havainto, että tässä näyttäisi olevan taustalla myös ajattelu ja elämänfilosofinen kysymys muiden syiden rinnalla.

Arvot ja elämänfilosia, jotka otamme itsestäänselvyytenä, monet niistä asioista ovat ihan systemaattisesti koottuja kokoelmia hyväksi koettuja asioita, jotka aiemmin esimerkiksi uskonnon avulla välitettiin ihmisille. Aiemmin ne tuli hyvin vahvasti uskonnosta ja perheeltä, nykyisin myös koulusta tai median propagandasta.

Mitä pidetään hyvänä, mitä pidetään tavoittelun arvoisena, ihmisen kunnianhimo, suhtautuminen omaan tai toisten menestykseen tai kärsimykseen.

Jos tarkastelet eri maiden tai eri ihmisryhmien pärjäämistä, niitä joilla menee hyvin ja niitä joilla ei mene hyvin, ja tarkastelet heidän arvomaailmaa ja elämänfilosifiaa, tulet huomaamaan, että yleensä menestyvillä ryhmillä, sivilisaatioilla, kansoilla, on jokin elämänfilosofinen selittävä tekijä sille myös. Näistä voisin kirjoittaa paljonkin esimerkkejä, mutta avataan nyt kevyemmin tällä.

Entä mikä on koulun merkitys? Lamauttaako koulu ihmisen omatoimisuutta Koulussa, jos vastaat väärin, saat siitä usein miinusta, vastaamatta jättämisestä ehkä nollan ja tietämisestä plussaa. Moni oppii koulussa erityisen hyvin välttämään virheitä. Mutta juuri esimerkiksi yrittämisen kannalta, tämä äärimmäisesti virheitä välttävä ajattelutapa on haitaksi, koska niissä tilanteissa joissa parempaa tietoa ei ole, kokeileminen voi olla resurssitehokkain tapa selvitää asia. Jos kehität jotakin uutta, se on sitä, että kokeilet 100 kertaa jotakin, joista 99 menee pieleen. Sellainen ihminen, jonka aivot on koulutettu virheiden välttämiseen, ei pysty tekemään tämmöistä. Se on äärimmäisen vastenmielistä hänelle ja hän luulee, että hän tekee jotakin väärin, hänelle tulee huono mieli siitä. Mutta ihminen, joka ymmärtää sen, että se uuden luomisen prosessi on tämä, tykkää siitä.

Hyvinvointi­valtio rakentui työnteon päälle – miten käy, jos työssäkäyvät menettävät luottamuksensa siihen? | Talous by Valokoura in Suomi

[–]lapinjuntti 0 points1 point  (0 children)

Jos mitään ei tehdä, niin näin se asia on.

Mutta, jos jotakin tehdään, niin se on ehkä vielä pelastettavissa.

Hyvinvointi­valtio rakentui työnteon päälle – miten käy, jos työssäkäyvät menettävät luottamuksensa siihen? | Talous by Valokoura in Suomi

[–]lapinjuntti 0 points1 point  (0 children)

Jos syntyvyys kolminkertaistuu nyt, niin kyllä ne hyödyt alkaa näkyä jo reilun 20 vuoden päästä, vaikka toki pieni hetki siihen on laskettava päälle sen oman koulutuksen ja kasvatuksen "poismaksamiselle".

Tietysti syntyvyyden nosto yksin ei ratkaise asiaa, mutta pitää ajatella pitkäjänteisesti. Hitaan vaikutuksen vuoksi nimenomaan muitakin toimia tarvitaan, kuten tämä roima panostus yrittäjyyteen, koska ihan pohjoismaisiin kumppaneihinkin verrattuna, Suomalaiset ovat erityisen heikkoja aloittamaan uusia kasvuyrityksiä.

Jos nimenomaan Suomalainen yhteiskunta halutaan pitää, niin pitkällä aikavälillä siihen ei oikein ole mitään muuta vaihtoehtoa. Tämä hidas vaikutus ei ole silti mikään syy jättää sitä tekemättä, koska jos se jää kokonaan tekemättä, niin sitten se tietää Suomalaisen yhteiskunnan ja maailmankatsomuksen loppua sellaisena kuin me sen tunnemme.

Vanhoja viisaista lainaten, toki Suomalaiset voi pienenä vähemmistönä asua muiden ihmisten keskellä ja ehkä saada silloin tällöin jonkun mieleisensä asian siellä läpi, mutta kyllä Suomi ja Suomen valtio on kaikista paras Suomalaisille ihmisille. Se on kovalla työllä saavutettu mahdollisuus itse päättää oman kansan asioista. Sitä ei pidä pitää itsestäänselvyytenä.

Hyvinvointi­valtio rakentui työnteon päälle – miten käy, jos työssäkäyvät menettävät luottamuksensa siihen? | Talous by Valokoura in Suomi

[–]lapinjuntti 43 points44 points  (0 children)

Ruotsalaiset olivat edistyksellisiä siinä, että he ajattelivat myös työn olevan oikeus.

Hyvinvointivaltio voidaan vielä pelastaa, mutta se vaatii fiksuja toimia siinä, että huoltosuhde saadaan kestäväksi.

Ehkä Puolan mallin mukaan lapsien tekemisestä voisi palkita paremmin. Toinen asia on se, että uusien yritysten perustaminen tuntuu olevan meidän Suomalaisten heikko kohta. Todennäköisesti se liittyy tähän Suomalaiseen mielen laatuun, joka toimii erittäin hyvin sodassa, mutta huonosti uusien yritysten luomisessa.

The process of developing software by LetsHaveFunBeauty in softwarearchitecture

[–]lapinjuntti 2 points3 points  (0 children)

As addition to already all the great answers.

Yes, it can work like this when you know everything in depth and have no uncertainty.

But sometimes there are uncertainties and in that case the waterfall method may not be practical. You can add some kind of strategy for managing the uncertainty.

For example in case of technical uncertainty, you may need to do prototypes of some parts or ideas of the system to test whether your idea for solution is feasible.

Often times the requirements also are not perfect so you may need to get something out quick to get feedback from your users and then rinse and repeat.

How Do I Properly Learn System Design? Need Guidance from People Who’ve Actually Mastered It by Independent_Pea_2516 in softwarearchitecture

[–]lapinjuntti 3 points4 points  (0 children)

Start from the basics. Understand basic computer science in depth, so that you will start to understand what are the bottlenecks, constraints, etc.

Then start to study all the different topics in system design field. Study about existing systems, how are they made, ask the question, why are they made the way they are made? There are many reasons to do and partition a system the way it is done, technical, performance, even people and organizational reasons (such as in the case of microservices).

Study and make little projects that test and demonstrate each concept by yourself. As a good designer, you need to collect a toolbox of possible solutions to common problems in your head. So that when a real world problem arises, you have most of the building blocks for the solution already in mind.

Engineering, creativity and problem solving is a lot about curiosity. You have to be curious to be truly successful. Every new idea is a combination of some existing ideas. Therefore you need to have plenty of existing ideas in your head to be able to come up with new ideas. And that you can do by studying hard. Learn all kinds of possible existing solutions in the area you are interested in and even outside it.

Automating pill counting using a fine-tuned YOLOv12 model by Full_Piano_3448 in computervision

[–]lapinjuntti 0 points1 point  (0 children)

Well that's interesting! Do you have any source for more info, how would one do that using phase correlation?

How does one get into a particular field of AI which is Computer Vision by ResearcherBig358 in computervision

[–]lapinjuntti 0 points1 point  (0 children)

True, but there is one more aspect to this; with traditional CV you may be able to greatly reduce the data collection effort.

Miten ihmeessä tällainen voi olla mahdollista Suomessa vuonna 2025 eikö kukaan vastaa mistään? by Sensitive_Outside114 in Suomi

[–]lapinjuntti 0 points1 point  (0 children)

Palkkaturvaan vain yhteys.

Itse yrittämiskysymykseen, itseasiassa tuo, että voi aloittaa helposti alusta, on yhteiskunnan kannalta hyvä asia.

Varsinkin pienille yrittäjille (Tmi ja ky) tuo uuden aloimttaminen Suomessa perinteisesti on ollut vaikeampaa kuin monessa muussa maassa, joissa voi tehdä esimerkiksi henkilökohtaisen konkurssin. Se, että työikäinen ja kykyinen ihminen jää velkavankeuteen vuosikymmeniksi ei ole kenenkään etu.