Hacker Newsnew | past | comments | ask | show | jobs | submit | more boredprogrammer's commentslogin

Or ReGrub - which has the awesome advantage(?) of being "burger" backwards ...


"If you're using a bootstrap as your front-end framework, then why the <select> element isn't customized in my <form> just as the standard bootstrap dropdowns !?!"

You're not using a <select> element in your example so I'm not sure how this is a solution? If I went to a doctor complaining of sore fingers, I would not be impressed if his recommended solution was to say "ah, but you have perfectly working toes, just use them instead!"


The main sentiment behind MMM has always seemed to be "get a really high paying job and work your ass off for a few years". It doesn't really work if you are stuck in an average wage, with few prospects and no jobs to apply for.


this is true. It is certainly more plausible for the average HN reader than the average person in the world though.


Especially because I'm pretty sure he is/was a software engineer, who happened to ride the crest of two real estate bubbles.


he was(and so was his wife). AND they were canadian so free/cheap school graduating right around 2000 before moving south of the border, they defs got lucky(and definitely worked hard)


Possibly a stupid question, but ... Can anybody explain to me the use case for Bower/Yeoman?

Whenever I am adding javascript to a website I just use a cdn such as http://cdnjs.com/

Why would I use Bower instead of this? Is it more of a node.js thing? Or is it something to do with hosting your own copies of the libraries instead of a CDN (I thought this was frowned upon)


Dependencies. For example, Backbone depends on Underscore, and simply writing <script src="underscore.js"/><script src="backbone.js"/> encodes nothing about that fact. There's nothing stopping you updating Backbone to say a 2.0 that requires features in Underscore 2.0, but forgetting to update Underscore. On the other hand, bower update backbone will see dependencies: {"underscore": "^2.0"} in bower.js and update Underscore as well.


Is it something like NuGet for .NET packages but for Javascript? Does that mean that an ASP.NET MVC application using NuGet wouldn't really have any "need" for Bower?


It's similar but for you to not "need" bower but get the same from NuGet, you'd have to make sure that every JS library you need is on NuGet.


Off-line applications.

We are developing a cross platform mobile application which has to run locally on user's tablets. Reaching out to a CDN to fetch dependencies is out of the question. We are basically using HTML5 in place of Qt5 here.

However, we found several horrible, horrible bugs with Bower randomly failing to install dependencies (such as https://github.com/bower/bower/issues/933), which is now thankfully fixed.

We are also investigating Browserify, so might switch to use NPM also for (some) client side dependencies.


I personally reported https://github.com/bower/bower/issues/1019 - that was an awful bug to deal with, and it caused us at work to put everything in bower_components into source control to guard against it in the future.

To the Bower team's credit though, once they fixed the issue, I have had smooth sailing since.


Some of the reasons you'd want to use Bower:

* Your external libraries have dependencies, and having dependencies managed for you is a good thing.

* The external components you're using include both JS and CSS, and need to be served separately.

* Because you love your users, and want to concatenate your javascript and CSS to single files before serving it out to your users.

* Because you're including components that expose SASS mixins you want to use inside your existing code.

The hosted vs serving your own libraries is a complicated topic, but the basic answer comes down to "the less requests your clients have to make, the faster things will be".


concatting JS libraries into your own JS payload is a debatable practice. If it's a popular library, the user likely has it cached already and so the request to get it takes a few milliseconds. Where as your own JS payload will change with every release, forcing them to always re-download the same library code.


It depends on which libraries you are using.

Sure if you need jQuery and maybe another plug in that's fine, you're at 3 files to be loaded then. 2 from cdn, the jquery and plugin, plus one from your server.

For a web application however it's likely to contain many many more resources, backbone, marionette, jquery, handlebars. Those aren't great examples because NPM handles those just fine, and the discussion is concerning bower.

NPM billed itself as javascript primarily and never tried to sell itself to front end developers. Not terribly hard, it was definitely for node development. It was almost literally a branding issue. I think another big problem was the continued separation of concerns employed by most node developers. They tend to keep their front end/client side code in one directory bunched up together such as `/assets` or `/client` and then use the the rest of the project structure for their models directory, controllers, etc.

A real back end system requires this complex set up while there has been a long trend of front end being as light weight as possible while providing as interactive an experience as possible.

With the continued rise of SPA's though the front end is now easily as complex as the back end, and in fact shares a lot of the same logic. With build tools like GulpJS it's possible to fix this structural issue and now keep your code more logically grouped by function, group all of your users files, all of your messages files together and then concatenate and minify your client into a single file for production.

Anyways, so for a SPA you'll end up with a ton more dependencies, both css and js files. Bower billed itself for this purpose. Their branding and singular purpose made thing far easier.

I also prefer bower because it has a significantly better search and sort method in comparison to npm.


Bower has tons of packages that cdnjs doesn't, and includes CSS focused packages and the like.

Yeoman is just a scaffolding tool, with application specific generators e.g. angular, backbone etc.. Generators also typically come with a build task, which creates a deployment ready folder all minified & concatted up for your enjoyment.


> Or is it something to do with hosting your own copies of the libraries instead of a CDN (I thought this was frowned upon)

I rarely use CDN copies of scripts for work projects. When Google first set up their CDN for jQuery, I used it on a client's custom e-commerce system. Client called us up and SCREAMED at our development manager because he was getting a warning that the admin section of his brand new site was insecure.

Google was using an invalid SSL cert for the CDN's domain. It was completely out of our control. But that's the problem -- what gets served up is completely out of your control. It could have a bad/missing SSL cert. The file could go missing. Or it could be replaced with malware. It's not worth the couple milliseconds you're going to save.


Updates, dependencies, offline development, etc. Not really a node.js thing (though bower itself can be installed via npm), it's specifically targeting front-end development.

The debate over CDN vs. local is debated on all levels. Usually CDN is faster due to cached files, but what I consider the "best" approach is to use a CDN for most everything with local fallback (yes, you can use bower packages for the fallback if you please).

Check the below linked poll out... http://css-tricks.com/poll-results-cdn-or-local/


One of the reason for me to use bower is to have the dependencies only relying on your server and not an external CDN. Depending on what you do, that is something you'll want.

Another advantage to this approach is you'll be able to also play with the files, e.g group them, minify with the tools you want, debug with the full source available or only use parts of the libraries.

Also for offline development it's a bliss (on a laptop on the go for instance).

You can do all of this by checkout each project individually and manage them yourself, but it's so much easier to just use hower.


They are generally recommended, though are also the occasional arguments against the use of CDNs http://zoompf.com/blog/2010/01/should-you-use-javascript-lib...


I keep getting "[fail] Proof of work not calculated" as my Public Key


If you could send me info about browser you use and extensions to pavel@karoukin.us - I would greatly appreciate it.


I was receiving this error message in Chrome on on a Mac in both regular-mode and incognito mode.

Here's more info about my browser: http://aboutbrowser.com/view/JRv4J


I'm getting this on Firefox 28 on Linux Mint even after disabling privacy addons.


I'm also getting this in Firefox 31 on Mac OS X.


thanx. I will look into this issue. Do you have any privacy-related extensions installed by any chance?


So do I.



Meh. Posting because this type of story irks me every time.

I know I am a decent programmer. I also know I am not a good sales person (why? because I'm not good with people, or lying, or gambling - in fact I'm not allowed to talk to new leads at work until they are confirmed as clients and fully on board with a project). Therefore I need to stick with programming. However my current job has me stuck doing mundane repetitive programming. I've been looking for quite some time, but there are no job prospects in my field in my locality.

So the only realistic solution to being the best I can would be to go out on my own and start my own company - but I am not a good sales person, and chances are high that I would fail and be unemployed and broke. I can't move to a different location (I'm 2 years into a mortgage which has terms saying I cannot sell the house for 5 years), but even if I did Ireland as a whole is in a huge recession with huge unemployment and very few prospects. Moving abroad is expensive and has too many unknowns.

So I guess I'm left with post negative comments to random people on the internet.

You can't just say "be the person you want to be", and snap your fingers and make it happen. You can't blame your limits on other people and what they have said to you in the past. You have to work with facts as they are presented to you, and the fact is everyones circumstances are different and not everyones situation can be improved by reading silly feel good stories.


Indeed. Miley Cyrus was robbed.


Levarage -> Leverage


Thanks, I spell-checked the body of the page but forgot the intro! Updated now.


'Lets put qr codes on "welcome to $town" signs than when someone scans them with their phone, its loads a website advertising various things you can do/buy/participate in around town.'


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: