Open in app

Sign In

Write

Sign In

Aditya Dhanraj Tiwari
Aditya Dhanraj Tiwari

71 Followers

Home

About

Published in Analytics Vidhya

·Pinned

Python’s cool tricks for programming.

Simplicity is Python’s way to solve a problem. Reverse a string, list or tuple → Whenever I’d find myself in a situation where I was required to perform a reverse operation, more often than not, I would use a for loop or resort to find some function like reverse() that…

Python

6 min read

Python’s cool tricks for programming.
Python’s cool tricks for programming.
Python

6 min read


Published in Python in Plain English

·Pinned

Python’s amazing functools module

Kill the messier code with functools elegancy — functools.partial Partial is a higher order function which allows the partial application of a function. Suppose there is a function with lots of arguments but you need to change only one or two argument every time you use that function, Partial function comes to the rescue. Using Partial function, you can…

Python

3 min read

Python’s amazing functools module
Python’s amazing functools module
Python

3 min read


Published in Python in Plain English

·Pinned

Functions as a First Class Objects in Python

In Python, functions are first class citizens. But what does this mean? The first class objects are program entity which have these five characteristics: 1. Can be created at runtime. 2. Can be assigned to a variable. 3. Can be passed as a argument to a function. 4. Can be…

Python

3 min read

Functions as a First Class Objects in Python
Functions as a First Class Objects in Python
Python

3 min read


Published in Python in Plain English

·Pinned

sorted() in Python

Embrace the power of sorted function in Python — As a programmer we all know what sorting is, so I will not write theory here and will go directly into code. Python has inbuilt function sorted which can be use to sort any iterable. sorted function return the new sorted iterable unlike list.sort function which perform inplace sorting. l…

Python

4 min read

sorted() in Python
sorted() in Python
Python

4 min read


Published in Python in Plain English

·Nov 28, 2020

Operator Overloading in Python

How to make your object play well with built-in operators — Each operator can be used in different way for different types of operands. for example when + is used with integers, it add integers to give result and when + is used with string, it concatenates the provided strings. x, y = 10, 20 print(x + y) # 30 a,b…

Python

3 min read

Operator overloading in Python
Operator overloading in Python
Python

3 min read


Published in Python in Plain English

·Nov 16, 2020

How to easily Implement Priority Queue in Python

Take advantage of the heapq module to implement a Priority Queue — What is a Priority Queue? A Priority Queue is a type of queue in which every element is associated with priority and it returns the element of highest priority on every pop operation. if priority is same the elements are return on basis of their insertion order. We can easily implement priority queue in Python…

Priority Queue

3 min read

How to easily Implement Priority Queue in Python
How to easily Implement Priority Queue in Python
Priority Queue

3 min read


Published in codeburst

·Nov 6, 2020

map(), filter() and reduce() in JavaScript.

Make your code more functional. Object oriented programming makes code understandable by encapsulating moving parts. Functional programming makes code understandable by minimizing moving parts. — Michael Feathers map, filter and reduce are essentially just some of the most well-known, easy to use, higher-order functions that run provided callback on each…

Maps

6 min read

map(), filter() and reduce() in JavaScript.
map(), filter() and reduce() in JavaScript.
Maps

6 min read


Published in Code Shinobis

·Nov 1, 2020

Function, Method and Constructor call in JavaScript

Understand the different usage of function in JavaScript In other object oriented programming languages Function, Method and Constructor call may be different things but in JavaScript these are just different usage pattern of one programming construct — Function. Function function sayHello(){ return 'Hello World!'; } console.log(sayHello()); // logs: Hello World! let…

Java Script

2 min read

Function, Method and Constructor call in JavaScript
Function, Method and Constructor call in JavaScript
Java Script

2 min read


Published in Code Shinobis

·Oct 30, 2020

Understanding Higher order functions in JavaScript

Improve your code using higher order functions. Higher order functions may sound some complicated technical term but it is nothing but a normal function which take function as arguments or return a function as their result. …

Java Script

2 min read

Understanding Higher order functions in Javascript
Understanding Higher order functions in Javascript
Java Script

2 min read


Oct 29, 2020

Understanding Closures in JavaScript.

Step by step guide to understand closures. Many developers find closures intimidating who come from language which does not support them. But there is nothing to be afraid from closures and the effort you put to understand closures will pay you many times over. To understand the closures you need…

Java Script

3 min read

Understanding Closures in Javascript.
Understanding Closures in Javascript.
Java Script

3 min read

Aditya Dhanraj Tiwari

Aditya Dhanraj Tiwari

71 Followers

Amor fati, Find my small house for thoughts @https://codeshinobis.com

Following
  • Tim Denning

    Tim Denning

  • Ayodeji Awosika

    Ayodeji Awosika

  • Matt Lillywhite

    Matt Lillywhite

  • Darius Foroux

    Darius Foroux

  • Nikita Sharma

    Nikita Sharma

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech