Better HN
topnewbestaskshowjobs
Log inSign up

nek4life

196 karma · joined May 28, 2009 (17y ago) · 70 submissions

Web Developer/Python nut currently living in Burlington, VT

Use my username@gmail.com to email me.

http://hnofficehours.com/profile/nek4life/

Submissions

comment 7y ago · link · parent

It solves the problem of scientists that have done experiments, but have no way to share and have their experiments and have them validated using the same procedures and programs. At least that's the way I understand it.

You can even have a notebook run in a cluster.

http://ipython.org/ipython-doc/dev/parallel/

comment 7y ago · link · parent

This is pre-alpha. They just finally opened the repo to the public for contributions. I don't believe they are replacing any of that, just not implemented yet.

comment 7y ago · link · parent

I think the goal is feature parity. It is going from 2-3 so I would expect some backwards incompatibility. I know they plan on shipping a separate compiler just for IE11 if you need support for that browser. The new reactivity model is driving that decision.

comment 7y ago · link · parent

Yes, that is the beauty. And when you really do need the full power of render functions Vue has those too.

https://vuejs.org/v2/guide/render-function.html

comment 7y ago · link · parent

> Yes. However, one thing you fail to see is that it directly compiles to function calls.

I understand how JSX works, stop patronizing me. The only thing I fail at is seeing how any of your examples are complicated or have magic so deep that you need to continue to burn Vue at the stake for. In fact, I find your Vue template examples completely intuitive and easy understand with minimal time invested in learning how Vue templates work. It's my preference to spend a little bit of effort up front learning how Vue templates work in order to have clearer separation between business logic and templates.

comment 7y ago · link · parent

> That's it. Even "html-like" attributes that people seem to not like... are exactly what HTML attributes are in actual Javascript DOM APIs [1] [2]

The attributes / DOM properties in JSX are also a mixed bag and not consistent. See https://github.com/facebook/react/issues/13525#issuecomment-...

> Look, it's exactly what React without JSX is [3]. Only in React you don't need to invent a custom scripting language and binding rules.

JSX is a custom extension to JavaScript. It's not part of JavaScript or intended to be part of the spec or implemented in browsers. In fact, you have to use some sort of transpiler in order to use it. So, it's not just JavaScript.

> https://pbs.twimg.com/media/DbVEoKOX0AEEen6?format=jpg&name=....

There's really nothing that complicated in here, if you're familiar with Vue. In fact, it's really easy for me to see what's going on at a glance in one place, which is my personal preference. From my own experience, that's rarely the case when working with React the way JSX tends to get broken up because it doesn't have something as simple as a standard if conditional statement within JSX itself.

I've never claimed you do not need to learn anything when working with Vue templates, you need to understand how the system works, but it took me all of a few hours to understand. The features and benefits that I prefer over React/JSX make that worth it to me.

comment 7y ago · link · parent

> I go a bit in depth here: https://news.ycombinator.com/item?id=17471199

I've read this before. Vue is a framework. It also has a templating system that is not JavaScript, it's valid HTML with attributes that tell Vue how to bind to it. It's really not that difficult.

> Vue's templates are not HTML-compliant. They are just that: templates. That get compiled to JS anyway.

Sorry, but you're wrong here. They are valid HTML.

https://vuejs.org/v2/guide/syntax.html

"Vue.js uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying Vue instance’s data. All Vue.js templates are valid HTML that can be parsed by spec-compliant browsers and HTML parsers."

> JSX is a very thin DSL on top of Javascript. It's just function calls: https://reactjs.org/docs/react-without-jsx.html

IMHO only the simplest of components featuring JSX that don't read like a spaghetti PHP coding nightmare to me. For the small number of times you actually need the full power of JavaScript you could also use JSX in Vue with a render function if necessary. I personally prefer to keep my templates and logic separate when possible.

> It's not a webpack add-on. It's a part of Vue's templating engine that is essentially CSS-in-JS, they just give you a template to work in.

No, it's not part of the template engine, it's part of vue-loader which is used by Webpack to create single file components.

https://github.com/vuejs/vue-loader

comment 7y ago · link · parent

> and has a very wierd concept of how objects work in JS.

What is so weird about it? I personally find Vue vastly more approachable than React is, especially once you have to start writing all the plumbing to get all the libraries you need to go along with it to write a real world app.

> ] It's a templating system with its own rules and mini-DSLs that ends up being compiled into JS.

Vue has the option to use Webpack to compile html compliant templates to JS functions just like JSX (which BTW is not JavaScript and not HTML compliant and is also a separate concept that needs to be learned as well.)

CSS is just another add-on through Webpack when using Single File Components. Nothing really ground breaking here except for the fact that it creates a nice separation of concerns. This is especially true on teams with junior devs or designers. Or with a team that works on a site with mixed MPA and SPA features.

comment 7y ago · link · parent

You can just use DOM templates with Vue.js. Basically write your HTML the way you normally would and add the Vue.js attributes that tells Vue what to bind with. If JavaScript is disabled you just have plain HTML. It does scale up to doing a full SPA with single file components and compiled templates with Webpack.

Here's a simple form example:

https://jsfiddle.net/ufowkr92/

comment 7y ago · link · parent

I believe the patent expires in 2021, however I'm sure their lawyers will likely find a way to extend it well into the future.

comment 7y ago · link · parent

It's too bad SawStop saws are incredibly expensive (and going up in price Feb 1st.) They are definitely worth it compared to the cost of an injury, however many people are priced right out of owning one.

comment 8y ago · link · parent

I'm skeptical that this book will ever be finished. The last time I bought an unreleased book authored by John Resig it took two and a half years before it was published. If I remember correctly another author had to take over in order to complete it. I'm super interested in GraphQL, but I wouldn't consider purchasing this ebook until it is 100% complete.

comment 8y ago · link · parent

Vue can be used to enhance web pages, but it works equally well if you want to build a large application. This was one of the design goals. Something that you can start small and scale up with that works equally well for both. If you use the Vue CLI you can have a setup with a router and build tools and setup something very similar to create react app.

comment 9y ago · link · parent

I wouldn't mind a slightly smaller cheese grater truth be had. It's a heavy beast of a machine and takes up a fair bit of space. Although it doesn't really move much and I don't notice it too much sitting next to me. Top specs and upgradability are my top feature requests.

comment 9y ago · link · parent

Great. Now they need to reintroduce a MBP with top of the line specs and without the stupid touchbar.

Snark aside, I have a mid 2010 mac pro at home that is still going strong (due to upgrades, SSD, more RAM.) However, I would like to get a new GPU for the machine, but I'm not about to spend $500 on a better, but ancient GPU that's compatible with a 7 year old machine. I've been wondering what my upgrade path would be. No way in hell I'm buying a trashcan mac without any upgradability. And I'm certainly not going to buy a MBP with the touchbar (I need a real escape key) and under powered specs.

I'm really hoping this is true, otherwise in the next year or two I'm going to be seriously considering building a PC like I used to and deal with Windows 10. The rest of my family uses apple and it makes support for their devices easier being on the same platform, but I need better performance for photo editing and audio production.

comment 10y ago · link · parent

Yes I do and the escape key. I use the escape key all the time to cancel out of modal windows. I also use the function keys quite frequently when using Intellij/Jetbrains products as they have quite a few shortcuts bound to them in the default config.

comment 10y ago · link · parent

I'd love to see a tutorial for JSONB to be used as an alternative to an EAV model or a hybrid approach.

comment 10y ago · link · parent

They bought Nik Software a while back. This probably means they are done with the software collection and do not plan on making any updates to it.

comment 11y ago · link · parent

I mostly hope they are fixing the terrible performance issues. Seems like I'm always waiting for photos to load properly.

comment 11y ago · link · parent

Looks like they removed it in the screenshots. It's not fully rolled out to my account yet, but it also seems to be gone from some of my pages.

comment 11y ago · link · parent

Thanks! I'll take a look at that.

comment 11y ago · link · parent

I watched this video https://www.youtube.com/watch?v=vPwWQvvBWEg where (I think you?) explained these points in greater detail and I tend to agree with you that sql first is a very sensible approach.

I'm probably missing something, but is there a configuration with JPA that can explain the tables that hibernate's expecting based on the Entity classes? I guess that's where my biggest pain point going from sql first to writing my classes is getting the tables to validate and map properly. It's been a little time consuming being new to the ecosystem trying to get my sql (postgres) to map to JPA Entity classes going in reverse. Going from Entity classes to SQL you don't have this issue because the tool is writing the SQL for you (not saying this is the best approach) so without this a tool for debugging Entities would be handy to get up to speed faster when using Flyway or another SQL first approach.

comment 11y ago · link · parent

I've been learning Flyway and so far it seems to work well for applying handwritten sql scripts. I was hoping it could generate the migration files for you based on your entity classes, but that doesn't seem to be the case. Is there any tools for Java that handle both applying migrations and generating migration files based on your JPA Entity classes?

I've been using Alembic with SQLAlchemy with Python and I really like the ability to auto generate migrations and then be able to hand tune them if need be. I'm looking for the same kind of tooling for Java and haven't really been able to find it yet.

comment 11y ago · link · parent

The original prototype for push was built in Lego and Akai did a great job turning it into real hardware. Really cool project and makes Live so much fun to use.

http://www.askaudiomag.com/articles/interview-ableton-push-c...

comment 11y ago · link · parent

Try using gulp, gulp-sass (libsass) and gulp-livereload (LiveReload.) It's almost instantaneous and you do not need to reload the page to see your changes. There's also a Grunt equivalent tool chain, but I find gulp faster and prefer to use code for configuration rather than using Grunt's giant config objects.

comment 12y ago · link · parent

I think the line you copied and pasted here answers your own question – '3 months, 1 weeks and 1 day ago.'

comment 12y ago · link · parent

Pretty sure Razor is a .NET thing. This looks like the same syntax. The Play framework's Scala based template engine is based on it as well.

comment 12y ago · link · parent

If they are going to remove anything it should be the purple bar at the top of the screen. The layers of navigation remind me of someone with all the toolbars installed on their browser. I've used Flickr for years, but unless they step up the design of the site I'll be searching elsewhere to showcase my photography.

comment 12y ago · link · parent

http://baconipsum.com/

It's at the top of the readme.

comment 13y ago · link · parent

If you have an application that doesn't need to be indexed by search engines, yes. If you have a content heavy website the preferable method is still to render templates on the server. It still varies depending on your use case. I wouldn't say that is the status quo at all.
123