Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cronin101
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
cronin101
11y ago
Never on -O3 / Oz :-) (Obviously it transforms it to a loop, so it sorta breaks the rules at compile time)
92.
▲
by
cronin101
11y ago
FizzBuzz from 1 to N (supplied as command-line argument) and exiting gracefully without using loops, conditionals, or segfaults - in C: #include <stdio.h> #include <stdlib.h> int i(const int i) { printf("
93.
▲
by
cronin101
11y ago
The (collection of) six sessions lasted around 8 hours. It doesn't say that they lasted six hours each. :-)
94.
▲
by
cronin101
11y ago
Hah, I had to try this out to believe it. You can do `foo d: {:y => 2}` or `foo :d => {:y => 2}` but not a raw hash literal without parens. That's parse.y[1] for you... [1]: https://github.com/ruby/ruby&#x
95.
▲
by
cronin101
11y ago
IMF 2014: 4 Germany 3,859,547 5 United Kingdom 3,056,499 That's about 25% Besides, tens of millions aren't really a huge amount at a national level. Roughly £1 per working-person. I'll happily testi
96.
▲
by
cronin101
11y ago
> One of the things I enjoy the most when I program in Ocaml instead of Haskell is being able to put printfs or mutable buffers wherever I want. FYI, for the first need: http://hackage.haskell.org/package/base-4.8.0.
97.
▲
by
cronin101
12y ago
Ugggh. StickyKeys activating and crashing my spaceship AGAIN.
98.
▲
by
cronin101
12y ago
I tutored Haskell to first-year students and I think the hardest part of picking it up is understanding that previous expertise won't help until you grok the distinctly new perspective with which you must approach problems. I'm (s
99.
▲
by
cronin101
12y ago
I'm originally from the UK and, while you are correct that university at ~18 is usually the point-of-no-return, "high prestige" universities often have significant expectations on performance within a predefined set of subjec
100.
▲
by
cronin101
12y ago
circle.velocity.x -= 2 * dot * bounceLineNormal.x; circle.velocity.y -= 2 * dot * bounceLineNormal.y; The collisions currently reverse the velocity of the circle relative to the line by subtracting to cancel and then subtracting again to ne
101.
▲
by
cronin101
12y ago
Pair the "junior" developers with the ones that you are more happy with and have them learn productive habits through collaboration and observation?
102.
▲
by
cronin101
12y ago
I moved to Norway to work as a Software Developer; ego-less technical discussion is _incredibly_ refreshing. Elsewhere, even when people all have what they think is the product's best interests at heart, too many times have I seen comp
103.
▲
by
cronin101
12y ago
Finally, a convenient way to make your daily life resemble any MTV* rap video from the last two decades. *Back when MTV actually played music videos.
104.
▲
by
cronin101
12y ago
Small nitpick: What you are talking about is not sampling bias, it is something else. You are alluding to how confidence in the presented results may be significantly lowered due to a high variance - associated with small sample sizes (it i
105.
▲
by
cronin101
12y ago
> let considered harmful Did people actually use the side-effect var-hoisting intentionally within their code? Pretty much any JS style-guide worth its salt suggests manually moving var declarations to the top of scope since it's ni
106.
▲
by
cronin101
12y ago
BE AWARE OF THE RECENT STATE OF YOUR (CURRENT) HEALTH That's... quite interestingly worded. It seems to suggest that it only supports repeated single readings on-demand, a shame for sport enthusiasts who would rather not be talking int
107.
▲
by
cronin101
12y ago
Unrelated clarification but, judging by the lutefisk, the shop owner is actually Norwegian and not Swedish. Just a heads up so you don't make the mistake in less forgiving Scandinavian company next time ;-)
108.
▲
by
cronin101
12y ago
If you have any idea how much of a clusterfuck parsing Ruby is, you might understand why special-sauce like pattern-matching is going to take a while... https://github.com/ruby/ruby/blob/trunk/parse.y
109.
▲
by
cronin101
12y ago
He was stating that they could be dropped of in a remote jungle and given an abstract command such as "turn this bundle of sticks into something habitable" and rely on ingrained problem-solving and teamwork skills to complete the
110.
▲
by
cronin101
12y ago
I highly doubt that Stephen Fry would miss-spell "Lets".
111.
▲
by
cronin101
12y ago
Sure thing, but by constantly parity-checking your rash decisions you can overcome most learned behaviour in time.
112.
▲
by
cronin101
12y ago
Unless you require both consistent data and partition-tolerance ;-) http://www.slideshare.net/alekbr/cap-theorem
113.
▲
by
cronin101
13y ago
If you tell 1000 people, collectively at least one person will believe that.
114.
▲
by
cronin101
13y ago
I don't think that this is a deal-breaker though. In my opinion the best response you could give in this situation is: "I would use <Library function> [showing you know libraries], however if this was not available I would i
115.
▲
by
cronin101
13y ago
"Pick up that can"
116.
▲
by
cronin101
13y ago
I feel your pain, I (part)implemented a lambda parser that will spit out C-style expressions when given basic mathematical ruby expressions if that helps you: https://github.com/cronin101/HaDope/blob/master&#x
117.
▲
by
cronin101
13y ago
The Ruby equivalent would be XmlSimple: http://xml-simple.rubyforge.org/
118.
▲
Getting started with Vim: Choice configs and plugins.
(dysfunctionalprogramming.co.uk)
2 points
by
cronin101
13y ago
|
0 comments
119.
▲
Using git bisect to automate bug-hunting
(dysfunctionalprogramming.co.uk)
1 points
by
cronin101
13y ago
|
0 comments
120.
▲
Show HN: FizzBuzz in C, without conditional statements
(dysfunctionalprogramming.co.uk)
2 points
by
cronin101
13y ago
|
0 comments
More ›