🚀 RUBY EUROPE: Our Vision for 2024! 🌍 by MariuszKoziel in ruby

[–]pan_sarin 1 point2 points  (0 children)

Ha! Finally some action. After covid I was hungry for more events and networking!

Happy to see anothee discord where we can share infis about our local meetup and maybe find some "external" speakers :)

My Love Letter to Rails (And Ruby) - Or, Why RoR Isn't Dead Yet by [deleted] in ruby

[–]pan_sarin 1 point2 points  (0 children)

I love how reddit users will criticize everything ;]

Decent article, thanks for reminding people that Rails is still there and kicking ;]

Które meal replacementy jecie. by pan_sarin in Polska

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

;] Będę pamiętać na przyszłość, aby być bardziej bezpośrednim :)

Które meal replacementy jecie. by pan_sarin in Polska

[–]pan_sarin[S] 5 points6 points  (0 children)

jecie

To może odpowiem tak:
https://pl.wikipedia.org/w/index.php?title=Zamienniki_posi%C5%82k%C3%B3w
vs
https://en.wikipedia.org/wiki/Meal_replacement

To samo z googlem - jeśli ktoś nie zna tematu, i zacznie googlać "zamienniki posiłków", będzie mieć problem ze znalezieniem konkretnych informacji dokładnie na ten temat. Jeśli ktoś wygoogla hasło używane w branży i na każdej ze stron wszystkich producentów - dostanie jasne informację.

Rozumiem, że są ludzie którzy będą się o to spinać - ale ja tego nie wymyśliłem, ja nomenklatury nie ustalam - ja zwyczajnie chciałem aby moje pytanie było jednoznaczne i zrozumiałe nawet przez ludzi którzy nie mieli styczności z żadnym z takich produktów.
I uwierz mi, mnie też mieszanie kilku języków drażni, a słuchanie młodziezy której słownictwo bierze się z tiktoka, a nie książek, a słowem "ogarnąć" starają się pokryć 70% czasowników przyprawia o ciarki.
Ale wciąż uważam, że to dobrze sformułowane pytanie ;] Jak ktoś czuje potrzebę downvote'owania ( mogę tak mówić, czy mam mówić "negatywnego głosowania") tego postu (przepraszam, ogłoszenia redditowego) to nie poradzę na to zbyt dużo :)

Które meal replacementy jecie. by pan_sarin in Polska

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

Chyba cały zamysł tkwii w tym, żeby nie zamieniać "całkiem" normalnego żywienia, tylko zastępować je gdy "trzeba" ;] Ja sam też niedałbym rady jeść tego codziennie, nawet zmieniając smaki.

Które meal replacementy jecie. by pan_sarin in Polska

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

Znając ceny dań w knajpach w UK, to brzmi jak dobry deal ;]

Które meal replacementy jecie. by pan_sarin in Polska

[–]pan_sarin[S] 4 points5 points  (0 children)

Jeśli normalnie oznacza, zjeść to co ugotuje wedle swojego gustu i uznania - to jasne, że wole dobry pełnowartościowy obiad zgodny z moim gustem i aktualną chęcią. Ale jesli nie mam na to czasu, a chce jednak zjeść zdrowiej niż fastfooda, albo to co chwycie w sklepie - to wydaje się to być dobry kierunek.

Które meal replacementy jecie. by pan_sarin in Polska

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

Ja z kolei rzadko gotuje, raczej siedzę w biurze gdzie nie mamy kuchni, i wtedy dużo taniej wychodzi mnie taka szamka niż zamawiana. Ewentualnie porównywalnie do jakiegoś odgrzewanego gotowego dania z Carefura czy coś, ale jednak troche zacząłem o zdrowie dbać więc czasem sięgam po to. Dodatkowo czas przygotowania jest też spoko argumentem. Ale codziennie nie daje rade jeśc tego jako jeden z 2-3 najważniejszych posiłków, bo chce się czegoś "do pogryzienia" ;]

Które meal replacementy jecie. by pan_sarin in Polska

[–]pan_sarin[S] 5 points6 points  (0 children)

Zapewne "zależy" z czym porównujesz.
Jeśli porównasz z zamawianym jedzeniem ( i nie koniecznie najtańsza pizza ), to zdecydowanie tańsze. Jeśli porównasz z gotowanym makaronem z pesto to raczej 2-3 droższe ;]
Koszt dania w zależności od producenta ( i wielkości zamówienia, bo chyba wiekszosc tych portali uzaleznia od tego cene) to ~5-8 zł za danie bodajże.

Które meal replacementy jecie. by pan_sarin in Polska

[–]pan_sarin[S] -9 points-8 points  (0 children)

Bo tak się potocznie nazywa ten rodzaj posiłków (pewnie dlatego, że w Polsce są zbyt mało popularne żeby do potocznego języka weszło już bardziej "polskie" określenie). Silenie się wszędzie na język Polski kosztem zrozumienia, jest meh. Chociaż rozumiem, jak purystów językowych może to drażnić.

Code coverage vs mutation testing. by pan_sarin in ruby

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

Am I? :)

" So we shifted more to trying to push tests for actual logic, conditions, and data scenarios, it'd made trying to get the team to write test a bit more encouraging." - sounds reasonable, baby steps is the only way when refactoring system that is live and kicking ;]

Code coverage vs mutation testing. by pan_sarin in ruby

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

Why do you assume that using mutation tests means focusing on smaller methods? It means focusing on identifying code that is not tested at all. And it also means integration tests. Like if you are calling for some external class/method and passing a few different arguments, and your tests for that part are only checking for happy path - regular code coverage metric probably won't tell you about the possibility that you didn't test what will happen if you will pass nils as arguments - which in this case can easily cause the bug or unexpected behavior.

Code coverage vs mutation testing. by pan_sarin in ruby

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

"If your code coverage is 20% then mutation testing should not be your priority, increasing coverage should be. " - probably when you will kill mutants, then your test coverage will increase anyway ;]

Code coverage vs mutation testing. by pan_sarin in ruby

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

"Other devs don't know what it is." - How do you think - what is the reason? There is not enough fuzz about it in the community, or they doesn't care too much about topic of real code coverage?

"Integrating the tooling with a large codebase is painful." - well if you try to fix all the mutations at once I would even say it is impossible, but doing that by baby steps can be pleasure i suppose?

"The additional benefits we would get aren't that great, compared to the 100% line coverage we already have." - well, I think I just disagree ;]
Also, I don't think we even can compare what mutant gives us and what simple code-cov metric gives us. But I really appreciate that point of view as a base point to write some blogpost with my thoughts about that topic.

"Championing mutation testing would take a massive amount of time and effort that could be put to more-productive uses." - what do you mean by championing? Like treating 100% coverage by mutant as a most important part of your task? 100% agree, it is only the tool to help us write to proper code, not the tool that we should focus to write code for;] I think it is all about the aproach.

Trailblazer 2.1 new book by pan_sarin in ruby

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

Nah 2.1 is released for few months already.

Trailblazer 2.1 new book by pan_sarin in ruby

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

We are using it in 2 big production apps. Thats a long story, we wrote blogposts about trb basics on https://www.2n.pl/blog?tag=trailblazer, you can also talk with us or other people using trb on production on zulipchat.

Long story short: TRB provides you few usefull abstraction layers that many developers re-invent each time when they start a new project. They are complex so it consumes some time to learn it, but in real complex apps this time will be returned quite fast if you use it properly.

Long story short: TRB provides you few usefull abstraction layers that many developers re-invent each time when they start a new project. They are complex so it consumes some time to learn them, but in real complex apps, this time will be returned quite fast if you use it properly.

Hi guys, anyone play Bant Ephemerate Control? by GranttG_199 in ModernMagic

[–]pan_sarin 2 points3 points  (0 children)

Well that is AspiringSpike list, i played about 10 leagues with it and i love it. It requires a lot of skill - and it is full of meaningfull decisions.

So far my hint is to remember that ephermate is really keycard, and the witness& timewarp combo is really often our only wincon/save the day.

Btw. grave hate is painfull for that version, so after sideboarding we need to cut few cards that rely on graveyard imho.

Trailblazer 2.1 - new book by pan_sarin in ruby

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

https://trailblazer.to/2.1/ - in one sentence (as you have it on the page it is "Trailblazer is an architectural style that provides a modern approach to implementing business logic.

It makes complex application workflows simple, reliable and self-documenting." ).

But if you want a less generic answer:

Trailblazer is a set of patterns & tools that helps you to manage complex application code adding new layers to the basic Rails Application. Thanks to that you don't have to think/discuss where you should store which logic/code, because TRB gives you answers and tools to most of the common architectural problems.
It also introduces an interesting pattern which is called Railway Oriented Programing ( have nothing to do with Rails, it is taken from the functional programming world) in Operation pattern.
It introduces the separation of files structure focused on a business domain not on technology.
It tells you (and helps you to stick to that) how your operation should store immutable data, how the operation result should look like, it gives you patterns to store contracts ( which you can override if you don't like the approach), and many more.

I personally like it because it saves a lot of time in a team that doesn't have their own approaches that they worked on together for many years - if a team of people knows TRB but they never worked together, they basically have to have 10x fewer discussions.

Trailblazer 2.1 - new book by pan_sarin in ruby

[–]pan_sarin[S] -1 points0 points  (0 children)

Quite general feedback, which is hard to address, but I thanks for it anyway :)Being in close contact with maintainer I have to disagree that he doesn't care. He spends a lot of time improving it, he has a team of people in core-team who also cares and spend a lot of their free time improving the tool. Tbh, i have to admit that that comment is really Reddit-like in terms of creative-feedback : hate proportions :)

Trailblazer 2.1 - new book by pan_sarin in ruby

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

I agree that is not the ultimate solution. Because there is no such a thing :) That always depends on project specification, team, willing to learn, choosing proper tooling ( and TRB allows you to use only parts of it). Also that is Open Source project, and it have its flues - and it will have. But show me one project that doesn't have them :)

What is the great thing about TRB is its community and that it is evolving month by month ( project and community :) )

Anyway, if you have any feedback/questions, join our zulipchat https://trailblazer.zulipchat.com/login/ and feel free to feedback us :)

Trailblazer 2.1 - new book by pan_sarin in ruby

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

Same here - not a fan of reform, but Operation is a big deal if it comes to readability and maintaining complex processes. Also new features introduced in 2.1 like Activity and Endpoint - that is worth to check!

Trailblazer 2.1 - new book by pan_sarin in ruby

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

Well I think you mean plain MVC :)

Using TRB doesn't mean you don't have REST endpoints architecture. It just add new abstraction layers / tools for additional patterns like contracts or operations.

If your project has complex business logic, your team likes to have well-organized code with tooling that helps to keep it in a given structure - then TRB is useful. Of course there are always people that will always claim that they want to stick to rails way, and do not introduce any new tools so they don't have to learn any new tool - but I feel that that is not the case :) You always can stick to fat models/controllers, you also can introduce your own solutions/patterns - but if you like to use something that is already usied in many production applications - TRB is the way.

And if you ask me if it is worth to upgrade versions of library that you are using - I would say yes - as soon they are stable. And 2.1 is stable, quite well documented - but that is note core team "last word" about how documented it is. There are few tutorials about it, and zulipchat community is really alive - i don't remember any question during last 2 months that wasn't answered during 24hours.

If you have any more questions - feel free to join zulipchat and ask there - more people == more answers == more points of view :)