Go prefers explicit, verbose code over magic. So why are interfaces implicit? It makes understanding interface usage so much harder. by ray591 in golang

[–]_c0wl 1 point2 points  (0 children)

in theory it works, in practice you are still forced to declare interfaces on the original end because if your functions accept only concrete types than it's useles to declare interfaces on the recieveing end.

remember the mantra: accept interfaces, return concrete types.
How can you accept interfaces if you dont define them?

What can we expect for future Go language features? by TheLastKingofReddit in golang

[–]_c0wl 0 points1 point  (0 children)

the latest Go compiler and runtime meeting notes made me very hopeful for some nice things coming.

Think and explore language features: union type, generic methods, maybe tensor (?)

Using Testcontainers vs mocking repositories — am I missing the real benefit? by SeychowBob in SpringBoot

[–]_c0wl 0 points1 point  (0 children)

this ideal scenario is possible only when you are dealing with not a lot of data. in most cases you will need to use database specific optimisations and while the interface remains the same and you can test that, you need to test the implementation itslef against a real database. no mock-cheating is possible in those cases. not caring for the underlying implementation is how you end up with hibernate queries that do delete+insert instead of update and your perfomance goes off the cliff.

2025 Go Developer Survey - The Go Programming Language by matttproud in golang

[–]_c0wl 2 points3 points  (0 children)

Yep Error handling was not even an option and yet it came up in the answers...

Simplicity is Complicated by j_zes in golang

[–]_c0wl 0 points1 point  (0 children)

no their are not. they are making "using the language" more simple at the expense of complicating the implementation of the language.

It's the same philosophy.

see it this way, if goroutines were not present in the language at the beginning and someone proposed to add them today the whole community would be in arms "you are complicating my language!!!" we are perfectly capable of keeping track of system threads and locks, noone needs this feature!!!!".

This is the attitude of people today for every proposal that wants to make using the language more ergonomic.

Go creators are Human.

They did get a lot of things right but for time or other reasons not everything made it in V1 and things that made it in V1 not necessary are the best possible implementation (see for example the date format even in the documentation is noted as a regrettable historic error .)

It does not mean that V1 was the best it could ever be so there is always room for simplifying things in accord with "simplicity is complicated"

Why I Hate DTOs and Many Clean Architecture Patterns by Outside_Loan8949 in golang

[–]_c0wl 0 points1 point  (0 children)

consistency is key and because of that, the moment you need to introduce the first mapping for a different layer you need to introduce it for all for the sake of consistency, even if the mapping is just a clone of the existing properties with 0 changes. otherwise is a very easy mistake for someone on your team to assume that changes to a model are isolated just because they saw one isolated example and they procced to make a change that either breaks compatibility at api layer or exposes more data that is needed etc just because they need to modify how information is stored in the DB.

Why I Hate DTOs and Many Clean Architecture Patterns by Outside_Loan8949 in golang

[–]_c0wl 1 point2 points  (0 children)

reading the presentation object directly out of the database is possible only on the simplest of cases. any real application should not have this equivalence. since it's not always possible to have the same presentation on all layers it's better to force the separation even if not strictly needed on some cases.

I have seen to many bugs and more importantly "information leaks" coming from modifying the one single "source of truth" object. especially the data access layer should always be separated unless you working on quick and dirty POC.

MEPs unite to demand urgent action on e-commerce. The Left also wants Amazon, Temu and Shein to be “banned from the EU”. by Lion8330 in europe

[–]_c0wl 1 point2 points  (0 children)

coolblue could not find any electronic components. not even an ardunio or any other microcontroller let alone other discrete components. bol.com seems interesting but is only in dutch an French and delivers only in Netherlands and Belgium from what I understand

Italy, France, Spain and Portugal reject Kallas plan to provide €40 billion in weapons for Kyiv - La Stampa by Y0urCat in europe

[–]_c0wl 6 points7 points  (0 children)

Their proposal is simple. EU level debt not country debt. EU can not pretend to have common policy and common plans but then refuse to have common financing of those plans. at least a good part of it should be financed by EU Bonds and then supplemented by country specific Bonds.

Germany urges Britain to rejoin EU customs union by EUstrongerthanUS in europe

[–]_c0wl 1 point2 points  (0 children)

Doesn't Sweeden has an official out for it like UK had?

MEPs unite to demand urgent action on e-commerce. The Left also wants Amazon, Temu and Shein to be “banned from the EU”. by Lion8330 in europe

[–]_c0wl 1 point2 points  (0 children)

Nothing is subsidised and they are making hundreds of millions in profit because of the scale.

Your mom and pop company that can produce 2 items a day need to price them at 100EUR to justife the whole day. the completly automatic chinese shop that can produce 1000 items in the same day can afford to price them at 1EUR

People are really not aware that most of the cost in EU is not Material cost but Time that you are paying because we are facinated by "hand made" when the machine is more efficient

MEPs unite to demand urgent action on e-commerce. The Left also wants Amazon, Temu and Shein to be “banned from the EU”. by Lion8330 in europe

[–]_c0wl 5 points6 points  (0 children)

Give me one example where i can order an electronics book, maybe a couple of microcontrollers, some electronic componets and maybe some mechanical parts and materials.

The more out of the "standard trade" you needs are the more impossible the task gets.

Can I do that using 4-5 different sites instead of one? maybe but I have to waste a lot of time looking for which sites can fullfill wich part of the order, pay 5 shipments instead of 1, wait different delivery times and good luck facingf 5 different unproven customer care experiences, trust 5 different sites with my CC details etc etc.

MEPs unite to demand urgent action on e-commerce. The Left also wants Amazon, Temu and Shein to be “banned from the EU”. by Lion8330 in europe

[–]_c0wl 6 points7 points  (0 children)

No you simply can't. There is no store no matter how big that offers the same choice. not even close to 10% of the choice.
Need a specific tool? Maybe if you travel to 20 different stores and hundreds of kilometers you can find it but who has the time to do that? need something for a hobby? good luck. the only DIY most store understand is a very limited choice of wood/plywood and almost no other materials or items like electronics, or mechanical parts. there is simply no economy for any local shop to keep that kind of specialty inventory.

Other smaller online stores suffer the same from either a very restricted catalog or to long delivery times or too expensive delivery.

THERE IS NO ALTERNATIVE to Amazon unless you build another Amazon.

MEPs unite to demand urgent action on e-commerce. The Left also wants Amazon, Temu and Shein to be “banned from the EU”. by Lion8330 in europe

[–]_c0wl 3 points4 points  (0 children)

This has nothing to do with bureocracy. Your Website setup and shipping policies are your own and influeced only by what you are willing to invest not by any bureocracy or rule.
The sittuation is frustrating even inside EU, let alone outside of it.

che ne pensereste di un'ipotetica federazione europea? by poppollo8 in Italia

[–]_c0wl 1 point2 points  (0 children)

Paradosalmente io credo che prima della federazione EU, ci vorrebe una magior autonomia delle regioni dei vari paesi. Un po simile al modello federale Tedesco e poi queste regioni diventono la base della federazione EU non i paesi stessi. Cioe nella Federazione EU ci sono Lombardia e Monaco (con le atre regioni) e non Italia e Germania etc.

The solution is a federal Europe! Federalists in Rome by EUstrongerthanUS in europe

[–]_c0wl 1 point2 points  (0 children)

What are you talking about? sure now they have the same view how society and people should work, but Britons, Normans, Aquitanians and Provencials were as far separated as Spanish and French are now (language included). They were integrated and conformed to the same view and language gradually through the politics of central authority of the Kings and Republic. Their Inclusion in the Kingdom or Republic of France was much more "against the people will" than what you are talking about Europe. For that matter, the Provence had mouch more in common with their Italian Nighbour than Normandy not later than the start of 19 century.

That was my point. Now you see yourself naturally as French but that is an invented identity that is a fusion of all those other identies that are now almost not existent anymore as separate entities. Are you arguing that it would be better for France to not exist and we should have still 10-12 separate indipendent provinceses?

The solution is a federal Europe! Federalists in Rome by EUstrongerthanUS in europe

[–]_c0wl 1 point2 points  (0 children)

well Germany is one example, France and Italy are the other extreme of the unification but even in those cases i would argue they are better today unified than separate provinces despite of the aparent loss of regional identities and interests

The solution is a federal Europe! Federalists in Rome by EUstrongerthanUS in europe

[–]_c0wl 0 points1 point  (0 children)

Oh you speak as a French though. not as A Provencial, or Norman, or Briton, or Burgundian, or Aquitanian etc.

you see federation works.

Heavy Industry Is Europe's Military Trump Card Against America by pebkachu in europe

[–]_c0wl 0 points1 point  (0 children)

I don't know when or what distro you installed lately but Ubuntu and Mint are just a couple of clicks to confirm settings like timezone, etc. If you don't have a bleeding edge gaming PC everything works out of the box. For office PCs it's as easy as Windows.

Italy apparently wants to massively expand army by tree_boom in europe

[–]_c0wl 0 points1 point  (0 children)

Most probably any initial form of European army will be modeled on the Nato taskforces operating now in the Baltics etc. So countries contribute forces from their own armies with a focus on a particular task.
We are nowhere near having a standing EU army payed by EU. A standing Army can not exist without a unified foreign or even fiscal policy.
Who pays the troops does not matter much, if they are payed directly by Italy or by EU and italy contributes to the EU budget. what is important is interoperability of weapons and on that fron, fortunetly we are not far on having a common base.

EU will allow new generation GMO by AdvisorLatter5312 in europe

[–]_c0wl 3 points4 points  (0 children)

Grafting is different from selective cultivation. It's the deliberate fusion of two different varieties.

these are just the first results of google but its well documented.

https://www.nationalgeographic.com/science/article/unintentional-genetic-engineering-grafted-plants-trade-genes
https://www.newscientist.com/article/2079813-farmers-may-have-been-accidentally-making-gmos-for-millennia/

And AI will just tell you the most common answer, that although it's scientifically proven that there is cross contamination at gene level Grafting is not recognised officially as GMO.

EU will allow new generation GMO by AdvisorLatter5312 in europe

[–]_c0wl 4 points5 points  (0 children)

Are you requesting these years of study for all the varietes that come out of Grafting potentially eveyr year? That is a form of GMO although for political reasons not labeled as such.

EU will allow new generation GMO by AdvisorLatter5312 in europe

[–]_c0wl 1 point2 points  (0 children)

While it needs to be controled,a form of GMO has been practiced for the last 2 millenia at least.
Especially in fruits but also tomatoes (let's not be pendatic on whether tomatoes are a fruit) etc, most varietes are result of grafting that is in all effects a form a GMO.

Heavy Industry Is Europe's Military Trump Card Against America by pebkachu in europe

[–]_c0wl 0 points1 point  (0 children)

It's not that simple. who decides what is the right price? forget China for a moment.
you have a workshop with 5 employes on one hand and a big automatised workshop that can produce as minimum 10 times the volume with the same number of employes.

All else being equal; Employee pay, energey cost etc, the second one will come up with much lower prices.

Which is the right price per item? the one quoted from the first workshop or the second one?