<?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: Neutron</title>
    <description>The latest articles on DEV Community by Neutron (@geschwatz).</description>
    <link>https://dev.to/geschwatz</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%2F320031%2Fcb84d055-3bc8-4fb7-81e8-bdbde0c63bcb.jpeg</url>
      <title>DEV Community: Neutron</title>
      <link>https://dev.to/geschwatz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/geschwatz"/>
    <language>en</language>
    <item>
      <title>Answer: What does enctype='multipart/form-data' mean?</title>
      <dc:creator>Neutron</dc:creator>
      <pubDate>Tue, 17 Mar 2020 12:50:42 +0000</pubDate>
      <link>https://dev.to/geschwatz/answer-what-does-enctype-multipart-form-data-mean-4pk2</link>
      <guid>https://dev.to/geschwatz/answer-what-does-enctype-multipart-form-data-mean-4pk2</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean/28380690#28380690" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What does enctype='multipart/form-data' mean?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb  7 '15&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean/28380690#28380690" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          457
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;blockquote&gt;
  &lt;p&gt;when should we use it&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Quentin's answer is right: use &lt;code&gt;multipart/form-data&lt;/code&gt; if the form contains a file upload, and &lt;code&gt;application/x-www-form-urlencoded&lt;/code&gt; otherwise, which is the default if you omit &lt;code&gt;enctype&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I'm going to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;add some more HTML5 references&lt;/li&gt;
&lt;li&gt;explain &lt;strong&gt;why&lt;/strong&gt; he is right with a form submit example&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;HTML5 references&lt;/h2&gt;
&lt;p&gt;…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean/28380690#28380690" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Error: Can't set headers after they are sent to the client</title>
      <dc:creator>Neutron</dc:creator>
      <pubDate>Tue, 17 Mar 2020 12:05:36 +0000</pubDate>
      <link>https://dev.to/geschwatz/answer-error-can-t-set-headers-after-they-are-sent-to-the-client-39pe</link>
      <guid>https://dev.to/geschwatz/answer-error-can-t-set-headers-after-they-are-sent-to-the-client-39pe</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client/48123354#48123354" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Error: Can't set headers after they are sent to the client
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan  6 '18&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client/48123354#48123354" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          63
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;&lt;em&gt;Some of the answers in this Q&amp;amp;A are wrong. The accepted answer is also not very "practical", so I want to post an answer that explains things in simpler terms. My answer will cover 99% of the errors I see posted over and over again. For the actual reasons behind&lt;/em&gt;…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client/48123354#48123354" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Error: Can't set headers after they are sent to the client</title>
      <dc:creator>Neutron</dc:creator>
      <pubDate>Tue, 17 Mar 2020 12:04:26 +0000</pubDate>
      <link>https://dev.to/geschwatz/answer-error-can-t-set-headers-after-they-are-sent-to-the-client-53lo</link>
      <guid>https://dev.to/geschwatz/answer-error-can-t-set-headers-after-they-are-sent-to-the-client-53lo</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client/7086621#7086621" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Error: Can't set headers after they are sent to the client
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 17 '11&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client/7086621#7086621" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          1135
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;The &lt;code&gt;res&lt;/code&gt; object in Express is a subclass of &lt;a href="https://nodejs.org/docs/latest/api/http.html#http_class_http_serverresponse" rel="noreferrer"&gt;Node.js's &lt;code&gt;http.ServerResponse&lt;/code&gt;&lt;/a&gt; (&lt;a href="https://github.com/nodejs/node-v0.x-archive/blob/master/lib/http.js" rel="noreferrer"&gt;read the http.js source&lt;/a&gt;). You are allowed to call &lt;code&gt;res.setHeader(name, value)&lt;/code&gt; as often as you want until you call &lt;code&gt;res.writeHead(statusCode)&lt;/code&gt;. After &lt;code&gt;writeHead&lt;/code&gt;, the headers are baked in and you can only call &lt;code&gt;res.write(data)&lt;/code&gt;, and…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client/7086621#7086621" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>What is the 'new' keyword in JavaScript?</title>
      <dc:creator>Neutron</dc:creator>
      <pubDate>Wed, 05 Feb 2020 10:17:14 +0000</pubDate>
      <link>https://dev.to/geschwatz/what-is-the-new-keyword-in-javascript-8jn</link>
      <guid>https://dev.to/geschwatz/what-is-the-new-keyword-in-javascript-8jn</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript/3658673#3658673" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What is the 'new' keyword in JavaScript?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep  7 '10&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript/3658673#3658673" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2161
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;It does 5 things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It creates a new object.  The type of this object is simply &lt;em&gt;object&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;It sets this new object's internal, inaccessible, &lt;em&gt;[[prototype]]&lt;/em&gt; (i.e. &lt;strong&gt;__proto__&lt;/strong&gt;) property to be the constructor function's external, accessible, &lt;em&gt;prototype&lt;/em&gt; object (every function object automatically has a &lt;em&gt;prototype&lt;/em&gt; property).&lt;/li&gt;
&lt;li&gt;It makes the…&lt;/li&gt;
&lt;/ol&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript/3658673#3658673" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


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