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

08-04-2017 , 06:42 PM
Quote:
Originally Posted by RustyBrooks
Run as fast as you can in the opposite direction. No one does 1 day contract to hires. If there's no contract, you aren't a contractor.

Yeah, i figured! It felt weird when he said that. Both the CEO and only dev for the startup, where trying to rationalize and egg me to agree that this was a reasonable deal all around.

>"yeah, this is a simple page, make it look like that all in react (though we only want it static) shouldnt take more than a day. This is the contract to hire were talking about"

"So you guys want me to freelance for this one page"
-"What? No, youll be contract to hire, you know? We just want to see how well you do this, just no contracts signed"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 06:47 PM
Quote:
Originally Posted by whb
What are the standard rates for an average dev for: freelance and contract to hire?

I'm going to guess that in hourly rates it's probably freelance > contract to hire. Correct? I'm asking because I just said no to an interview that wanted to hire me as a "contract to hire" but actually doing a freelance gig. At which point, they may or may not hire me or probably would have led to being kept on as a freelancer. If it helps you guys decide, when I asked about the period of time the contract would stipulate, the CEO said "oh there won't be any contracts signed"

I easily responded "oh that's not a contract to hire, that's freelancing". He wasn't aware that it was different. I left shortly after. Would anyone take a fake "contract" for less than 1 weeks time(he kept insinuating it would take less than 1 day )?
When someone says "less than one day," they likely have no clue what they are talking about, and if it takes more than one day, they are going to figure out a way to not pay you. <- generalization, but no one hires people for a 1/2 day work. That makes no sense.

Everything has to be signed and dotted. Never ever forget to CYA.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 10:52 PM
Quote:
Originally Posted by suzzer99
I should have included the outer function:

Code:
module.exports = {
    metadataCall: function(app, logger) {

        const metadataObj = {
            metadataSuccess: null,
            obfuscatedYesInMetadata : []
        };


        var metaPromise = new Promise(function (resolve,reject){
            unirest.get("http://"+serviceOptions.host+serviceOptions.path).end(function(response){
                if (response.status === 200) {
                    if (response.body !== null && response.body !== undefined) {
                         metadataObj.metadataSuccess = true;
                         resolve();
                     } else {
                         logger.log('error', "Error receiving data from the Metadata service call");
                         metadataObj.metadataSuccess = false;
                         reject();
                     }

...

        metaPromise.then(function(){
                return metadataObj;
            }, function(){
                logger.log('error', "attributemetadata service call promise failed");
                return metadataObj;
            });
        }
    }
};
There's no other return statement from metadataCall(). Elsewhere in server.js (node's entry point script):

Code:
/**
 * Making the Metadata call as the server starts to retrieve the data and use it for Profile call
 */
const metadataObject = require("./get-metadata.js").metadataCall(app,logger);
I pointed out to him that his methods in promise.then() are returning metadataObj to nowhere. So I just saw him check in a new PR where he replaces the promise.then() block above with this original:

Code:
 return metadataObj;
Infinite facepalm.

I think the problem is this might actually be working for him, because he's returning metadataObj as a reference, then changing it later when the promise comes back. So even though he's returning a default object, the reference is getting updated with the results of the async call.

Ugh - it's like trying to untangle a crazy person's argument.
Doesnt resolve/reject only happen on response.status === 200?

It can't reject on actual errors. Unless I'm misreading something?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 10:55 PM
That's a major problem with it, but not the only one. And again I don't know JS but I feel confident the right way to do this should be like 5 lines, tops
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 11:00 PM
I think you're right Craggoo.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 11:03 PM
His company may work like mine. Some of the backend devs return successful response with errors if there are any instead of just an error response with messages. To them, they think "did the response succeed?". Yes. "Did it actually do what it was supposed to?". Yes -> no errors. No -> errors. The status code is always 200.

A simple example of the above...

I make an api call but am missing one of the required parameters. Some of the backend devs would return a 200 with a list of error(s).

I make an api call with all the required parameters. It succeeds -> no errors. It fails -> errors (still 200 in both cases)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 11:05 PM
Quote:
Originally Posted by Craggoo
His company may work like mine. Some of the backend devs return successful response with errors if there are any instead of just an error response with messages. To them, they think "did the response succeed?". Yes. "Did it actually do what it was supposed to?". Yes -> no errors. No -> errors. The status code is always 200.
the webserver on the other end does not have complete control over the error codes the client will receive.

Also, ew, although we've all been there.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 11:13 PM
There were a couple times where the person doing the backend logic would come to me on a project we're tagteaming and ask me why I'm not showing errors. It was those cases where they were returning a 200 with errors instead of an actual error response. Awesome!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-04-2017 , 11:41 PM
Speaking of APIs, it looks like we're gonna start using json-server as a pseudo API to help us prototype frontend work faster. I took on building it out today and had our endpoints mimicked really quick.

It seems like a nice tool to use.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2017 , 01:00 AM
Quote:
Originally Posted by Craggoo
Doesnt resolve/reject only happen on response.status === 200?

It can't reject on actual errors. Unless I'm misreading something?
He's calling reject() on errors too. I left that part out (hence the ... and no closing brackets). I was trying to condense down to the heart of the ****up.

The big problem is he's returning metadataObj from the resolve and reject methods, because he thinks that's doing something, even though those returns are going nowhere.

Last edited by suzzer99; 08-05-2017 at 01:10 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2017 , 01:04 AM
Quote:
Originally Posted by Craggoo
There were a couple times where the person doing the backend logic would come to me on a project we're tagteaming and ask me why I'm not showing errors. It was those cases where they were returning a 200 with errors instead of an actual error response. Awesome!
Good example of **** no one talks about or takes seriously until you're deep into development. Consistent error handling from the beginning is one of my biggest bugaboos. I annoy the **** out of people with it.

On my side project the dev I always got into it with hardcoded 404 as a status code for all errors. He said it would take a week to make them customizable. So to this day the API returns 404 and I would think the end point is wrong, then eventually remember to check the JSON payload and there's some system error in there.

So annoying. I begged him to fix that 10 times. He just doesn't care. And because he and the boss have known each other since 8th grade, I'm the problem, and eventually let go which I'm pretty happy about (unless they somehow find a greater fool and sell something for $millions).

I'm on an unlucky streak of working with ****tards.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2017 , 11:48 AM
Quote:
Originally Posted by suzzer99
Good example of **** no one talks about or takes seriously until you're deep into development. Consistent error handling from the beginning is one of my biggest bugaboos. I annoy the **** out of people with it.

On my side project the dev I always got into it with hardcoded 404 as a status code for all errors. He said it would take a week to make them customizable. So to this day the API returns 404 and I would think the end point is wrong, then eventually remember to check the JSON payload and there's some system error in there.

So annoying. I begged him to fix that 10 times. He just doesn't care. And because he and the boss have known each other since 8th grade, I'm the problem, and eventually let go which I'm pretty happy about (unless they somehow find a greater fool and sell something for $millions).

I'm on an unlucky streak of working with ****tards.
It might be time to start your own company, so you can make the hiring decisions, etc. Dead serious btw. Why the hell not?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2017 , 11:07 PM
Consultancies are pretty painful. Getting clients is hard, devs are expensive and flaky, clients are fickle. You're never going to break the bank.

Otherwise I need an idea for a business.

Last edited by suzzer99; 08-06-2017 at 11:36 PM. Reason: And time to implement it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2017 , 11:20 PM
Maybe building and running your own business is stupid difficult, incredibly time consuming, and a super unstable to uh... "make a living" for the first 5 years?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2017 , 11:27 PM
I did a consulting business with a partner for a few years. Started it on on side and it was never my full time job. There were things I liked but many many things I hated. I actually still host a few clients from those days, more than 10 years later.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2017 , 11:40 PM
Bottom line is I'm really not that much of a self-starter. I will work my ass off for a team. But for myself I struggle to get things going. Spending 2 weeks on my open-source project is about my limit. At least since the early days when I was hungry to start a career. Now I need deadlines and people counting on me. A partner could be enough I guess.

Also why I never did much with comedy. I didn't have the hustle. I wanted someone to discover me and make all that other stuff happen.

I did teach myself poker, make coach/mentor relationships on 2p2 and study a ton on my own. For some reason I was pretty self-motivated on that. Maybe I just need the right subject.

I struggle to motivate myself to process images and learn more photoshop tricks. I still loving taking pictures, but processing is not as fun for me anymore, and I know it's very unlikely I will make a living out of it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 01:20 AM
Quote:
Originally Posted by RustyBrooks
I did a consulting business with a partner for a few years. Started it on on side and it was never my full time job. There were things I liked but many many things I hated. I actually still host a few clients from those days, more than 10 years later.
There is a difference between the constant pressure of getting a new client every day and the incidental phone call from the grapevine, especially when there is no parachute.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 06:44 AM
Quote:
Originally Posted by leavesofliberty
It might be time to start your own company, so you can make the hiring decisions, etc. Dead serious btw. Why the hell not?
How will you go about starting your own company? I suspect that you have some ideas for products and will be seeking VC money which is of course different than being an independent consultant. Not trying to get you to disclose your product ideas just wondering if that is the direction you are heading in.

Personally my mindset is definitely more like what suzzer described in his post.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 06:49 AM
Quote:
Originally Posted by adios
How will you go about starting your own company? I suspect that you have some ideas for products and will be seeking VC money which is of course different than being an independent consultant. Not trying to get you to disclose your product ideas just wondering if that is the direction you are heading in.

Personally my mindset is definitely more like what suzzer described in his post.
I am studying C/C++ for the next couple years, then I'll get into AI. Lots of books to read atm.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 12:16 PM
Quote:
Originally Posted by suzzer99
Also why I never did much with comedy. I didn't have the hustle. I wanted someone to discover me and make all that other stuff happen.
Back in the late 90s, I worked at the Improv and got to meet quite a few comedians, a few who are on TV today.

A common thread with all of them is they are mostly broke and sometimes homeless. Felt like half of them committed suicide, though the real number is probably closer to 25%.

Like, no one got discovered within 10 years of being on stage, and that would be pretty quick, actually.

I feel like comedy has to be the hardest possible profession to do well in. Those guys and gals on stage really really want it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 12:54 PM
It's the same as most things. Easy to do it casually or occasionally but what separates out those at the top is more often a ridiculous work ethic than talent. That and being in the right place at the right time.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 01:01 PM
Yep work ethic is key. You have to be super self-motivated and driven. I think I might have done well if I got into a group of young up-and-coming comedians trying to out-compete each other.

Also you have to decide if you want to move to NY or LA to really try to make it big, or maybe transition into writing or something - or settle for a rough living on the midwestern circuit.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 01:16 PM
I think it comes from a surprising place as well. If you ever get a chance, check out the free comedy shows they do on Thanksgiving on Sunset Blvd. I think it's the Laugh Factory?

I went once, years back, and they gave a pretty decent show. Some comedians were on stage, others were ushering, others brought food or whatever.

During the whole show, they were picking on homeless, poor people, junkies, and so on. At the final part, they pulled up the 30 or so comedians (many you've seen on TV), and they said: "Look, I know were were making fun on all of your behalf, but the reason we do this is year in and year out is that each and every one of us standing on stage slept in a cardboard box."

I think that goes with business or any odd venture. Few will do anything until they have nothing left to lose, which is why I claim I never met a business person who actually wanted to start their own business. In many ways, comedians are similar. They either continue being homeless or keep pressing to get on tour.

On the other hand, many "upcoming" comedians and actors in LA are on SSI, taking crazy pills for a monthly check. There are a few people who did well working the midwest circuit before the mayhem of LA, for sure. At least with YouTube, Los Angeles isn't really a requirement these days.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 04:16 PM
Anyone know a request to make an Express server 500?

I'm writing some test scripts for a pseudo server and making it 500 is not obvious, and googling gets me a million people asking how to fix a 500.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2017 , 04:25 PM
Can you just write a stub thingy that returns a 500 when called on the server? Otherwise look at stuff running on the server and find something it can't handle, maybe test cases for stuff already running on the server would help. Apologize if none of that applies to express servers, I'm putting off writing test cases...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m