Hacker News new | comments | show | ask | jobs | submit | sovande's comments login

The big dispatcher switch in Flux is eerily reminiscent of how we used to program AWT widgets back in Java 1.0 days. This architecture was improved greatly in Java 1.1 with a delegation model. If the history is to repeat itself, as the OP so eloquent argues for, then, if you want to see where flux will be going in the next couple of years, start using knockout.js now and for once stay ahead of the curve.

-----


That's why this was such an interesting story, battling prejudice and ancient folk wisdom is no simple task. Here's a typical Norwegian salmon farm http://i0.wp.com/blogg.seafood.no/wp-content/uploads/2013/02.... This is a sea-water farm and the fish is vaccinated early on and live a healthy antibiotics free life until they end up on your sushi (sour-tasting rice).

-----


fish farms had just gone commercial in the 70's but hadn't grown that much at the time. the excess of high quality fish was wild salmon.

in the 70's in norway (and in alaska, can't speak about anywhere else) commercial fishing was in it's prime.

you can read more about the history of norwegian aquaculture here. http://www.svt.ntnu.no/iso/anders.skonhoft/Marine%20Policy%2...

-----


One more reason to eat salmon sushi, salmon is farmed and will not go extinct.

-----


Open-net pen farmed salmon is done in the same water sources that wild salmon swim through. Farmed salmon have no natural predators so viruses are more readily transmitted to their wild counterparts. For more information: http://www.salmonconfidential.ca/

See Oceanwise's salmon recommendations:

http://www.oceanwise.ca/seafood/salmon

-----


Tuna's much harder to farm (the fry have a tendency to kill themselves in inventive ways), but they've figured it out in recent years.

-----


yes, and they are canibals, a tuna larvae is all mouth. But either will be domesticated or extinct. I prefer the first.

-----


Farmed salmon is much inferior to wild salmon though.

-----


Amen. I'm originally from the west of Ireland and we used to sometimes get fresh wild salmon from a local river off a fisherman friend of the family. The taste difference was just amazing. The farmed stuff is liking eating plastic in comparison. The other thing that makes a huge difference in my experience is to have fish that's never been frozen (someone once told me the reason has to do with the crystallization process killing the taste, although I've no idea how that works).

-----


> (someone once told me the reason has to do with the crystallization process killing the taste, although I've no idea how that works)

The crystallization process in this case means that the solid crystal formed by water freezing into ice ruptures all of the cell walls, releasing their contents. Once that happens the chemistry of the food can change drastically as enzymes and proteins that were once only active inside cells are now floating everywhere.

In the case of frozen salmon, the taste appears to come from some sort of enzymatic process involving fatty acids [1].

[1] http://pubs.acs.org/doi/abs/10.1021/jf000021c

-----


Crystallization bursts cell membranes, causing more rapid decay from the moment it is thawed. It is that (micro-)decay that causes the change in flavor.

-----


Depends on your tastes. The farmed stuff has a higher fat content, which tends to be more palatable in sushi.

-----


> Fair enough

Not really, because now all those who bought "Peace" in good faith feel bad. We trusted this guy to deliver a good product and then it disappears under us. Grrrrr..

-----


You can get a refund for your purchase at the link he provided. No harm, no foul.

-----


I know and the money is not the issue, it is the wasted time and trust. It is like getting a new iPhone with a broken glass. So, for one guy to feel good, 100K others (customers) now feel bad. And you know as well as me that only a small percentage will do the refund thing. So, yeah there is both harm and foul here.

-----


Fastspring has a fraud protection system in place. Strip has not and does not prioritise it according to this quora comment by one of its co-founder. https://www.quora.com/How-will-Stripe-overcome-the-huge-loss...

Fraudulent chargebacks is bad, both economical and psychological. As an online seller it is part of life, but you want to keep it to a minimum, say < 1% of all transactions. I wholeheartedly support the sentiment of the OP, do not use Stripe nor do this in-house. Instead, use a payment provider with a proven fraud protection system, such as PayPal.

-----


Ouch, I know that when you see someone has already created a product that you are working on you should take it as a validation of your idea and not become discouraged. However, seeing this I can't help feeling bad for the OP. The OP has a prototype, while this (seems) like a fully fledged and very slick product with all bases covered and it is even cheap.

-----


$900-1200 isn't what I'd call "cheap" (OP says parts for their prototype is around $150).

Also, another person in this thread mentioned a 42" one from China thats $120 [1]. That is more in the "cheap" range.

[1] http://goo.gl/N02wRa

-----


If parts for your prototype are around $150, most conventional electronic product pricing wisdom would put this at around $600-$750 retail.

-----


If the OP hasn't done research into potential/current competitors then the OP shouldn't be taking it further than a prototype anyway.

It definitely sucks to prototype something that already exists, but it's probably a good lesson too.

-----


On virtual memory systems, it is a safe bet that malloc will "never" fail to return a value. It is just good form to check the return value of system calls. If you program for embedded systems (e.g. Arduino) and bring over the bad habit of never checking malloc, you are going to be in for a surprise. I'm not sure, but I believe on iOS, malloc could fail on the device.

-----


This so called "investigation" of the Facebook app can be done much simpler. Locate the app in iTunes, rename the .ipa file to .zip, unzip and run otool and nm on the binary. The author list 18,000 header files which is not much of an investigation nor much interesting. Though the staggering number of classes does admittingly somewhat explain the enormous size of the FB app. I do not use the FB app, but generally it can be equally illuminating to look in the Resources/ folder of an app if you wonder where the size came from.

-----


No. You have to jailbreak and "crack" the app to get at the code segment, which makes this more of an effort than you make it out to be. Unless you know something I don't?

-----


The symbols themselves are not encrypted, so you can still list those without cracking the app.

-----


He didn't claim it to be an investigation. It seems to be an insight.

As for being interesting, it's quite subjective. Might not be interesting to you, but it makes other people wonder.

-----


class-dump[0] is handy too.

>This is the same information provided by using ‘otool -ov’, but presented as normal Objective-C declarations, so it is much more compact and readable.

[0] https://github.com/nygard/class-dump

-----


The concentration technique (attention deconcentration) mentioned in the article sounds very interesting. Anyone know more or have tried it? Edit: Could be a useful technique when free-diving into a code base. Apropos diving, another concept that comes from the diving world which I have found useful in Software Development is "incident pit" which can be useful as a perspective to post mortem failed projects and conversely for a PM to know about the danger signs.

-----


Every time you drive a car you do sort of it. You cannot concentrate all your attention on one small thing -- you rather should do deconcentration and observe many objects at the same time.

Another example is searching mushrooms. If you do concentrate, you're not effective.

There are much more examples in the life.

-----


I do this, but it forces me to drive slower, which isn't such a bad thing in the end. Feels like playing music a bit. You have to 'observe' the surroundings through a mental abstraction of many moving things and try to maintain an overall consistency between them all. We are ACID databases.

-----


There are simple exercises to improve deconcentrations skills:

1) [Vision] Look at some point (try to avoid thinking about the point itself), then think about what you observe at top left corner, then (moving slowly, after 15-30 seconds) at top edge, top right corner, etc. When 360˚ are finished, start again but think about several parts of viewport at the same time. Then just try to relax and think about the WHOLE picture. It takes some time to achieve good results, but if you do this training several days you will see changes in your attention level – it's like you see nothing and everything at the same time and once something special (like mushroom or what you're looking for) arrives in your viewport – in this state of mind, you find it VERY fast, even if it's semi-hidden and is located on very periphery.

2) [Sounds] The same: relax and try to distinguish only one noise that is happening around you (like bird singing or smth). Then, after some time spent, proceed to the next noice (cars or wind or anything else). Then next and next. After several minutes you will wonder how many different sounds is around. Then try to relax more and combine all of them.

3) ["Internals", your body]. Try to concentrate only on one part of your body -- say, fingers on your left leg. Then on the right one. The upper, part of leg. Step by step, spending a dozen of seconds or so on one small part of your body, proceed upper. Dont forget to concentrate on inner body part, organs. Once all parts are done, relax more and observe entire body.

4) ["Externals", space]. Concentrate on what you have in front of you. Then behind you. On the left, on the right. Upper and lower. Imaging the building (or park or field or smth) where are you now. There is no need to see it, just imagine. Just reflect in your mind how it looks, feels. Then a block where your house is located (forest or county or smth), then your town/distrinct/city, then state/country and then - the Earth. Step by step imagine object with bigger volume. And don't stop -- Solar system and then Galaxy. Then relax and try to combine feeling ALL the objects surrounding you.

5) [Super-deconcentration] So, when you did all 4 exercises many times, spent many days practicing it – combine them. You have 4 dimensions: vision, sounds, your body and space around it (somebody would add smelling as well) – so you can do deconcentration in ALL of them achieving very special state of mind and body. It's interesting.

And this very thing helps you achieve better results in freediving. Or searching objects in wide areas.

That's what I've learned from Natalia Molchanova during her training courses.

The interesting part of it: once you achieve good results doing such techniques (first of all, #1 & #2 combined), you will be able to drive not slower as usually, but with better ability to notice any dangerous object.

-----


As a drummer wannabee I spend most of my time trying to keep focused on my deconcentration. It's the simplest definition of flow or zen I can think of.

-----


wiki shows only this - https://en.wikipedia.org/wiki/Deconcentration_of_attention

I am adding this on to spark a simpler explnation from someone who is experienced with this.

An excerpt from her website talks about this, link found from wikipedia, http://molchanova.ru/en/article/attention-deconcentration-fr... - "States close to AD can be achieved if person distributes attention on the field of vision periphery, i.e. focuses attention simultaneously on the regions above, below, on the left and on the right. Distribution of attention on the periphery requires voluntary efforts, since human visual apparatus is designed to detect objects in the central part of the vision field. There is useful deconcentration method when one imagines all objects are pictured on a transparent screen in front of him and concentrates attention only on the surface of the screen. This suspends spontaneous eye movements and focuses attention not on objects, but on fragments of vision field. If person performs the exercise correctly, his eyes do not “cling” to objects when he turns his head, but remain motionless relative to the head. This deconcentration type is called “planar deconcentration”. Further explanations can be found in Bakhtiyarov’s works."

-----


> when one imagines all objects are pictured on a > transparent screen in front of him and concentrates > attention only on the surface of the screen

As they say it on the C2 wiki, IHaveThisAntiPattern.

I'm more distractible by peripheral visual stimulus than by noise. This is why I'm okay with working on small bullpens as long they give me three chest-height walls, but can't do any work on open plan offices where everything is on my line of sight when sitting down.

-----


Awesome would be something outside the box or rather, outside the function scope. Of course, using longjmp is not much more novel today than using this approach which is tried and ugly. I find that a mix of classic return tests and longjmp in exceptional cases makes for the easiest error handling in C. David Hanson, among many others, has a much better set of awesome macros for exactly this; https://github.com/drh/cii/blob/master/include/except.h

-----


Absolutely! C Interfaces and Implementations should be read by anyone coding C these days. Absurd how little known it is though.

-----

More

Applications are open for YC Summer 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: