Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

09-29-2015 , 10:25 PM
Code:
why.js

['a','b'].push('c') === 3; //true
why doesn't it just return the new array?

why
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-29-2015 , 10:34 PM
Code:
whyIndeed.js

var arr = ['a','b'];
arr.concat(['c','d']); 
console.log(arr) // ['a','b']
concat trips me up all the time.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-29-2015 , 11:07 PM
Quote:
Originally Posted by blackize5
Wait am I missing some context here?

Those things have a clunky UI but in my experience are totally usable and make a great soda.
Maybe the output is fine. I don't drink soda, so I wouldn't know.

Given the customer-facing UI is pretty clunky, you can only imagine what the back-end UI is like. You can't. It is terrible, but I'd be able to get over that if the thing gave even somewhat accurate information.

Quote:
Originally Posted by iosys
I have no idea why they don't launch a global app for all smart devices, to be able to communicate with selling machines and order/purchase seamlessly.
That is not hard to do, specially if the newer machines can hookup to wifi or even have an internet connection (not needed).
Hmm... we live in America, which possibly has the best internet in the world, and it is pure garbage, often goes out, and there are many places (like where I work) that getting internet is astonishingly difficult.

I feel for the poor sap in the Sahara...

Quote:
Originally Posted by suzzer99
Code:
whyIndeed.js

var arr = ['a','b'];
arr.concat(['c','d']); 
console.log(arr) // ['a','b']
concat trips me up all the time.
Why would you concat on an array?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-29-2015 , 11:20 PM
Internet is not necessary for devices to communicate.
So places with no internet still can work with machine + owned device.

Anyway, I expect it to be nice in the near future.

It would be amazing if Usa could get out of a **** hole and get some funding for fiber internet everywhere.
Internet everywhere with bandwidth that supports everything and no stress ever on the network would be something amazing for accelerating growth in tech.

future is going to be amazing if we can ever get something like that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 02:10 AM
Quote:
Originally Posted by daveT
Hmm... we live in America, which possibly has the best internet in the world
wtf

https://en.wikipedia.org/wiki/List_o...nection_speeds

Last edited by n00b590; 09-30-2015 at 02:17 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 06:06 AM
Quote:
Originally Posted by daveT
Why would you concat on an array?
I'm confused... why wouldn't you? It makes perfectly good sense to use concatenate when you want to link two arrays.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 06:10 AM
Quote:
Originally Posted by suzzer99
Code:
whyIndeed.js

var arr = ['a','b'];
arr.concat(['c','d']); 
console.log(arr) // ['a','b']
concat trips me up all the time.
https://www.bitcarpentry.com/mutativ...methods-in-js/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 07:55 AM
Quote:
Originally Posted by iosys
Internet is not necessary for devices to communicate.
So places with no internet still can work with machine + owned device.

Anyway, I expect it to be nice in the near future.

It would be amazing if Usa could get out of a **** hole and get some funding for fiber internet everywhere.
Internet everywhere with bandwidth that supports everything and no stress ever on the network would be something amazing for accelerating growth in tech.

future is going to be amazing if we can ever get something like that.
Honestly I think cities are going to have to invest in the local infrastructure (i.e. node to home and maybe local node to node) and then just have carriers interconnect the locals.

That will never happen bc carriers fight all the time to prevent it, but somebody has to put infrastructure into place and if telecoms aren't going to do it I don't see why municipalities should be prevented from doing so.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 08:35 AM
You haven't heard of Obamas dig once plan, huh?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 10:14 AM
Js is pretty strange with its primitive methods returns but what would have been the best way to do it?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 10:29 AM
Does anyone here use e-books for learning or reference?

I just bought the Cracking the Coding interview book. I'd, uh, 'legally obtained' a copy of the book on pdf and thought it was pretty good. However, I can't for the life of me think of using e-books for anything other than pleasure reading.

I guess when it comes to learning via book vs tablet, I'm a bit like Giles here:



Maybe I just need more practice with e-books, but there's something about know about how much page thickness there is between me and the answer I'm looking for. I can grab a book, instantly flip to about where I know something should be, start to recognize pictures and paragraph layout, and get to what I need fairly quickly.

Hasn't been true so far with e-books. Might be different if I made notes and left annotations or whatever their solutions are.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 10:33 AM
Quote:
Originally Posted by Roonil Wazlib
Does anyone here use e-books for learning or reference?

I just bought the Cracking the Coding interview book. I'd, uh, 'legally obtained' a copy of the book on pdf and thought it was pretty good. However, I can't for the life of me think of using e-books for anything other than pleasure reading.

I guess when it comes to learning via book vs tablet, I'm a bit like Giles here:



Maybe I just need more practice with e-books, but there's something about know about how much page thickness there is between me and the answer I'm looking for. I can grab a book, instantly flip to about where I know something should be, start to recognize pictures and paragraph layout, and get to what I need fairly quickly.

Hasn't been true so far with e-books. Might be different if I made notes and left annotations or whatever their solutions are.
I'm reading a wiki book on C and I'm enjoying it all from my phone.

Seems like ebooks should be designed to find things faster if they are in any way searchable.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 10:38 AM
you've never run into a situation where you kind of know what you're looking for but can't quite figure out the exact terms? Just something like, "Oh, I know it was in chapter 7, around the picture of the pope wearing a speedo..."
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 10:47 AM
Quote:
Originally Posted by Grue
Js is pretty strange with its primitive methods returns but what would have been the best way to do it?
it seems the js twitter elite/hipsters want to make everything immutable so functions return new data

https://facebook.github.io/immutable-js/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 11:56 AM
Quote:
Originally Posted by Roonil Wazlib
Does anyone here use e-books for learning or reference?
I use e-books exclusively right now (Math & CS). They completely suck compared to real books, but I'm a perpetual transient and I can't tote huge books around with me.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 01:54 PM
Quote:
Originally Posted by Wolfram
I'm confused... why wouldn't you? It makes perfectly good sense to use concatenate when you want to link two arrays.
Any other language would throw an error. You'd "join" an array, but "concatenate," whether technically correct or not, is more often talking about strings.

I wouldn't even think of using "concat" on an array, but I don't JS.

Quote:
Originally Posted by Roonil Wazlib
Does anyone here use e-books for learning or reference?
You are not alone:


https://www.washingtonpost.com/local...35c_story.html

http://www.newrepublic.com/article/1...-digital-world
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 02:42 PM
Quote:
Originally Posted by Roonil Wazlib
you've never run into a situation where you kind of know what you're looking for but can't quite figure out the exact terms? Just something like, "Oh, I know it was in chapter 7, around the picture of the pope wearing a speedo..."
Yes, I have done that before.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 02:47 PM
Quote:
Originally Posted by Jeff W
I use e-books exclusively right now (Math & CS). They completely suck compared to real books, but I'm a perpetual transient and I can't tote huge books around with me.
Yea this is the reason I prefer ebooks. Easier to walk around with them.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 03:47 PM
Quote:
Originally Posted by daveT
Any other language would throw an error. You'd "join" an array, but "concatenate," whether technically correct or not, is more often talking about strings.
https://msdn.microsoft.com/en-us/lib...or=-2147217396

http://www.scala-lang.org/api/curren...l#scala.Array$

http://ruby-doc.org/core-2.2.0/Array...ethod-i-concat

http://docs.guava-libraries.googleco...ectArrays.html
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 03:58 PM
"Any other language I've used" I meant.

I know I never used concat on an array in C#. Looking up "c sharp join two arrays" or "c sharp append to array" pulls up a bunch of answer and none of them use concat. Even though it's been 2 years since I used that language, I would have not forgotten if I used concat, but I know others here use C#, so they'd have a better idea of what good practice is.

Edit to add:

http://stackoverflow.com/questions/5...-arrays-in-net

Second answer says use LINQ. For whatever reason, the place didn't use LINQ, so that explains my memory.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 04:28 PM
Quote:
Originally Posted by daveT
Any other language would throw an error. You'd "join" an array, but "concatenate," whether technically correct or not, is more often talking about strings.

I wouldn't even think of using "concat" on an array, but I don't JSq
A string is an array actually.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 04:34 PM
Quote:
Originally Posted by just_grindin
I'm reading a wiki book on C and I'm enjoying it all from my phone.

Seems like ebooks should be designed to find things faster if they are in any way searchable.
I avoid hard cover books like the plague now. One thing about Amazon's Kindle service is that I can put books in PDF format on my iPad by emailing Amazon with the attachment. I have saved a lot of money by doing that because you can find a lot of books in PDF format that are free. Yes searching is different but something I am happy to put with in exchange for saving money.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 04:45 PM
Quote:
Originally Posted by adios
A string is an array actually.


A wooden table is a tree, actually, but we don't go around carving "me and her 4ever" on every table we see.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 04:49 PM
Quote:
Originally Posted by adios
I avoid hard cover books like the plague now. One thing about Amazon's Kindle service is that I can put books in PDF format on my iPad by emailing Amazon with the attachment. I have saved a lot of money by doing that because you can find a lot of books in PDF format that are free. Yes searching is different but something I am happy to put with in exchange for saving money.
There's a limit on size you can upload though, at least directly to the kindle site or via email. Have to strip some PDFs of all images to get a few large books to work, even then many won't fit.

Still, if it's not made specifically for a small screen, it tends to look terrible or have illustrations pages away from where they're referenced.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-30-2015 , 04:52 PM
I'm terribly disappoint with the lack of OOP challenges available online. Hackerrank has like a tiny section for Java OOP principles, and it's all super easy stuff, like inheritance or *gasp* overriding a method and changing one word of the output.

I'm sure you're a bit limited what you can do without the ability to easily make packages with lots of interconnected classes and interfaces, but there's got to be some sort of good challenges online somewhere.

Or maybe that's an area with unmet supply.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m