76 karma · joined Dec 29, 2014 (11y ago) · 35 submissions
comment 2y ago · link · parent
I (meat-eater) am done with leather alternatives for now. A while back, I bought the official leather-alternative case for my everyday-carry Roav sunglasses, but it didn't last me very long. Frustrated with that, I ordered a custom made case with real leather, that cost me double the price, but it has been aging really nicely.
For me, paying extra for good leather, that will last longer and is byproduct of meat I already eat, seems to be the best decision in terms of sustainability. Hopefully technology will improve so that we have more options in the future.
comment 6y ago · link · parent
comment 6y ago · link · parent
WhatsApp is however overwhelmingly used in Brazil, and highly lacking good Venmo-like apps. I did not like the Brazilian Fed getting in the way with regulations before it even launched. Sends the wrong message to foreign investors considering Brazil.
comment 8y ago · link · parent
comment 8y ago · link · parent
Sure! For starters, you can write
if (foo == null) { ... }
Because `undefined` gets coerced to `null`, it saves you from writing: if (foo === null || foo === undefined) { ... }
And, because it's shorter, it's even allowed by [some JS linters](https://standardjs.com/).There you have your JS ninja trick to handle two distinct null types^TM .
comment 8y ago · link · parent
So I think it's going to stay relevant.
comment 8y ago · link · parent
This looks like a good enough mid-term alternative. However, I have a few questions (which I couldn't find easily in the homepage, sorry if I skipped something):
- Do you have a way of persisting connection information? I saw an example of how to create a connection, but it isn't clear if the piece of code has to be loaded every time you execute the ETL
- How easy it is to implement new computation engines?
- Plans of creating a command line to make it easier to execute operations?
comment 10y ago · link · parent
So what's the point in taking away the good part, and keep the cumbersome one? If you just want to program a Synchronous server in the JVM,just stick to Java.
18.
Webcomplete.vim: complete words from your browser in Neovim(github.com ↗)
1 points · by thalesmello · 10y ago · discuss
19.
Exploring Async Techniques in JavaScript(github.com ↗)
4 points · by thalesmello · 10y ago · discuss
comment 11y ago · link · parent
Also, I like the way it handles open files (they are held on a workspace area where you can discard changes) and it also come with git integration.
You can rely on plug-ins to do this kind of work on sublime, but you have to put a lot more effort in configuring it, whereas VSCode comes with better packages right off the box.
comment 11y ago · link · parent
Using a not very popular programming language can actually make it harder for you to hire people.
comment 11y ago · link · parent
Here is why:
1 - Most of the times, people are going to use Excel for basic data analysis with the built-in functions.
2 - If you need to do more complex tasks, you have two options:
* You know Clojure, Python or other programming language so you use the default environment for these languages to accomplish the task you need, or
* you know or learn VBA and stick with it because it's already built-in with Excel.
comment 11y ago · link · parent
You said it all. The whole point is cross platform development.
People use Swift to develop apps for Apple products. Before Dot.net was made open source, people only used it to develop for Microsoft platforms.
The fact Dot.net is now crossplatform makes it possible for GNU/Linux and Mac users to consider it for development.
comment 11y ago · link · parent
- For the dot syntax, all you have to do is define the __call__ method. You could do that by creating an object that encapsulates the dictionary, defines a __call__ method, and repasses the method calls to the underlying dictionary.
- For inheritance, just create another constructor function that calls the parent constructor, adds the desired methods, and returns the new function. In JavaScript, it's called parasithic inheritance.
- For the iteration method, you just have to define the __iter__ method.
- For the isinstance and issubclass method, maybe you could create new conventions (and thus reinvent the wheel)
- About static method... should we be using them anyway?
Those are just some thoughts. This alternative way of creating objects is probably useless, nevertheless fun.