« first day (1248 days earlier)      last day (4039 days later) » 

user15026
00:12
@worldengineer 6ft of tall even,
Aks
Aks
03:18
Hey guys, about system design questions in interviews, I've decided to structure my answer as follows and I'd appreciate some feedback on how you would respond to it
1) Go over requirements and write down broad categories of tasks
For e.g, if you're designing Twitter, you'd need
1) Display Tweets
2) Display a timeline
3) Build a social graph
4) Build a search index

2) Give an approximate server architecture that includes web servers, caching servers and db servers
3) Describe the data model you'd come up with for the db(users, tweets etc)
4) Describe the cache, what it would store, eviction policy etc.
5) Scalability and security, describe master/slave dbs, shards, etc.
 
8 hours later…
11:40
 
7 hours later…
user55340
18:22
@JimmyHoffa dueling scala implementations of fizzbuzz... which one has a better FP feel to it?
user55340
3
A: First Scala FizzBuzz implementation

JschiiOr if you prefer match/case to if/else: (1 until 100).map(i => (i % 3, i % 5) match { case (0, 0) => "FizzBuzz" case (0, _) => "Fizz" case (_, 0) => "Buzz" case _ => i }).foreach(println) Update: So what we are doing here is taking list of numbers and mapping them first to tuples wher...

user55340
11
A: First Scala FizzBuzz implementation

BeyamorFizzBuzz is kind of a difficult example because its simplicity means it looks more or less the same in every language. That said, we can go out of our way to emphasize the functional aspect of Scala. First, we can wrap the core logic of FizzBuzz up in its own function: def fizzBuzz(x:Int) = { ...

18:45
@MichaelT Thus the problem with learning FP from a multiparadigm language: They're both missing FP. For one thing FP FizzBuzz should be a fold
The case is better than the if/elseif but it shouldn't just be mapping to strings then foreaching a void, it should be folding 1 until 100 with (\f x -> \y -> f y >> y x) where f is seeded with id and then you hand the fold result println
 
1 hour later…
user20683
19:57
@JimmyHoffa @MichaelT HTM in Java
20:37
homies do you guys have any trending algorithms?
@Shahar Yeah, my algorithm says it's a trend that at 13:37 every day someone will ask a question like that. There's one data point, but a trend's a trend.
then your algorithm sucks because it was actually 15:37 when I asked that
no but really I need one
user20683
@Shahar MapReduce
20:53
something simple
user20683
@Shahar Map
@Shahar nothing simpler than fold, it's just a catamorphism
not like he was suggesting a hylomorphism or zygohisticprepromorphism
All of these pages have too much reading
I need something really easy
what is going on there
user20683
looks like Python and statistics to me
Yeah I mean
what is that formula?
user15026
21:04
@Shahar code, and math. Lots of math.
user20683
math I'd assume
user20683
why not ask in Math or Stats chat?
user20683
we're programmers, we only pretend to do math
I don't know how to get there o_O
user15026
@WorldEngineer I do math with cute monsters (thank you, DragonBox app)
user15026
21:05
@Shahar similar to how you got here, but through the math or stats site?
user15026
@Shahar not a mathie, but under that, it tells you what the bits are. So...it kinda tells you
it's statistics it's not real math
user20683
@Shahar it's totally real math
user15026
@Shahar pretty sure it is math. Looks like math, smells like math, is math.
user20683
it has numbers in it
user20683
21:08
and greek symbols and everything
the Greek language has greek symbols and numbers and everything
user20683
and I don't know it really either
γαμώ
user15026
@Shahar how can stats not be real math? I took it as a MATH course in high school...
I took it as a math course in high school as well
user15026
21:10
Therefore, math.
Although AP Comp Sci was a math course in high school too
user15026
Unless the entire school system is broken.
user15026
@Shahar Because CS has math in.
user15026
Either way, I suspect you are looking in the wrongest of wrong places for help with this.
so uh
okay

« first day (1248 days earlier)      last day (4039 days later) »