<?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: Alexandru Florea</title>
    <description>The latest articles on DEV Community by Alexandru Florea (@alexflorea2).</description>
    <link>https://dev.to/alexflorea2</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%2F65758%2F5a375c37-082a-4f3b-a40f-eb0e5ca49e19.jpeg</url>
      <title>DEV Community: Alexandru Florea</title>
      <link>https://dev.to/alexflorea2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alexflorea2"/>
    <language>en</language>
    <item>
      <title>Quick useful notes for any project</title>
      <dc:creator>Alexandru Florea</dc:creator>
      <pubDate>Fri, 08 Feb 2019 22:27:50 +0000</pubDate>
      <link>https://dev.to/alexflorea2/quick-useful-notes-for-any-project-5apa</link>
      <guid>https://dev.to/alexflorea2/quick-useful-notes-for-any-project-5apa</guid>
      <description>&lt;p&gt;I find these notes to work in any project context, from small personal ones, up to ones that power large businesses. &lt;/p&gt;

&lt;p&gt;In no particular order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;record user actions&lt;/strong&gt; based on a predefined template, eg User did Action on Entity/EntityDetail at Date. In our example context, it could look like:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Mark deleted_ticket id 257 at 3/29/2019&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;use Soft Delete&lt;/strong&gt; whenever possible. Having a &lt;em&gt;deleted_at&lt;/em&gt;&lt;br&gt;
information is more useful than actually deleting the entry from the database. Even if you do regular Database backup, someone someday will delete something important, despite the many warning and confirmations pop-ups you have in the app, and you will (usually) not waste a ton of space by leaving the entry there, but marked as deleted. ORM usually have this feature, and will not return deleted entries in other queries.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;have &lt;strong&gt;a quick way to debug on live&lt;/strong&gt;. Frameworks usually ship a more upgraded &lt;strong&gt;var_dump&lt;/strong&gt; alternative, like &lt;strong&gt;dump($var)&lt;/strong&gt; from Symfony. That's all nice but you can supercharge that or even the simple var_dump by making it work only in a certain condition, like if IP=x or a &lt;code&gt;debug&lt;/code&gt; Cookie is present. You do not want in the middle of the night when you get a call from Support that (hypothetical issue) all users see all the other users tickets, and you need to fix it, to show random debugging strings on the live pages.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;showing a lot of data with pagination? Remember that MySql(and I believe SQL in general) does &lt;strong&gt;not have a default sorting order&lt;/strong&gt;. On a large enough dataset, you could get entry ID 20.000 when moving from page to page. A quick &lt;strong&gt;ORDER BY id DESC&lt;/strong&gt; is all that is necessary to keep your mind at ease. On a table without any prior Deletes/Replaces/Updates &lt;em&gt;most&lt;/em&gt; of the times though SELECT will give results in the insertion order.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;projects grow unexpectedly, requirements will change and then they will change back&lt;/strong&gt;, haha. That is something normal, at least from my experience. Having a way to track everything is essential and products like Trello, Asana, Active Collab etc can be really useful. But try to have a &lt;strong&gt;readme.txt file with some essential comments&lt;/strong&gt; about the project's design, useful comments, things to note when moving from dev to production etc. When someone pulls the code from git, that file will make onboarding more straightforward, but it should prove useful for yourself as well in the long run, when you will need to add or update functionality x. Tip: keep it in &lt;em&gt;markdown&lt;/em&gt;, IDE's like PhpStorm will render it correctly as well as Gitlab/Github and many other tools used in development.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The list could go on. What other quick tips do you use?&lt;/p&gt;

</description>
      <category>quicktips</category>
    </item>
    <item>
      <title>Hi, I'm Alex! Nice to meet you</title>
      <dc:creator>Alexandru Florea</dc:creator>
      <pubDate>Thu, 07 Feb 2019 22:33:15 +0000</pubDate>
      <link>https://dev.to/alexflorea2/hi-im-alex-nice-to-meet-you-36jo</link>
      <guid>https://dev.to/alexflorea2/hi-im-alex-nice-to-meet-you-36jo</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fib3o3vrg8jamia56jokq.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fib3o3vrg8jamia56jokq.jpeg" alt="At work"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi, I'm Alexandru, a young(ish) PHP developer. I have more than 6 years experience in web technologies and a couple more in the now non-existing Flash. &lt;/p&gt;

&lt;p&gt;I've been reading articles on this community for quite some time and felt inspired to write a bit about myself.&lt;/p&gt;

&lt;p&gt;More about the early days at &lt;a href="http://codingrealm.com/" rel="noopener noreferrer"&gt;http://codingrealm.com/&lt;/a&gt; (WIP)&lt;/p&gt;

&lt;p&gt;I am passionate about web development, especially designing systems architecture and backend code. I do dabble in Vue.js and well, Js in general ... but I don't care much about CSS(my brain just never wraps around it the right way :P ). I do however like anything about UX.&lt;/p&gt;

&lt;p&gt;I've started PHP and web from scratch after years of Flash animations and mini-apps. It was tough, at least at first. I had to work my way up through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;old codebase debug&lt;/li&gt;
&lt;li&gt;analytics engines that used Mysql clusters, in memory tables, tens of workers etc &lt;/li&gt;
&lt;li&gt;Wordpress development&lt;/li&gt;
&lt;li&gt;random 'frameworks' bought by clients that afterwards wanted everything changed&lt;/li&gt;
&lt;li&gt;new app development, from Laravel, v3 up to 5&lt;/li&gt;
&lt;li&gt;leading teams that create and maintain sites, that now power entire businesses for our clients&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My experiences, long nights, random errors (looking at you emoji and strlen), console.log that break IE and many, many more helped shaped me, and now in return, I am trying to shape the young devs at my workplace. &lt;/p&gt;

&lt;p&gt;I think I will try to write more, it's starting to grow on me.&lt;/p&gt;

&lt;p&gt;Ps. I collect toys from KinderEggs, so that clear desk above is just an anomaly &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fexnn96tlaevun004o1fo.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fexnn96tlaevun004o1fo.jpeg" alt="At work"&gt;&lt;/a&gt; &lt;/p&gt;

</description>
      <category>introduction</category>
      <category>intro</category>
      <category>helloworld</category>
    </item>
  </channel>
</rss>
