Open Side Menu Go to the Top

01-14-2016 , 09:48 PM
Sequelize is a pretty mature orm from what I've heard. For my use case mongo with mongoose & passport is amazing. Instant auth with no bcrypt hassle.
** 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 **
01-14-2016 , 10:18 PM
Quote:
Originally Posted by suzzer99
I have no idea about the 3 mile thing. I've never seen that.

Torrance is pretty flat and boring. But it's also basically the suburban Japantown, Chinatown, Koreatown, Vietnamesetown etc. So it has a ton of amazing cheap non-descript-looking restaurants tucked away in strip malls that aren't clogged with hipsters. It's an Asian food paradise. The Korean supermarket is a destination. On the weekend they have dozens of free sample stations. My gf buys weird vegetables and fish and stuff and I just gorge on all the samples.
A Macbook Pro, Vietnamese coffee, live octopus, thousand year old eggs, and rice noodle go together like hand in glove.

Have you been up to Rosemead / Alhambra?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2016 , 10:34 PM
Quote:
Originally Posted by daveT
A Macbook Pro, Vietnamese coffee, live octopus, thousand year old eggs, and rice noodle go together like hand in glove.

Have you been up to Rosemead / Alhambra?
Nope. I've been out to Arcadia for Din Tai Fung though. My gf is ethnic Chinese.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2016 , 11:02 PM
Is anyone aware of awards in building websites that are considered pretigious?

I'm kinda aware of 3-4 where companies like Twitter submit to, and going to research this topic, but figured I would see if anyone knows this.

Also, are these awards silly?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2016 , 11:29 PM
Read that 2nd article about MongoDB and I'm pretty well convinced now that I shouldn't use it for this. I'm still intrigued about using Node.js server side anyway though as one of the fun things about doing projects like this is generally forcing myself to learn stuff that I wouldn't otherwise use, and I already use C# in my job.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2016 , 11:46 PM
Quote:
Originally Posted by goofyballer
Thanks for the thoughtful response, I'll read both of those. Do you (or suzzer) know in particular why Node.js is bad with relational databases? What are other JS things that I imagine need to use relational DBs (like gmail?) built on?
I thought the reason nodejs is less ideal for relational DBs is because it is blocking. Either way I doubt it matters for a small project.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 01:55 AM
we use node with postgres via knex/bookshelf and haven't run into any issues

here's some articles to get you started

http://blog.ragingflame.co.za/2014/1...nd-bookshelfjs

http://www.sitepoint.com/getting-started-bookshelf-js/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 02:15 AM
I still cant find good use cases for Mongo. Everything I build seems to fit a relational model much better. Maybe its just me visualizing in a relational way though? Idk
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 03:20 AM
Quote:
Originally Posted by Noodle Wazlib

http://stackoverflow.com/questions/4...tions-in-nosql

The accepted answer generally is my experience
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 11:49 AM
Quote:
Have you ever used Stack Overflow to answer a question about some code you're working on? Most people who write code on a regular basis have done so, and this sometimes involves copying code snippets. Well, starting on March 1, copying code from Stack Overflow will require you to attribute that code. Code published by contributors to SO will be covered by the MIT license. Users copying that code don't have to include the full license in their code, as it usually requires, but they do have to provide a URL as a comment in their code, or some similar level of attribution. This change applies to other sites in the Stack Exchange network, as well.
o.O
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 11:57 AM
What absolute ****ing nonsense.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 12:17 PM
Eww
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 12:55 PM
Quote:
Originally Posted by candybar
Far easier to get this working in Windows than setting up a Linux machine from scratch.



This is basically every unpaid open source developer's attitude towards a runtime environment he doesn't need to use personally.



Yeah it works fine. Not a fan of clojure though.
From what I've seen from playing around it really is in a roughly Ruby when Rails first caught fire state on Windows.
Just run a Linux VM if you need to stick with Windows for whatever reason. For a development machine...I don't see why you would though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 01:06 PM
Quote:
Originally Posted by suzzer99
It's pretty sweet in both imo. I create new global node components for our app in 30 minutes. I go back and look at Java code with factories of factories and 7 layers of abstraction and I want to barf.
http://sparkjava.com/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 01:12 PM
Quote:
Originally Posted by goofyballer
Read that 2nd article about MongoDB and I'm pretty well convinced now that I shouldn't use it for this. I'm still intrigued about using Node.js server side anyway though as one of the fun things about doing projects like this is generally forcing myself to learn stuff that I wouldn't otherwise use, and I already use C# in my job.
I'm genuinely curious how easy or confusing the entire built system to get a pure JS setup working is for someone with your background (good programming skills, very little exposure to webdev and JS).
If you decide to go the node.js route, please set it up to use ECMAScript 6 (which gives you more familiar class syntax etc.)

For the front end you'll probably want to use React or Angular2 (or I guess Angular 1 but 2 should be good to go for such a project).
Bootstrap is probably also a god choice to ease the CSS burden.

Quote:
Originally Posted by PJo336
I still cant find good use cases for Mongo. Everything I build seems to fit a relational model much better. Maybe its just me visualizing in a relational way though? Idk
Only use case for me so far: I collect lots of tweets from the streaming API for some machine learning fun. Since they come as JSON I can just store them. Wouldn't be too hard to build a schema for that but well it was a 0 thought require solution (and pymongo makes it easy). However querying the DB and generally working with it is odd if you have a RDBMS background. It also seems kind of slow for bigish datasets (I have maybe 3-4GB by now and queries tend to be slow even with what I think are decent indices)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 01:44 PM
I feel like my use of SO code usually falls into one of these buckets:

