<?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: Lucas H.</title>
    <description>The latest articles on DEV Community by Lucas H. (@lucashogie).</description>
    <link>https://dev.to/lucashogie</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%2F218037%2Fb4572556-e7ef-4174-bab2-f6d0b8c5cedb.png</url>
      <title>DEV Community: Lucas H.</title>
      <link>https://dev.to/lucashogie</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucashogie"/>
    <language>en</language>
    <item>
      <title>Detecting colors</title>
      <dc:creator>Lucas H.</dc:creator>
      <pubDate>Wed, 02 Oct 2019 18:01:44 +0000</pubDate>
      <link>https://dev.to/lucashogie/detecting-colors-10c1</link>
      <guid>https://dev.to/lucashogie/detecting-colors-10c1</guid>
      <description>&lt;p&gt;Hey everyone! I'm currently working on a script which detects the color of a few pixels on the screen about 30-60 times a second, to detect game states (health bar), live.&lt;/p&gt;

&lt;p&gt;I'm doing this with Python, to integrate with OBS (a recording program).&lt;br&gt;
I'm pretty new to Python, I've only worked with it for very short amounts of time.&lt;/p&gt;

&lt;p&gt;I've looked on Stackoverflow for a small while and found someone using this script:&lt;br&gt;
&lt;code&gt;from PIL import ImageGrab&lt;br&gt;
    import time&lt;br&gt;
    time.clock()&lt;br&gt;
    image = ImageGrab.grab()&lt;br&gt;
    for y in range(0, 100, 10):&lt;br&gt;
        for x in range(0, 100, 10):&lt;br&gt;
            color = image.getpixel((x, y))&lt;br&gt;
    print(time.clock())&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/55791674/how-to-get-pixel-color-on-screen-in-python"&gt;[Source]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, they use the 'for' loop in Python, with variable y and x, with Imagegrab imported. &lt;br&gt;
