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

04-23-2016 , 01:50 AM
Thanks guys xD I was just worried the reader wouldn't notice that I was not doing "i < length" but was instead doing "i < length - 1" so I was afraid that might be confusing, but I agree with what you guys said, a simple note can avoid any confusion.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 02:04 AM
What is it called when there is an object and a pointer is the only thing pointing to that object and then the pointer goes to something else so there's no way to get to that object. That's not called a dangling pointer is it? I guess what I want is what do you call the object after that happens to it... a lost object?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 03:05 AM
Quote:
Originally Posted by Noodle Wazlib
general best practices question: is it advisable to write a lot of code that you know will have to be changed later?

for example, completely styling a website wrong, that you will need to completely redo later, just for the sake of it not looking ugly during development

good? bad? neutral?
Very Bad. Why not just style it right from the get-go or wait until the end? My experience is that you never want to go back and change **** code.

Last edited by penguinpoker; 04-23-2016 at 03:13 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 03:09 AM
Quote:
Originally Posted by Ryanb9
What is it called when there is an object and a pointer is the only thing pointing to that object and then the pointer goes to something else so there's no way to get to that object. That's not called a dangling pointer is it? I guess what I want is what do you call the object after that happens to it... a lost object?
https://en.wikipedia.org/wiki/Unreachable_memory Unreachable Object. Lost object sounds cooler. From my understanding it gets garbage collected.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 05:32 AM
Quote:
Originally Posted by penguinpoker
https://en.wikipedia.org/wiki/Unreachable_memory Unreachable Object. Lost object sounds cooler. From my understanding it gets garbage collected.
This is Java code right? Not sure how JVM recognizes it is garbage until it goes out of scope. It might but not sure how. Well I read the link, a lot going on behind the scenes in Java code execution.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 05:42 AM
Quote:
Originally Posted by Ryanb9
Shifting pointers left 1 slot, adding null to the far right slot that opens up:

Code:
for(int i = 0; i < children.length; i++)
{
	if(i == children.length-1)
		children[i] = null; 
	else
		children[i] = children[i+1]; 
}
Code:
for(int i = 0; i < children.length-1; i++)
{
	children[i] = children[i+1]; 
}
children[children.length-1] = null;
which style of doing this would you say is "standard"? which is more readable / easily understood to someone reading your code so that they will know what is going on easier?
What happens when children.length == 0?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 01:40 PM
Quote:
Originally Posted by adios
What happens when children.length == 0?
length of children is 2*t, so least it can be is 2 or 4, cant remember if t=1 is a valid BTree

Last edited by Ryanb9; 04-23-2016 at 01:46 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 02:20 PM
I think I would use memmove() and not write my own
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-23-2016 , 03:38 PM
Quote:
Originally Posted by Noodle Wazlib
general best practices question: is it advisable to write a lot of code that you know will have to be changed later?

for example, completely styling a website wrong, that you will need to completely redo later, just for the sake of it not looking ugly during development

good? bad? neutral?

I wouldn't bother with anything more than bare bones styling during dev unless you are sure about what you want it to look like when final (which isn't the case here).

My approach for the final project at the bootcamp was functionality first (starting with having the most basic things working properly and building on that), styling last.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-24-2016 , 06:50 AM
Quote:
Originally Posted by gaming_mouse
shoe,

have you used browserify and related tools? how did you like that route compared with webpack?
Yes, I've used grunt and gulp, etc..

I like webpack because it does everything for me with a fairly tame config. The built in dev server is awesome too. It makes incremental changes to sass really fast.

There's also plugins for everything you can imagine (including md5 tagging all assets so you can cache them forever).

The biggest win is there's no need to use browserify + something else. You just use webpack and everything is accounted for.

I typically use the ES6 (babel), sass, image optimization and md5 tagging plugins/loaders with the dev server.

@Roger,

React support is top notch yeah. A few lines in your config and the next thing you know you have a dev environment where you can make a code change and get reloading of your react modules without even having to refresh your browser.

Last edited by Shoe Lace; 04-24-2016 at 06:55 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-24-2016 , 02:25 PM
for our angular app, we use ui-bootstrap to bridge css components like tabs, modals, etc.

what would you recommend for react? we're thinking between material-ui, react-bootstrap, or maybe just raw bootstrap4
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-24-2016 , 03:45 PM
You could try my tactic of throwing a bunch of random CSS at it until it kinda looks right and call it a day
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-24-2016 , 06:12 PM
http://techcrunch.com/2016/04/24/how...the-right-way/

This is an interesting read. Talks about how to freelance and treat yourself as a business.

Surprised that a fourteen year old could make a couple grand a month doing Wordpress sites for people.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-25-2016 , 08:43 AM
Quote:
Originally Posted by Noodle Wazlib
You could try my tactic of throwing a bunch of random CSS at it until it kinda looks right and call it a day
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-25-2016 , 10:13 AM
Not a bad idea, there's like 10 CSS files and some of them are crazy long. Definitely learning a lot about the cascading nature of the language.

In browser game news, I got hooked on slither.io yesterday. Only though it was a mobile app but the wife found out you can play via the website (same name). I wonder what they used to make the game. Runs pretty decently for 400 connected to a server.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-25-2016 , 11:25 AM
If you need to work with a lot of CSS and want to save your sanity I can recommend:

http://sass-lang.com/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-25-2016 , 01:43 PM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-25-2016 , 10:12 PM
@noodle and wolfram, we might be talking about separate things...i'm not talking about writing css, in fact we're trying to do as little of that as possible. that's why we want to use things like bootstrap4 (which is sass) but will have to write the bridge, or just use the bridge w/ css components entirely, say:

https://angular-ui.github.io/bootstrap/

since we're using react, it'd have to be

http://www.material-ui.com/#/

but we're not sure since the ecosystem isn't as straightforward as angular 1.x
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 12:11 AM
I have a function that takes a long and returns the node into which that long should be inserted (BTree stuff). I made it 2 parts so that I can do recursion with one but call it with the other. Both of them are private methods.

It works like this:

Code:
node getNodeValueGoesIn(value) 
{ 
     return getNodeValueGoesIn(root, value) 
}

node getNodeValueGoesIn(node, value) 
{
     if value goes in node, return node. 
     if not, do logic and call this recursively on a child
}
Both are private, but I want the second one to be really private. I don't want it to be called from anywhere except from inside the first function, because it only works if you start the recursion on the root node of the tree. How do I do this? Do I just use javadocs and say "dont use this method ever" or is there a better way? (I am working with a partner on this project is the reason for the not wanting it to accidentally be used).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 01:56 AM
If it's that important, you should put the two methods into a separate class. You can leave the recursive method marked private and it effectively becomes "really private." The initial method can be marked with any other appropriate modifier so that you can access it where you need it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 05:02 AM
Rename the method to make it obvious that it should only be called with the root node as parameter?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 09:28 AM
Hey guys,
I have a job interview coming up tomorrow for an internship position at a pretty big and respectable company (bank).

Any tips on what I should expect, and how I should try to behave during the interview? I don't have much experience with job interviews tbh

Also, from what I know they develop in C#/.NET, whereas I'm really only familiar with Java. How different are those languages and is there anything in particular that would be good to know about C# beforehand? Assuming they'll know that I don't have much experience with C# though
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 10:45 AM
You have an interview tomorrow and you're just now wondering how to do an interview?

Well, go buy cracking the coding interview and absorb all 600 pages as quickly as possible. Should help.

C# and Java are very similar from my limited experience. Let them know how you'd solve things in Java if possible, and note that you'd pick up c# quickly due to your Java exposure.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 12:47 PM
Quote:
Originally Posted by Mavoor
Hey guys,
I have a job interview coming up tomorrow for an internship position at a pretty big and respectable company (bank).
1. Convince them that you can do the work.
2. Convince them that you fit into their culture.

You don't need to be a superstar. You don't need to know everything. You just need to be useful enough to them that it makes sense for them to pay for your service. And your co-workers need to be able to stand being next to you 8-10 hours a day, 5-6 days a week.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2016 , 03:33 PM
Quote:
Originally Posted by Mavoor
Hey guys,
I have a job interview coming up tomorrow for an internship position at a pretty big and respectable company (bank).

Any tips on what I should expect, and how I should try to behave during the interview? I don't have much experience with job interviews tbh

Also, from what I know they develop in C#/.NET, whereas I'm really only familiar with Java. How different are those languages and is there anything in particular that would be good to know about C# beforehand? Assuming they'll know that I don't have much experience with C# though
Be the opposite of this guy, more or less:

https://medium.com/@evnowandforever/...324#.1texi2irr
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m