Open Side Menu Go to the Top

11-03-2015 , 02:22 PM
Quote:
Originally Posted by Larry Legend
The hacker news mobile change today is **** on android.
I barely notice a difference, but I use Opera browser on my phone. You ought to try it out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
11-03-2015 , 02:41 PM
Quote:
Originally Posted by ChrisV
I want to do some reading to upskill while I'm taking time off and am looking for a good book or ebook on these topics:

- Test Driven Development and writing good unit tests in general.
Any language in particular? While the concepts transcend language, most books are language-specific. Or do you not care?

Quote:
- Domain Driven Design
Go to the source on this one:
http://www.amazon.com/Domain-Driven-.../dp/0321125215

Despite its sometimes enterprisey sounding jargon, DDD has a lot of useful concepts that ultimately boil down to methods for writing software clearly for humans. There are some good intro videos by the author too on youtube.

Quote:
- An advanced book on Javascript.
Highly recommend:

https://leanpub.com/javascriptallong...=raganwald.com

This will teach you ES6, but is really a book about seeing and using js for the functional language it is.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-03-2015 , 02:42 PM
Disgruntled mobile HN readers who don't want to download an app:

http://cheeaun.github.io/hackerweb/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-03-2015 , 04:37 PM
Quote:
Originally Posted by Grue
FFS javascript. TIL an underscore each loop can hoist assignments to top of scope causing a mismatch between a console.log and a breakpoint in a browser. I didn't even know that possible. I guess I should actually use breakpoints now.
That's console.log's fault. It doesn't log a full snapshot of an object when its called. This may help,

console.log(JSON.parse(JSON.stringify(myObject)));
https://davidwalsh.name/javascript-d...ng-tip-objects
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-03-2015 , 07:54 PM
Quote:
Originally Posted by gaming_mouse
Any language in particular? While the concepts transcend language, most books are language-specific. Or do you not care?
Something C-style. Ideally C#.

Thanks for the other suggestions. The JavaScript book looks great.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-03-2015 , 08:43 PM
C++
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-03-2015 , 09:44 PM
Quote:
Originally Posted by ChrisV
Something C-style. Ideally C#.

Thanks for the other suggestions. The JavaScript book looks great.
https://www.manning.com/books/the-ar...second-edition
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-03-2015 , 09:45 PM
C++ > C#
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 12:30 AM
I upgraded to Fedora 23. I have no idea what I gained from this.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 03:03 PM
Need a job?

Move to Washington, Virginia, Utah, or Colorado:
http://apps.npr.org/dailygraphics/gr...itialWidth=800
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 03:57 PM
Quote:
Originally Posted by daveT
Yeah, it's controversial, but suppose this:

you are making a list of famous singers.

Dave Matthews
Michael Skype
Madonna
Cher

If you follow the rule entirely, you end up with two tables, one called two_name_singers and another called single_name_singers.

Next, you are handed:
John Cougar Mellancamp

I guess you now need a table called singers_with_middle_names

Next, you want to make a table called bands_singers, which expresses the bands each singer is in (they can be in more than one band).

You can't FK from one table to three tables. Not only that, you are bound to end up with singer_id duplication, so good luck joining across tables.

You *could* make a table of singers that has a column of singer_id, singer_name, and name_type (constrained to first, middle, last), and that keeps no nulls in the column and follows "the rule," but now you are stuck mapping each id to the correct combination of first, middle, and last, yuck.

I'm pretty sure you'd rather just have a table of singer_id, first_name, middle_name, last_name and would be fine to deal with nulls, yeah?

I consider using NULLs proper normal form as long as they aren't used in a PK, but I'm no expert on the gritty details of this stuff.
I talked about this example in real life at a conference. There's a well known conference chair from Australian who's legally named "Neil" (name changed by me). He only has one name like Cher. Broke all sorts of computer systems, was almost impossible for him to book an online flight for years(!) etc. etc.
First system that was changed (quickly)
Spoiler:
Australian tax authorities
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 04:04 PM
And while we're talking about internationalization issues...another example from lol OSX land, this time I'd say it's close to 0% Apple's fault though....

I found out today that you can't import UTF8-CSV files in Excel for OSX properly. There's an option for it but it simply replaces all non-ASCII characters with underscores. Seems to be a known but never fixed bug. Lol Microsoft, WTF.

Thank god that I'm only forced to use MS-Office for work occasionally. LibreOffice Calc obviously did it like a charm
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 04:23 PM
Quote:
Originally Posted by Larry Legend
So this post sparked a conversation between _dave_ and myself and I wanted to bring the points into here.

FLOSS4business companies actually have great salespeople. There are lots of reasons for this, and I'm open to discussing this more if people are interested, but there are some companies that I could name off-hand who have not only great, but truly world-class sales environments.

The biggest problem I see as someone pretty deep in the industry is very simple:

Open Source vs. Proprietary solutions do not solve for the same thing. Open Source is about using technology as a competitive resource, Proprietary is about solving a specific need.

Now to use a bunch of terrible analogies and explanations:

Open Source is getting the frame and body of a car for free. This frame and body is going to be absolutely phenomenal. It is the best frame and body you can get your hands on. However, you still have to finish the car. Even with a great frame and body, you can screw up the rest if you don't know what you are doing. Or you can pay experts top dollar to build an incredible car. When those experts are done, it won't have been cheap, or quick, but you will have one of the best cars in the world. You can enter it into races and expect to win.

