Open Side Menu Go to the Top

04-26-2015 , 06:41 PM
Spoiler:
ONE.

I don't know Ruby. I was able to understand what ONE does with minimal effort.
If I hadn't seen ONE, I'd have no idea what TWO is supposed to do unless I guessed it right by the listing of roman numbers.
** 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 **
04-26-2015 , 06:55 PM
Spoiler:
Two looks like it may be slower.

I can see arguments for both. I think it is easier to create a collision with one, so I'd say two, given the choices, but I don't like either one.

I have a nagging suspicion that there is a bug in two.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 08:05 PM
Spoiler:
II
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 08:12 PM
Spoiler:
Tough for me but I'd go with TWO. I think the computation code is easier to understand in ONE but the clear mapping of numbers to roman numeral strings in TWO makes it the winner.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 08:15 PM
Quote:
Originally Posted by Anais
What was the transition like?

Also, how would you compare duties on a daily basis working from home vs in the office? I see jj already touched on that a bit with daily video conference scrums and such.
I found my initial transition a bit difficult. I gave up my managerial duties and ended up being treated as more of a contractor than a full-time employee. Things like being left off of company-wide emails and a few other things like that.

I wouldn't have kept working remote for my first company for very long and was already thinking about finding a local job. Luckily I was offered a great opportunity that kept me remote and so that's what I've kept doing.

And in all honesty I'll be working remotely for at least another 3-5 years because a local job wouldn't even come close to paying what I make working remotely for an NYC company.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 09:05 PM
[SPOILER]
ONE. I find it much more readable and easy to tell what's happening at each step
[/SPOILER]
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 09:26 PM
Quote:
Originally Posted by blackize5
[SPOILER]
ONE. I find it much more readable and easy to tell what's happening at each step
[/SPOILER]

Just easier to cut and paste his code than redo the same work...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 11:01 PM
Lol tapatalk. spoil tag doesn't actually create spoiler but spoiler does. Now viewing on the web it's the exact opposite.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 11:04 PM
Quote:
Originally Posted by blackize5
Lol tapatalk. spoil tag doesn't actually create spoiler but spoiler does. Now viewing on the web it's the exact opposite.

The 2+2 app is the same way FWIW.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 11:05 PM
I just assumed it was an intentional joke

Also, not smart enough to figure out what's going on there, but only spent a few minutes at work trying to figure it out
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-26-2015 , 11:14 PM
Spoiler:
Obviously 2 is DRYer which is nice. It's just so easy to look at ONE and see what is going on. The 1000 for M and 900 for CM is kind of "clever", but ONE's approach makes the algorithm clear in just 5 lines. To understand TWO you need to understand the hash mapping and logic separately before the whole thing is clear.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 12:10 AM
Quote:
Originally Posted by sthief09
does anyone have any good advanced python materials? I use it almost every day but I'm all self-taught and I think I could stand to improve in style and use the OOP features more regularly. there are also so any ways to accomplish a task in python and I think I often choose the longest way with too many loops and lines of code.
busy day in this thread... bump. anyone have any resources?

Udacity has an advanced python course I'm going to check out. anyone have anything else?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 12:16 AM
I know it's not optimal, but have you done codecademy? Is the experience level far below where you're at?

I don't know many good Python resources aside from maybe t*rrenting a university book.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 04:47 AM
Still haven't found a good solution for this, anyone got any ideas?

Designing a comments system:

Comments
----------
ID (PK)
UserID (FK)
Date
Comment

Now the problem is that the comments system works across multiple entities on the site. Arcade games, tutorials, manual entries etc etc. I don't want multiple comments tables per entity, just one table for all comments would be best (unless there's a really compelling reason not to).

So how to associate comments with a generic entity? A few years ago I did it my creating a GUID for each entity, and linking to the GUID in the Comments table. However, this has some pretty horrible problems, for example if someone reports a comment you flag it as reported, but in the admin pages all you have is the comment and the GUID, and it's difficult to elegantly find the source of that comment without having to search all your entities tables for the GUID.

Any ideas? Everything I can think of has some sort of inelegant design aspect to it. For example, with each comment I could store it's URL where it was posted but that again gets tricky if the comments are paginated or the URL of the entity changes (could happen).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 07:05 AM
Could you store the metadata that lets you derive the url? That shouldn't change (maybe?) and if you updated the irk paths you'd be able to calculate the new url.

One table with guids makes sense to me.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 07:31 AM
Quote:
Originally Posted by Gullanian
So how to associate comments with a generic entity? A few years ago I did it my creating a GUID for each entity, and linking to the GUID in the Comments table. However, this has some pretty horrible problems, for example if someone reports a comment you flag it as reported, but in the admin pages all you have is the comment and the GUID, and it's difficult to elegantly find the source of that comment without having to search all your entities tables for the GUID.
Confused about this. Can't the comment be flagged reported in the Comment table? Why are you searching for the entity?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 08:19 AM
Quote:
Originally Posted by gaming_mouse
Indulge me for a 30 second quiz.

Please put your answer in [ SPOIL ] tags.
Spoiler:
TWO ainec
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 08:21 AM
The context matters sometimes.

EG:

Someone comments "this content is racist" and the author of the content in question flags the comment because their content isn't racist.

In the admin section, you have the flagged comment "this content is racist", but you need to take a look at the content to see if it is or not. So you have to search a bunch of tables for the corresponding GUID to find out what entity it's referring to, a game, a tutorial etc.

Storing meta data is the only way I guess. Every entity has a unique ID, so I guess I could store:

Entity (int)
EntityID (int)

Where Entity is an enum:

enum Entity{
Game = 1,
Tutorial = 2
}

etc
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 09:22 AM
hows the flagging functionality work? maybe just throw some extra data in there instead of complicating the comments
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 10:08 AM
OK, that makes sense. GUID + enum seems fine. It's not elegant but I don't think there's an elegant solution.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 03:02 PM
Thanks for feedback, guess that's the way to do it then. Feels a little nasty but guess that's the only way!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 05:08 PM
Quote:
Still haven't found a good solution for this, anyone got any ideas?

Designing a comments system:

Comments
----------
ID (PK)
UserID (FK)
Date
Comment

Now the problem is that the comments system works across multiple entities on
the site. Arcade games, tutorials, manual entries etc etc. I don't want
multiple comments tables per entity, just one table for all comments would be
best (unless there's a really compelling reason not to).

So how to associate comments with a generic entity? A few years ago I did it my
creating a GUID for each entity, and linking to the GUID in the Comments table.
However, this has some pretty horrible problems, for example if someone reports
a comment you flag it as reported, but in the admin pages all you have is the
comment and the GUID, and it's difficult to elegantly find the source of that
comment without having to search all your entities tables for the GUID.

Any ideas? Everything I can think of has some sort of inelegant design aspect
to it. For example, with each comment I could store it's URL where it was
posted but that again gets tricky if the comments are paginated or the URL of
the entity changes (could happen).
I'm unclear if your asking how to structure you DB or your objects? It seems
that your asking about the db, and the problem you're running into is that a
Comment record can tie into records from many other tables.

Conceptually, you have a "type" problem, in that you have all these entitities
that are of the Commentable type, but that type exists nowhere in your data --
but only in your head. So what does that "type" mean? You mentioned a source,
like games, tutorials, etc. Is all you need a text description of that source?
I'll assume so.

You can solve this at the DB level, eg in your reporting problem, by creating
this type with derived tables.

Code:
SELECT entity1.guid, entity1.source_description
FROM entitiy1
UNION
SELECT entity2.guid, entity2.source_description
FROM entitiy2
and then join your comments table on this derived table using guid.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 06:23 PM
Quote:
Originally Posted by blackize5
[SPOILER]
ONE. I find it much more readable and easy to tell what's happening at each step
[/SPOILER]
I find this more readable than the previous posts. It's also easier to tell what's happening
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 07:56 PM
Spoiler:
Two, and I think less of "one" programmers
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-27-2015 , 08:45 PM
My proposal got accepted for Google's summer of code so I will be completely busy this summer. I have to admit, I'm pretty nervous about this since this won't be an easy project. I'm already experiencing imposter syndrome now. What's scary is that I will have to work with core audio which will be used for live video and chat.

In addition if I fail to implement my proposal that means no stipend.
** 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