Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Kwantuum
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
61.
▲
by
Kwantuum
6y ago
Well, first word I had actually exists: cyanoplast.
62.
▲
by
Kwantuum
6y ago
> that textarea is so perfect! There are no textarea on that page. The code sections are using a <pre>
63.
▲
by
Kwantuum
6y ago
So i'm a new dev and we have a system like this at work, I had kind of assumed it was standard in the industry but clearly, considering the replies that is not the case. You can check it out here: http://runbot.odoo.com (it
64.
▲
by
Kwantuum
6y ago
There are only wrong ways to go about it, and you will only discover them by doing it.
65.
▲
by
Kwantuum
6y ago
From the article: > So I’m going to try to bootstrap my software engineering longbeard wisdom in the following manner: > 1) Write out my inane thoughts on some software engineering topics. > 2) Share out my thoughts to p
66.
▲
by
Kwantuum
6y ago
I'm failing to see how async/await has more promises than your implementation.
67.
▲
by
Kwantuum
6y ago
ES6 came out 5 years ago
68.
▲
by
Kwantuum
6y ago
Javascript code doesn't just stop executing for no reason, if the callback needs to stop executing, it should reject the promise or throw an error. Or resolve with an error value. That's like saying "in sync programming, if y
69.
▲
by
Kwantuum
7y ago
there is nospectre_v1 and nospectre_v2 written in there, unless you've been living under a rock you should get a pretty good idea that this is not a very safe thing to do.
70.
▲
by
Kwantuum
7y ago
Considering it takes all of 15 seconds to setup (5 minutes including reading), it's really not a matter of if it's worth your time, but if it's worth the risk, since it disables mitigations for hardware vulnerabilities.
71.
▲
by
Kwantuum
7y ago
Here's a threat model. My university used to give students /~s123456 folders. On the same domain as the main student platform, and as the main university site. I'm not sure if they still do this but it was less than 3 years a
72.
▲
by
Kwantuum
7y ago
Also likely illegal in most of the world.
73.
▲
by
Kwantuum
7y ago
You can add eslint to the things that allow scripts as config files, just like webpack. I found this very useful because I just started a full-stack javascript project, and I need most of the linting config to be the same (tab-width, syntax
74.
▲
by
Kwantuum
7y ago
Hey, never used python's http server, that's just as nice and easy as the two solutions I proposed, thanks for the tip!
75.
▲
by
Kwantuum
7y ago
Honestly, while axios is nice to have on the server side, the websocket API in the browser is very simple to use. Which IMO is a consistent theme with modern browser APIs.
76.
▲
by
Kwantuum
7y ago
Alternatively, you can use a simple web-server without needing all of webpack: using npx (included with npm): npx serve . using the php CLI: php -S localhost:5000 -t . You weren't hitting the limits of vanilla JS, you
77.
▲
by
Kwantuum
7y ago
Sorry to say, your online presence is dreadfully low for a web developer.
78.
▲
by
Kwantuum
7y ago
> prevents passcodes with ascending or descending numbers adjacent to each other That's just silly. Assuming it also disallows duplicates next to one another, that means that there is only 7 valid digits for position 2 through 4, ak
79.
▲
by
Kwantuum
7y ago
Reminds me of this old screencast about writing a compiler in ruby: https://www.destroyallsoftware.com/screencasts/catalog/a-com...
80.
▲
by
Kwantuum
7y ago
Except in K all the idioms are laid flat. As pointed out in the article, the K code is the equivalent of range(100).reduce(operator.add), it encapsulates the entire meaning, there is no need for an intermediate function definition because t
81.
▲
by
Kwantuum
7y ago
That would qualify as a filter...
82.
▲
by
Kwantuum
7y ago
"backed by git" doesn't mean the user has to interact with git at all. The user makes a change in the interface, the CMS creates a commit and pushes to the repo.
83.
▲
by
Kwantuum
7y ago
If the site is small enough, you could use something like this: https://github.com/weixsong/elasticlunr.js Basically compile the text content of all your files into a JSON file, and search over that in JS. If the site
84.
▲
by
Kwantuum
7y ago
Or formalize phrases. The Google review guide [1] defines some phrases and as such there is no question about the tone of it. Prefix comments on non-essential parts of the commit with "Nit:", approve the changes with "LGTM&qu
85.
▲
by
Kwantuum
7y ago
As the first reply in this chain remarks: this is not available without Javascript.
86.
▲
by
Kwantuum
7y ago
> put it in a pinned taskbar position with a new icon and a notification bubble [...] less annoying I have to disagree here. Messing with people's pinned taskbar icons is much more intrusive than a suggestion (which anyone sane has
87.
▲
by
Kwantuum
7y ago
Depends on what you mean by decent complexity: https://lk-games.itch.io/citizen-of-nowhere This game is made using love2d
88.
▲
by
Kwantuum
7y ago
> That script tag alone isn't going to do much without a backend. When you're starting out, you're not going to do much in the first place > the language itself has at least as much WTF as php does Oh absolutely! My arg
89.
▲
by
Kwantuum
7y ago
65% might be the sweet spot, I have the tada68[1] because I wanted a smaller keyboard but really didn't want to lose my arrow keys and I'm very happy with it! [1] https://cdn.shopify.com/s/files/1/02
90.
▲
by
Kwantuum
7y ago
> for all other languages i know of, there is quite a process to get started It's funny that you included javascript in the list when you can literally just type javascript code in an html <script> tag and open it in the brows
More ›