<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nejc Rodošek on Medium]]></title>
        <description><![CDATA[Stories by Nejc Rodošek on Medium]]></description>
        <link>https://medium.com/@nejcrodosek?source=rss-112ef046cb86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ySRYvyMcKcYDthDIp06YGA.jpeg</url>
            <title>Stories by Nejc Rodošek on Medium</title>
            <link>https://medium.com/@nejcrodosek?source=rss-112ef046cb86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 10:09:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nejcrodosek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[With LinkedIn Kudos to Higher Employee Satisfaction]]></title>
            <link>https://medium.com/@nejcrodosek/with-linkedin-kudos-to-higher-employee-satisfaction-6e93ae8bfd4f?source=rss-112ef046cb86------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e93ae8bfd4f</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[linkedin]]></category>
            <category><![CDATA[employee-retention]]></category>
            <category><![CDATA[empowerment]]></category>
            <category><![CDATA[employee-engagement]]></category>
            <dc:creator><![CDATA[Nejc Rodošek]]></dc:creator>
            <pubDate>Sun, 28 Oct 2018 11:16:05 GMT</pubDate>
            <atom:updated>2022-11-04T15:04:05.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MFoA579QIboqzhZa" /><figcaption>photo by <a href="https://unsplash.com/@wildlittlethingsphoto?utm_source=medium&amp;utm_medium=referral">Helena Lopes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When did you as boss, supervisor, or project leader give last proper appreciation to your employees? To show them that you are appreciating their hard work? I am not talking about bonuses at the end of the year. I am talking about a simple “Thank you for your hard work, We are glad to have you here” type of appreciation. If you can’t remember, don’t worry — you are not the only one.</p><p>The number one reason for an employee to leave a job is that they are not given proper recognition, that they don’t feel like they are being appreciated for the work done. We as humans need recognition for our hard work. And if we are not given the desired, we don’t feel complete. <a href="https://recruiterbox.com/blog/11-surprising-statistics-employee-recognition-infographic">Statistics</a> created by one recruiting company shows that 90% of employee says that recognition impacts their overall engagement and happiness on the job, and boosts their creativity and performance. So what are you as boss, supervisor, or project leader doing on it?</p><h3>Underrated feature for the employee satisfaction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NVj44lWVQT1zc_1v" /><figcaption>photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>LinkedIn has come up with a very good feature, perfect for all you leaders out there. You now have a new tool to help you improve employee satisfaction. There are only a few clicks needed to give Kudos and sometimes LinkedIn will notify you about your co-worker&#39;s Kudos recommendation. But it seems to me it has not taken off as it should. I haven’t seen any Kudos given in my LinkedIn circle, yet. I hope this will change in the future. After all, to give Kudos is to give public recognition. And with increased connectivity in the world, that means a lot more than a simple “Thank you”.</p><h3>Give proper recognition with Kudos</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5IPp9vjI8Jp92a30y8OvNw.png" /><figcaption>Few types of LinkedIn Kudos</figcaption></figure><p>If you haven’t come across this unique feature, it is located in the “More…” button, when visiting the person page. Don’t look it up on your own profile, because Kudos are not used for self-recognition.</p><p>There are a few ways to handle the new LinkedIn Kudos recognition program you are going to implement in your company. You know your employees the best and you will know what kind of recognition best fits your company culture and when to give recognition. But keep in mind that you have only 3 Kudos available per week to give. You can select between different types of Kudos. One of them is to give Kudos to an employee who is “Going above and beyond” and working his a*s off on the last project. You can use “Thank you” Kudos when celebrating employee work celebration. The possibilities to recognize an employee or give recognition with Kudos are countless. But I would advise you to start using them. If you are not comfortable sharing the recognition of employees with the public you can send them special Kudos recognition by a message.</p><p>The statistics show that employees greatly value recognition and simple appreciation for their hard work. And that they are more motivated and creative when working. But that does not stop there. You can impact their whole personal life too. If you can make an employee happy with their job position, they will bring this kind of positive energy back home.</p><p>So you think Kudos can help you with that? Are you maybe using Kudos? When will you?</p><p>If you enjoyed reading this article, show some ❤ and show appreciation. Be my reason for even more motivation for writing. Enjoy your day and thank you for stopping by.</p><p>Please reach out if you have any questions or proposals! You can follow me and ask questions on <a href="https://twitter.com/nejcrodosek">Twitter</a> or contact me via <a href="/service/mailto:nejc@kreativna-agencija.com">email</a>. Welcome to check out the <a href="http://kreativna-agencija.com/">KREATIVNA agency website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e93ae8bfd4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UX — the next door friend]]></title>
            <link>https://uxdesign.cc/ux-the-next-door-friend-ee7287d6a982?source=rss-112ef046cb86------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee7287d6a982</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[user-oriented]]></category>
            <category><![CDATA[user-testing]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Nejc Rodošek]]></dc:creator>
            <pubDate>Sun, 29 Jul 2018 16:42:08 GMT</pubDate>
            <atom:updated>2022-11-04T15:04:30.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*90gfz2N39coxjXf6" /><figcaption>Photo by <a href="https://unsplash.com/@ayahya09?utm_source=medium&amp;utm_medium=referral">Ali Yahya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Everyone probably heard of UX — User Experience. The one who told you about UX probably mentioned it is important too. But you being you, did not pay much attention to it. Maybe you still don’t.</p><p>It is crucial in the business to pay attention to User Experience, because the user is a consumer and the consumers keeps you alive and going. The user is the one that will decide if you are worth it of his time and money. If you make the user happy, make him feel that he is special, he will quickly evolve throughout the funnel.</p><h4>How can I design a good User Experience?</h4><p>The best way to design a good User Experience is with maximum user interaction. Your app users, your website visitors, your clients they are the ones that are using the product and they are the ones that need custom made experience to make their journey as smooth as possible with a piece of candy here and there. So to design good User Experience you have to be user-oriented.</p><h4><strong>What is the most important thing in User Experience Design?</strong></h4><p>Following best practice might be good in some cases, but most of the time following best practices without doing some research will hurt your business. You must customize the best practices you have chosen to align your strategy correctly with your users. But first, you have to make enough researches to know exactly who your users are.</p><p>The most important thing in UX is that you research your user thorough enough, so you can understand them perfectly. Next thing you have to remember is that you need to think about UX as soon as you start designing your user interface. And you need to test your UX design multiple times with survey and simply watching users use your product. This way you don’t have to repair mistakes in a late stage of your product or company.</p><p>To design the best User Experience you have to follow the design practices seen all around the web, so the user visiting your website will have that feeling they already been here. Users will know exactly where to find the thing and how will elements react when being clicked on. With this said you also need to follow consistency of design patterns all over the webpage and in your promotional channels like social media platforms, video shows, and podcasts. That way user will have more smooth experience when clicking around your website and when a user sees your promotional messages they will instantly know that this is your brand. Keeping an eye on consistency will make you look more professional and users will enjoy that in their experience when interacting with your brand.</p><p>If you enjoyed reading this article, show some ❤ and be the reason for even more daily motivation. Enjoy your day and thank you for stopping by.</p><p>Please reach out if you have any questions or proposal! You can follow me and ask questions on <a href="https://twitter.com/nejcrodosek">Twitter</a> or contact me via <a href="/service/mailto:nejc@kreativna-agencija.com">email</a>. Welcome to check out the <a href="http://kreativna-agencija.com/">KREATIVNA agency website</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff%2F50d69a%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F50d69a%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/05d5fd32eda31cbd1b83287606744532/href">https://medium.com/media/05d5fd32eda31cbd1b83287606744532/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee7287d6a982" width="1" height="1" alt=""><hr><p><a href="https://uxdesign.cc/ux-the-next-door-friend-ee7287d6a982">UX — the next door friend</a> was originally published in <a href="https://uxdesign.cc/">UX Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enforce Time Optimisation in your Everyday Routine]]></title>
            <link>https://medium.com/@nejcrodosek/enforce-time-optimisation-in-your-everyday-routine-3932b8892488?source=rss-112ef046cb86------2</link>
            <guid isPermaLink="false">https://medium.com/p/3932b8892488</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[habit-building]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[routine]]></category>
            <category><![CDATA[life-hacking]]></category>
            <dc:creator><![CDATA[Nejc Rodošek]]></dc:creator>
            <pubDate>Sun, 08 Jul 2018 12:18:10 GMT</pubDate>
            <atom:updated>2018-07-19T21:31:07.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pv0L9bz7zZyBhD3L" /><figcaption>Photo by <a href="https://unsplash.com/@srikanta?utm_source=medium&amp;utm_medium=referral">Srikanta H. U</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You live your life, following the same routine, day after day after day. I believe that every now and then a thought pops in your head and you start thinking of optimisation the current task you are doing. You then think how much time would you save and put it to use for better things if only you could optimise task you are currently doing. Then you start to think about how many of this mundane tasks you do in your daily routine, that could be optimised.</p><p>Because if we all think about it for a second. We are doing this tasks a lot in our lifetime and if we optimise only a second of it.. Only second in a day of one task. How much days or maybe weeks could you get in your life, that could be better spend? If you could only optimise second in repetitive routine. What if you could optimise every task in your daily routine? Well that would make difference. Maybe a year of a lifetime difference.</p><blockquote>“<strong>Time is what we want most, but… what we use worst.</strong>” <br>― <em>William Penn</em></blockquote><p>We need to realise that if we focus and put our mind to it, if we start thinking everyday about time optimisation and enforcing it, we could make proper impact in our life in long run. In a max year of everyday time optimisation, you will do it naturally, without thinking about it. Because after a year we formed firm habit, that will not go easily. Don’t forget that some can <a href="https://jamesclear.com/new-habit">form a new habit in two months</a>. It all depend on circumstances of individual. So don’t let that stops you. Don’t event think about forming habit, just realise that the time is the most precious thing in the world.</p><p>We can then start reserving our time for the things that matters the most. Relationships with people, learning new things, self improvement and those little things of joy that makes our soul happy.</p><p>If you enjoyed reading this article, show some ❤ and be the reason for even more daily motivation. I sure am doing the same thing. Enjoy your day and thank you for stopping by.</p><p>Please reach out if you have any questions or proposal! You can follow me and ask questions on <a href="https://twitter.com/nejcrodosek">Twitter</a> or contact me via <a href="/service/mailto:nejc@kreativna-agencija.com">email</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3932b8892488" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[With User Behavior Psychology to better UX Design]]></title>
            <link>https://uxdesign.cc/with-user-behavior-psychology-to-better-ux-2789f131b142?source=rss-112ef046cb86------2</link>
            <guid isPermaLink="false">https://medium.com/p/2789f131b142</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[user-behavior]]></category>
            <dc:creator><![CDATA[Nejc Rodošek]]></dc:creator>
            <pubDate>Mon, 25 Jun 2018 12:07:03 GMT</pubDate>
            <atom:updated>2022-11-04T15:05:48.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4sYhnqbMIfk1WJ9D" /><figcaption>“Creepy blurred photo of a person&#39;s face and a furry hood” by <a href="https://unsplash.com/@theeastlondonphotographer?utm_source=medium&amp;utm_medium=referral">Ehimetalor Unuabona</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To completely understand the reasons behind what drives users to certain behavior, we need to look at the psychology of the user himself. <strong>We can create the great user experience, only when we understand the user motivation that guides the action.</strong></p><blockquote>“Human behavior flows from three main sources: desire, emotion, and knowledge.” - Plato</blockquote><p>As Plato nicely put it all these years ago, the BJ Fogg’s behavior model robustly extends with environmental influences. BJ Fogg’s model says that for behavior to occur, we need <strong>motivation</strong>, <strong>ability</strong>, and <strong>trigger</strong>.</p><p>So what actually this means? And how are this two famous behavior facts interlinked?</p><p>Lets take for an example simple shopping funnel. Users check out your website, browse its articles and add one to the basket. After few minutes this visitor leaves the page with no purchase. Where did we go wrong? And better question is how to motivate this visitor for future purchase?</p><p>The user needs to be motivated to buy the product. We see that there is the <strong>desire</strong> in the user to buy a product, but there was not enough motivation, ability or correct trigger to complete the purchase.</p><p>We can motivate user by numerous ways possible. One of them is to give visitors some discount, simple reward or heartwarming micro text. The user will be happier hence we satisfied the <strong>emotion</strong> source of behavior. We also must make sure that there is correctly aligned trigger to our motivational strategy and that the user has the needed <strong>knowledge</strong> of motivational benefits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*rWoaFK64csuGD9bMn_RY5g.jpeg" /></figure><p>As we can see in the above example the two famous behavior facts actually work together. The main difference is that the Pluto’s behavior sources are <strong>more linked to what goes on within users</strong> and it’s primarily deeply connected with user itself. Where BJ Fogg’s behavior model describes these behaviour sources (desire, emotion, and knowledge) as motivation of user and how <strong>they are interlinked with environmental influences</strong> like the ability of the user itself to make the purchase (simplicity of purchase, financial stability,..) and that the user behavior, <strong>can be manipulated</strong> with correctly placed triggers on the website.</p><h4>How can we use these behavior models to design better UX?</h4><p>As we understand basic principles of user psychology we can plan UX much better. We can check any onboarding, shopping or purchase process with the previously mentioned behavior models. When the user makes something that does not make sense, we reverse-engineer his process path and try to make multiple scenarios why user behaved the way it has. With behavior model we can find out what was missing in the process and how can we improve it. The best way to improve user experience is to create multiple A/B tests with different improvements that will satisfy every scenario and parallel check conversion of user process on the website. With analytic data of A/B tests, we can then make a much <strong>more rational decision </strong>which is based <strong>on the real data</strong>.</p><blockquote>“Users are not always logical, at least not on the surface. To be a great designer you need to look a little deeper into how people think and act.” — Paul Boag</blockquote><p>It’s time to start making rational design choices based on big data and user psychology. The whole point of the User Experience design is to create as smoothes, warmest and simple process for the user we can. The user will never forget how you made them feel. And that needs to be the basic fact of UX design.</p><p>If you enjoyed reading this article, show some and be the reason for even more daily motivation. I sure am doing the same thing. Enjoy your day and thank you for stopping by.</p><p>Please reach out if you have any questions or proposal! You can follow me and ask questions on <a href="https://twitter.com/nejcrodosek">Twitter</a> or contact me via <a href="/service/mailto:nejc@kreativna-agencija.com">email</a>. Welcome to check out the <a href="http://kreativna-agencija.com/">KREATIVNA agency website</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff%2F50d69a%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F50d69a%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/05d5fd32eda31cbd1b83287606744532/href">https://medium.com/media/05d5fd32eda31cbd1b83287606744532/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2789f131b142" width="1" height="1" alt=""><hr><p><a href="https://uxdesign.cc/with-user-behavior-psychology-to-better-ux-2789f131b142">With User Behavior Psychology to better UX Design</a> was originally published in <a href="https://uxdesign.cc/">UX Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instant Docker local environment for Wordpress]]></title>
            <link>https://medium.com/@nejcrodosek/instant-docker-local-environment-for-wordpress-3516d9dc10c8?source=rss-112ef046cb86------2</link>
            <guid isPermaLink="false">https://medium.com/p/3516d9dc10c8</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Nejc Rodošek]]></dc:creator>
            <pubDate>Wed, 25 Jan 2017 21:32:47 GMT</pubDate>
            <atom:updated>2018-07-19T21:28:58.262Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APAVIkw8Wv33MlaVhuDCFQ.jpeg" /><figcaption>Photo material from<a href="http://pexels.com/"> pexels.com</a></figcaption></figure><p>Whether you are a web developer or running business based on mass production of websites, you or your employees must be using local environment for faster development. In the past, fastest way for the local environment was to set up server stack MAMP/LAMP/etc. or image on some virtual machine like VirtualBox.</p><p>Then a few years ago new, simple and powerful player emerged. He is called Docker. For those who are not familiar with it — Docker is a virtual machine which uses containers for virtualisation. In most cases, it works out-of-the-box. You can read more about it on their official website, where you can find extensive guides for easy understanding and simple configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCUTJIhwBZc66Duv027oZQ.png" /><figcaption>Currently running containers for Wordpress local website environment</figcaption></figure><p>Now with Docker, the local development is even easier and faster. You can have fully functional Wordpress website up and run under a minute. You only need to create a file with docker configuration, which can then be copied and used for future projects Wordpress local environments.</p><p>So after you get to know Docker and have installed all needed tools for working with it, you are ready for next — more interesting step. you can also download complete project on <a href="https://github.com/nr007/docker-instant-wp">Github</a>.</p><h3>How to configure Docker environment</h3><p>For setting up Docker, we will use Compose tool.</p><blockquote>“Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application’s services. Then, using a single command, you create and start all the services from your configuration.”</blockquote><blockquote>— from docs.docker.com</blockquote><p>First, we create a folder called docker-instant-wp which will be used as the folder for our new project. Inside we create file docker-compose.yml</p><p>This file is used for local environment configuration of Docker containers. We will specify which image should Docker use for specific container and also configure the connection between Wordpress and database easily as possible. We will set-up volumes for persistent data, so the changes in files will be visible on the host computer as in the container.</p><p>Our environment will have 3 containers (WordPress, database, PHPMyAdmin). This is all of the containers we would need to easily deploy the finished website to the production server. The changes in files are visible in our hosts’ folder and we can easily dump database with phpMyAdmin and import it on the production site.</p><p><strong><em>docker-compose.yml</em></strong></p><pre>wordpress:<br>    image: wordpress<br>    links:<br>        - mariadb:mysql<br>    environment:<br>        - WORDPRESS_DB_PASSWORD=fddqs32<br>    ports:<br>        - &quot;8000:80&quot;<br>    volumes:<br>        - ./wordpress:/var/www/html<br>mariadb:<br>    image: mariadb<br>    environment:<br>        - MYSQL_ROOT_PASSWORD=fddqs32<br>        - MYSQL_DATABASE=wordpress<br>    volumes:<br>        - ./database:/var/lib/mysql<br>phpmyadmin:<br>    image: phpmyadmin/phpmyadmin<br>    links:<br>        - mariadb:mysql<br>    ports:<br>        - &quot;8181:80&quot;<br>    environment:<br>        - MYSQL_USERNAME=root<br>        - MYSQL_ROOT_PASSWORD=fddqs32<br>        - PMA_HOST=mysql</pre><p>This configuration file can be used for future projects without any modifications. You can just stop the running containers from one website and run another one. For running multiple containers at same time, only few modifications to ports would be necessary.</p><h3>Let us start Docker local environment</h3><p>We can easily start the environment if we open up Terminal or any other command-line tools then navigate to project folder and run command <strong><em>docker-compose up </em></strong>(you must previously install docker-compose module so you can use it in terminal).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYp7OUGYOWpInWw758bueg.png" /><figcaption>Usage of docker-compose command for starting local Wordpress environment</figcaption></figure><p>After you run the command, you can see the progress of building our local environment printing on the screen. If you don’t have images locally, the Docker will download it for you. When Docker starts building your environment, hosts folder <em>docker-instant-wp </em>will get populated with Wordpress and database files.</p><p>If everything runs smoothly, your website will be available at localhost on port 8000 and terminal will be used for printing server requests you make on your local website. Your database access with phpMyAdmin will be on port 8181.</p><h3>Quickly add desired plugins with Composer and Packagist</h3><p>We can create JSON file for all the dependencies we need in our Wordpress website. Usually that would be plugins, theme, fonts, etc. For basic setup is more then enough if we only install few plugins (which we install on every single website). Plugins can be added to Composer file through <a href="http://packagist.org/">packagist.org</a>. When you have composer configuration JSON file, you can go to root path in the terminal and install needed dependancies with “<em>composer.phar install”.</em> Composer will install needed plugins in folder we specified in configuration.</p><pre>{<br>    &quot;repositories&quot;:[<br>        {<br>            &quot;type&quot;:&quot;composer&quot;,<br>            &quot;url&quot;:&quot;https://wpackagist.org&quot;<br>        }<br>    ],<br>    &quot;require&quot;: {<br>        &quot;wpackagist-plugin/contact-form-7&quot;:&quot;*&quot;,<br>        &quot;wpackagist-plugin/wp-super-cache&quot;:&quot;*&quot;,<br>        &quot;wpackagist-plugin/wp-optimize&quot;:&quot;*&quot;,<br>        &quot;wpackagist-plugin/wordpress-seo&quot;:&quot;*&quot;,<br>        &quot;wpackagist-plugin/wp-smushit&quot;:&quot;*&quot;,<br>        &quot;wpackagist-plugin/wordfence&quot;:&quot;*&quot;<br>    },<br>    &quot;extra&quot;: {<br>        &quot;installer-paths&quot;: {<br>            &quot;wordpress/wp-content/plugins/{$name}/&quot;: [&quot;type:wordpress-plugin&quot;]<br>        }<br>    }<br>}</pre><h3>Conclusion</h3><p>These days, when everything is moving fast — you got to keep up with the flow. If you can not keep it up, you are going to sink. It is that simple. So for business with mass production of websites, I would advise this: give Docker a chance. It sure deserves it.</p><blockquote>“ This reduces the risk of — worked in dev, now an ops problem. ” ― James</blockquote><blockquote>Turnbull, The Docker Book: Containerization is the new virtualization</blockquote><p>If you enjoyed reading this article, show some ❤ and be the reason for even more daily motivation. I sure am doing the same thing. Enjoy your day and thank you for stopping by.</p><p>Please reach out if you have any questions or proposal! You can follow me and ask questions on <a href="https://twitter.com/nejcrodosek">Twitter</a> or contact me via <a href="/service/mailto:nejc@kreativna-agencija.com">email</a>.</p><p>KA:NR</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3516d9dc10c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I speed up my web development process by 34%]]></title>
            <link>https://medium.com/@nejcrodosek/how-i-speed-up-my-web-development-process-by-34-3fa6265aa7?source=rss-112ef046cb86------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fa6265aa7</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Nejc Rodošek]]></dc:creator>
            <pubDate>Wed, 06 Apr 2016 18:09:28 GMT</pubDate>
            <atom:updated>2019-02-20T18:06:00.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56p8yHvmf-bwNNZ4mhx7zg.jpeg" /><figcaption>Photo material from<a href="http://unsplash.com/"> unsplash.com</a></figcaption></figure><h4>A front-ender at <a href="https://databox.com/">Databox</a> wanted to make his day a little bit more fun with just a little bit more automation.</h4><p>Walking towards the office on a beautiful sunny day, I felt really colorful. I entered the building and went upstairs… Suddenly this colorfulness inside me started gaining on its transparency — like somebody was hacking my CSS opacity. Later I realized what this was…</p><p><strong>Another day but yet again, the same old workflow</strong>. Don’t get me wrong, I love my job — but I can get quickly annoyed with the same old process — which was, in my case, too slow for me.</p><p>Every single productive person knows that great things will be produced with top quality if you <strong>focus completely on the thing you are currently producing and not wasting your energy on small, mundane tasks, day after day, after day</strong>… So, automatization in web development these days is not only awesome to have, but also needed.</p><blockquote>Concentrate all your thoughts upon the work in hand. The sun’s rays do not burn until brought to a focus.</blockquote><blockquote>— Alexander Graham Bell</blockquote><p>At that time I worked at <a href="https://databox.com/">Databox</a> as Front-end Developer primary with <a href="https://wordpress.com/">Wordpress</a> and <a href="http://emberjs.com/">Ember.js</a>. In a future article, I will cover Ember.js flow, but for now, the primary focus will be Wordpress.</p><p>So we were in that phase where we needed to test different marketing segments and for that, we needed fast iteration of changes on websites and extra web material. So, my old workflow was quite OK— we had a whole website build on <a href="https://www.docker.com/">Docker</a> container, <a href="http://lesscss.org/">Less</a> and <a href="http://gruntjs.com/">Grunt</a> for processing all assets… <strong>but I really wanted to squeeze a little bit more juice out of it.</strong></p><h4>I started upgrading my web development automation process.</h4><p>The first thing on my list was Grunt because there was a bottleneck in automation. I remembered that a few weeks ago I read a great article on Grunt packages called Browsersync. <strong>They call it an indispensable test assistant.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*p2D7eb7rU3MZmVBwCgROZw.gif" /><figcaption>GIF used for presentation taken from <a href="https://github.com/bcabanes">bcabanes</a>/<a href="https://github.com/bcabanes/browser-sync-proxy-reload">browser-sync-proxy-reload</a></figcaption></figure><p>So, here I am with a tool that can<strong> inject files</strong> without even reloading the browser and with the ability to <strong>mirror clicks and scrolls</strong> across different synced browsers for faster testing and which finally has <strong>URL pushing</strong> so that I can test my work on different devices with publicly-accessible IP’s in my local environment.</p><p><strong>I was feeling powerful </strong>— it seemed to me like I was in control of a big monster robot and we were on a quest to rock this web development up in here.</p><h4>Let’s start with coding our monster automation robot.</h4><p>As you may know, Grunt is a task runner which can help us with the automation of tasks that we need to repeat multiple times per day. I am going to presume that you are familiar with Grunt and already know how to install it and its packages. Grunt tasks are simply written in a configuration file named <strong>Gruntfile.js </strong>— this is where all our settings will go.</p><p>We are going to use a watch package with Browsersync because they are meant to be run together. Firstly, we need to configure the watch task to watch files for changes and handle tasks that need to execute when changes happen (processing less files, concatenating files). These tasks are defined in property <strong>tasks</strong>. Under property <strong>files</strong>, you can add multiple paths within an array.</p><pre>watch: {<br>   php: {<br>     files: ‘&lt;%= templatePath %&gt;/*.php’<br>   },<br>   less: {<br>     files: [‘&lt;%= templatePath %&gt;/inc/less/*.less’],<br>     tasks: [‘less’]<br>   },<br>   css: {<br>     files: [‘&lt;%= templatePath %&gt;/inc/css/*.css’],<br>     tasks: [‘concat:css’]<br>   },<br>   js: {<br>     files: [‘&lt;%= templatePath %&gt;/inc/js/*.js’],<br>     tasks: [‘concat:js’]<br>   }<br>}</pre><p>Now to the package that will upgrade our robot to go a little bit faster. I defined browserSync task after watch task. I configured two properties: <strong>bsFiles</strong> and <strong>options</strong>.</p><p>All files that we are going to watch will go under property <strong>bsFiles</strong>. We are going to watch concatenated files that were created by previous watch task (JS, CSS). We are also going to watch the changes in PHP files. We used <strong>bsFiles</strong> instead of <strong>files</strong> because browserSync has its own file-watching functionality built in and you can skip grunt doing file lookups.</p><p>In property <strong>options</strong>, we define <strong>watchTask</strong> so that we can use it with previously-defined watch task. <strong>Proxy</strong> is used to mirror local URL to publicly accessible IP addresses (use your local development host instead of databox.dev:8000).</p><pre>browserSync: {<br>   bsFiles: {<br>     src: [<br>       ‘&lt;%= templatePath %&gt;/inc/css/styles.css’,<br>       ‘&lt;%= templatePath %&gt;/inc/js/scripts.js’,<br>       ‘&lt;%= templatePath %&gt;/*.php’<br>     ]<br>   },<br>   options: {<br>     watchTask: true,<br>     proxy: “databox.dev:8000”<br>   }<br>}</pre><p>Under loading of defined packages that are going to be used by previously defined tasks, we registered a task named <strong><em>build</em></strong>. It will run multiple tasks that we defined in the array. The first task will be to process Less into CSS and to concatenated this file with the rest of the CSS files. It will also concatenate JS files.</p><p>When the change happens, Grunt will inject files into opened browsers with Browsersync. Make sure you use Browsersync before watch task if you are using both of them, or else the injection won’t work.</p><pre>grunt.registerTask(‘build’, [‘less’, ‘concat’, ‘browserSync’, ‘watch’]);</pre><p>Now, when I go to project folder using terminal (where Gruntfile is), I just type <strong><em>grunt build</em></strong> — this will lookup Gruntfile and, based on the configuration, will create the needed asset files and will open our website in the browser as a localhost:3000. <strong>Then the magic can begin</strong>. In the terminal, you will also find the output of the publicly accessible IP — this can be used for testing on different devices. One cool feature that Browsersync has is its UI. It’s accessible on port 3001. There you can find all settings that Browsersync has.</p><h4>Closing tasks recognizable faster made everyone happier</h4><p>With all that automation which I had setup to make changes faster to our product website, I was actually closing tasks recognizable faster. I was happy because I was focusing only on creating pixel-perfect layouts from PSDs that our designer <a href="https://medium.com/u/6e0def894072">Gasper Vidovic</a> provided and everyone else who depended on my work was happy.</p><p>But <strong>the way I am</strong> — that was not enough for me. I wanted to know exactly how faster I was. So I started doing some calculations…</p><p>To make things clear — let’s say that every browser refresh, after having made some changes, I wanted to see, took around 10–15 seconds (saving files, switching to browser and refreshing). And imagine how many changes I made in my 8-hour work day — quite a lot! And what about testing? On different devices? Browsers? <strong>It was quite time-consuming with all these small tasks</strong> which could be optimized a little bit more. And they were.</p><blockquote>Men are only as good as their technical development allows them to be.</blockquote><blockquote>— George Orwell</blockquote><p>So, when I look back to that day I realized that my previous workflow was a little bit slower than the updated version and I am really happy that I made some additions to the automation process. Now I can’t wait to come to work when I know that I have some tasks to do on the website.</p><p>I know that I will feel good about myself when everything will go smooth and fast. Or at least faster. So I advise you to <strong>take a look at your old web development flow</strong> — maybe there is more juice to squeeze out of it and maybe that will make you love your job even more.</p><p>If you enjoyed reading this article, show some ❤ and show appreciation. Be my reason for even more motivation for writing. Enjoy your day and thank you for stopping by.</p><p>Please reach out if you have any questions or proposal! You can follow me and ask questions on <a href="https://twitter.com/nejcrodosek">Twitter</a> or contact me via <a href="/service/mailto:nejc@kreativna-agencija.com">email</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fa6265aa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>