Open in app

Sign In

Write

Sign In

Aditya Dhanraj Tiwari
Aditya Dhanraj Tiwari

72 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


May 25

JMeter vs Locust

JMeter and Locust both are used as performance testing tools.JMeter is released 25 years ago, it is written in pure Java and is more established while Locust is written in Python and is an emerging tool Let’s compare JMeter and Locust in various aspects: Scripting and Test Creation: In JMeter, primarily GUI mode is…

Jmeter Vs Locust

3 min read

JMeter vs Locust
JMeter vs Locust
Jmeter Vs Locust

3 min read


Feb 25

Cognitive Dissonance: Understanding the Discomfort of Conflicting Beliefs

As human beings, we all hold certain beliefs, values, and attitudes about the world around us. However, sometimes we encounter information or situations that conflict with these beliefs, causing a sense of discomfort and unease. This feeling of discomfort is what psychologists call cognitive dissonance. Cognitive dissonance occurs when there…

Mindtraps

2 min read

Cognitive Dissonance: Understanding the Discomfort of Conflicting Beliefs
Cognitive Dissonance: Understanding the Discomfort of Conflicting Beliefs
Mindtraps

2 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…

JavaScript

2 min read

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

2 min read

Aditya Dhanraj Tiwari

Aditya Dhanraj Tiwari

72 Followers

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

Following
  • Tim Denning

    Tim Denning

  • Ayodeji Awosika

    Ayodeji Awosika

  • Darius Foroux

    Darius Foroux

  • Matt Lillywhite

    Matt Lillywhite

  • More To That

    More To That

See all (38)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams