<?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: Aharon Hyman</title>
    <description>The latest articles on DEV Community by Aharon Hyman (@hymanaharon).</description>
    <link>https://dev.to/hymanaharon</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%2F510436%2Fb62f9c04-3184-4894-9194-ef79ab6c9a17.jpg</url>
      <title>DEV Community: Aharon Hyman</title>
      <link>https://dev.to/hymanaharon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hymanaharon"/>
    <language>en</language>
    <item>
      <title>CodeSandbox init shortcuts</title>
      <dc:creator>Aharon Hyman</dc:creator>
      <pubDate>Wed, 06 Jan 2021 12:52:44 +0000</pubDate>
      <link>https://dev.to/hymanaharon/codesandbox-init-shortcuts-3g3n</link>
      <guid>https://dev.to/hymanaharon/codesandbox-init-shortcuts-3g3n</guid>
      <description>&lt;p&gt;Fun new find of the day&lt;br&gt;
Type into browser URL: “&lt;a href="http://js.new%E2%80%9D"&gt;http://js.new”&lt;/a&gt;, “&lt;a href="http://vue.new%E2%80%9D"&gt;http://vue.new”&lt;/a&gt;, “&lt;a href="http://react.new%E2%80%9D"&gt;http://react.new”&lt;/a&gt;, “&lt;a href="http://ng.new%E2%80%9D"&gt;http://ng.new”&lt;/a&gt;, “&lt;a href="http://ts.new%E2%80%9D"&gt;http://ts.new”&lt;/a&gt;&lt;br&gt;
You will get full environment to play around in.&lt;/p&gt;

</description>
      <category>devtips</category>
      <category>webdev</category>
      <category>browsertricks</category>
    </item>
    <item>
      <title>Imposter syndrome &amp; at what point did you realise you where a developer</title>
      <dc:creator>Aharon Hyman</dc:creator>
      <pubDate>Sun, 29 Nov 2020 19:59:38 +0000</pubDate>
      <link>https://dev.to/hymanaharon/imposter-syndrome-at-what-point-did-you-realise-you-where-a-developer-3hog</link>
      <guid>https://dev.to/hymanaharon/imposter-syndrome-at-what-point-did-you-realise-you-where-a-developer-3hog</guid>
      <description>&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Impostor_syndrome"&gt;Imposter syndrome&lt;/a&gt; is something I have often felt in my journey to becoming a developer. &lt;br&gt;
I am self taught (mostly), and was lucky to be given a chance at a growing start up (&lt;a href="https://www.strattic.com/careers/"&gt;Strattic&lt;/a&gt;). &lt;br&gt;
My first few weeks where filled with fake it until you make it, with many late nights and LOOOOTS of caffeine. But I after a couple of weeks I sat down with the team to show what I had achieved and I amazed myself.&lt;br&gt;
I look back on that code now and laugh, and am amazed that not only does it still work but some of that code still on production (with a lot of refactors and help from much more experienced devs).&lt;br&gt;
Did you have an AH HA! moment when you suddenly realised you where keeping up with the big boys?&lt;/p&gt;

</description>
      <category>conversation</category>
      <category>forn00bs</category>
    </item>
    <item>
      <title>Maintaining a company culture while working from home?</title>
      <dc:creator>Aharon Hyman</dc:creator>
      <pubDate>Sun, 15 Nov 2020 11:54:29 +0000</pubDate>
      <link>https://dev.to/hymanaharon/how-to-keep-a-company-culture-while-working-from-home-14d9</link>
      <guid>https://dev.to/hymanaharon/how-to-keep-a-company-culture-while-working-from-home-14d9</guid>
      <description>&lt;h1&gt;
  
  
  Company culture at home.
&lt;/h1&gt;

&lt;p&gt;Has your company switched to remote work?&lt;br&gt;
Have you made any changes to your company culture to fit in with a remote environment?&lt;br&gt;
Do you find your life-work balance has shifted as a result of remote work?&lt;/p&gt;

&lt;p&gt;I will start :D.&lt;br&gt;
Our company values our work culture and has spent time supporting us whether with assistance to set up a home office or with increased social interactions 'online'.&lt;br&gt;
We moved out weekly happy hour online and try to spend some time catching up with each other outside of our regular meetings.&lt;br&gt;
A big one for me was encouraging everyone to have their videos on during meetings, it helps you feel like you are talking with colleagues and humans, not just talking to a computer. Even if it means you have to get more formal looking PJ's!&lt;br&gt;
Being at home especially during lockdown has meant that putting in a full work day can sometimes not be so easy, especially with little kids around. Work being flexible and allowing for make up hours in the evenings is a big help.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>workfromhome</category>
      <category>officeculture</category>
    </item>
    <item>
      <title>Why I will no longer be using console.log() to check React state updates</title>
      <dc:creator>Aharon Hyman</dc:creator>
      <pubDate>Wed, 11 Nov 2020 09:05:15 +0000</pubDate>
      <link>https://dev.to/hymanaharon/why-i-will-no-longer-be-using-console-log-to-check-react-state-updates-29el</link>
      <guid>https://dev.to/hymanaharon/why-i-will-no-longer-be-using-console-log-to-check-react-state-updates-29el</guid>
      <description>&lt;p&gt;As a front end developer one of the key tools in my debugging arsenal is the console log. The ability to log data and check that it renders as expected in the browser allows you to quickly debug specific parts of your code in a quick and neat fashion.&lt;/p&gt;

&lt;p&gt;I work in React and being able to console log your state and check that the components are rendering as expected is a key development pattern.&lt;/p&gt;

&lt;p&gt;When your state is simple and you have one or two values to monitor, &lt;strong&gt;console.log()&lt;/strong&gt; is great but when you start adding more to your component state especially in a Class component this can start getting very ugly as your state object being output is minified.&lt;/p&gt;

&lt;h1&gt;
  
  
  Console.table()
&lt;/h1&gt;

&lt;p&gt;Console.table is a great way of logging to the console that will parse your data and log in the console as a table.&lt;/p&gt;

&lt;p&gt;Using the console in Chrome dev tools we can see console.table() at work&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3m5h9sld37bqm66i5skq.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3m5h9sld37bqm66i5skq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The function console.table() takes either an array or an object and can also take an optional parameter ‘columns’&lt;/p&gt;

&lt;p&gt;The first column will be labelled index and in the case of an array it will display the indices, while an object will display the Key or property names. &lt;/p&gt;

&lt;p&gt;The table also works as you would expect allowing you to sort the column by clicking on the title. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note that in Firefox console.table() is currently limited to 1000 rows&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Columns&lt;/strong&gt;&lt;br&gt;
Where this really comes in useful is the columns parameter. &lt;br&gt;
As a default the columns.table() will list all the elements in an object. The columns parameter takes an array of column names or values and allows you to select the values you would like displayed. By using this you are able to parse an array of large objects and select only the columns relevant to you.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logging your state!&lt;/strong&gt;&lt;br&gt;
Going back to React, a common pattern is to store a server response in your state, often there is data involved that will not be used in the component you are working on. &lt;br&gt;
Using the columns parameter you can display in the console only the columns of data that you are actually watching&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lets see what that looks like&lt;/strong&gt;&lt;br&gt;
In the below example our api call returns a json of users and they are stored in the state. &lt;br&gt;
Using console.table(users) in the render we will be able to produce the below table and check the data is as expected, without having to build out our table component in the ui.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdd9auary9nrevo6gjkkw.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdd9auary9nrevo6gjkkw.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if we wanted to build a quick filter button to check which of our clients paid in Yuan Renminbi we could do the following &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

const onlyYuanUsers = users.filter( user =&amp;gt; user.currency === "Yuan Renminbi")
console.table(onlyYuanUsers)


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;this will produce a filtered table to check it returns the values you need.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fav3lgofcfhqyoy26hv6x.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fav3lgofcfhqyoy26hv6x.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But this is more data than you need to display to check your filter is working. &lt;/p&gt;

&lt;p&gt;By passing in the columns parameter, you are able to select which columns you want to select by defining an array of the column names. &lt;/p&gt;

&lt;p&gt;The output will be a more compact table allowing for an ‘at a glance’ comparison.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

console.table(onlyYuanUsers, ['id', 'currency'])


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi45dob16iwiajfftjcxs.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi45dob16iwiajfftjcxs.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is worthy of note that as of publishing console.table() is supported by all modern browsers with the exception of IE (I did say modern)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>firstpost</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
