Skip to content

Instantly share code, notes, and snippets.

Reviewing bad code

Alex K zexa

Reviewing bad code
  • Some Fintech Company
  • zexa@rizon
View GitHub Profile
zexa / shipping_date_estimation.php
Last active Jul 19, 2020
View shipping_date_estimation.php
class ShippingMethod {
* @var int
private $mondayThursday;
zexa /
Last active Aug 17, 2017
How would you improve this "Biggest prime factor" function?
#!/usr/bin/env python3
limit=13195 # works fine as long as u dont have to deal with huge numbers
def fb_isPrime(num):
checkTill = 1
if num<=1:
return False;
for i in range(num-1,checkTill,-1):