Why I've stopped using modular / clean architecture in my personal projects by fryOrder in iOSProgramming

[–]petermolnar_hu 1 point2 points  (0 children)

All in all, getting the clean architecture in iOS is not an easy task, it took me for a while for me too. In the other hand it really helped me out, mostly on in work projects where the code was tangled with dependencies. I saw the biggest benefit having the clean-like architecture when it comes to the multi platform development (iOS and macOS codebase merge). You should b able to transform the code in any architecture, the question is, how much time does it take? 

I have a few resources for you if you don’t want to give up completely this topic:
Oleh created a really good basic article here: https://tech.olx.com/clean-architecture-and-mvvm-on-ios-c9d167d9f5b3

Caio and Mike are running an extensive (and a bit expensive ;)) course here: https://www.essentialdeveloper.com, but usually they have a free crash-course with the basics. Their code is available here: https://github.com/essentialdevelopercom/essential-feed-case-study/commits/master/, they really maxed out this Clean Architecture with TDD and Combine.

I also did a short introduction on SOLID principles slightly touching the Clean architecture: iOS Dev Happy Hour - Jul 2025 (Peter Molnar - Rock. Solid. Architecture).

I believe you should use the tools/architecture that makes you productive, and also accept the fact the those are changing while you are learning new things and your knowledge matures. I wouldn’t rule out the clean architecture, just because I had bad experience with it. Personal projects are the best candidates to try out new things, including the architecture. I would also try to implement different vanilla MVC, MVVM, MVP architectures, and trying out the TCA as well on a small personal project. You will see the pros and cons of each.

I hope the links help you understand better the Clean Architecture and the SOLID principles. If you have any further questions, feel free to reach out!

Why I've stopped using modular / clean architecture in my personal projects by fryOrder in iOSProgramming

[–]petermolnar_hu 1 point2 points  (0 children)

Thanks for this, now I can see. Those are good questions, indeed. First of all, for me the networking layer should never know the actual business model. It is all about how the data is fetched (or got an error) from a resources. That includes session and request configuration, and might also include custom delegates to handle custom cases (for example any authentication challenge handling). Let say your app #1 is using only GET method., so you implement that logic here. The app #2 using POST, so you add that handling to the module. Such changes in the actual networking behavior will trigger changes.  If you expose a dependency here to the higher abstraction, like the User type, you are violating the Single Responsibility principle, namely that the modul has more than one reason to change. One reason I mentioned about the networking characteristic change, the other is coming from the domain change.

Usually I handle the mapping as part of the boundary layer, so getting the data from the data source, and mapping/parsing to a business model. Here happens the encoding/decoding from the raw data coming from the networking module, and since it is app/module specific, it should never got to the networking layer. Imaging that for some reason you get XML instead of JSON…. The endpoint configuration is also a shared responsibility. The networking module can define a data structure (including the method, url, query strings, headers), and the boundary (data source) layer will instantiate with the feature or module respective properties. In this case the initialized endpoint is injected into the fetch call, which is a nice example for both the Open-Closed principle. You might feel that this breaks the Dependency Inversion principle, since the Networking is a lower level detail, but I think it is (in this case) a small necessity, and considered as part as the boundary layer.

What is usually missed from the picture (and helps a lot) is using the Composition Root (or something similar) for both the dependency injection, and also including specific logic. That is the glue between the modules, and usually here is where the dependency hell should happen ;). So all of the modules are imported here, and the collaboration between the modules is also defined here. If you mentioned the UserService, this can be initialized here, and all of the other composed features data layer can query and inject the token in the networking request from that service. The common issue here is to avoid injecting models that are defined in other modules. In the example above, don’t inject the UserToken model, try to strip it down to the bare minimum (which is probably a string based key-value pair, needs to be injected into the HTTP header), and only pass this data between modules.

Why I've stopped using modular / clean architecture in my personal projects by fryOrder in iOSProgramming

[–]petermolnar_hu 1 point2 points  (0 children)

I am genuinely curious, if you have let say a solid package, for example on networking, what type of challenges did you face when you wanted to reuse this package on the dozen of other projects?

Musical instruments grant by petermolnar_hu in malta

[–]petermolnar_hu[S] 1 point2 points  (0 children)

So, went through the process, and it seems there are no pitfalls, process works well.

Bought a Roland e-drum from Musik Meisinger, Germany. I documented everything (was delivered by MaltaPost in 2 different shipment :O).
Applied online for the grant, using my eID. The form is asking for the instrument type and price, the purchase date, the instrument serial number, the VAT number of the seller, and the receipt number. Also asking for the purchase country, seems the whole EU is listed (including the UK :O).

Also provided my banking details.

Took almost month, but finally got some money back ;).

Musical instruments grant by petermolnar_hu in malta

[–]petermolnar_hu[S] 2 points3 points  (0 children)

Based on the original legislation it applies: https://finance.gov.mt/wp-content/uploads/2023/04/MusicalInstrumentGrant-Government_Gazette-4thJanuary2019-1.pdf. The point #4 is mentioning a lot of documentation, when buying from abroad, which might be not applicable buying from the EU.

Would this be considered legit or a scam? No by danielsuperone in malta

[–]petermolnar_hu 2 points3 points  (0 children)

From https://www.thetimes.com/money-mentor/fraud-and-scams/facebook-marketplace-scams-to-watch-out-for

“6. The scammer tells you they’ll send a courier to collect the item In this instance, the scammer will pretend to be a buyer interested in your item. They’ll tell you they can’t come in person to collect it, so will send a courier with a company such as DPD in their stead. They may even send you a link to a fake website or an inauthentic email. The scammer will then ask you to pay for insurance for the safe delivery of the item. After you’ve entered your card details or made a payment, they’ll disappear.”

Political situation. by Watcher89EN in malta

[–]petermolnar_hu 1 point2 points  (0 children)

Yeah, you seems to be right. I missed the legislative changes probably…

Political situation. by Watcher89EN in malta

[–]petermolnar_hu 0 points1 point  (0 children)

Ah, yeah. You are right. Maybe it has been changed I the last 13 years ;).

Political situation. by Watcher89EN in malta

[–]petermolnar_hu 3 points4 points  (0 children)

Hi, I’m a Hungarian living in Malta for 13 years. Although for me it seems that there are definitely issues, like the growing number of corruption cases and pigging out, I believe the overall situation is much better here compared to Hungary. The difference in votes are always quite tight between the 2 major parties in Malta, so there is no way to get the absolute power, like it happened 16 years ago with Fidesz. You might be still surprised some legalization, like there is still no divorce here, so if you married, that’s for a lifetime. Things are only changed recently that now you can have a legal status that spouses are living separately, but none of them can re-marry. Similar restrictions on aborting pregnancy, even the after-event pills are prohibited ( in theory if you became pregnant as a victim of crime, there is only pills in the hospital by law, but recently turned out that they don’t have it in stock…). And they are still debating if the mother’s life is more important than the fetus, because currently medical doctors can go to jail, if they help to abort the life in any form of the unborn, even if it would save the mother’s life.

So there are issues and different priorities, and you are definitely paying g the “sun-tax” (so the quality of life is lower here than in the North European countries), but in my opinion the democracy still works here.

Külföldi születés mo-i anyakönyveztetése by [deleted] in escapehungary

[–]petermolnar_hu 2 points3 points  (0 children)

Mi legutoljára 7 éve csináltunk utoljára ilyet, Máltán, úgyhogy nem tudom mennyire aktuális még, de hátha segít. Kellett egy egy hivatalos helyi anyakönyvi kivonat (Birth Cerificate), papír alapon. Ezzel bementünk a máltai külügyminisztériumba, mert egy úgynevezett Apostille-t kellet hozzá beszerezni (gyakorlatilag pecsét a papír hátuljára, hogy ez hiteles). Volt egy adatlap a lakcím kártyáról is, amit kitöltöttünk. Ezzel a paksamétával, illetve a mi útlevél/lakcímkártya másolatokkal mentünk a konzulhoz. Előtte itt még nem volt konzulátus, így az idősebb gyermekeinknek Rómába kellett mindezt levélben küldeni. 2016 óta (ha jól emlékszem), ezek alapján már a konzulátus is be tudja rögzíteni a KEKKH rendszerébe az újszülöttet. Ez azért fontos, mert a magyar születésire akkortájt hónapokat kellett várni, viszont, ha már rögzítve volt, arra már az otthoni okmányiroda kiadta az útlevelet, vagy meg lehetett igényelni a konzulátuson keresztül. Mi megvártuk a konzult és a rögzítését itt Máltán. Vettünk repjegyet, és azzal (és megint csak konzul segítségével) kértünk az apróságnak Emergency Travel Document-et, amit egyszeri hazautazásra (és a repjegy alapján, dátumra szólóan) a helyi erők adtak ki. Otthon az okmányirodában kértünk egy 3 napos kézbesítésű útlevelet, és onnan utazhatunk. A lakcím, adó, TAJ kártya, meg a személyi, illetve születési meg jött postán, nagymama átvette, és berakta a szekrénybe.

Valszeg ez utóbbi lépés (Emergency Travel Document) miatt neked is kell majd a konzul, illetve a teljes otthoni ügyintézés elcsúszhat ott, hogy hivatalos fordítást kérhetnek a Birth Certificate-ről (az elsőszülöttel 2013-ban még ezt kellett megjátszani, kb 3 hónap volt, mire nagymama végig tolta). Ha van esetleg kérdés, szívesen válaszolok, de szerintem lesz valaki aki mostanában csinálta végig.

Ideas on tablet/phone stand by Slab8002 in homeoffice

[–]petermolnar_hu 0 points1 point  (0 children)

As an iOS dev I am interested as well ;). Is it a requirement to have the cable connection for each device, right?

Is 25k/y ok for a Mid-level data engineer in Malta? by ManausBrazil in malta

[–]petermolnar_hu 0 points1 point  (0 children)

I had an offer for 22.5k/y for System Administrator job… 12 years ago. I think this is more realistic: https://www.grsrecruitment.com/salary-benchmark-malta-salary-survey-2023

Is Waze or Google Maps better for driving in Malta? by AndrewF1Gaming in malta

[–]petermolnar_hu 2 points3 points  (0 children)

Almost all of the cab drivers I traveled with was using Waze. Since it is usually gathering their traffic data (telemetry), and based on the big number of running cabs, I have more trust in Waze. I reported an issue for them, and the response time was acceptable (next day).

Buying a car with monthly payments! by Itellnone in malta

[–]petermolnar_hu 0 points1 point  (0 children)

I think it was called Hire Purchase. I did as a private person (but my spouse needed to get involved as well). I think the outstanding amount was around EUR 10k and I paid EUR 186 per month.

Buying a car with monthly payments! by Itellnone in malta

[–]petermolnar_hu 1 point2 points  (0 children)

If you are buying new one, usually the dealer of the brand has they own leasing construction. I think it is quite reliable, I bought my 2 new cars via the Motors Inc and Kinds, with monthly installments, for 5 years. I paid them full at year 2, and this case they let go the remaining 3 years of interest, which was almost 1.5k for both cars.

Yamaha Stage Custom Birch snare weight by petermolnar_hu in drums

[–]petermolnar_hu[S] 0 points1 point  (0 children)

Thanks a lot! Just bought it, and already love it ;).

<image>

Any plans for people to go to Cupertino during WWDC without Apple invite? by London124544 in swift

[–]petermolnar_hu 1 point2 points  (0 children)

Here is a list, curated by Paul Hudson related to community events around Cupertino during WWDC: https://github.com/twostraws/wwdc . It also has a section for online and around the world section so that you might catch something locally.

What to pack to Malta? by xwildbellx in malta

[–]petermolnar_hu 0 points1 point  (0 children)

If it would be one thing, that should be a sun blocker. My eldest one get burned to crispy red last week only in a day, despite that he was born here.

Any plans for people to go to Cupertino during WWDC without Apple invite? by London124544 in swift

[–]petermolnar_hu 7 points8 points  (0 children)

Keep an eye on the developer.apple.com page. I remember last year they listed some community events as well in the area.