ORM — Object-relational Mapping

Object-relational mapping (ORM, O/RM, and O/R mapping tool) in computer science is a programming technique for converting data between incompatible type systems using object-oriented programming languages. This creates, in effect, a “virtual object database” that can be used from within the programming language. There are both free and commercial packages available that perform object-relational mapping, although some programmers opt to construct their own ORM tools.

Choosing an ORM for APIs

Choosing an ORM or query builder for your Node.js app can be daunting. …


Javascript Testing is covered by different tools and libraries from a different framework, You might have seen jest and mocha as one the most popular testing framework and chai as an assertion library

In this blog, we will talk about all different libraries and technologies involved in covering all different kind of testing like

  • unit-testing
  • API testing or e2e testing
  • functional testing on headless browser
  • manual testing/ black box testing etc tec

All these kind of testing is covered using some of the other library, simple libraries like jasmine, mocha, chai, and Sinon

In this playlist, I have a…


YouTube Playlist on API development with Graphql

Node JS Graphql World using Yoga, Apollo and Prisma, it all about Building Graphql APIs using different possible way [NestJS, Express]

In this playlist, i am covering all about graphql from beginner to advance level teachings

We will talk about graphql with different ORM Library and different frameworks starting with basic yoga-graphql

  • Using nestjs
  • Using express and typescript + express graphql server
  • Using graphql-yoga
  • Using apollo graphql server
  • Using graphql-yoga with Prosima
  • Using graphql-yoga with Sequelize
  • Using graphql-yoga with TypeORM
  • Using graphql-yoga with Knex
  • Using graphql-yoga with MongoDB

Example with graphql-yoga

Fully-featured GraphQL Server with focus on easy setup, performance & great…


test

ascas

as

ca

ca

csa

c


JavaScript is always full of pleasant surprises

Here I have covered 200 + Questions tricky questions to prepare for Interviews

Some examples are —

1. Transform the arguments object into an array.

The arguments object is an Array-like object accessible inside functions that contain the values of the arguments passed to that function.

But it’s not like other arrays, we can access the values and we can get the length, but no other array methods can be used on it.

Luckily, we can just convert it into a regular array:

var argArray = Array.prototype.slice.call(arguments);

2. Sum all the values from an array.

My initial instinct was to use a loop, but that would have been wasteful.

var numbers = [3, 5, 7…

Writing clean code is what you must know and do in order to call yourself a professional developer. There is no reasonable excuse for doing anything less than your best.

“Even bad code can function. But if the code isn’t clean, it can bring a development organization to its knees.” — Robert C. Martin (Uncle Bob)

Follow Proper Naming convention

  1. camelCase : Symbols, properties, methods, pipe names, non-component directive selectors, constants uses lowercase on the first letter of the item. For example, “selectedUser”

2. UpperCamelCase (or PascalCase): Class names, including classes that define components, interfaces, NgModules, directives, and pipes…


NPM had announced support for private modules and now its possible to have private or public NPM package which you can publish to Github, Gitlab or NPM repository.

what is NPM Package —

If we talk about NPM which is node package manager but now its like javascript package manager where you can publish a package private or public and your other apps can use that package.

Package is nothing but some software utility or some sdk interface, such package we can get and those feature will get added in our JavaScript application like webpack, grunt, gulp

to add these…


I have created Video Course which talks about some general programming questions

The best way to prepare for interviews is to practice, practice, practice! In this course you will complete more than 1000 + JavaScript interview questions that come from actual JavaScript interviews

  • it talks about core JavaScript questions
  • different playlist, first one which talks about JavaScript code questions using array and string
  • Second playlist is more about JavaScript core questions about objects, prototype, classes, functions.
  • Array and string based questions
  • function and class based interview questions
  • These playlist will help you to crack JavaScript or coding based questions


Overview (From Formik Documentation)

Formik is a library that helps us to write forms in React.

forms are really verbose in React. To make matters worse, most form helpers do way too much magic and often have a significant performance cost associated with them. Formik is a small library that helps you with the 3 most annoying parts:

Getting values in and out of form state

Validation and error messages

Handling form submission

By colocating all of the above in one place, Formik will keep things organized — making testing, refactoring, and reasoning about your forms a breeze.

Motivation

(@jaredpalmer) wrote Formik while building…


Getting Started with React and Redux

Redux is a predictable state container for JavaScript apps.

It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as live code editing combined with a time traveling debugger.

You can use Redux together with React, or with any other view library. It is tiny (2kB, including dependencies), but has a large ecosystem of addons available.

Installation

Redux Toolkit

Redux Toolkit is our official recommended approach for writing Redux logic. It wraps around the Redux core, and contains packages and…

@tkssharma

I’m Tarun.😎I help people to make a better world by good apps I am Publisher,Trainer Developer, working on Enterprise and open source Technologies tkssharma.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store