Proprietary is buying the entire car, getting a financing package so you pay it off monthly, and your car looks the exact same as 90% of the cars on the road. If you simply need a car to get from point A to point B, this car is going to perform solidly. It will break down occasionally, but it will do its job on an average basis. If you enter it into a race, expect to lose and likely be unqualified from even competing. The car is not interesting and will eventually need to be replaced in a few years.

This is what companies should be considering when going for Open Source or Proprietary. Do you want to build a platform that offers a competitive advantage to your company? Then you should use open source. If you just need a product that "simply does A,B, and C" you should be looking at proprietary solutions. You can get started as soon as your instance is ready (in seconds, mins, hours, maybe days) vs. in open source having to build it.

Another factor other than the use case (best in class vs. just getting X done) is the risk. Open source requires a project. Projects fail enough of the time that they are risky. Proprietary (and especially SaaS) is built to onboard customers rapidly. Instead of a project, you can get started on Day 1.

The final factor is cost and financing. Open source often requires implementation, Proprietary will be served as a service and a monthly cost. It is much easier to go into the budget immediately. Over time, the open source alternative may be cheaper, but things move so fast it can be hard to get to that point.

The other part is how you are going to maintain the open source product. Thats obviously a big difference to proprietary.

In general, when I speak to a company that is considering using Open Source vs. Proprietary they are usually only doing it because they are looking at the "popular" solutions and they are asking all of the wrong questions and don't understand what they even want out of it.
From the market I know (European ERP, mid to high complexity) I'd say I have to disagree. That's a market where "turnkey solution" is a myth. There's usually custom and strange business processes that need to be handled adequately and security configuration/roles etc. are pretty much always custom. Additionally there's often "connectors" to legacy systems and/or data import/export.
+most FLOSS ERP vendors offer SaaS solutions these days (I think haven't checked but the ones I kept up with do)

I do think proprietary companies are usually more sales driven and FLOSS companies are more technology driven. And proprietary companies pay their sales staff better, too.

As an aside I think the most underdeveloped side of both proprietary and FLOSS business software (at least ERP) is UX by a longshot. I was recently at a bigish conference that had a keynote speaker from SAP and she talked about the cool processes and creativity workshops they run etc. and the first question was "well we use SAP...why does the UX suck". Chuckled quite a bit.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 11:44 PM
Ethics/Legal question:

I am building an app that requires an extensive amount of data about food. I found a site where the person lists from A-Z an extraordinary amount of information, pretty much everything I would need. Its all accessible to anonymous users of the site. Is scraping and storing this information legal? Im talking like X product and nutritional breakdown, nothing like images or proprietary information to the creator of the site.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-04-2015 , 11:52 PM
Legally - IANAL, but you should probably check their Terms and Conditions. If they say you can't use it, you probably can't use it. ?

Ethically - I don't know. If you're planning on using it for commercial purposes, its a bit shady. I probably wouldn't do it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 12:27 AM
Commercial purposes I assume means any aspect of business using the data and not just selling the actual physical data we got from the site?

Also, should be noted, dont believe you can copyright something like nutrition information for your own site, but that doesn't really affect the ethical side I suppose


Although Id assume he had to copy it from somewhere. Blah
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 12:33 AM
Pretty sure you can't copyright statistics, but I am also sure there's a lot of legal nuance I have no clue about.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 12:37 AM
Commercial purposes meaning that you'd like to make money in some way, shape or form from it. So if you're building an app to track your own diet - who cares.

I assume the information isn't protected itself (after all its displayed on every single product). But how you use their site to retrieve that information might be?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 01:29 AM
If you can find a source for all of the info, for example ranges that would reasonably constitute the data you have, I see no flaws.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 01:56 AM
Unless you have access to a capable lab and equipment, you are copying nutrition information from somewhere. I think nothing of this, but admittedly understand if you are potentially building something around it that it may make you feel slightly uneasy, thus the question.

Find a few publications that have nutritional info and if for some who knows why reason troll paper shows up from someone then you have the source of the info and you should be fine.

IANAL tho and asking a lawyer who knows tech and ip this plan would take 5 mins.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 02:25 AM
Alrighty thanks for the input guys.

The data I need is all over the interwebs from hundreds of sources, its just kind of crazy to see it sitting in one very visible spot.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 06:26 AM
Quote:
Originally Posted by PJo336
Alrighty thanks for the input guys.

The data I need is all over the interwebs from hundreds of sources, its just kind of crazy to see it sitting in one very visible spot.
Food Standards Australia has this sort of data here, in tabulated Excel format which can readily be imported into a database.

The material is licensed under Creative Commons, which means you may use the data commercially and need only acknowledge the source. It's all in metric, idk if that's a problem.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 06:30 AM
The Australian government is doing well on data disclosure. There's a website data.gov.au where you can download any publicly released dataset you want - 7,500 datasets so far. There's even a place where you can make a request for a set of data you need.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
11-05-2015 , 09:28 AM
This has to be kosher, otherwise apps like MyFitnessPal wouldn't exist
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m