Better HN
topnewbestaskshowjobs
Log inSign up

mostlystatic

840 karma · joined Oct 18, 2012 (14y ago) · 248 submissions

Founder of debugbear.com.

Email: matt at mostlystatic.com

Submissions

211.

The Code Quality Myth(artima.com ↗)

2 points · by mostlystatic · 11y ago · discuss

212.

Refactoring if statements for readability(codereadability.com ↗)

2 points · by mostlystatic · 11y ago · 1 comment

213.

Product Hunt Live(producthunt.com ↗)

2 points · by mostlystatic · 11y ago · discuss

214.

Coding Without Loops(codereadability.com ↗)

4 points · by mostlystatic · 11y ago · discuss

comment 11y ago · link · parent

Is there any advantage in having GOOG stock when you work at Google, rather than selling half of your GOOG stock and buying FB?

I think the expected return would be the same, but it would be less extreme (less likely to be 10x, less likely to be .1x, more likely somewhere in-between).

216.

Atomic Web Design(bradfrost.com ↗)

1 points · by mostlystatic · 11y ago · discuss

comment 11y ago · link · parent

File size could be a criterion for front-end libs.

218.

PSI: PageSpeed reporting as part of your build process(github.com ↗)

1 points · by mostlystatic · 11y ago · discuss

219.

Tips for building a website with limited developer resources(mattzeunert.com ↗)

1 points · by mostlystatic · 11y ago · discuss

comment 11y ago · link · parent

In addition to the benefits you get as the contractor, agencies also don't want to hire sole traders as it could be argued they are actually employees. This would mean it's the agency's responsibility to withhold taxes, and the contractor would have rights to things like holiday and sick pay.

comment 11y ago · link · parent

I really like the idea of adding a Slack channel to the problem statement. I always have questions, and channeling them through a recruiter via email is a pain.

A lot of take home problems are very unrealistic, so it's difficult to make the trade-offs that you'd normally make when trying to ship software. Being able to ask someone on the team what their intentions are would be super helpful.

My pet peeve is front-end tests that ask you to write maintainable code, but you're not allowed to use any libraries. So instead you have to create your own tiny MVC/templating/helper libraries just for the project - but obviously they won't be as good as something you've spent more than 4 hours on.

comment 11y ago · link · parent

I was lucky to get a 3-day a week contract, but still had to do my freelance work in the evening/weekend for a bit.

comment 11y ago · link · parent

In my experience (in the UK) you start by submitting your CV to loads of recruiters saying you are looking for contract roles. If they think they can make money from you they'll give you a call and ask for your rate etc.

I'm not the OP, but I just do plain front-end development. Contract length can vary, sometimes it's one week in a digital agency, sometimes it's a few months in a large company. You can also find contracts that are 12months, and they can be extended after that.

I was freelancing when I started out, so I had some income but was also available for full-time contract work during the day.

224.

Why Underscore is awesome(codereadability.com ↗)

1 points · by mostlystatic · 11y ago · 1 comment

comment 11y ago · link · parent

So this means 1.5M was the post-money valuation, correct?

comment 11y ago · link · parent

I think the idea is that new users will find the question and think that the type of question is still welcome on StackOverflow.

There used to be a question about popular programming blogs. To me it looked like a good and popular question, so I asked a similar one - which was then closed, because by then the consensus among the mods had moved on to discourage that kind of question.

227.

Don't use || to set default values in JavaScript(codereadability.com ↗)

26 points · by mostlystatic · 11y ago · 56 comments

comment 11y ago · link · parent

I was wondering about the cost or pricing, but the answer is they won't say yet. http://www.bbc.co.uk/news/technology-33427816

> The BBC won't give exact figures on the costs - it says they're commercially sensitive - but says the vast majority is being covered by the partners in the project.

comment 11y ago · link · parent

In general I think that's a good thing. People are hard to change, but redesigning the system is relatively easy.

230.

Grunt-include-source: Include your sources into your HTML files automatically(github.com ↗)

1 points · by mostlystatic · 12y ago · discuss

comment 12y ago · link · parent

You'll probably need a different domain name if you want to rank for the name of your product.

Google has little reason to change anything - chances are most people who type in 'birthde' are looking for 'birthday'.

comment 13y ago · link · parent

I suppose a non-design perspective would focus on implementing features rather than how the user can benefit from them most easily.

Two sites may allow you to do the same thing, but one of them may be superior from a design perspective.

A site that is stable, maintainable and easy to implement would be superior from an engineering perspective.

The design perspective depends on engineering aspects, since the user experience would be bad if the site is broken.

comment 13y ago · link · parent

Maybe one situation where this is a good idea is when the current "designer" is even worse than you are. In that case you add value through your design skills and you're the lead designer in a designer-free company.

Obviously that only works if you know the company isn't actively looking for a real designer, in which case your work will disappoint.

comment 13y ago · link · parent

Neither metric really captures proficiency accurately. Not sure if that's possible.

Years of experience is difficult to measure. If I have a node.js build script that I update occasionally, do I have one year of node.js experience after working on the project for a year?

A pure front-end developer will know Javascript much better than a back-end dev who started using it at the same time.

I also spent 3 years working with MySQL before actually learning to use joins or grouping.

Doing several independent project instead of a large one only makes it more impressive, but doesn't indicate greater skill.

Sometimes I wonder if I should add small half-baked projects to my portfolio. I may only have worked on them for two days, but they would make me look super prolific. Do you think that's a good idea?

comment 13y ago · link · parent

Cool, thanks for the explanation. I usually have the development config in the repo and the deployment script overwrites it on the server.

comment 13y ago · link · parent

Oh dear, you aren't supposed to commit configuration files? Is this a security thing? What's the proper way to distribute config files to to the server and other developers?

"sometimes php developers commit configuration files and things that are used in production where they shouldn’t be."

Not sure if I'm parsing this correctly. Should the files not be in production or should they not be committed? Is this just about overwriting the development configuration in the config file?

comment 13y ago · link · parent

You can access global variables as normal, but you can't implicitly declare them by doing `myGlobaVar = 5` - you have to use `window.myGlobalVar`.

comment 13y ago · link · parent

What is supposed to happen? Looks normal to me: http://imgur.com/6XA69iv

comment 13y ago · link · parent

My main reason would be not having to set up my computer for development. When you're new to an ecosystem it can be super painful to get set up.

Example: I use Python a lot, but had never used it with MySQL until yesterday. I had MAMP installed and I just wanted a Python package to run queries. I tried to install MySQL-Python, but it couldn't find mysql_config. So I find it and update my PATH. Then it can't find some files. I google it and it turns out MAMP MySQL doesn't include some parts and I need to install another version of MySQL to make it work. It works now, but the MySQL Workbench export/import feature isn't happy with the MySQL version number.

Especially since many open source projects are compiled from source and have many dependencies I'd love an environment that just works.

1
56789