1. Looking up how to do some basic operation that I just don't know or remember syntax for. Ex. How do I format this date in string format. I don't think this needs attribution.

2. Looking up ideas for some general problem I have and getting a sense of different ways of doing it by looking at examples people have posted. Since I end up writing my own code in these cases - I don't think this needs attribution.

3. Copying some code that does a non-trivial thing that just happens to match exactly what I want to do. In these cases I usually put the SO link in a comment anyway so I can go back and look at the original if necessary.

So, I guess I'm just meh on the whole thing. It does seem pretty silly to care about it from the point of view of SO or the people contributing to SO, but I actually think giving attribution is kind of helpful in case 3. And I don't think they can require it in cases 1 or 2, can they?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 01:47 PM
I've used Mongo for a bunch of stuff. I really like it and think a lot of the complaints are people trying to keep doing things in a normalized relational way when they shouldn't be.

There are a ton of advantages to Mongo (and friends).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 03:01 PM
I think you are absolutely correct jj, and you use SO correctly.

What I take issue with here is the act of lawyer-ing instead of the act of community and growing together, especially in the face of rules that are seemingly impossible to enforce, except for the nuclear option of scanning people's work to see if it exact-matches (or close to exact, or a % exact-match that the lawyers decide, or what!!??) and then forcing attribution, or something?

It is just plain foolishness to make and enforce rules like this.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 03:11 PM
Quote:
Originally Posted by jjshabado
I feel like my use of SO code usually falls into one of these buckets:

1. Looking up how to do some basic operation that I just don't know or remember syntax for. Ex. How do I format this date in string format. I don't think this needs attribution.

2. Looking up ideas for some general problem I have and getting a sense of different ways of doing it by looking at examples people have posted. Since I end up writing my own code in these cases - I don't think this needs attribution.

3. Copying some code that does a non-trivial thing that just happens to match exactly what I want to do. In these cases I usually put the SO link in a comment anyway so I can go back and look at the original if necessary.

So, I guess I'm just meh on the whole thing. It does seem pretty silly to care about it from the point of view of SO or the people contributing to SO, but I actually think giving attribution is kind of helpful in case 3. And I don't think they can require it in cases 1 or 2, can they?
If I take a large piece of code from SO, I generally put a comment in my code directing to the link, but as I only work on my own open source stuff, I sort of want that for my own and others uses.

Suppose I'm working on a proprietary piece of software, does that mean I have to show SO my code?

Some of the most upvoted questions on SO are stupid things like "How do fetch this value from my HTML form?" This is a pretty common and basic problem, and most people who are new to developing need. Now that they accidentally stumble on SO, they copy / paste, don't know about the licensing requirements... can they be sued? Is SO going to write an HTML / CSS / JS scraper for the web to match against all of the code in SO?

What exactly is the standard of attribution? If I forgot the syntax of looping over an array and I copy / past from SO, which is often copy / pasted from another source with or without the variable names changed, do I have to attribute to SO? What if I copy / paste and turn the i's to j's?

The problem is that there is no way for them to enforce this license without getting some mix RIAA-level *******, NSA-privacy violating, and Facebook-level creepy. I think most people on SO aren't posting code to enforce contracts. They are doing it for nerd cred, but even so, they are more doing it because they like to share thier knowledge. A very high percentage of the users of SO are only readers without accounts. They are college students who are trying to pass a class, a person self-learning and has nothing to offer the SO community, a marketer trying to get some VBA spun up to show a chart, a mom wondering why Wordpress crashed yet again... should SO really be attacking the non-development community as well?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 03:59 PM
I always assumed you are agreeing to some sort of do whatever the **** you want license implicitly every time you post code on SO....
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 04:03 PM
mongo just pawn in game of life
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 04:11 PM
Quote:
Originally Posted by jjshabado
3. Copying some code that does a non-trivial thing that just happens to match exactly what I want to do. In these cases I usually put the SO link in a comment anyway so I can go back and look at the original if necessary.
This - I've always done this because generally when you'd want to copy something directly from SO is when the correct way to do something is not obvious or counterintuitive (i.e. working around a bug) and it's helpful to point the reader to the explanation and associated discussions and even follow-up discussions that show the answer to be obsolete.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 04:22 PM
LL, I know what you're saying - and you're right there was probably a much better way to do this.

In general though, I think the enforcement issue isn't really specific to SO. It's the same for open source code. I sometimes look at code from an open source project that I know has tackled a problem similar to what I want to do. Or I'm sure there are people that change jobs and re-use code they shouldn't. Same with libraries used as dependencies. And so on.

I look at most of the licensing stuff as an important way to fight against really flagrant abuse. Just because its not really enforceable the vast majority of times doesn't mean its not still kind of useful.

Edit: Although when I had to sanitize our code base of any code/libraries we used with toxic licenses - I was pretty irritated with the whole thing.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2016 , 04:29 PM
Quote:
Originally Posted by gaming_mouse
I always assumed you are agreeing to some sort of do whatever the **** you want license implicitly every time you post code on SO....
this. I bet most posters had no idea they were putting their code out under MIT license.

Imagine the **** storm it would cause if they changed it all to GPL or Mozilla 2.0.
** 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