Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
glxxyz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
glxxyz
6y ago
Enterprize FizzBuzz has been one of my favourite things for a while. It perfectly captures the attitude where I used to work, where people felt that by adding later upon layer of obfuscation they were doing engineering.
212.
▲
by
glxxyz
6y ago
Headlines are usually written by sub-editors, not the writer of the article. It's the headline writer's job to get you to click, they don't really care whether or not the headline is accurate so long as you clicked on the art
213.
▲
by
glxxyz
6y ago
The C64's disk and keyboard would have made life a bit less painful than the Speccy, but neither had decent video output, so I doubt much real development happened on them. There was some though, e.g. the true bedroom coders getting st
214.
▲
by
glxxyz
6y ago
Touché! My parents aspired to be in the BBC Micro class so I ended up with a BBC B but I lacked the cash to buy me anything to go with it so I use my Dad's Hifi tape deck to copy and load games. Back on topic, few data points: Matthew
215.
▲
by
glxxyz
6y ago
Yes, writing them on something decent like a BBC Micro :p <flamewar>
216.
▲
by
glxxyz
6y ago
Every pointer into an array could pass the triple {current, start, len} , or even maybe the quadruple {current, start, len, allocated} , which is the kind of minimal efficiency C programmers are looking for.
217.
▲
by
glxxyz
6y ago
Because C is a thin layer above assembly language. A pointer fits in one register, { ptr, count } would require two registers. Also if the count is being passed around, it should surely be checked when doing ptr + i , which slows thing
218.
▲
by
glxxyz
7y ago
An even better example is with the coroutine FSM by the same author here https://github.com/arpitbbhayani/fsm/blob/master/divisibilit... . It is cleaned up a lot by using functions instead of coroutines.
219.
▲
by
glxxyz
7y ago
Thanks for pointing that out, I think I fixed it. Not well tested ;) I'm not sure if the way that you're using yield within the if and while statements works correctly. I like the idea of replacing state transitions with metho
220.
▲
by
glxxyz
7y ago
Also interesting was the actual complaint at https://youtu.be/YPysTEW0YZU?t=608 To Appeal Commitie to Fide during the blitz game with Carlsen when I had 2 or 4 second my opponnet speak Loudly in h
221.
▲
by
glxxyz
7y ago
They don't really banter in 'banter blitz', they explain the position and their strategy, which is much more interesting.
222.
▲
by
glxxyz
7y ago
Yes the regex-parsing FSM class in the article looks cleaner with a single coroutine: class FSM: def __init__(self): self.match = False self.current_state = self.create_state_machine() next(
223.
▲
by
glxxyz
8y ago
I live in a city with Uber & Lyft, and avoid taxis wherever possible for exactly the reasons you gave. Every time I take a taxi I regret it and swear it'll be the last time. Another problem with cabs is that they are not incentiviz