148 karma · joined Nov 12, 2018 (8y ago) · 107 submissions
comment 3y ago · link · parent
Additionally: I wonder whether instructions like "think carefully" or "You are an software engineering interviewee at Google." change anything. It feels like a prime candidate for magic thinking, but I do not understand LLMs well enough, such prompts could well improve the answer somehow.
comment 3y ago · link · parent
There seems to be a tiny handful of people that can use category theory as a resource to craft something relevant to software (the stereotypical example in my mind being Edward Kmett of Haskell Fame), but I am certainly not one of them, and that is not something that would change with learning more Category Theory (whatever that might mean: Proving some theorems, discovering more categories, ...)
To the author: I am looking forward to a retrospective at a later time. I wish you a good journey, happy diagram-chasing!
4.
Ask HN: Tipps for establishing feedback culture (task allocation and growth)
3 points · by schwurb · 4y ago · 2 comments
comment 4y ago · link · parent
comment 4y ago · link · parent
A monad could be described as "sequencable/chainable", but that metaphor is quickly breaking down as there as so many ways in which monads show up.
comment 4y ago · link · parent
Here it goes:
1. One understood monads when one is able to write a monadic interface that behaves like any intermediate haskell would expect it to behave. This is not a hard task.
2. Screw the abstract stuff. While fascinating, really few people understand concepts going from abstract to concrete rather than the other way around. And don't get me wrong, I don't think these kind of people are better theorists or problem solvers, they just have to seem a special relationship with symbols. If you are one of those people, you would likely know - in any case, I would encourage to write 3-5 examples of monads in Haskell or Java or JavaScript or whatever language suits you and go from there.
comment 4y ago · link · parent
comment 4y ago · link · parent
What a monad offers is: "1: Do A. After A is done, you can inspect the result of A and do either B or C. 2: You can chain monads of the same type together.". Sounds easy? It is because it is!
The big fuzz about Monads is mainly because prior to monads, doing IO was akward in Haskell. Monads offered a convenient way to do IO (and other interactions with the outside worlds, such as databases, networking, ...) and turn up basically everywhere. There is nothing stopping one from introducing a monadic interface in OO-World, and it is partly done (i.e. "orElse" or "then") in some domains. However, bigger gain is to be expected in Haskell, since the type checking system forces the developer to deal with monads in a disciplined way.
-----
I admit being guilty of having only the title prior to writing the comment. But even with only having read just the word 'monad' in the title together with 'lazy', I knew the author would describe 1) some way of lazily evaluating one thing after another and 2) some way of combining multiple lazily evaluated things with each other. After skimming, this is what the article is about. As always, the interesting stuff is not about the concept of a monad (which is pretty easy), but about how to model/code 1) and 2) in a specific context (in this instance, being lazy evaluation).
comment 4y ago · link · parent
With coding, you are confined to formal syntax and semantics, but if the code (even partially) works, you can be more confident in your design.
With paper, you can plan as high-level as you want, with the danger of being too highlevel and overlooking things.
comment 4y ago · link · parent
Okay, so our goal is to write a solid program. Let's see...
> Not so in Haskell, you would need to understand also the extensions of the language which are popular
You can simply go with vanilla Haskell2010. Dealing with strings will be a bit cumbersome, dealing with records will be a bit cumbersome, but you are still at 50% the boilerplate of an average java codebase.
> and understand the best practices (what to use to compose I/O and in which context for example)
No! This is what I was aiming at: You don't have to understand these best practises to have a solid program. Throw everything into one massive do-Block and the resulting program will be at least as solid as the solid python program.
> That and understand how to work with complex types in libraries
I concur that Python documentation is heaps better than Haskell documentation, although we are slowly improving. That said, I think the work is not harder: Learning how to speak with a postgres database or do numerical tasks requires times, period. What is different to Python is that the time spent chasing runtime errors is spent chasing compile errors in Haskell.
Another user linked this comparison of numpy vs. the Haskell equivalent, hmatric. It does not look more complicated in my opinion: https://pechersky.github.io/haskell-numpy-docs/
comment 4y ago · link · parent
If you can write python, you can write Haskell. Don't believe me?
1. Write your program completely in the IO Monad, in a huge do-block
2. Factor out as much pure functionality as possible (= Have as little code in your big IO-programm as possible.)
Start at 1. and iterate 2. as many times as you please. It will already be a program that prevents many traps that would bite you in other langauges. Haskell knows exactly whether you are looping over an array of strings or an array of chars.
(Why all the buzz about pureness, effects and so on? Well, with Haskell you can design with a high granularity and reliability what sideeffect is caused where. But you are not forced to use that feature.)
Other tipps:
- Build small projects.
- Read as few tutorials on monads as possible. You might even get by with 0.
- The trifecta of Haskell typeclasses are the functor, applicative, monad. I would advise you to not try to understand their mathematical origins, but just look up how the are used. They will crop up naturally when you build even small projects and then they will make sense.
comment 5y ago · link · parent
Concluding: It is certainly refreshing how efficient groups can be once a crisis forces all attention towards one single goal. (Perhaps unfortuntately) that is not a reliable (crisises are usually not predictable) nor sustainable (other goals tend to get neglected in crisis mode).
comment 6y ago · link · parent
comment 6y ago · link · parent
I would be Buddhist if I would not be christian, but I am glad I can be christian. If what I believe is true, then boy are we lucky!
comment 7y ago · link · parent
This is because it is the only effective way to change anything. The victim has to recognize their situation, develop the will to escape / change it, and then do concrete steps. Of course, not alone. You are not guilty of anything, but it is still your responsability to change your life if you want it. It is hard and shitty, but nobody will change because you feel shitty.
It is the same as with every other difficult situation. I could stagnate my whole life, complaining about nobody helped me when I first voiced suicidal thoughts at age 10. I was fucking hard and many people failed me, including me. I did not have a childhood. I see every right to complain and blame others. But who will this help? No one. I had to change something. Because my environment is the last thing that will change.
> I want to raise awareness and stop this from happening to anyone else.
I will be blunt: This is not an effective way of achieving this goal. Much more effective would be to 1) get help (helps you to tackle those problems in your environment) and 2) join an organization that does deal with bullying (they likely know how to reach more people more effectively).
comment 7y ago · link · parent
General info about Victims, Bullies, Victim-Bullies
https://www.apa.org/news/press/releases/2010/07/bully-victim
More on point: In-depth about who is more likely to become a victim
http://www.euro.who.int/__data/assets/pdf_file/0008/98783/E9...
comment 7y ago · link · parent
1) I heavily suggest going into counceling. The change of behaviour and self concept needed might be too much to manage on your own.
2) It is a unfortunate, but well-researched phenomenon that perpetuators go for a certain type of personality that expresses itself by way of talking an non-verbal communication. There is also such a thing as bad, bad luck, but social dynamics also play a role. This is an area where you can likely improve aswell: Recognizing your feelings, others feeling and actions, and what is okay and not okay for you,
Gotta go now, all the best tho! Your problems seem treatable to me, but it might take time. You can do this.