« first day (1376 days earlier)      last day (3797 days later) » 

08:00
hey can you guys try this test I need data jsperf.com/sort-then-json-stringify-vs-smarter-stringify
@Mosho nudge @Dhaval
@Mosho @DrogoNevets Sorry guys, m on call with client..BRB in 30 mints
@ThatTreeOverThere what are you trying to do?
@SecondRikudo LOL
It's like asking what's the difference between the Flintstones car and a Ferrari :)
@BenjaminGruenbaum I've been using BB's so far as per your advice, but I'm poking at Angular and noticed that they use Q's by default
So... what are the differences? :P
08:09
Bluebird is two orders of magnitude faster, has a lot of useful methods and stack traces, better support and compatibility with native promises.
Okay, so why do people use Q's?
Angular doesn't use Q, they use $q which has little to do with Q except they're based on the same specification which in turn was inspired by Q.
$q is much much smaller than Q and they don't share a single line of code.
@SecondRikudo Q is a lot older, it's 4 and Bluebird is 1
> For this purpose, PHP code is embedded into HTML. (source)
^rofl, maybe SecondRikudo can guide them in the right way, lol
> This language is also used for command-line scripting and client-side graphical user interface (GUI) applications
Please stop reading this crap now
@SecondRikudo I am bieng forced to take an admission there.... help me PLEASEEEEE
I am gonna revolt against all Indian parents... shit!
08:16
@AwalGarg You're WHAT?
For every small shit I have to put a request to the IT team and wait for atleast 1 hours to get access. WTF
this article reads like it was written in the 90s
I wish I was working at a startup.
@RahulDesai Make friends with the people in the IT department. They'll save your ass one day
@monners 16yo. male. Indian. And as I am not doing IIT, I am considered now a terrorist.
@monners them embedded php in html in 90s???
08:18
@AwalGarg Oh they did lots of things in the 90s. It was the Wild West!
@monners butttttt. embedding php in html, won't that just... fuck the code?
I assume they mean building PHP snippets into the html on the server
@AwalGarg At the very edge of your application, you will have PHP mixed with HTML
As a template
That's a good thing
But that should be like, 3% of all of your server application?
<p><?= $foo; ?></p>
Exactly ^
If you didn't mix at all, you wouldn't have been able to display data in your HTML page, would you? :P
08:22
But the way that article explains it, sounds like they're advocating pre-MVC mentalities
@SecondRikudo oh I know that ofc. What I am asking is, they say "embedding". This isn't embedding.
Admittedly, I didn't read much of it
@monners It's not like the current MVC mentality is all sunshine and butterflies.
It's based on false sales pitches and deception. As if a framework can do this MVC magic for you
@SecondRikudo It's better than some of the clusterfuck logic/markup milkshakes I've seen
@monners I actually prefer that over CodeIgniter.
08:24
I'll stick with RESTful APIs and services, thank you very much
wait what
p much the only "logic/markup milkshake" I know of is PHP
for all I know, my life is going to turn into that of a monkey who was employed in that ladder experiment if my elders succeed in their aim... ;'(
@SecondRikudo except you could use reasonable templating instead of PHP shitty substitutions
which makes a world of difference
@BartekBanachewicz PHP is first and foremost a templating language. There's no point in using any templating engine with PHP.
@SecondRikudo there is some point if your app would be sufficiently fast even after using the engine, and you are limited at time.
08:29
All you need in a template are conditions, variables and loops anyway. If you need more your template sucks.
@AwalGarg What limits to time? What time does using a templating engine save you?
You need to learn another syntax, and train your other team members with that other syntax. In the end, you don't save time, code length, complexity, maintainability or performance. So what's the point?
@SecondRikudo the time required to make the app (code it, err).
@SecondRikudo dunno if it's a templating language, a web language, whatever; it's a shitty language
@AwalGarg It doesn't save you time.
and that pretty much ends the topic about PHP
@BartekBanachewicz Please, let's not start this pointless argument.
08:31
there's no argument
You can do awesome things with PHP just as much as you can do them with any other language
Please don't look at crappy code and determine the language's quality from that.
okay then. If you assume that I judge a language basing solely on bad code, then you're wrong.
@SecondRikudo agreed except that ajax (in a limited amount) is really cool //though it took me some time to realize that..
08:33
8 messages moved to Trash
let's keep it to technical stuff plx
Thanks Florian
I am all for that.
That would imply acknowledging or something in this room
would help I suppose.
why? php flaming is fun
it's hardly productive when you want to discuss like, real code and programming
@FlorianMargaine heeyyy. please, I used to like php once..
08:34
and somebody jumps in and recommends PHP
they got it all wrong anyway
:D
never gets old
PHP is okay. Better than ASP anyway.
@FlorianMargaine Lol
08:35
see that's what happens.
inb4 "how do I send a value from php to js"
now, it's ironic because I actually wanted to talk about lean web frameworks for a while (instead of bashing things)
!!summon 43899
!!weather goa
@RahulDesai Goa: 29.374C (302.524K), scattered clouds
!!what the hell is inb4??
08:39
!!urban inb4
@BartekBanachewicz inb4 Generally used on internet forums, inb4 refers to a user posting a reply to a message/topic "before" another user posts an obvious response. When used appropriately, inb4 is followed by a word or short phrase that the user knows will eventually appear in the topic conversation.
ahh stupid chat words. //had to unignore that stupidest caprica...//
I second that ^
Hahaha
@RahulDesai I first that
08:40
totally
Caprica's not stupid
!!are you stupid?
@Oleg Yes!
:( damn
!!is you is or is you ain't my baby?
@ThatTreeOverThere is you is
still one of my favorite gifs
not sure if "inb4" came out of something like this
it most probably came out of usenet or 4chan
that's where the internet happens
yep
@AwalGarg Oh god, I read more of that page. Please, please avoid that place like you would the plague.
08:44
"In before X, always spelled "in b4" or "inb4," is a corruption of the Occupatio technique which presumably originated on 4chan too long ago for anyone to remember (at least 100 years ago), but has since spread like wildfire over the Internets." Source: encyclopediadramatica.es/Inb4
pretty sure I first saw those gifs on 4chan too
@monners my death is written. I can't do anything....
@AwalGarg Well then learn enough in your free time to make a fool of your professors
08:47
@monners I really wonder how more they can be... there got to be a limit for professors to be foolish.
Transformers 4 sucks ass.
@AwalGarg Find the good ones, avoid the bad ones as much as you can. Take everything they claim as fact with a grain of salt.
@monners thats not how it happens in Indian institutes. We have to stick with the stupid (professor) that we are assigned. No Choice.
so no one using small web frameworks? :(
spring
08:51
@monners and anyways, why even "take" their facts.
and anyways, I am not yet going to that very place, but more or less, any place like that. I have a choice for the institute, not anything else.
@BartekBanachewicz why would you use a framework?
do apis count into frameworks? //i know this is silly...
@AwalGarg no. a framework has an api.
Hey @FlorianMargaine o/
hey @dievardump
(())
08:52
@FlorianMargaine to not code low-level stuff each time?
like, I just want to act on /get/#number/
@FlorianMargaine why are you making a v...?
@BartekBanachewicz kk. never used a framework in any language, thats why asking.
I don't want to parse the url and the http request myself
@AwalGarg you must have reinvented a lot of wheels
@BartekBanachewicz I guess you have to
@BartekBanachewicz you don't. your code does it for you.
08:53
@BartekBanachewicz then use a urlparser ?
invent a good enough wheel and everyone will use it
@BartekBanachewicz a library can do that
@dievardump a v what?
oh, vagina?
no, that was just die(var_dump())
!!>die(var_dump())
@ThatTreeOverThere "ReferenceError: die is not defined"
08:55
@FlorianMargaine "a library" ?
@BartekBanachewicz lotta lotta lotta. like hell lot of them. so many that you can't even count how many. like trillions and trillions. maybe even more.
Reinventing the wheel makes you innovate.
Does Caprica use V8?
08:56
@BartekBanachewicz I'd like to see a tiny web framework, Angular is so unnecessarily bulky
@dievardump reinventing the wheel makes sense when currently available wheels don't satisfy you
pls make one
@RahulDesai S8 (s for stupid)
@ThatTreeOverThere I'm using Scotty.
!!do you use v8?
08:56
@RahulDesai By all means
!!what about s8?
@RahulDesai My pocket dictionary just isn't good enough for you.
nevermind
@dievardump unless you make your own crappy square wheel
@BartekBanachewicz frameworks give you IoC, not features. Libraries give you features and you keep control. So whatever floats your boat, I guess
08:57
that's hardly innovation
I would like to see Caprica runing on a raspberry pi oder something plug into a small doll so I would really think it's a robot
6
@BartekBanachewicz First try is always crappy. Second is perfect.
@FlorianMargaine I suppose they also give you features
@dievardump An android version of Caprica D:
Like, robotic android, not app :P
@BartekBanachewicz yes, sorry my message was mostly anti-framework, it's not what I meant. I just meant that the difference between framework and libraries is IoC, but you have features in both
@BartekBanachewicz I disagree with that. Reinventing the wheel make you learn how wheels are made and give you the knowledge to make it stronger.
08:58
50 minutes have passed and my access request is not even assigned to anyone at the IT team. FML
@dievardump bullshit. Second, third and fourth may be crappy as well.
Have you seen the different new type of wheels ?
using a library and no framework doesn't mean you'll reinvent the wheel
@dievardump bullshit. You learn how wheels are made by studying how wheels are made.
my wheel is the best wheel anyway. It's a square wheel.
08:59
@FlorianMargaine depends on what you're doing I guess
@FlorianMargaine mhm. That's a very good point.
To reinvent it you need to study it.
you are starting to make sense
@BartekBanachewicz simple CRUD app with no framework, just a library github.com/Ralt/pastie
No you are starting to stop trolling
I'm rarely trolling.
09:00
It's always really anoying to speak with trolls who are definitely understanding what you mean but argue for 10 minutes just to see one word.
@dievardump Maybe it's a sign you should word yourself more precisely.
I'm not reinventing the wheel, and I organize my code as I see fit
@FlorianMargaine I saw it and... how's that different from routing in a framework?
@BartekBanachewicz I linked you two articles, so meybe you could have read the titles and the first paragraph to know what I was referencing to
09:01
are .get and .post some Node builtins?
@BartekBanachewicz not much different, that's what I mean. The feature is the same, but you don't have IoC.
Now, take your "I know everything and I am better than you" spirit and go annoy someone else
@dievardump one of those articles mentioned PHP so I closed it immediately.
Hey guys, do you put server-side and client-side code in the same repo or in two different ones?
09:03
@FlorianMargaine you don't?
@dievardump if that's how you feel about me now then I'm sorry for you. I don't feel that I know everything or am better than everyone, but if that limited perception is enough to make you think so low about yourself, maybe you should work on your attitude and self-respect.
@BartekBanachewicz no, I still have complete control over where I put my modules, my files, my objects, whatever
I just use the lib wherever I want
I don't get it.
is IoC about not having your files where you want them?
IoC is about having the framework decide where you put your files
you give the control to the framework, it's not you who has the control
09:05
are you sure we mean the same by "IoC"?
inversion of control?
> In software engineering, inversion of control (IoC) describes a design in which custom-written portions of a computer program receive the flow of control from a generic, reusable library.
it's totally not about things like where your code is.
it's about who calls who
do I call the library, or do I register my callback handlers
in your app.get("url", handler) scheme, you are doing IoC as far as I know
doing it regularly would probably require polling the request queue and resolving it.
I take it at a higher level
because you're always using IoC if you're not using assembly anyway
09:08
sort of, yes
but there's nothing inherently wrong in while (get_queue.not_empty()) { request = get_queue.pop(); process(request); }
so apparently when doing web programming, you don't really change that
I take it as... if you need to declares an urls.py file for your app to work, because django requires it, then you have IoC
that's really irrelevant
@BartekBanachewicz why? that's the main difference between frameworks and libraries these days
jquery is a framework in your case
@FlorianMargaine as far as code design is concerned, everything could be in one file
09:11
not with frameworks
django just supplies a runner that opens some files for you
@FlorianMargaine also with frameworks
@AbhishekHingnikar what's that?
I mean, for example, my scotty app is in one file
many frameworks require files to exist
I have the explicit main, but it's just a call into the framework
from that point I don't have control over when my code is going to run
@FlorianMargaine and many don't
09:14
I guess we're just arguing on the level of IoC
@towc: some kind of phone that apparently sold out in under an hour
@towc a phone claimed to be sold out in 40 minutes in india
@FlorianMargaine Maybe. For me IoC applies to source code, not project structure. Wikipedia seems to agree.
Maybe they only made 4
@Cerbrus i think they produced like 50-60 copies and said sold sold sold
09:15
50-60 for all of india?
@BartekBanachewicz but then, any library has IoC for you
@FlorianMargaine no?
when you call into printf, it prints and gives you the control back
@Cerbrus of course... were you thinking they're more than 60 there?
when you call into the framework main, you lose control over the code
any library function that you pass a callback to is IoC, isn't it?
@AbhishekHingnikar what kind of phone is this? company?
so most node libraries are actually frameworks for you
xiaomi?
@FlorianMargaine IoC lies at the core node philosophy vOv
@GNi33 some china company xiaomi
09:16
they're getting super popular in asia right now, already selling more than apple
I dont like Chinese phones.
lol. I started chatting with the admic customer support. they say, node.js is a library for js... rofling
@BartekBanachewicz I like Martin Fowler's way of IoC...
> A framework embodies some abstract design, with more behavior built in.
@AwalGarg it has an API I think
09:17
now they're planning to expand into other markets, not sure if it's a decent phone but it sounds interesting
can be taken at any level
> i m sorry in JS there is no constructor
^I am going to shit!!!
@AwalGarg it's true
@JBJumboJB Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
09:18
@GNi33 dude its more power then a nexus
@FlorianMargaine what he wrote doesn't imply what you said about file structure in the slightest
krait 400 Quad core 2.4 ghz + 13 MP camera => price = Moto G , specs = Moto X
@AbhishekHingnikar yeah. like I said, it looks interesting
@FlorianMargaine what is function object(input) {this.name=input;} then?
because china !
09:19
and I do believe that it's sold out in no time
@AwalGarg a function
@GNi33 never heard of them in europe
it's gaining incredible steam on the asian market right now
@towc because they don't sell their stuff here (yet)
@BartekBanachewicz but it is a constructor too. it calling it like var myVar = new object("myName"); will create an object.
@FlorianMargaine yes, but it's about the behaviour, not the physical layout.
@AwalGarg you can call any function with new
09:20
@BartekBanachewicz codecademy tut said that we these are called constructors.
@AwalGarg function f() {}; var a = new f();
@BartekBanachewicz ok... am I missing something?
I realized something today, I am about to be 21 year old ! So for 21 years of age I have done nothing that I could say I earnt, I feel like I am inside a system where everything keeps happening on its own, more like some sort of order in a chaotic environment.
Which makes me feel sad :-( , A lot of failed projects and opposing but still almost finishing college makes me feel even worse
@AwalGarg you are missing what new really does.
it shifts the context of execution (this in js) to the object being created
@AbhishekHingnikar that must feel awesome
09:22
@BartekBanachewicz is it a constructor or not?
@AwalGarg there are no constructors in js
they aren't special-cased
@towc rather dipressng
the behaviour of the function depends on how it's called, and calling it with new makes it behave like it's constructing an object
it feels like i have no control on my OWN LIFe
09:23
@AwalGarg that's a function called "constructor"
@BartekBanachewicz thats what I was aiming at...
@AbhishekHingnikar I'd see it as: I don't do anything and stuff works anyway: yay!
@AwalGarg no, it's most probably not
but then again JS object model is weird as hell so you're not to blame
@AbhishekHingnikar I would suggest get into a startup. Its pretty exciting and there is a lot that you can do!
@BartekBanachewicz huh.. thanks for saying that. I had halfway written that you and JS are stupid.
09:26
@RahulDesai like going bankrupt
@BartekBanachewicz Not all startups are the same.
0
Q: Mock promises in angularjs

ChinnuI tried to mocking angular promises but I got some errors like undefined is not a function evaluating 'spyOn' fileUploadService My controller code is $scope.getUserFiles = function() { fileUploadService.retrieveUserFileNames('') .then(function(data) { $scope.userFiles = data; ...

@BartekBanachewicz The startup that I worked last year went bankrupt though :P But I learned a lot.
@RahulDesai ...
@BartekBanachewicz My point is, Not all startups are the same.
09:29
@RahulDesai been there done that, I own one too and i am almost bank-corrupt
PS to learn a lot joining an active open source project is also a viably amazing option
1. you will get ranted
2. You won't get fired just PR Denied
3. You will learn at your own pace of what u want
if( you join the linux open source project ){
    4. You will learn what happens when u make silly mistakes. And your code quality should improve drastically (In the eyes of Linus that is... otherwise you will gain a whole new set of swear words that were targetted to you in a language u didn't knew)
}
@RahulDesai and I haven't said that
@AbhishekHingnikar lol, what is bank-corrupt?
@AbhishekHingnikar if your code quality improves in the eyes of linus, then it most probably dropped
Bankrupt in the wrong way.
@BartekBanachewicz that was the joke god-damnit. why are u so humorless ? or maybe Indian Humour less which would make more sense :->
09:36
lol what is Indian humour? kapil sharma?
Hi...
@ANILBABU Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
is there anyone to help me?
Does SO use WebSockets for the updates that we see?
is there any one?
09:40
@ANILBABU Just fire your question.
@RahulDesai it will get burnt
@AwalGarg I have a sheild. ;)
ok bye
i am unable to recognize special characters in IE10 using event.which
In IE8.. It is recognizing fine....
@RahulDesai i am unable to recognize special characters in IE10 using event.which
@RahulDesai In IE8.. It is recognizing fine....
I see.
I have IE 11 though.
09:45
fine.. you can check on IE11 aswell.. it is not recognizing version from 10
ok
let me check
thanks
@RahulDesai yes
@ANILBABU do you have a fiddle?
jsfiddle.com
fiddler?
09:59
@ANILBABU Tell me, in what cases would event.which = 0 ?
in IE8... event.which =0 for all special handling characters like del,backspace,ins,home,end,navigation buttons...

« first day (1376 days earlier)      last day (3797 days later) »