<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Martin</title>
    <description>The latest articles on DEV Community by Martin (@domorodec).</description>
    <link>https://dev.to/domorodec</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F316022%2F54ba86e8-5203-49dc-b144-661fe3880a18.png</url>
      <title>DEV Community: Martin</title>
      <link>https://dev.to/domorodec</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/domorodec"/>
    <language>en</language>
    <item>
      <title>From TS to Python :/</title>
      <dc:creator>Martin</dc:creator>
      <pubDate>Wed, 14 Feb 2024 09:13:16 +0000</pubDate>
      <link>https://dev.to/domorodec/from-ts-to-python--2mle</link>
      <guid>https://dev.to/domorodec/from-ts-to-python--2mle</guid>
      <description>&lt;p&gt;I wanted to try python (lets call it "py"), cause it is very popular so I told myself to create something, that will be useful 4 me and not taking like weeks of work. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I came with countdown application, cause it make sense right for programmer to in some way just set some work time frame 😉&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I have asked chatGpt (will call ti Chat) how such draft would look like so to have some skeleton. That was nice to get familiar with python language, but I have also read some other stuff previously 😉&lt;/p&gt;

&lt;p&gt;But after that I decided to make a little brainstorming so I stared from scratch and used Chat only for like asking and learning.&lt;br&gt;
Here comes the fun.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Like somebody once said about py, you either love it or hate it and I agree. From strictly typed TS to not typed py is a little bit crazy.&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Indentation&lt;/li&gt;
&lt;li&gt;No need to specify return type&lt;/li&gt;
&lt;li&gt;No need or possibility to specify props types&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now I understand why this is like favourite language between students or people who don't want to bother with strictly typed languages like Java, C#, TS etc.&lt;/p&gt;

&lt;p&gt;Anyway, I started with like this steps&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Do method to provide countdown with fixed values in terminal, just to see something 😀&lt;/li&gt;
&lt;li&gt;Create some UI to see it visually&lt;/li&gt;
&lt;li&gt;Add buttons to start, stop and pause&lt;/li&gt;
&lt;li&gt;Add functions for these buttons&lt;/li&gt;
&lt;li&gt;Add inputs for minutes and seconds&lt;/li&gt;
&lt;li&gt;Lastly make countdown app take these values and delete hardcoded ones&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Chat is great for this type of tasks, cause py has good bunch of libraries that you can import nearly for everything, almost .. so after couple of hours split in few days the app was born. Yes, there were some bugs so I also had to find them but nothing serious, mainly steps order, local variables or something missing in logic but with chat it is much faster if you know what you want how it should behave. &lt;strong&gt;And if you mainly ask explanation if you don't understand all code that is for me one of the most important parts working with chat. (I guess not everybody does this right 😐&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4bdos5zu4dyhjrovmgus.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4bdos5zu4dyhjrovmgus.jpg" alt="application preview" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5emz793s5q1c4dhjr1d5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5emz793s5q1c4dhjr1d5.jpg" alt="application preview" width="606" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;App is on top of all screens or windows, so you can move it everywhere you want, you can put there what ever time you want, there is also validation so you can pass only positive numbers. You can even build it with PyInstaller so that there is finally executable file and with adding it some alias (I am on linux) you just write e.g. countdown and it runs.&lt;/p&gt;

&lt;p&gt;Then only thing I was not able to do are unit tests, cause it had some problems with thinker lib and main thread running for window so after two hours of trying, googling and asking chat, I resigned from this. But, who never fails, never can go higher right 🚀&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;So in last words, do I love it or do I hate it? well, if I would not care about such strict rules like Java or C# has and if I would get used to indentation then I would probably love it. BUT now, I take it as nice to have language so play with but who knows .... mind change&lt;br&gt;
s.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thanks for reading&lt;br&gt;
Martin&lt;/p&gt;




&lt;p&gt;UPDATE: 21.2.2024&lt;/p&gt;

&lt;p&gt;I have updated my countdown so that it shows also some stats. I will try to make some video about this small app so looking forward..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxdbxdhnzgybqifdv8et.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxdbxdhnzgybqifdv8et.jpg" alt="updated countdown app" width="429" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
    </item>
    <item>
      <title>Angular v17 and SSR, is it really necessary?</title>
      <dc:creator>Martin</dc:creator>
      <pubDate>Fri, 09 Feb 2024 14:45:06 +0000</pubDate>
      <link>https://dev.to/domorodec/angular-v17-and-ssr-is-it-really-necessary-435</link>
      <guid>https://dev.to/domorodec/angular-v17-and-ssr-is-it-really-necessary-435</guid>
      <description>&lt;p&gt;Hi guys, I have just come to state where I have nearly all new features of new Angular 17 except SSR. So I was like watching a lot of videos and read a lot of articles how cool it is regarding to mainly SEO and maybe other things but I am not sure it this is so cool as for implementation and whole process of set up vs classic SPA application.&lt;/p&gt;

&lt;p&gt;The problem I have to accept is that we now have like two bundles. &lt;strong&gt;Client bundle and server bundle&lt;/strong&gt; and server bundle includes the server-side rendering logic, the Express server, and the Angular application code that runs on the server. But the issue is that to deploy our angular we need now to deploy it to hosting as usual this is for client bundle but we have another thing to deal with and this is that &lt;strong&gt;to deploy the contents of the dist/server directory to a Node.js server (such as a cloud server, a VPS, or a dedicated server).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So like life from my opinion is really easy not counting SSR where we have like angular only on client side on hosting and on VPS server we have like really backend services APIs. But with SSR now we have to deal with installing Node.js on our VPS, then deploy there our server bundle and no matter all other stuff regarding linux set up for now server running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My question is to all of you who know angular and use it and have experience, what do you thing about it. Is it really something so must have that you are willing to overcome all such things like another server running etc. just for better SEO?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I just want to have/see your opinion how you see this and to maybe change my mind ;-)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Martin&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
