<?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: Danijel-Enoch</title>
    <description>The latest articles on DEV Community by Danijel-Enoch (@danijelenoch).</description>
    <link>https://dev.to/danijelenoch</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%2F827031%2F8a66e3e5-dc6e-4023-a717-bbbc41e7e859.jpeg</url>
      <title>DEV Community: Danijel-Enoch</title>
      <link>https://dev.to/danijelenoch</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danijelenoch"/>
    <language>en</language>
    <item>
      <title>Using workers in electron.js vite (typescript)(quick write up)</title>
      <dc:creator>Danijel-Enoch</dc:creator>
      <pubDate>Mon, 21 Oct 2024 01:05:55 +0000</pubDate>
      <link>https://dev.to/danijelenoch/using-workers-in-electronjs-vite-typescriptquick-write-up-4f99</link>
      <guid>https://dev.to/danijelenoch/using-workers-in-electronjs-vite-typescriptquick-write-up-4f99</guid>
      <description>&lt;p&gt;If your are making use of electron to build a web application and you are trying to implement worker. There 3 ways I  currently know&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Just use plain javascript&lt;/li&gt;
&lt;li&gt;Make use of esbuild to bundle your typescript&lt;/li&gt;
&lt;li&gt;Make use of electron vite esbuild config.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We would be looking at electron vite with es build.&lt;br&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%2Fuploads%2Farticles%2Fkpj5zr51w0jurnn25df5.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%2Fuploads%2Farticles%2Fkpj5zr51w0jurnn25df5.png" alt="Image description" width="482" height="94"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The image above is all you really need.&lt;/p&gt;

&lt;p&gt;Once you have create your workers(in .ts) in you main folder, Initialized them inside your index.ts for main folder where mainWindow is initialzed. Once worker created and initialized then go to add it to the electron vite  config.js/ts file under you main object (just like in the image above). After this just run your code again all should work well.&lt;/p&gt;

&lt;p&gt;This  write up  is rushed(was very busy just decided to quickly journal this so another person does not go through hell like i went through trying setup workers in electron vite )&lt;/p&gt;

&lt;p&gt;To understand this more read the electron vite docs,electron js docs and nodejs workers docs.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>SyntaxError: Identifier 'e' has already been declared Nextjs</title>
      <dc:creator>Danijel-Enoch</dc:creator>
      <pubDate>Thu, 29 Feb 2024 00:49:45 +0000</pubDate>
      <link>https://dev.to/danijelenoch/syntaxerror-identifier-e-has-already-been-declared-nextjs-1ko3</link>
      <guid>https://dev.to/danijelenoch/syntaxerror-identifier-e-has-already-been-declared-nextjs-1ko3</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F35jyub5pkfiuuu8tiluc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F35jyub5pkfiuuu8tiluc.png" alt="Image description" width="580" height="120"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are trying to build a next js code and you keep on facing this error just know that this error is caused by a package you probably installed or imported.&lt;/p&gt;

&lt;p&gt;If you search your .next build files for &lt;code&gt;var e&lt;/code&gt; you would discover that it is declared twice in the code . So check the bot declaration of the e variable and see which dependencies they are connected to . For me it was an injective-sdk dependency.&lt;/p&gt;

&lt;p&gt;Note that in some occasion this could be you just declaring the &lt;code&gt;e&lt;/code&gt; variable twice in you code.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Small but mighty Bugs(greatest solidity bug)</title>
      <dc:creator>Danijel-Enoch</dc:creator>
      <pubDate>Tue, 10 Jan 2023 15:56:26 +0000</pubDate>
      <link>https://dev.to/danijelenoch/small-but-mighty-bugsgreatest-solidity-bug-37k</link>
      <guid>https://dev.to/danijelenoch/small-but-mighty-bugsgreatest-solidity-bug-37k</guid>
      <description>&lt;p&gt;&lt;strong&gt;What are the small but mighty bug?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What are the small but mighty bugs are bugs that you have solved multiple times but keep up showing and any time you face this bug you tend to always go to stack overflow flow for an answer. They always make to keep tampering with your code **&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Note: The called function should be payable if you send value and the value you send should be less than your current balance.
Debug the transaction to get more information.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;I encountered this Bug when i was working a multi-sender smart contract for a client, so the smart contract is a kinda ERC20 contract but with a simple multi-send functionalities , so it during the period of me testing the multi-send function on the smart contract that i came accross this SMALL BUT MIGHTY BUGS.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  How i solved it
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;Stack Overflow...Yes Stack overflow the cheat engine for programmers where we copy and paste code from and basically just copied and pasted the error to google and stack overflow showed the right answer which was for me to make some variables and the whole functions in it self payable. This was what i did and it worked.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/61388743/solidity-transaction-error-the-called-function-should-be-payable-if-you-send-va"&gt;https://stackoverflow.com/questions/61388743/solidity-transaction-error-the-called-function-should-be-payable-if-you-send-va&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After this bug wasted my time i learnt never to proud again as a developer but to copy the damn small but mighty bugs to google to solve. Let us be humble guys to our code.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>I just Found Notion</title>
      <dc:creator>Danijel-Enoch</dc:creator>
      <pubDate>Sun, 31 Jul 2022 01:59:38 +0000</pubDate>
      <link>https://dev.to/danijelenoch/i-just-found-notion-4480</link>
      <guid>https://dev.to/danijelenoch/i-just-found-notion-4480</guid>
      <description>&lt;p&gt;Finally I found a way out of clustered work and lack of proper management when it comes to managing projects, I have tried some few app for task and project management but i think Notion crowns everything for me. I would make my personal opinion on the features i think that makes Notion beautiful and I believe every developer should use Notion.&lt;/p&gt;

&lt;p&gt;Nice, Simple and Easy registration to begin with, the slick way of signing up on Notion is kinda very cool with this very warm interface that kinda have this warm effects on the eyes which I love.&lt;/p&gt;

&lt;p&gt;Team management is like the second thing that i notice on Notion. One of the start Ups I work for kinda made my life easier by making use of Notion, with properly arranged scrum board and Workspace panel.&lt;/p&gt;

&lt;p&gt;Easy To Use, This to me is the most priced feature to me. You seriously do not that any teaches you how to make use Notion, anyone can know how to use notion by just looking at it, You just have to be a regular user.&lt;/p&gt;

&lt;p&gt;I guess i have come to the end this post i know it was not that detailed but hope it helped someone out there. Do not worry guys i promise to get better in content writing skills.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>My Mobile Development Journey(React Native)</title>
      <dc:creator>Danijel-Enoch</dc:creator>
      <pubDate>Wed, 06 Jul 2022 12:39:42 +0000</pubDate>
      <link>https://dev.to/danijelenoch/my-mobile-development-journeyreact-native-4caa</link>
      <guid>https://dev.to/danijelenoch/my-mobile-development-journeyreact-native-4caa</guid>
      <description>&lt;p&gt;My Name is Enoch Daniel, I am a Smart Contract engineer,Full-stack/MERN developer. So after a few years of web app development I finally would be starting Mobile App development with React Native, Kinda Started first with some few research on what framework is best to start native mobile app development and I finally Settle with react Native Basically because I would be Integrating some web3 since integrating web3 features in flutter or swift is not really easy has with Javascript or React Native.&lt;br&gt;
  Also since I have strong background in Javascript and ReactJs then it would be nice for further into react Native for mobile app development.&lt;br&gt;
 I am new to writing blog and articles as a developer so i would try to keep you guys posted on my journey to mastery in becoming a React Native Mobile App developer.&lt;br&gt;
  So i came up with some basic  ideas like a P2E (play to earn),Food Recipes, Todo List and a Web3 Token Saver for my first set of apps but I would Like to start with what project we would be building the youtube videos I would be watching.&lt;br&gt;
   So today I learnt How install Expo Cli and what are the differences between reactJS and React native, Also learnt the different Between Expo cli and The React Native Terminal.&lt;br&gt;
     It Turns out that for those of that do not have the patient to wait for Android studio (For Linux and Windows Users) and X code (For Apple Users) to download, expo-cli would be our fastest option to getting started with app development. No Bugs at installation so far and I hope i do get Bugged out of it by the end of the month. Would keep you Guys Posted.&lt;br&gt;
 Thanks for Reading.&lt;/p&gt;

</description>
      <category>solidity</category>
      <category>evm</category>
      <category>blockchain</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
