Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hjntmp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
hjntmp
6y ago
In javascript: const stf = [ {name: "x", pets: [{type: "cat", name: "kitty"}, {type: "cat", name: "kitty2"}]}, {name: "y", pets: [{type: &quo
2.
▲
by
hjntmp
6y ago
It was a rough example but the idea is thinking in terms of data in and data out and how can it be done. Here the train of thought first would be: do I have the right data form for the thing I am doing? Here we have: {company: {staff: [{...
3.
▲
by
hjntmp
6y ago
Because it is easier to reason about data transformations. Here when I see loops and conditionals it is confusing because anything could be happening. company.staff.filter(notCats).forEach(printMessage) has more information of what is going
4.
▲
by
hjntmp
6y ago
What about letters?
5.
▲
by
hjntmp
6y ago
Also remember here the promise is that the data you are talking about wont suddenly change underneath not that the reference 'is up to date". It is not a solution for change in time it is a solution for taking change in time out o
6.
▲
by
hjntmp
6y ago
Think of it as versioning for your data. So instead of referring to some data structure by its general concept with immutable data structures we are a lot more specific with respect to the identity represented by the name, here the name rep
7.
▲
by
hjntmp
6y ago
Immutability is not the fact that something can not change in this case. It has more to do with the identity of a value. Every time you change anything inside the data structure you get a new reference, that is it!
8.
▲
by
hjntmp
6y ago
We should rename object oriented programing to bureaucrat oriented programming. I always think that the reasoning that led to develop the aberration of OO is the same that creates bureaucratic nonsense.The want of making people replaceable
9.
▲
by
hjntmp
6y ago
I think that a lot of people here are forgetting that a project is whatever you make a project to be. It does not need to be operated like a bureaucratic profit seeking corporation. The problem is that the corporate world leaks their madnes
10.
▲
by
hjntmp
6y ago
Love, care and a nurturing social structure wihle developing as a child is what keeps a child healthy. What I meant was that self worth is tied with validation from authority. A sense of inadequacy is always fomented and all the other nonse
11.
▲
by
hjntmp
6y ago
In some ways it has to do with the fact that people are educated to have a need for validation from an authority and several other ways of thinking that are completely counterproductive.
12.
▲
by
hjntmp
6y ago
I think it has to do with the idea of work. Some people associate work with discomfort and feel guilty if they have fun so they transform their projects on uncomfortable work like things.
13.
▲
by
hjntmp
6y ago
You do that to yourself and of course the system around us is not made to acomodate such freedoms.
14.
▲
by
hjntmp
6y ago
The beauty of it is that once you craate something and you share it you have already contributed something. I think that what you feel has more to do with your educaction. Like I said it is all in your head and you do that to yourself.
15.
▲
by
hjntmp
6y ago
His point is that if you end up like that it's because you don't recognize freedom when you see it. Its like that movie when the monkey does not go out of thee cage even if opened. Because its your project and you can do whatever