Better HN
topnewbestaskshowjobs
Log inSign up

windowojji

42 karma · joined Dec 21, 2020 (5y ago) · 26 submissions

Submissions

comment 5y ago · link · parent

For other small JS engines similar to QuickJS see Hermes: https://github.com/facebook/hermes

comment 5y ago · link · parent

Not just that:

> Please don't comment on whether someone read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."

comment 5y ago · link · parent

What makes you think that everyone who wrote the Constitution and relevant documents 250 years ago was infallible?

The founding fathers got plenty of things wrong, knowing they were designing an imperfect system.

For example, first past the post voting. Washington cautioned against the rise of political parties knowing full well that they were an inevitable consequence of the system he was complicit in engendering.

comment 5y ago · link · parent

I'm amazed that DDG/Brave don't understand that typing something immediately after a "!" on a smartphone is annoying and difficult. DDG only supports "!" after the character for a small subset of bangs. Thankfully "g!" is one of them, but it's immensely easier to type on smartphone.

comment 5y ago · link · parent

`hg` literally already has `hg undo` as a command. It's good that `git` can have a similar tool

6.

Christmas Bullet(en.wikipedia.org ↗)

1 points · by windowojji · 5y ago · discuss

comment 5y ago · link · parent

> promote you right out of software development and into management

At good companies, these two jobs run parallel, not one on top of the other. Management should be viewed as a sidegrade, not a promotion.

comment 5y ago · link · parent

Please say which country you're referring to when you say "in my country" on the internet. It allows others to contextualize and verify otherwise useless information.

comment 5y ago · link · parent

See the grandparent, which rightly asserts that reddit search is bad.

comment 5y ago · link · parent

The problem with this is that schools tend to very specifically teach TI calculators while leaving other calculators to the children to self-teach.

This is fine if you're a kid who likes/understands/cares about calculators, but if you're not and you don't like math or find learning a specific UI with no guidance annoying it can be bad. I knew kids of both varieties in HS.

comment 5y ago · link · parent

I don't think parent was saying Robinhood was good at executing trades, just that its UI was more functional than other brokers'.

comment 5y ago · link · parent

It should be 0.

comment 5y ago · link · parent

I appreciate my custom CSS just fine, thanks.

comment 5y ago · link · parent

    [bgcolor="#ff6600"] {
      background: #008 !important;    
    }

    body > center > table > tbody > tr:first-child > td {
      background: #008 !important;
    }

Here's some CSS rules if you want to change it yourself instead of relying on an obviously poor design choice.

comment 5y ago · link · parent

Here's some more Baader Meinhof from me:

Omnibus did an episode on B Traven[0], but also did episodes on Baader Meinhof[1][2]!

[0] https://www.omnibusproject.com/317

[1] https://www.omnibusproject.com/310

[2] https://www.omnibusproject.com/311

comment 5y ago · link · parent

Can you elaborate on this? const and let should be interchangeable from a performance perspective because it's not like the engine needs your input to know whether a binding is reassigned ever (that's a fundamentally easy thing for a compiler to check) so I must conclude that you're seeing performance benefits from using block scoped variables with TDZ that disappear when you use function scoped variables with var?

comment 5y ago · link · parent

For some reason people who cook in the USA believe that food isn't worth eating unless it looks like meat. I'm astonished at the amount of time that I go to eat "vegetarian" food anywhere and it's just the meat dish with fake meat in it.

Meanwhile, I go to India and check for vegetarian food, and suddenly it's like care and thought was actually put into making food that works for vegetarian ingredients instead of just substituting what's in a meat dish.

comment 5y ago · link · parent

Does C have destructors?

comment 5y ago · link · parent

I like that the website you linked still has Google Analytics JS embedded.

comment 5y ago · link · parent

Read the user manual. I'm not trying to be snarky - the user manual is explicitly something that isn't the same as the reference and the user manual is called out as the next step after `vimtutor`.

Start with `:h user-manual` and go from there!

comment 5y ago · link · parent

> it's applied to a small enough input

The whole point of big-O notation is to analyze algorithms as they're applied to input of size `n` larger than some `n_0`. Of course it's not useful for small inputs - it's explicitly about large inputs.

> it's implemented very efficiently

On large inputs, it's very hard see how, say, a linear algorithm with a quadratic algorithm regardless of how "efficiently" it's implemented. Assuming you're talking about something like cache friendliness or good register allocation?

comment 5y ago · link · parent

> Lim [x -> inf] O(f(x))/O(g(x))

I understand both limits and I've taught asymptotic analysis in the past. O(f(x)) and O(g(x)) are sets. How does one divide two sets? This explanation is ill formed.

comment 5y ago · link · parent

See also

Vim koans https://sanctum.geek.nz/arabesque/vim-koans/

comment 5y ago · link · parent

I worked on a game boy emulator a while ago to learn C. I did pretty well and was able to run most games I came across just fine, but never got audio working...I just couldn't understand any of the stuff online about how it worked, and was unable to find any good resources that walked through how audio emulation in general worked, much less game boy's version.

comment 5y ago · link · parent

Project Euler is very specifically a website that requires both math knowledge and programming ability. It's designed to expose people to difficult math concepts, while advent of code is mostly explicitly for programmers.

comment 5y ago · link · parent

I'd hardly say it relies _heavily_ on obscure math tricks. Typically there's one or two days which require, perhaps, an undergraduate level of math which people would likely get in an intro class during a CS degree.

Most of the problems are around searching a space for some solution or just simulating some state changes. Recent problems involved implementing a higher dimensional version of Conway's game of life[0], a simple arithmetic expression evaluator [1], or a simulator for a simple number game[2] e.g.

The most recent one[3] involves solving a jigsaw puzzle by using a simple backtracking search (or any number of other methods). It's a bit complex, but not reliant on a particular math trick.

The vast majority of the problems in advent of code shouldn't require any math tricks, though they're often complex and involved, particularly as the month goes on.

[0] https://adventofcode.com/2020/day/17

[1] https://adventofcode.com/2020/day/18

[2] https://adventofcode.com/2020/day/15

[3] https://adventofcode.com/2020/day/20