Open in app

Sign In

Write

Sign In

Ilya Nevolin
Ilya Nevolin

38 Followers

Home

About

Feb 15, 2021

Do you even Refactor? 003

Code refactoring is crucial but often overlooked. It can improve the design and performance of existing code. The Python code below takes about 14 seconds to complete. Refactor the getData function to make it run in less than 10 seconds. Post your answer in the comments. import time def getData(): arr = [] for i in range(1000*1000*50): arr.append(i) lo, hi = 0, 0 for x in arr: if x < lo: lo = x if x > hi: hi = x print(lo, hi) return arr

Python

1 min read

Do you even Refactor? 003
Do you even Refactor? 003
Python

1 min read


Feb 13, 2021

Do you even Refactor? 002

Code refactoring is crucial but often overlooked. It can improve the design and performance of existing code. The Python code below takes about 17 seconds to complete. Refactor the getData function to make it run in less than 5 seconds. Post your answer in the comments. import time def getData(): arr = [5] * 1000 * 1000 * 100 for i in range(1, len(arr)): if i % 5 == 0: arr[i] = 0 return arr

JavaScript

1 min read

Do you even Refactor? 002
Do you even Refactor? 002
JavaScript

1 min read


Feb 13, 2021

Do you even Refactor? 001

Code refactoring is crucial but often overlooked. It can improve the design and performance of existing code. The Python code below takes about 12 seconds to execute. Refactor the getData function to make it run in less than 1 second. Post your answer in the comments. import time def getData(): arr = [] for i in range(1000*1000*100): arr.append(5) return arr def timed(func): def run(): Tstart = time.time() func() Tend = time.time() Tdt = round(Tend - Tstart, 2) print(Tdt, 'seconds') return run

Python

1 min read

Do you even Refactor? 001
Do you even Refactor? 001
Python

1 min read


Feb 7, 2021

MultiVariate Anomaly Detection

Discovering anomalies in complex multivariate and multidimensional data can be quite a challenge. Visualizing these anomalies can be even trickier, especially if you want to keep it simple without having to go over thousands of charts to filter out issues from false positives and noise. Using statistical methods we can…

Statistics

2 min read

MultiVariate Anomaly Detection
MultiVariate Anomaly Detection
Statistics

2 min read


Feb 6, 2021

Multipurpose tables for CRM, project management or to-do lists

Most of you know CRM by the many advanced tools out there such as Salesforce, Capterra and Hubspot. But millions of small companies still use Excel/Word/Files/Directories to manage their accounts, invoices and projects. I have met very few individual contractors who use productivity tools/apps, even simple things like notepad apps…

Customer Service

2 min read

Multipurpose tables for CRM, project management or to-do lists
Multipurpose tables for CRM, project management or to-do lists
Customer Service

2 min read


Jan 30, 2021

Mr. Meow meow 😹

Past few weeks I was obsessed with the song Mr Sandman. And been thinking of making a cat edition of this beat. Since I couldn’t find anything decent on YouTube, it was time to have a productive Saturday! Video Demo: https://www.youtube.com/watch?v=y7hKNtucQbg Site Demo: https://nevolin.be/meow/ GitHub: https://github.com/healzer/MeowSynth This code may not…

Animals

1 min read

Mr. Meow meow 😹
Mr. Meow meow 😹
Animals

1 min read


Jan 23, 2021

Road to Genius — Python Series level 4

Welcome to the fourth level where we solve Python Challenges from Codr’s Ranked mode. The goal is to reach the Genius level, so join me at Codr!

Coding

5 min read

Road to Genius — Python Series level 4
Road to Genius — Python Series level 4
Coding

5 min read


Jan 20, 2021

Road to Genius — Python Series level 3

Welcome to the third level where we solve Python Challenges from Codr’s Ranked mode. The goal is to reach the Genius level, so join me at Codr!

Python

3 min read

Road to Genius — Python Series level 3
Road to Genius — Python Series level 3
Python

3 min read


Jan 16, 2021

Applying the Goal Gradient Effect

I was reading an interesting post on Reddit on product psychology, and it reminded me of the Goal Gradient Effect. This effect tells us that: The closer to their goal the more motivated people are. As people get closer to a reward, they speed up to get to their goal…

Web Design

2 min read

Applying the Goal Gradient Effect
Applying the Goal Gradient Effect
Web Design

2 min read


Jan 15, 2021

Road to Genius — Python Series level 2

Welcome to the second level where we solve Python Challenges from Codr’s Ranked mode. The goal is to reach the Genius level, so join me at Codr! We start off with quite hard challenge. Given the function name cross it seems to be the doing a cross product of two…

Python

6 min read

Road to Genius — Python Series level 2
Road to Genius — Python Series level 2
Python

6 min read

Ilya Nevolin

Ilya Nevolin

38 Followers

Become a rockstar programmer and try to reach genius status on codr https://nevolin.be/codr/

Following
  • Domenico Nicoli

    Domenico Nicoli

  • Alex Honchar

    Alex Honchar

  • Zaur Kourazov

    Zaur Kourazov

  • Roozbeh Azy

    Roozbeh Azy

  • Natia Aitan

    Natia Aitan

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech