<?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: Manu krishnan</title>
    <description>The latest articles on DEV Community by Manu krishnan (@manu1305).</description>
    <link>https://dev.to/manu1305</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%2F1193553%2Fa13cd727-a659-4892-a6e6-589697f73392.jpeg</url>
      <title>DEV Community: Manu krishnan</title>
      <link>https://dev.to/manu1305</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manu1305"/>
    <language>en</language>
    <item>
      <title>Best Practices for Naming Front-End UI Elements</title>
      <dc:creator>Manu krishnan</dc:creator>
      <pubDate>Wed, 05 Mar 2025 07:24:15 +0000</pubDate>
      <link>https://dev.to/manu1305/best-practices-for-naming-front-end-ui-elements-2aoa</link>
      <guid>https://dev.to/manu1305/best-practices-for-naming-front-end-ui-elements-2aoa</guid>
      <description>&lt;p&gt;When naming elements on the front-end that users will see directly, the primary rule is to use clear, concise, and descriptive language that accurately reflects the element's function, avoiding jargon and technical terms wherever possible; additionally, maintain consistency in capitalization and formatting across your application. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key points to consider:&lt;/strong&gt;&lt;br&gt;
Use plain language: Opt for words that are easily understood by your target audience, even if they are not tech-savvy.&lt;br&gt;
Be specific: Choose names that accurately describe the element's purpose, avoiding overly general terms like "button" or "box."&lt;br&gt;
Consider context: Take into account the surrounding elements and overall page structure when naming things to avoid confusion.&lt;br&gt;
Capitalization consistency:&lt;br&gt;
PascalCase: Use for titles and headings (e.g., "Submit Order").&lt;br&gt;
Sentence case: For labels and short descriptions (e.g., "Enter your email").&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Examples of good naming practices:&lt;/strong&gt;&lt;br&gt;
Button labels: "Save Changes", "Add Item", "View Details"&lt;br&gt;
Form field labels: "First Name", "Password", "Delivery Address"&lt;br&gt;
Navigation links: "Home", "About Us", "Contact"&lt;br&gt;
Error messages: "Please enter a valid email", "Password cannot be blank" &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to avoid:&lt;/strong&gt;&lt;br&gt;
Technical jargon: Don't use terms like "submitForm" or "userSession" directly in user-facing elements. &lt;br&gt;
Ambiguous names: Avoid "click here" or "select option" without providing clear context. &lt;br&gt;
Inconsistent capitalization: Mixing up capitalization styles can be confusing.&lt;br&gt;
Too many words: Keep labels short and to the point.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>variable declaration in typeScript</title>
      <dc:creator>Manu krishnan</dc:creator>
      <pubDate>Fri, 15 Dec 2023 09:37:38 +0000</pubDate>
      <link>https://dev.to/manu1305/variable-declaration-in-typescript-2bpp</link>
      <guid>https://dev.to/manu1305/variable-declaration-in-typescript-2bpp</guid>
      <description>&lt;p&gt;let-const-var&lt;/p&gt;

&lt;p&gt;let variableName: type&lt;br&gt;
const constantName: type = value&lt;br&gt;
var oldStyleVariableName: type&lt;/p&gt;

&lt;p&gt;normal function &lt;/p&gt;

&lt;p&gt;function functionName(params1: type, params2: type): returnType {&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;arrow function&lt;br&gt;
const arrowfunction =(param1:type,param2:type):returntype=&amp;gt;{&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;enum&lt;br&gt;
enum EnumName {&lt;br&gt;
    VALUE1,&lt;br&gt;
    VALUE2,&lt;br&gt;
    VALUE3,&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;any new knowedge please let me know in comment section&lt;/p&gt;

</description>
    </item>
    <item>
      <title>nodeMailer after google security update</title>
      <dc:creator>Manu krishnan</dc:creator>
      <pubDate>Thu, 26 Oct 2023 06:18:24 +0000</pubDate>
      <link>https://dev.to/manu1305/nodemailer-after-google-security-update-ee</link>
      <guid>https://dev.to/manu1305/nodemailer-after-google-security-update-ee</guid>
      <description>&lt;p&gt;Node mailer&lt;/p&gt;

&lt;p&gt;most of them know Node mailer but with latest security update of google some of them not able to use Node mailer , Don't worry I will help you to resolve your issue ... if you are a beginer  you can also follow this documentation....Let's start &lt;/p&gt;

&lt;p&gt;step 1 &lt;/p&gt;

&lt;p&gt;install node mailer in your server&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;npm install nodemailer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;step 2&lt;/p&gt;

&lt;p&gt;Add this code &lt;/p&gt;

&lt;p&gt;**const nodemailer = require('nodemailer')&lt;/p&gt;

&lt;p&gt;const sendmail= async (req, res) =&amp;gt; {&lt;/p&gt;

&lt;p&gt;const { email } = req.body;&lt;/p&gt;

&lt;p&gt;let transporter = nodemailer.createTransport({&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;host: "smtp.gmail.com",

port: 465,

secure: true,

auth: {

  user: "example@gmail.com",

  pass: "***",

},
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;});&lt;/p&gt;

&lt;p&gt;try {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// send mail using optional parameters

var mailOptions = {

  from: "example@gmail.com",
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;// here you  an replace email with custom email name //&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  to: email,



  subject: "Type your e-mail subject here",



  html: `

  &amp;lt;img style="width:100px;height:40px;object-fit:contain" src="https://example/Image/example.jpeg" alt="Yourimge"&amp;gt;

    &amp;lt;h2Email recciewvedlick Here  to test &amp;lt;/h2&amp;gt;

  `,

};



// get the response

transporter.sendMail(mailOptions, function (error, info) {

  if (error) {

    console.log(error);

  } else {

    console.log("Email sent: " + info.response);



    return res.status(200).json({ success: true, message: info.response });

  }

});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;} catch (err) {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(err);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;};&lt;br&gt;
**&lt;/p&gt;

&lt;p&gt;inside auth we need to give password  i mentioned in top the google is updated the security information so we need to follow the latest updates &lt;/p&gt;

&lt;p&gt;so follow me to get your password &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;You need to secure your google account with two step verification&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;next go to this link&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;** &lt;a href="https://myaccount.google.com/apppasswords?pli=1&amp;amp;rapt=AEjHL4NSosO4ykDzkOiQw_CZ7_oQRKcZutIJFw7_S7zLmf5nv0GsqoTSmbNQKJ6YzDuR8DM3sUSMoXQvQ7gVeCdGXuLaZKY-dg" rel="noopener noreferrer"&gt;https://myaccount.google.com/apppasswords?pli=1&amp;amp;rapt=AEjHL4NSosO4ykDzkOiQw_CZ7_oQRKcZutIJFw7_S7zLmf5nv0GsqoTSmbNQKJ6YzDuR8DM3sUSMoXQvQ7gVeCdGXuLaZKY-dg&lt;/a&gt;&lt;br&gt;
**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Then you add any custom name and then you will get 16 digit password copy that password&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;and add that password inside the auth in given code above &lt;/p&gt;

&lt;p&gt;remember one thing email also replace with your email which created app password&lt;/p&gt;

&lt;p&gt;(26&lt;br&gt;
-10-2023)&lt;/p&gt;

&lt;p&gt;official documentation : &lt;strong&gt;&lt;a href="https://nodemailer.com/" rel="noopener noreferrer"&gt;https://nodemailer.com/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If there is still a problem  contact me :&lt;br&gt;&lt;br&gt;
 &lt;strong&gt;&lt;a href="https://https://www.linkedin.com/in/manu1305/" rel="noopener noreferrer"&gt;https://https://www.linkedin.com/in/manu1305/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;whatsapp :&lt;strong&gt;+91 8943293217&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>nodemailer</category>
      <category>node</category>
      <category>nodemailerlatest</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
