Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nnq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
181.
▲
by
nnq
7y ago
Order of words is not that relevant, in English I can say instead of the above: "take each line of code [map ... xs] and replace it with [\x -> ...] a number of spaces equal to half the maximum line width [replicate (div (n - length
182.
▲
by
nnq
7y ago
uhm, yeah, the sim card was in a mobile "pocket router" and shared to phone(s) + tablet + laptop, and I'm sometimes watching multiple streaming videos at the same time as a way of mixing music (Bach + heavy metal instrumental
183.
▲
by
nnq
7y ago
You can write code without ever using `where ...` :) It's just how mathematicians are used to express their version of "top down problem solving". It's also similar to what you do when you define a function/method
184.
▲
by
nnq
7y ago
What is illegible about that?! It just says, in code: "replace each line of text with itself prefixed by a number of spaces equal with half of the difference between its length and the length of the longest line in the text". I
185.
▲
by
nnq
7y ago
with 3gb of data - maybe I'm a weird consumer, but I don't get it what's with this insanely low data caps... while in France I had a 100gb / month 4G data plan for ~20EUR, and couple times I even exceeded those 100 gb!
186.
▲
by
nnq
7y ago
Go - OK, it has one implementation (open-source), but it's backed by one big player (Google) and used by many others... also the simplicity at core design decisions sound like the kind of choices that would make an alternative compiler
187.
▲
by
nnq
7y ago
Is there an open source version of the language? ...bc I'm not touching a programming language with a ten foot pole if it hasn't got at least two implementations, and at least one open source :| Sure, keep the IDEs and deployles
188.
▲
by
nnq
7y ago
> IMO the problem is a hand-held smartphone is an awkward AR platform ...doooh! ARKit might be good, but it needs to be coupled with a google-glass-successor. Imo GG was the "nokia 900" of its era, proof that it can be done and
189.
▲
by
nnq
7y ago
AR seems like one of those things that needs to be executed "perfectly" to work. VR can benefit a bit from suspension of disbelief etc. ...but with AR the real world is harsh :) But I bet we'll have "the iPhone" of
190.
▲
by
nnq
7y ago
One can enable the other: space programs keep top engineers in the country, and this has big network effects that push up the entire economy... So you end up with more money to feed starving people from! (...not that you'd do that wi
191.
▲
by
nnq
7y ago
"Let's do Tinder... but with likes, shares & comments from your entire (extended) family, and your boss!"
192.
▲
by
nnq
7y ago
...of course they don't: I was referring to having a sane standardized way of having each app work with two dbs, one that it owns and includes some models of no interest to other apps, a different one that it shares with other apps and
193.
▲
by
nnq
7y ago
unit tests, yeah, but if you try to get "the most bang for the buck" in like "test a lot with zero/little effort" you'll end up with a layer of "integration tests": that (1) set stuff in db, (2) do st
194.
▲
by
nnq
7y ago
...well, call it an OWM, Object-to-Whatever-Mapper, but that's what you'd one anyway, document-oriented DB's don't map directly to your business objects either :) I think tackling the most general problem would lead to a
195.
▲
by
nnq
7y ago
thanks for the reference, especially to the Doordash's original article "Tips for Building High-Quality Django Apps at Scale" that was related to... I really like their thinking and think they are solving for the same problem
196.
▲
by
nnq
7y ago
you miss the other point of Docker: cross-platform dev (and only occasionally cross-platform deployment)... I can run same set of docker containers that make up an app, including scaling multiple instances of each container, on (1) my m
197.
▲
by
nnq
7y ago
> prefer it to writing SQL queries manually Everybody prefers anything that does a barely decent job at preventing you from writing SQL manually :) If you set the bar that low then sure, you'll have an "excellent opinion&qu
198.
▲
by
nnq
7y ago
Hmm... can one test use in-mem db mocking with django.contrib.postgres fields? I'll definitely look into this, not a solution for existing projects bc of legacy baggage, but probably the right way to do it. Problem in practice is that
199.
▲
by
nnq
7y ago
> main criticisms I see of Django's ORM seems to be from people that prefer SQLAlchemy ...then I'm in the minority of hating them both, and in the process of looking for an alternative since I'd be using a lot of python to
200.
▲
by
nnq
7y ago
Imho the "smell test" for good-enough ORM should be: can I, at the same time, (1) just switch the DB from underneath, replacing a relational MySQL with a document-oriented DB like Mongo or a hybrid one like Arango and have it work
201.
▲
by
nnq
7y ago
...you're the ONLY person I saw with a good opinion of Django's ORM. I'm willing to accept you could be right in preferring it, but: Could you share some resources of using it properly for advanced use cases? Good cookbook
202.
▲
by
nnq
7y ago
no docker support on *BSD unfortunately :| ...this can be a show stopper
203.
▲
by
nnq
7y ago
really? I thought ppl use APL-family languages bc they allow to express things in very little code so there's more chance of getting it right?...
204.
▲
by
nnq
7y ago
Hmm, that Perl code seems quite irregular / badly structured, I see some regexps are inline while others in named variables, no clear docs of what is the return of functions etc. Beside that, the extra clarity in Go is from using a sta
205.
▲
by
nnq
7y ago
Never worked professionally on a Perl codebase but I kind of liked it when I learned a tidbit and feel a bit nostalgic that it went out of fashion :P
206.
▲
by
nnq
7y ago
> It just looks like you are trying to hate google for the wrong reasons. Ok, maybe I was a bit inflamed, actually I'm in a love-hate relationship Google's languages, both Go and Dart/Flutter, and using them more and more.
207.
▲
by
nnq
7y ago
The human brain has no problem handling a 70k+ vocabulary of a natural language, just saying... until a language goes over a few thousand reserved words I'd say there's no adverse effect to them as long as they are clearly named&#
208.
▲
by
nnq
7y ago
- powerful features -> less code to do something -> less bugs because less code - powerful features -> more general abstractions -> more code reuse -> less new code written -> less bugs It's not that simple, but i
209.
▲
by
nnq
7y ago
What makes sense is that the number of bugs tends to end up proportional with the amount of code... If a powerful language allows you do the same thing with 10x less code, you'll also have up to 10x fewer bugs (in practice maybe only 2
210.
▲
by
nnq
7y ago
> promote economic velocity and prevent towers of babel from rising up ...could you elaborate what you mean by that?
More ›