-
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - Hoare
-
"If debugging is the process of removing software bugs, then programming must be the process of putting them in." - Dijkstra
-
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Gates
-
"Nine people can’t make a baby in a month." - Brooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ferhatelmas; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
public class Tokenizer { | |
private HashMap<String, String> dict; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
####Exercise 1### | |
#Inputs: | |
# sciper: the fixed prefix of the hash function | |
# input: the message to hash | |
#Returns | |
# trunc_40(MD5(sciper||input)) | |
def modified_md5(sciper, input): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
exec("from .{0} import *".format(os.environ.get("NAR_ENVIRONMENT", "dev"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
you did, the {internet|net|web} will be {much more|a lot more} | |
useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
Thanks.| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Results: 5 for tree height, 40 for max branching (seems reasonable for current db) | |
Naive execution 5.043222 | |
Mutable_string execution 38.200823 | |
Char_array execution 7.517328 | |
List execution 5.424522 | |
Stringio execution 7.733451 | |
List_comprehension execution 6.065958 | |
Naive execution 7.540310 |
Resources for learning web design & front-end development:
================================================================================
ONLINE
Design