Better HN
topnewbestaskshowjobs
Log inSign up

TJSomething

812 karma · joined Oct 10, 2013 (13y ago) · 304 submissions

Submissions

comment 10y ago · link · parent

I personally would recommend developing games in C++ for both platforms. You're not going to be heavily using any of the APIs that necessitate using Obj-C or Java. It's just OpenGL ES and other low level APIs. Additionally, it's easy to port between iOS and Android and you can use a much wider variety of libraries.

comment 10y ago · link · parent

It does if you're using Python 3, which has the nonlocal keyword for lexical scope.

comment 10y ago · link · parent

It actually does:

https://pages.nist.gov/800-63-3/sp800-63b.html#memorized-sec...

comment 10y ago · link · parent

I learned UML during my bachelor's in 2012. Now I work at a big company and the only UML diagram I've had a use for is a sequence diagram.

comment 10y ago · link · parent

I used to drink SlimFast for lunch everyday, until I became lactose intolerant. Years later, Soylent came out, and I was tired of eating fast food all the time for lunch. Now I drink Soylent for lunch, which is healthier, cheaper, and faster.

comment 10y ago · link · parent

They're using Three.js, but it looks like the spinning icosahedron is custom-made with about 300 lines of code. That includes calculating the vertices of the icosahedron, loading the model from a 3D model file, setting up the surface material characteristics, setting up the lights, animation, moving HTML nodes with the labels along with the vertices, and mouse dragging.

comment 10y ago · link · parent

Wood doesn't melt; it just burns.

Not that these don't melt; they're mostly fiberglass and polyurethane.

comment 10y ago · link · parent

  ((:include "stdio.h")
  
  (const char * message = "Like this.\n")
  
  (int main ((int argc) (char * * argv))
    (printf message)
    (return 0)))

comment 10y ago · link · parent

I believe objections on the grounds of low quality would count as "proper reasoning."

comment 10y ago · link · parent

I like the idea of SageMathCloud. I had a numerical methods class that I took where we used a web-based Python math environment that the professor was having his grad students build. It was pretty buggy and would go down sometimes.

Last I heard, they switched back to MATLAB. Having taught MATLAB, I wouldn't wish that on anyone. But if SageMathCloud had been around, it would have been a good option.

comment 10y ago · link · parent

I am currently trying to get into the deep end by reading and watching enough tutorials that I can see the patterns emerge. It's tough. I miss Ember, but it's not really going to work on my current project, which is probably going use Webpack, Babel, React, Redux, GraphQL, Koa, Scala, Akka HTTP, and Sangria so far.

comment 10y ago · link · parent

Due to the Law of diminishing marginal utility.

comment 10y ago · link · parent

Yes, megameter, or Mm, as opposed to millimeter, mm.

comment 10y ago · link · parent

It's not really worse than a Lisp:

  (def seats (+ 2 (* 4 first-class-rows) (* 5 second-class-rows)))

comment 11y ago · link · parent

Technically that's a bias toward Spanish speakers too, since cilantro is just "coriander" in Spanish, usually referring to the leaves.

comment 11y ago · link · parent

I think number of contributors would be a good metric, even though it penalizes lone projects, but I suspect that would be relatively even across languages compared to other metrics. For example, LoC is proportional to verbosity. Commit count is emphasizes languages that tend to have more bugs.

comment 11y ago · link · parent

It's actually the Mixpanel tracker, which is unsurprising, since the entire website is Mixpanel.

comment 11y ago · link · parent

No, but "An obesity-associated gut microbiome with increased capacity for energy harvest" by Turnbaugh, et al. (which has been cited over 2,000 times) shows that it decreases energy going out in feces.

comment 11y ago · link · parent

But what makes Times<Times<Newton, Meter>, Meter> the same as Times<Newton, Times<Meter, Meter>>?

comment 11y ago · link · parent

Oh wow. It's actually plus-shaped. I've been looking for a PC controller with a plus-shaped D-pad for a while. They've been rare for a few years, due to Nintendo's patent on plus-shaped D-pads, but that expired in 2005.

comment 11y ago · link · parent

America's a pretty big country. You can drive the 400 miles from where my grandmother lives to where my parents live and the largest city during that drive has a population of fewer than 4,000 people.

comment 11y ago · link · parent

Can you do it in C? Because if you can, then you can do it in Rust.

comment 11y ago · link · parent

This made it sound like it was:

https://www.reddit.com/r/rust/comments/2yfsi9/rust_to_js_wit...

comment 11y ago · link · parent

For reference, compared with Rust:

    * Yes, with compiler plugins
    * Yes, with macros
    * Maybe. I think that you could use a compiler plugin
      to do arbitrary transformations on all the code in a
      module, but I haven't seen an implementation.
    * Yes
    * What garbage collector?
    * Yep
    * Kind of. Any method can be invoked as a function with
      the <type>::func(val, args...) syntax, but the 
      opposite's not true.
    * Check
    * Yep, via Emscripten

comment 11y ago · link · parent

It doesn't rain often, maybe four days a month. The sky is usually pretty clear. Summers are in the upper 80s. Winters are in the 30s. The growing season is from late May to late September because there are random cold snaps during the spring and fall. It's really dry, so you might get nosebleeds on visiting, but you can get used to it in a few days. The winds can be crazy: it can get up to 70 MPH every couple years, but 30 MPH happens relatively often. We haven't had a good snow in a few years, because of the drought in California.

comment 11y ago · link · parent

FPComplete's Hoogle is a bit more complete: https://www.fpcomplete.com/hoogle

comment 11y ago · link · parent

How about "A Large Scale Study of Programming Languages and Code Quality in Github" by Baishakhi, et al. [1]? That shows a weak correlation between fewer bugs and static typing. There's a stronger correlation between strong typing and fewer bugs.

[1] http://macbeth.cs.ucdavis.edu/lang_study.pdf

comment 11y ago · link · parent

The National Soceity of Professional Engineers has a code of ethics I had to learn in school:

1. Hold paramount the safety, health, and welfare of the public.

2. Perform services only in areas of their competence.

3. Issue public statements only in an objective and truthful manner.

4. Act for each employer or client as faithful agents or trustees.

5. Avoid deceptive acts.

6. Conduct themselves honorably, responsibly, ethically, and lawfully so as to enhance the honor, reputation, and usefulness of the profession.

However, this is less applicable, because we rarely do anything that can directly kill people on accident.

comment 11y ago · link · parent

Well, they don't. "Slave" comes from the Old Church Slavonic word for Slavs, "Sloveninu," which is probably from the word "slovo," meaning speech, while "share" ultimately comes from the Proto Indo-European root "skar-," meaning to cut.

comment 11y ago · link · parent

I would be unsurprised if it was for legacy reasons. Both of those programming languages were written over twenty years ago. Furthermore, arrays play nicely with C extensions.
1
7891011