Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joesb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
joesb
9y ago
it depends on how you want to structure your code and give sections to code. "if (isConnected) {} else {}" emphasizes to me that there are two branches of code which depends on `isConnected` state. It may have only one thing to do
122.
▲
by
joesb
9y ago
In that case, don't write any code. Don't use function. Don't use React. Don't use lodash. Don't use third party library. People who only start coding for two weeks can't understand any code. People who start h
123.
▲
by
joesb
9y ago
Have to account for stability of the job as well. How many people can work in sex markets in their 40s.
124.
▲
by
joesb
9y ago
trying to access fields like `info.operation.selectionSet.selections[0].selectionSet.selections` always feel wrong to me. I wish graphql library part comes with some utility function for these.
125.
▲
by
joesb
9y ago
I think the idea is that you shouldn't want to have GraphQL server code containing business logic code in it. GraphQL should just be proxy layer between actual client and the actual, multiple, APIs.
126.
▲
by
joesb
9y ago
They can use 'donotreply@eastlink.com' but they cannot stop other customer who receive email from 'noreply@eastlink.com' to not believe that the email is official Eastlink email.
127.
▲
by
joesb
9y ago
Correct. Academic's job is to study, it doesn't matter what the outcome is, they have grants either way.
128.
▲
by
joesb
9y ago
Similarly, the hard part of Mathematics is the math itself. It's not because we don't have WYSIWYG math equation editor, that people can't understand advance calculus.
129.
▲
by
joesb
9y ago
Programmers doesn't use text-based programming language because it gives them elite feeling. They use it because it is the currently best tool possible. - It's concise, clear and unambiguous. - It's easily extensible. `def fo
130.
▲
by
joesb
9y ago
First, you have to define "made". Does fire make ash? What was the fire thinking when it was making ash? Also, why define the "eternal one" as God. That eternal one may be so simple, and dumb, like that DNA replicating m
131.
▲
by
joesb
9y ago
So if I do "f = g(f); y = f(x)" then it's suddenly not decorator?
132.
▲
by
joesb
9y ago
It's not only "writing" though. It's "writing" AND "reading". Can you read the correct line in in CSV faster? Can you find the row with specific critiria like SQLite faster? Can you handle concurren
133.
▲
by
joesb
9y ago
So you never think that using database to store file will be slower than using file to store file? "Duh, I always knew that" is easy to say when you don't have to provide proof. Also, are you sure that CSV will be faster as w
134.
▲
by
joesb
9y ago
Wow. I've just visited Voat. You were not kidding about their userbase.
135.
▲
by
joesb
10y ago
It's visual voicemail equivalent of automated phone line.
136.
▲
by
joesb
10y ago
Don't forget survival bias.
137.
▲
by
joesb
10y ago
Your intuition is probably based on millions of events happened to you and your ancestor (parts that are developed through evolution and social construct).
138.
▲
by
joesb
10y ago
The author of Notepad++ even said it, "It doesn't prevent your original notepad++.exe from being replaced by modified notepad++.exe while the CIA is controlling your PC." If CIA is already on your compromised machine and they
139.
▲
by
joesb
10y ago
On the other hand, if you really want to ensure that every construction detail are up to date and followed, automation and 3D printing is the way to go.
140.
▲
by
joesb
10y ago
> such as a certain user can only see public fields of other users In Graphql, the solution is usually to return `null` for restricted field. This is arguably better security than raising unauthorized exception, since attacker can't
141.
▲
by
joesb
10y ago
I know it's an example app, but your code can be rearranged to not listening to scroll even at all. Or even a little throttle function would do just fine. Bad program is possible in all framework. One can write a slow React app as well
142.
▲
by
joesb
10y ago
You should be able to share data in Erlang's model, because the data are immutable. You just can't modified the shared data.
143.
▲
by
joesb
10y ago
I like it when I my messaging app show notification when I do a presentation. Can't wait for a sexting notification to show when I share my Phone screen to TV.
144.
▲
by
joesb
10y ago
Whose phone would it be when you are playing at the living room with all your friends? Wanna put the phone on airplane mode so noone can interrupt when you are playing? Or want to have the owner of the phone take the phone away for calls wh
145.
▲
by
joesb
10y ago
"Solve problems. Make languages." That basically sums up my problem learning Racket. "What is Racket the language? What language am I supposed to learn? What language am I supposed to use in production code? Will one language
146.
▲
by
joesb
10y ago
A: This fortuneteller I knew is so amazing, he predicted that my dad would die and my dad is dead now! B: When did he predict that? A: May be like 30 years ago, but the point is "in the end" my dad died. Who would have thought tha
147.
▲
by
joesb
10y ago
Or may be you give your brain too much credits.
148.
▲
by
joesb
10y ago
Unless you are using open source phone with your own built chip, Apple and Google may be tracking you without you knowing right now. How do you know your neighbor are not actually government agency spying on you?
149.
▲
by
joesb
10y ago
> That, of course, doesn't occur in the five minutes after I get out of the car. The logic is that it is likely that you will likely use Uber to go back as well. And they can't track your actual pickup spot unless they keep th
150.
▲
by
joesb
10y ago
iOS does that? You can set location permission for App with "Never/While Using/Always". You can disable Background App refresh for individual App. iOS App didn't even have ability to run in background in previous ve
More ›