I do not understand how 'for y in range(0,100,10)', or 'for x in range [...]' works. &lt;strong&gt;How does this notation work? How would I customize it to fit the pixels I want to track, which are specific to only like three, all on different locations? (I don't need more, I only need to track one because one is more than enough to see the color, right?)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thank you guys in advance for your answers, you're awesome. &lt;/p&gt;

&lt;p&gt;-- Lucas. &lt;/p&gt;

</description>
      <category>explainlikeimfive</category>
      <category>help</category>
      <category>python</category>
    </item>
    <item>
      <title>Breaking the CSS stigma: my step-by-step CSS cheat sheet.</title>
      <dc:creator>Lucas H.</dc:creator>
      <pubDate>Sat, 21 Sep 2019 12:14:41 +0000</pubDate>
      <link>https://dev.to/lucashogie/breaking-the-css-barrier-my-step-by-step-css-cheat-sheet-39jh</link>
      <guid>https://dev.to/lucashogie/breaking-the-css-barrier-my-step-by-step-css-cheat-sheet-39jh</guid>
      <description>&lt;p&gt;&lt;em&gt;&lt;a href="https://twitter.com/lucashogie"&gt;🔥 Don't forget to follow me on Twitter! Let's link up.&lt;/a&gt;&lt;/em&gt; If you like this article, feel free to follow me, I'll be pushing out even more content soon (at least one article a week)!&lt;/p&gt;

&lt;p&gt;CSS is not hard but can be incredibly frustrating at times; it's often hard to find the 'correct' methodology for what you're trying to get done. To me, it often feels like I shouldn't think about styling that much, but using a specific methodology has proven to be pretty useful. There are a few steps I would recommend following, and a lot of resources that I'm sure you'll find useful.&lt;/p&gt;

&lt;p&gt;I hope this article helps you organize your step-by-step process for writing good CSS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step one: preparation, body and :root 🌟
&lt;/h2&gt;

&lt;p&gt;Don't know what &lt;code&gt;:root&lt;/code&gt; is? I didn't either. Check out &lt;a href="https://css-tricks.com/almanac/selectors/r/root/"&gt;this article from CSS-tricks&lt;/a&gt;, they explain it very well. &lt;br&gt;
Step one is good to prepare your CSS styling by setting anything you want in the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; element and &lt;code&gt;:root&lt;/code&gt; selector. Some things you might want to style in these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Background color (&lt;code&gt;background-color&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Document-wide padding (&lt;code&gt;padding&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Fonts (&lt;code&gt;font-family&lt;/code&gt;, &lt;code&gt;font-style&lt;/code&gt;, &lt;code&gt;font-size&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note: defining font-size in &lt;code&gt;:root&lt;/code&gt; allows you to set the standard for &lt;code&gt;em&lt;/code&gt; measurements (so you can set that to 16px and 1em will be 16px guaranteed)&lt;/p&gt;

&lt;h2&gt;
  
  
  Step two: container 💭
&lt;/h2&gt;

&lt;p&gt;The container class should be the div in which I store the entirety of the app. In here, I define:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;min-height&lt;/code&gt;, &lt;code&gt;100vh&lt;/code&gt; for example&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;max-width&lt;/code&gt;, &lt;code&gt;730px&lt;/code&gt; for example.&lt;/li&gt;
&lt;li&gt;The width of the app, usually &lt;code&gt;100%&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Whether I want to display it with flexbox or not: &lt;code&gt;display: flex;&lt;/code&gt; (why not? :D)&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;flex-direction&lt;/code&gt;: &lt;code&gt;row&lt;/code&gt; is the default, which is handy for nav-bars, and &lt;code&gt;column&lt;/code&gt; for top-to-bottom applications&lt;/li&gt;
&lt;li&gt;How to align things &lt;strong&gt;horizontally&lt;/strong&gt;: &lt;code&gt;align-items&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;How to align things &lt;strong&gt;vertically&lt;/strong&gt;: &lt;code&gt;justify-content&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step three: more containers💻
&lt;/h2&gt;

&lt;p&gt;Inside of your parent div, put more divs for the app itself. Want to use a grid-system that doesn't hurt your brain? Check out &lt;a href="https://bulma.io/documentation/overview/modular/"&gt;bulma&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A differentiating background color if you want it to stand out&lt;/li&gt;
&lt;li&gt;The width within the container, e.g. &lt;code&gt;100%&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The maximum width your app can take within the container, can be done with &lt;code&gt;calc(100% - {{your amount of pixels}} )&lt;/code&gt; for example! &lt;/li&gt;
&lt;li&gt;The border and/or drop-shadow (&lt;code&gt;box-shadow&lt;/code&gt;, &lt;code&gt;border&lt;/code&gt;, &lt;code&gt;border-radius&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;More flexbox: how do you want to align things internally, inside of the container? &lt;/li&gt;
&lt;li&gt;Center things inside of the container (because it's aligned left inside of the now-centered container, most likely): &lt;code&gt;align-items: center;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Last step, step four: the elements
&lt;/h2&gt;

&lt;p&gt;Before this step, it has been mostly following along each step and you can style the basis easily. Now, you'll need to take the wheel. I can't decide what elements you have inside of your app, but I can give you some best practices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make sure to practice very clear styling&lt;/li&gt;
&lt;li&gt;Your CSS may not work on every browser!! Check out &lt;a href="https://caniuse.com/"&gt;this amazing application&lt;/a&gt; if you're wondering what you can and cannot use with CSS.&lt;/li&gt;
&lt;li&gt;ARIA attributes are nice for visually impaired people (that use screen readers). Check out a great article on that &lt;a href="https://dev.to/lkopacz/beginning-to-demystify-aria-5bi5"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Steal!&lt;/strong&gt; Using CSSscan is super useful for learning CSS. If you see a form that looks amazing, don't be afraid to look at the CSS and find out how to do it yourself. Take the CSS you like, tinker with it, make it your own, and be proud of the fact you just saved yourself time. Don't &lt;a href="https://medium.com/@zreitano/on-behalf-of-hims-patients-thank-you-for-copying-ro-aba99193d231"&gt;go overboard, though&lt;/a&gt; (genuinely fun article, go read it!)&lt;/li&gt;
&lt;li&gt;Animation is &lt;code&gt;a w e s o m e&lt;/code&gt;, and clarifies things if you don't overuse it. So &lt;strong&gt;use it!&lt;/strong&gt; Here's &lt;a href="https://dev.to/neshaz/css-animation-how-to-make-things-move-b02"&gt;an article on that&lt;/a&gt; - though I'll also be writing a few on CSS animation too, with some specific uses for fun.&lt;/li&gt;
&lt;li&gt;Frameworks are fun, but don't forget to &lt;strong&gt;learn the basics&lt;/strong&gt;! It's easy to get caught up in using things like &lt;a href="https://getbootstrap.com"&gt;Bootstrap&lt;/a&gt;, &lt;a href="https://tailwindcss.com"&gt;TailwindCSS&lt;/a&gt;, &lt;a href="https://bulma.io/"&gt;Bulma&lt;/a&gt;, or any other framework that's buzzing right now, but learning  how to style yourself is important. These frameworks are temporary. Actual skill in styling and design is forever, and will forever benefit &lt;strong&gt;you&lt;/strong&gt;. Also, you look super cool when someone looks up what framework you're using and it turns out you're not using one 😎⛱&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://serfo.com/p/css-gradients/"&gt;Gradients&lt;/a&gt;, and &lt;a href="https://www.blobmaker.app/"&gt;blobs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://cssreference.io/"&gt;CSSreference&lt;/a&gt; and &lt;a href="https://htmlreference.io/"&gt;HTMLreference&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Getting Started with Vue.js (CHEAT SHEET)</title>
      <dc:creator>Lucas H.</dc:creator>
      <pubDate>Sun, 15 Sep 2019 12:29:55 +0000</pubDate>
      <link>https://dev.to/lucashogie/getting-started-with-vue-js-cheat-sheet-4lkh</link>
      <guid>https://dev.to/lucashogie/getting-started-with-vue-js-cheat-sheet-4lkh</guid>
      <description>&lt;p&gt;Vue is an awesome JavaScript framework to create interactive light-speed web-apps. Being new to Vue, I naturally weigh towards making summaries of what I've learned to remember it for longer periods of time. This is one I made a while ago. I focus on a few things when making my summaries. &lt;br&gt;
1: Readability. If we can't read it well, then what's the point? I don't like using too much JavaScript Jargon, so I make sure to make it as humanly written as I can. &lt;br&gt;
2: I like to keep it simple, but structured and consistent.&lt;/p&gt;

&lt;p&gt;If there is something you think can be better, &lt;a href="https://www.notion.so/lucashogie/Vue-cheatsheet-8d5e1c272e164b49b7995e9b68f56c09"&gt;please correct me on Notion&lt;/a&gt; or &lt;a href="https://twitter.com/messages/compose?recipient_id=840998537756311554"&gt;DM me on Twitter&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;👋 &lt;em&gt;Please &lt;a href="https://twitter.com/lucashogie"&gt;follow me on Twitter&lt;/a&gt;, let's chat!&lt;/em&gt; 👋&lt;/p&gt;
&lt;h2&gt;
  
  
  Installing Vue 🌟
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!-- development version, includes helpful console warnings --&amp;gt;
&amp;lt;script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Installing Vue is simple. A single line of code is needed to implement it into your page. If you want to go and make a full-on web-app you'll want to use the Vue CLI/UI, though. Tutorial coming soon on that!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; you need to put the Vue script and your own original JS at the &lt;strong&gt;bottom&lt;/strong&gt; of the page to have it work, please remember that!&lt;/p&gt;
&lt;h2&gt;
  
  
  Using Vue 😎
&lt;/h2&gt;

&lt;p&gt;To use Vue's basics, you need two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The HTML

&lt;ul&gt;
&lt;li&gt;An element to mount by ID&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The Vue script to initialize the element&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To start off, let's take a look at this HTML code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;div id="app"&amp;gt;
      Hello, {{ message }}!
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, say we want to have a dynamic message in the &lt;code&gt;{{ name }}&lt;/code&gt; tab. How would we go about this?&lt;/p&gt;

&lt;p&gt;Note: the double curly brackets are used to indicate to the browser that this references JavaScript. This is the case in any framework that works like this. &lt;/p&gt;

&lt;p&gt;Let's write the code for this and take it apart:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    var app = new Vue({ // initalize the vue instance and include all details in ({})
    el: #app, // almost always detail #1: the element to mount (specificy).
    data: { // if we want to utilize data, we'll need to feed it some.
    name: "Lucas" // This is the {{ name }} we'll utilize
    }
    })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Vue instance is an object with a lot of details. We overwrite some of those details and add to that. If you don't get this notation, study &lt;strong&gt;objects in javascript.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  React(ivity) 🎶
&lt;/h2&gt;

&lt;p&gt;We're trying to make an interactive web-app, so we'll want to add reactivity to our web-app. We can do this using &lt;strong&gt;directives&lt;/strong&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;V-if&lt;/code&gt; ⛱
&lt;/h3&gt;

&lt;p&gt;To only show an element if the data returns true, we can use the following HTML, given that we've imported, we can use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;div id="app"&amp;gt;
    &amp;lt;span v-if="seen"&amp;gt; Now you see me &amp;lt;/span&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, if  'seen' is true (which should reside in your data element for now), this span will show. The JS for this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    var app3 = new Vue({
    el: #app,
    data: {
    seen: true
    }
    )}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this case, this span will show. Easy, right?&lt;br&gt;
&lt;code&gt;v-if&lt;/code&gt; is a directive. Let's cover more directives. &lt;/p&gt;


&lt;h3&gt;
  
  
  &lt;code&gt;V-bind&lt;/code&gt; ✨
&lt;/h3&gt;

&lt;p&gt;The v-bind directive is used to reactively update an &lt;strong&gt;HTML attribute.&lt;/strong&gt;  The short-hand for V-bind is &lt;code&gt;:&lt;/code&gt;. It is best practice to use the shorthand. Here's a quick example of the HTML usage of the v-bind directive&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;a v-bind:href="url"&amp;gt; Click me! &amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's take this apart:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;V-bind:&lt;/code&gt; is the basic directive. This is always included.&lt;/li&gt;
&lt;li&gt;After the colon &lt;code&gt;:&lt;/code&gt; we include what attribute we want to bind, in this case &lt;code&gt;href&lt;/code&gt;.

&lt;ul&gt;
&lt;li&gt;Note: you can find a list of bindable attributes in JS terms &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Then, as with any attribute, we use the &lt;code&gt;=&lt;/code&gt; to input the string that will tell us what we're binding with. In this case &lt;code&gt;url&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;V-bind is useful for creating dynamic layouts, changing URL's, etc. A use case can be binding &lt;code&gt;backgroundColor&lt;/code&gt; to the most upper &lt;code&gt;div&lt;/code&gt; to let users change their own BG colors. Any needs for reactive styling can be fulfilled here.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;V-on&lt;/code&gt; 📩
&lt;/h3&gt;

&lt;p&gt;The v-on directive is used to bind DOM events to Vue methods. The shorthand for &lt;code&gt;v-on&lt;/code&gt; is &lt;code&gt;@&lt;/code&gt;. Let's cover a quick example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;div id=app&amp;gt; &amp;lt;button @click="trigger"&amp;gt; &amp;lt;/button&amp;gt; &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's take this apart:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;@&lt;/code&gt; is the shorthand for &lt;code&gt;v-on&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;click&lt;/code&gt; is the DOM event we're watching for&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;="trigger"&lt;/code&gt; tells Vue to execute this method or function when the DOM event is detected.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note that the &lt;code&gt;click&lt;/code&gt; event must occur &lt;strong&gt;on&lt;/strong&gt; the element, not outside of it. &lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;V-for&lt;/code&gt; 🔥
&lt;/h3&gt;

&lt;p&gt;The V-for directive is used for for creating a list from an array. V-for loops over an array to create a list. Take a good look at this syntax, I was confused by it at first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;ul id="example1"&amp;gt; &amp;lt;!-- note that you do NOT need to mount this specific element for this --&amp;gt;
    &amp;lt;li v-for="item in items"&amp;gt;
    {{ item.message }}
    &amp;lt;/li&amp;gt;
    &amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the JS for this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    var arraylist = new Vue({
    el: '#example-1',
    data: {
        items: [
            { message: 'Hello!' },
            { message: 'List item two :)' }
            ]
        }
    })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So let's take this apart:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First, again, we mount the element properly. Does not need to be the &lt;code&gt;ul&lt;/code&gt; element.&lt;/li&gt;
&lt;li&gt;Then, we add the data. We add the 'items' array, too.&lt;/li&gt;
&lt;li&gt;The items array consists of two unnamed objects that both have a message in them&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;il&lt;/code&gt; calls for &lt;code&gt;item in items&lt;/code&gt;. &lt;code&gt;item&lt;/code&gt; is the name we give to any item in the array to then reference it inside of the &lt;code&gt;il&lt;/code&gt; ****element.&lt;/li&gt;
&lt;li&gt;Now that the DOM is prepared to loop through the array, we can specify even more: what will you loop through?&lt;/li&gt;
&lt;li&gt;In this case, we will loop through every message inside of items (every &lt;code&gt;item in items&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;V-model&lt;/code&gt; 🤯
&lt;/h3&gt;

&lt;p&gt;Say we want to use the user's input as a model for what we see on screen... See what I did there? That's exactly what the v-model directive does. It allows for easy form input bindings. Let's take a look at the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;div id="app"&amp;gt;
    &amp;lt;input v-model="message" placeholder="edit me"&amp;gt;
    &amp;lt;p&amp;gt;Message is: {{ message }}&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's basically it. Do not forget to define what the default of "message" is in the JS part:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    var app1 = new Vue({ 
    el: "#app",
    data: {
    message: ""
    }
    })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;a href="https://www.notion.so/?r=a82570287994452395da52589ea82a9c"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xZZqtlgr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/1gfOkm2.png" alt="homepage" width="880" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;V-text&lt;/code&gt; 💭
&lt;/h3&gt;

&lt;p&gt;A v-model for text except it's not v-model at all and you can just bind text values from anywhere dynamically to the text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;p v-text="Hello!"&amp;gt; &amp;lt;/p&amp;gt; // Now the text will display "Hello!"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  &lt;code&gt;V-once&lt;/code&gt; 💯
&lt;/h3&gt;

&lt;p&gt;V-once requires no arguments. It tells the DOM to not reactively update everything inside the element according to Vue.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;span v-once&amp;gt; {{ name }} &amp;lt;/span&amp;gt; // will not update reactively
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will be a series! Next I'll be going more in-depth, doing a few tutorials for Vue.JS, how to achieve various things, before moving on to the Vue CLI &amp;amp; Vue UI. &lt;/p&gt;

&lt;p&gt;👋 &lt;em&gt;Please &lt;a href="https://twitter.com/lucashogie"&gt;follow me on Twitter&lt;/a&gt;, let's chat!&lt;/em&gt; 👋&lt;/p&gt;

&lt;p&gt;&lt;a href="https://upscri.be/za52nm"&gt;https://upscri.be/za52nm&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Super handy program for increasing productivity on one screen</title>
      <dc:creator>Lucas H.</dc:creator>
      <pubDate>Thu, 29 Aug 2019 21:43:21 +0000</pubDate>
      <link>https://dev.to/lucashogie/super-handy-program-for-increasing-productivity-on-one-screen-32m5</link>
      <guid>https://dev.to/lucashogie/super-handy-program-for-increasing-productivity-on-one-screen-32m5</guid>
      <description>&lt;p&gt;Hey everyone, just saw this new application launch by someone on Twitter. It seems pretty gamechanging for one-screen environments (for me for my laptop for example). 😎&lt;/p&gt;

&lt;p&gt;It allows you to switch applications with a super simple shortcut: alt+[number 1-10] 🙌&lt;/p&gt;

&lt;p&gt;Now, it may seem unnecessary because you've got Alt+tab, but it's been pretty handy for me so far! Check out the demo video: 💕&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/cysVHi-pcxU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;If you want to download it, you can do it here, it's 100% free &amp;amp; opensource: &lt;a href="https://ahkohd.github.io/switch-desktop/"&gt;https://ahkohd.github.io/switch-desktop/&lt;/a&gt; 👀&lt;br&gt;
Check out the source too, and maybe give it a star:&lt;br&gt;
&lt;a href="https://github.com/ahkohd/switch-desktop"&gt;https://github.com/ahkohd/switch-desktop&lt;/a&gt; 🙌&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note: I did not make this. I just wanted to share it with the community because it's really handy for use on my laptop, where I have limited screen and constantly switch between apps with alt+tab, which becomes tedious and annoying when you have loads of programs open&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Is JavaScript a hard language to learn? (and other things)</title>
      <dc:creator>Lucas H.</dc:creator>
      <pubDate>Tue, 27 Aug 2019 16:32:50 +0000</pubDate>
      <link>https://dev.to/lucashogie/is-javascript-a-hard-language-to-learn-and-other-things-jme</link>
      <guid>https://dev.to/lucashogie/is-javascript-a-hard-language-to-learn-and-other-things-jme</guid>
      <description>&lt;p&gt;&lt;em&gt;In a rush? I've marked the questions with bold to make it faster to read, don't mean to waste your time! :)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Hi everyone 👋, hope you're having an amazing day. My name is Lucas, I've been learning Javascript recently. I'm quite new to developing, and I was wondering, &lt;strong&gt;is JavaScript said to be a hard language generally, and if not, what would be some languages that are identified as 'hard'&lt;/strong&gt;? &lt;/p&gt;

&lt;p&gt;Now that we're on the topic, I'd also be really interested &lt;strong&gt;if any of you have any amazing resources you would suggest for learning JavaScript&lt;/strong&gt;. So hard I've found &lt;a href="https://egghead.io"&gt;Egghead.io&lt;/a&gt; pretty awesome myself. How condensed the information in each tutorial is and that it is well-edited is great. The speed and quality of each tutorial allows you to grasp relatively hard concepts to learn quickly. &lt;/p&gt;

&lt;p&gt;I'm really curious to see your answer(s)! 👀&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EDIT: thank you all so much for your responses!! I REALLY appreciate it!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
