« first day (874 days earlier)      last day (4073 days later) » 

4:00 AM
what are you, a lawyer? because that's the only type of person that can make opinion seems like fact
 
HELP
public class A {
		public int[] array (int[] array)
		{
			return array.Length;
		}
	}
	class MainClass
	{
		static void Main (string[] args)
		{
			int[] arr = {1,2,3,4,5,6};
			A a = new A();
			Console.WriteLine(a.array (arr));
		}
	}
 
I think there should be a law that states anyone comparing anything to node.js automatically loses the argument :)
 
I get an error "Cannot implicitly convert type int to int[] "
 
hehe good point @Jack
 
@Jack and if not "anything", atleast PHP
 
4:02 AM
@Jack there's not much of an alternative to that, node.js is a new technology
 
GWAN is the best web platform
it's much lighter
a 100 times faster
 
@noob1992 What's a.array(arr) ?
@andho Back claims up with benchmarks, or don't make them
 
@BenjaminGruenbaum If it's new and unique it logically can't be compared ;-)
Not as a whole anyway.
 
That might be so, but it's perfectly ok to compare node.js to other languages for specific use cases
I agree that comparing two languages (JS and PHP) as a whole or (LAMP and node.js) is silly, but there are still arguments to be made
 
I'm trying to get the Length of an array to show up@BenjaminGruenbaum
 
4:06 AM
I've made the switch and stopped using PHP a while back, I'm very glad I made it
 
Yes, for specific use cases indeed.
 
@noob1992 Why are you even doing A a = new A(); ? Why are you not just doing arr.Length ?
 
Oh great, it's @noob1992
 
@noob1992 WTF IS THAT?
 
4:08 AM
nevermind I got it@BenjaminGruenbaum
 
Can someone trash him, please
 
haha
whatever
 
get out with your horrible code
 
@dievardump lol
 
4:09 AM
^ \o/
 
I'm trying to make a method to return the length of an array that takes in an array of ints as a parameter
@BenjaminGruenbaum
 
This is not JavaScript
 
this does so
 
@noob1992 STOP. DON'T PASTE CODE. This isn't JavaScript
 
@andho Never heard of it - but it looks interesting :) Wouldn't dream of using it in production though :P
 
4:10 AM
HAMMERTIME!
 
Dude, stop.
 
sorry
 
I know it's not for developing software just fo me
 
This is a JavaScript room dude
 
4:11 AM
There is nobody in the C# room
:(
 
@noob1992 Hey, would you mind telling me what year you were born in?
 
It's not like you all don't know c# anyways
1992
:)
 
@JessTelford ofcourse haha
 
hahahahahahhahahaahah
 
So: 1/ Ask if somene knows C# then ask them to go in the C# room
 
4:12 AM
@noob1992 Does that coincide with the fact this number is in your username?
 
what the heck
 
2/ And don't paste code like that, 3 times
 
sorry
but this is what I was trying to do in c#
 
It sure looks like Java ... ohhh, Script =/
 
@BenjaminGruenbaum see? this is why you need to be explained why not to use PHP
 
4:12 AM
@BenjaminGruenbaum This is not nice, really not nice :p
 
function returnLen (arr){
    return arr.length;
}

arr = [12,12,12,12];

returnLen(arr);
 
arr.length
it's enough
 
@noob1992 Did you write this code yourself?
 
@noob1992 lol
 
lol
 
4:13 AM
pro
 
I know but not in csharp
yes I did@BenjaminGruenbaum
it's crappy but oh well
 
@noob1992 Can you teach me functions?
 
function addTwo(number) { return number+2; }

addTwo(1);
 
I still need to go college and learn all this stuff so shush to all who are hating on my lack of design patterns and skills in any language
I am four months away from going to college yeaaaaaaaaaaaaa
 
@noob1992 Mainly English.
 
4:15 AM
very funny@BenjaminGruenbaum
 
JavaScript devs will be less judgy on the design patterns front.
 
@noob1992 Seriously, read a C# tutorial
 
Nobody learn good coding manner in college
If you are waiting for college to learn anything in coding, just forget it
 
@dievardump that too.
 
That is what I have heard@dievardump
There is seems to be no hope for the greater good
But I like to learn how to program so whatever
It's my hobby
 
4:16 AM
If you like to learn, you'll have finish the college program before beginning it
 
what do you mean ?@dievardump
 
Well, if you want A degree, and learn how to code, you might as well do comp. sci. Just don't wait for the profs to teach you about the craft of writing code and take anything they do tell you about it with huge grains of salt.
 
If you're not busy to play with gun, as all american guys
 
I know@ErikReppen
 
I mean what Erik just explained.
 
4:17 AM
@dievardump I'm not sure I completely agree with that
 
I think I want to be offended, but I like playing with guns
 
Where can I learn how to program like a pro ?
 
We never agre, though
 
Do you even know what pro means?
 
@noob1992 first learn to be a pro, then learn to program
 
4:18 AM
@noob1992 Programming school
 
I want to program like a pro
 
rlemon has a list
 
I know some people who get paid to write awful code.
 
I have followed rlemons instructions
 
@andho All those guys in the PHP room are hypocrites :P
 
4:18 AM
They're pros.
You don't want to be like them.
 
Just go to programming school and not college
You have to hack a website to get into it
 
@rlemon, dear, are you here? If not, Why are you not here on a Thursday night
 
I just want to learn how to code
 
Why?
 
rlemon is the best he gives awsome advice
tells it like it is
 
4:19 AM
@noob1992 Go to programming school
 
I always hear PHP bashing, what do you guys use for server-side code?
 
I know
 
rlemon is the best
 
@Gary That depends what we're making :) There's no one size fit all
 
If you want to learn, follow his list
 
4:20 AM
I mainly use C# with ASP.NET MVC or node.js
 
I recently started learning PHP and the syntax seems a bit... mushy.
 
do you know how hard it is to find rlemons list of books he has ??????????????
 
I've been pushing through b/c it works for what I've been doing
 
No library has it... only amazon I think
 
@Gary It is mushy, that language has 9 global methods for sorting an array :P
 
4:21 AM
Exactly
 
no local library has any technical books like that
 
PHP is good.
 
@Gary What other languages do you know?
 
When you use good tools.
 
using the "var" keywork for every variable in javascript is a troll move .. js
 
4:21 AM
Not many. JavaScript is the only one I'd consider myself fluent
 
@dievardump I'm sure that if they would have started making it today, they would come up with something completely different
 
the "var" means to make the variable global even if it is inside a function
 
not using a keyword to declare variables is for hipsters
 
But I've been working on PHP and C++
 
@Gary In that case you can use JavaScript for server-side code :)
 
4:22 AM
template < class T>
yay
vector<string> vect;
vect.push_back("troll");
 
@Gary There's no need to use two different languages, you can use JavaScript for both ends and even share code between your client side and server side
 
I think noob is rlemon
2
 
what ?...
rlemon is to smart.... what the
 
I should look into that, I wasn't even away there was such a thing as server-side JS until recently
 
4:23 AM
too*
 
I shall not be compared to rlemon... he is freakin smart
 
1 min ago, by noob1992
the "var" means to make the variable global even if it is inside a function
 
@Gary Yep, it's pretty new but very powerful, you can write node.js code in a way very similar to PHP but you probably shouldn't
 
This troll was too good
 
@Gary You should check out nodebeginner.org and some express tutorials, node.js is awesome. It's not only very performant but it's built right
 
4:24 AM
Array.new(3)       #=> [nil, nil, nil]
nil...
 
at least that is what I read but it doesn't seem to be true
 
Node's pretty solid at this point. The critical thing is to understand how it works on the whole blocking vs. async front.
 
Is it pretty MySQL friendly? Feels like a dumb question but the way I learn is making projects for myself and I'd hate to get into it and run into that road block
 
nope not mysql friendly at all by no means
 
@Gary Yes, it is, just have to remember that all IO is async
 
4:25 AM
that is why php shall conquer
 
@Gary mysql? bouarf no.
 
| node.js monkeys
 
Maybe this is Zirak
 
@dievardump Why's that?
 
@dievardump why not?
@Gary I've personally used node.js with mysql before and there were no issues
 
4:27 AM
I'm out
 
node is meant to be used with non relational databases
 
weeeeeeeeeeeeeee
 
@noob1992 You were never in
 
Especialy JSON based
 
4:27 AM
@Benjamin Thanks, I'll check it out when I sober up :-)
 
@dievardump Why would you think that?
 
I'll take that as advice from c# stand point
..
out
 
The MongoDB + node.js combination is very popular, but it's perfectly OK to use node.js with relational databases
I've used node.js with SQL Server an SQL Azure before and there were no problems
 
Seacrest out
 
Does anybody know why people like postgresql? Also, how tf do you say that out loud?
I'm a total data-noob.
 
4:29 AM
@ErikReppen Post Gre
 
@BenjaminGruenbaum cause relationnal database sucks. stringify and save. it's easy.
But if you need relational then use postgres, not mysql
 
@ErikReppen A lot of people prefer PostgreSQL over MySQL for example wikivs.com/wiki/MySQL_vs_PostgreSQL
 
if (array.indexOf(true) == -1) {
    functionA();
} whats this do
 
Yeah, I was just wondering what the wins were. I know the Django guys recommended it.
 
4:30 AM
@dievardump You haven't really done a lot of Data manipulation have you?
 
But nobody ever says why is the thing.
 
@ErikReppen It's more pythonic in a way, it lets you know when there are errors, it doesn't default to stuff
 
@BenjaminGruenbaum Database with millions of documents. (not entry, documents)
 
61
Q: MySQL vs PostgreSQL for Web Applications

cnuI am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be better when deploying for production. In one podcast Joel said that he had some problems with MySQL and the data wasn't consistent. I would like to know whether someone had any ...

@dievardump That is a use case for NoSQL, that doesn't mean no-one should use SQL
 
Well, some, but I do not have that much.
 
4:31 AM
Must be an old question.
 
Sometimes you have data that is very relational, SQL is an EXTREMELY powerful data querying language
Having worked with data stores like Mongo, it's not even close
 
sometimes data doesn't have to be in a SINGLE form
 
I'm not saying that RDBMS is always better, it's not. I'm saying that RDBMS has its use cases
 
RDBMS is required for Ad-hoc reporting unless you have something more sophisticated setup
 
@dievardump See this dbms2.com/2011/05/29/… (and comments)
@andho I'm not sure I get that last statement
 
4:37 AM
what do you need clarification on. Ad-hoc reporting is ofcoure required in Enterprise, and SQL is very helpful in that regard. A more sophisiticated setup...
that setup could be a data mining system using map reduce maybe
@BenjaminGruenbaum
 
So what have you guys liked on the no-sql front?
 
I guess I agree
@ErikReppen RavenDB looks very interesting
 
And is there a better term for what you call these new kids than no-sql?
 
Transactions, runs over HTTP, easy to use, LINQ
 
i <3 mongo
 
4:39 AM
@ErikReppen Non relational databases?
Maybe document database
It depends really
 
That works. Now Mongo's basically gigantic JSON objects that map a variety of different routs to data sets in one huge file right?
 
@phenomnomnominal solved my problem all by my self, pat me on the back that was stressful
 
@copy Twilight was awesome.
 
@TrevorRudolph you still here?
 
Ha, Twilight
 
4:42 AM
@ErikReppen JSON objects yeah (well BSON) , giant no
 
Twilight 4 Summary: Huge epic battle between Good (vampires and werewolfs) and Bad (other vampires). Suddenly, everything was just a dream. THE END
 
@copy Now you ruined it for me
 
@BenjaminGruenbaum actually it gets big pretty fast, compared to say Mysql
 
SPOILER ALERT, GEEZ
 
graylog also changed there backend from mongo, which i think is for the same reason
 
4:43 AM
I actually appreciated the summary. All I know about twilight is the movie title. Now I feel like I can participate in all the buzz
 
You should all watch it.
 
I've actually seen it :(
 
@andho I'm not a huge mongodb fan. You're making it look very one sided, again, use cases.
 
Why? So we can all poison intellectual conversations?
 
I think I'd rather concoct a device that kicks me in the crotch when I press a button. Saves popcorn money.
 
4:44 AM
@BadgerGirl I would, but @copy ruined the ending for me :(
 
vampires blow
 
@phenomnomnominal Who made you see it?
 
see what I did there?
 
Girlfriend haha
I mean, I chose to.
 
@phenomnomnominal me too
 
4:46 AM
Sadly it was the last movie. Now we can only watch Glee.
 
if that's true, then Mexico needs more television channels
 
@BenjaminGruenbaum i'm not a fan either
 
There's always Gossip Girl
Desperate Housewives
 
My girlfriend doesn't watch crap like that
 
4:50 AM
Anyone knows how to create div's in client side means in javascript/jquery? @phenomnomn, @copy, @andho, @Shea, @BadgerGir
 
No, I tried watching Gossip Girl and I didn't like it.
 
@RenjithJR DUDE JUST FUCKING GOOGLE IT
 
@RenjithJR Yes, they all know.
 
did someone just ping me asking a fundamental JS question?
 
That's right, Andrew Jackson.
 
4:51 AM
Between the 5 of we could come up with 5 different ways.
Go find one
 
@RenjithJR Not sure if trolling or just newbie
"javascript/jquery" makes me think he is trolling
 
I'd actually do it differently with jQuery than I would without
 
how would yo do it with jQuery in the page, and how would you do it without?
 
$("<div>"); //jQuery create div element
document.createElement("div"); //no jQuery
 
$('<div>') or document.createElement
 
4:57 AM
omg omg omg
 
Like this $(document.getElementById('parent'))[0].appendChild($(document.createElement('d‌​iv')[0]);
 
I'm sure even $(document.createElement("div")) is faster than $('<div>') or $('div') or $('<div></div>')
 
That's the same internally
 
@dievardump I'm sure it is
 
4:59 AM
All $("<div>") does is call createElement
 

« first day (874 days earlier)      last day (4073 days later) »