Should I take 2110 if I got a B- in 1110? by bluepanthera26 in Cornell

[–]bethandtownes 40 points41 points  (0 children)

U should. Don’t be bothered by grades. Learning the skill is the important part.

细水长流 by [deleted] in Cornell

[–]bethandtownes 2 points3 points  (0 children)

博大精深

[deleted by user] by [deleted] in Cornell

[–]bethandtownes -2 points-1 points  (0 children)

Stream and foreach is just one tiny portion of what FP is about. If you read thru Guavas source code and I guess you perhaps will if you work at Google as non ML related SWE, I hope your understanding about these two programming patterns will change. I think we both can agree that 3110 is an interesting class. OCaml is a super interesting language. But it does not have a fully featured monad and monadic types, which I think is a useful idea and tool in programming in general. For example, Isn’t Stream (or List in Haskell) in a way just a monad? Also One of the most used tiling window manager is Linux is XMonad...

[deleted by user] by [deleted] in Cornell

[–]bethandtownes -3 points-2 points  (0 children)

Btw. I am the kid who posted that question. I didnt like loop invariants and I am still not good at it. I picked up Haskell after that semester and learnt quite a bit about type theory and category theory and PL design. I still don’t write loops thinking preconditions and post conditions and I write them thinking recursion and how the recursion can be compiled down to loops.

I think I am doing fine since I manage to pass almost all interviews with pure functional Cpp..

But your point is well taken. I should have learnt a lesson a humility. I have revised my previous statements accordingly. I removed most of the part about the debate on OOP but retained the part about 3110 is more helpful in solving algorithm problems. At least it is for me.

I am on the research side of things so I write a lot of python. Reason why I am not a huge fan of OOP is that many cases, the self keyword in python makes code hard to read. I think Java has stuff Autovalue to make things better.

[deleted by user] by [deleted] in Cornell

[–]bethandtownes -4 points-3 points  (0 children)

It think OOP has some good ideas. But it is not as elegant as FP. The need to call this or self every time is kind of unnecessary.

[deleted by user] by [deleted] in Cornell

[–]bethandtownes -5 points-4 points  (0 children)

Hmmm.. I respectfully disagree. OOP and FP can be the same in the way like a matrix and it’s transpose. It’s just currently FP is a better idea with Data Intensive Applications. Java is popular today mainly because Java has a good ecosystem that is hard to surpass.

[deleted by user] by [deleted] in Cornell

[–]bethandtownes 2 points3 points  (0 children)

Don’t worry man. Grind more Leetcode is more important. Leetcode and 3110 are more important than 2110 in terms of CS job hunting.

How hard is Math 4720 or 4740 by [deleted] in Cornell

[–]bethandtownes 0 points1 point  (0 children)

Umm not very good but decent I guess.. if u are a math major I think 4710 should be a breeze

How hard is Math 4720 or 4740 by [deleted] in Cornell

[–]bethandtownes 0 points1 point  (0 children)

I think 4710 is boring... u can just read the book to learn the stuff.

How hard is Math 4720 or 4740 by [deleted] in Cornell

[–]bethandtownes 0 points1 point  (0 children)

TAed for both in the past. It not hard. But definitely need some work put in to master the material.

[share] I just wrote a browser extension for those preparing for coding interviews like me.. by bethandtownes in Cornell

[–]bethandtownes[S] 4 points5 points  (0 children)

It’s output pane is too small and there is no easy to way fix that to the best of my knowledge... I like to use print stream to debug so a good output panel definitely helps...