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

Can someone comment on LyX vs TeXstudio? I'm using TeXstudio, I'm loving it but I'm wondering if I'm missing out on great stuff.


Different levels of abstraction. TeXstudio is akin to an IDE for LaTeX, whereas LyX is more a nice frontend on top of LaTeX. IMO, if you're already experienced and happy with LaTeX there's no reason to switch, but if you don't already know LaTeX or you find the workflow clunky LyX may be a good fit.


i3 is all I need.


Can you elaborate on your idea? I invite you to fork the extension and add features!


I'd like to use this thread to discuss ideas about web browsing using only a keyboard, no mouse.


Check out Typescript!


I actually have, but it doesn't alleviate my biggest issue with Javascript, which is its async story.

Also I've had experiences with Typescript code compiling with an error then immediately recompiling without any errors. Then errors when I switch to my browser. The immediate recompilation is probably just webpack but it doesn't inspire confidence when errors are non-deterministic.


Typescript plus async/await is a beautiful solution to both the async story and typing story.


I don't think asnyc/await is a good solution to asynchronous programming. Lua, Go et al are more what I was thinking of as good examples of asynchronous programming. See http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...

And I addressed some concerns with Typescript in a sibling comment. It is much better than plain Javascript, though.


async/await is still based on promises, and promises are a naive/simplistic answer to the problem.

It works fine for simple cases, but those are cases that were simple to begin with (Ok, maybe they would not be fine with CPS, but async/await is just thin sugar over promises).

To really solve the async problem, you need either Observables or monadic constructs. The former is much more mainstream and mature in the JS world right now. It's not as cute as async/await and you'll be typing more functions, but it really solves the problem altogether.


The problem I experienced with async/await and Typescript was always the lack of built-in support for promises among the libraries I was using. Once I had to use something like promisifyAll() I lost any type information I had about the library in question.

Is there any better workaround to that these days?


This is changing pretty steadily. For example, the AWS SDK has TypeScript types packaged now and a promise interface. Compare this the boto3, the Python SDK, which has had a story open for years(?) to add async support with no official solution.

Node.js's own libraries are a mix of events and callbacks. Some of it can been "promisified", however they have yet to start a real async conversion AFAIK. I've had to wrap some of this stuff to create async interfaces for my own code.


Not really but I also don't see it as that much of a problem. The libraries I use either provide a Promise based interface or I've written my own as a thin veneer atop a callback interface.

Ditto for apply your own types atop the results. Most are already there and only a few edge cases need to be added.


I had a somewhat different experience. Most of the libraries I used lacked types in the library itself. There were types provided by DefinitelyTyped, but they were often incomplete or out of date, and I think a wrong type definition can be worse than none at all.

As far as writing your own types on top of those libraries, how do you ensure any amount of correctness?

Am I missing something important here?


Some (most?) of my contacts are not showing up online when I use the official Skype client on Linux. I use the web client:

https://web.skype.com/



This is unrelated.

Angular2 has been TypeScript from the beginning to support both JS and Dart development.

Angular2 is a better story for both Dart and JS developers.

More info: http://work.j832.com/2015/03/angulartsjsatdartwtf.html

The latest preview release of Angular2 Dart was yesterday - https://pub.dartlang.org/packages/angular2#versions


I think I'll write "Ten things I hate about "Ten Things I Hate About Object-Oriented Programming"".


The code is here: http://www.HiFiBiT.com/hifibit.js

Functions cursorLineNumber(txtArea) and commentMessageTextAreaHandler() at the bottom of the file.


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

Search: