<?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: menning</title>
    <description>The latest articles on DEV Community by menning (@menning).</description>
    <link>https://dev.to/menning</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%2F344622%2F60fee2f2-249e-4447-8d15-d9659dd52536.png</url>
      <title>DEV Community: menning</title>
      <link>https://dev.to/menning</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/menning"/>
    <language>en</language>
    <item>
      <title>Where to put business logic</title>
      <dc:creator>menning</dc:creator>
      <pubDate>Tue, 26 Jan 2021 11:46:56 +0000</pubDate>
      <link>https://dev.to/menning/where-to-put-business-logic-18d0</link>
      <guid>https://dev.to/menning/where-to-put-business-logic-18d0</guid>
      <description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;this is a bit of a general question that I haven't been able to find an answer to online. &lt;/p&gt;

&lt;p&gt;I have just started to dabble in React and Next.JS and would like to create my own project with Next.js to enhance my learning. &lt;/p&gt;

&lt;p&gt;I would like to create a point of sale system using next.js and am thinking that calculations of sales tax etc should happen serverside rather than client side (understand that anyone can read you client side code). i do know that the calculation of sales tax is no big secret, but i'm just doing this to learn the principles :)&lt;/p&gt;

&lt;p&gt;so my question is&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Am I wrong that it is not safe to keep all business logic in the frontend (such as some proritetary calculation)?&lt;/li&gt;
&lt;li&gt;If i hence was going to do my calculation in the backend, where would I do them? a function in Express?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;hope someone can help. &lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
