Better HN
topnewbestaskshowjobs
Log inSign up

invaliduser

479 karma · joined Jun 13, 2015 (11y ago) · 138 submissions

Submissions

comment 9y ago · link · parent

Maybe Typescript still lacks maturity in the sense that if you can adapt your projects (and your process) to how it was designed to work, then it's great and provides a lot, but on the other hand it may be quite difficult to adapt it to a particular workflow.

comment 9y ago · link · parent

Just wanted to give a different perspective. Been using typescript for more than 2 years now, on 2 projects of medium sizes (30 to 100Kloc). Those are projects that provide my income, them breaking means no income anymore for me and my associates.

Although Typescript started a bit as you say, complex tooling, had to write external type declaration to have the typing for external libraries (but they are optional, not having them only means not having typing on externals, which is fine in many cases, so not in the way at all), but overall, typing provided so many benefits it was already worth it to me: litterally saved me hundreds of bugs found at compile-time, and keeps the maintenance of the code base cheap and easy. But typescript evolved a lot, now the typing declaration are based on npm, the compiler got faster by an order of magnitude, it provides services to the IDE, and so on.

I just wouldn't start a new project with a reasonable expected lifespan without typescript.

comment 9y ago · link · parent

I am not defending the position that banning netflix from Canne is right, because they have several high quality shows, so it's a pity, but note that in France the movie theaters audience is very respectful of the experience, and there is barely any inconvenience for the viewers (no chatters, no phones, no buzzing, it's pretty strict -- except in movies targeting children, because well, children are children and it's hard for them not to talk sometimes)

comment 9y ago · link · parent

It's not that simple. The Front National is basically the same people than 10 or 20 years ago, under the reign of JM Lepen (the infamous father), but was toned down, made left-wing friendly (taking parts of the left wing ideas), mixed with a masked nationalism (blaming not on ethnicity but on religion and terrorists). Mixed in a lot of fake news and a lot of populism. It was really very confusing for many people with poor education.

On twitter, you could hardly distinguish tweets from the Front National and tweets from the far-left (Melenchon), because of the same vocabulary and many identical ideas (on "oligarchy", "unfair media coverage", and so on).

comment 9y ago · link · parent

You are so right. Try living in Bordeaux when you don't drink wine. It's awful, people wouldn't believe I didn't like the taste of wine. Not my fault, I just dislike it. French people would always try to convince me it's because I didn't tried their favorite brand, or thinking I didn't know the Bordeaux wine. Sometimes I even had to resort to telling them it was religious (which it's not) so they'd stop bothering me.

comment 9y ago · link · parent

French people do not really talk much about food. Sometimes with foreigners, because it's a bit of a cliché topic, and foreigners usually may want to talk about it, or as a way to chitchat with a foreigner (but between french people, this very rarely happens). However, they talk a lot about wine, really a lot, and that is very boring when you don't drink.

As for food, it really depend on the restaurants, or event where you happened to be, but I wouldn't call french food «bad», it's usually ok or above ok. Actually, I wouldn't call any country's food «bad», not to my taste maybe, or very different to what I'm used, but generalizing to bad a whole food culture, that's a bit harsh, and certainly unfair whatever the country.

comment 9y ago · link · parent

If you live in France, it seems that UPS made you pay abusively the custom duties (not due if the value of the package is below 150€). You should only have paid for the VAT, which tops at 20%. http://www.douane.gouv.fr/articles/a10753-achats-a-distance-...

Also, I got a delivery by UPS in France once, and they made me pay the custom duties (which was fine, for a parcel valued at 400€), but also added their own «paperwork fees» that were as high as the custom duties, and were pretty much unexpected.

comment 9y ago · link · parent

You usually can't tell from one single sentence if a parser handles garden path sentences, which involve backtracking (hence the name).

Plus, there is a part-of-speech tagger that provides an intermediate layer of nlp analysis, which makes a backtracking involving a change of part-of-speech («houses» being either a verb of a noun) quite harder (yet not impossible).

POS taggers improve parsers performance dramatically but usually are an indication that the parser have limited backtracking capabilities.

You can try it with «the complex houses married soldiers», houses is erroneously marked as a noun.

comment 9y ago · link · parent

Currently doing that, with the following differences: - I am the cto for both companies - one of my startup is already 3 years old

Even with a very low maintenance mode on my first startup, it's insane. Actually just one startup creation and bootstrapping is insane, so what happens is I just don't have time to manage and improve the first startup, yet it «kinda» works because it's a niche, with no competition, and my partner agreed to manage most of it while I am «less» available, but it really is a nightmare and it puts the business at risk.

I know it's hard to choose («to choose is to renounce»), but my advice would be to focus on just one of them.

comment 9y ago · link · parent

So the author rejects what is basically syntactic sugar around the Promises because it _looks_ _like_ imperative programming, even though it's 100% promises, and makes the code cleaner to read and easier to understand?

It reminds me when object oriented programming was the trend of the day, and people got crazy about it. Every bit of code just had to be OO, and people would rewrite everything, including operating systems and network stacks. It was crazy because OO had become not a means to and end, but an end in itself.

Sometimes I feel like we are back at it again, but with functional programming.

comment 9y ago · link · parent

Usually, why a cofounder leaves their startup is relevant for the next job. Specially when they say it's not relevant.

comment 9y ago · link · parent

It shouldn't really matter whether the units tests are written before or after. What matters is how testable the source code is, and making sure the units tests add value.

Of course, writing the tests before the actual source code of the feature enforces the fact that it's testable, but it's mainly a side effect, there's nothing inherently better.

The microdesign flaws that stem in TDD (described in [1]) were real in my personal case, and my code is way better on the long term with the units test written afterwards, because I tend to modify my design a lot while writing code.

[1] http://beust.com/weblog/2014/05/11/the-pitfalls-of-test-driv...

comment 9y ago · link · parent

I think we should make it more widely understood how bad we human are at science. Our brain is full of what we call cognitive biases, that prevent us from processing data correctly, our sensors are specially bad, even the ones we mostly rely on (eyes and ears) are very very easily cheated, and we can't even tell. Our storage unit (memory) is awful, we forget a lot, and time is our ennemy.

We call a lot of science concepts «not intuitive» because of the limitations of our brains, and very little people, at the cost of studying a lot, and being highly stimulated in their first years of life, can actually really get a grasp of them. Quantum mechanics of course, but just see how people reacted to the monty hall problem: https://priceonomics.com/the-time-everyone-corrected-the-wor... Other examples at https://en.wikipedia.org/wiki/Counterintuitive#Counterintuit...

Sure, we are better at science than all other species on earth, but in absolute terms, we human are very badly designed for it. Yet, we try our best.

comment 9y ago · link · parent

Besides calling Array.sort()?

When was the last time a front-end developer, or an app developer, or any developer actually, needed to implement a sort algorithm?

I started programming in the 90s, so I did a lot of it, implemented sorts, btrees, tries, you name it. When was the last time I need to implement it? Honestly, it's been a very long time, around 10 years, and it was just a bloom filter in c++ because it's not very used and few libraries have it.

Could I provide an implementation in an interview situation? Nope. And not interested in using my poor memory for it. If I ever need to implement a specific algorithm, say in a new language in which nobody did it before, I just need to make a search on google, take a few minutes to study it (for a sort), or hours (for more complex structures like btrees or algorithms I never used before), and use my knowledge/experience.

Of course, I don't need to implement those algorithms, but I use them a lot, everywhere. That's where interview questions should focus, where and when to use them appropriately, because that's the business case.

comment 9y ago · link · parent

This list is very funny, straight out of the 90s, because we are in 2017 and most developers just spend their working days basically writing forms and storing/fetching data over the network/in a database.

comment 9y ago · link · parent

"John Smith"

I personally found that having a very very common name provides a lot of privacy. If you look me up by my real firstname/lastname, you'll find out we are borg, we are 1000s, and I'm burried somewhere far and deep in the search results.

comment 9y ago · link · parent

I wouldn't exactly call them "regular". They are mostly in the center of cities, their price are high-ish, but not crazy, so you often see people with no car (old people but also students) living in the city shopping there, as well as wealthy people. Their products are rather good.

comment 9y ago · link · parent

Increasing the GDP is easy. First, pay me 50$ to dig a hole. Then I pay you 50$ to fill the very same hole. We created nothing but the GDP increased by 100$ (well, tax aside).

original source of this example: https://ploum.net/largent-doit-il-etre-notre-seul-objectif/ (in french, but interesting essay)

comment 9y ago · link · parent

Imagine most of your income comes from Adsense, how would you feel about revealing something as disturbing as google involved in a case of corruption in the european parliament? This is just a fictional example, but the point is this is the kind of news they release.

Mediapart is not about news on the latest iphone nor your average tabloid, they release news about political corruptions, large companies lobbying, and the like. Not having pressure from any company, or government, or political side is why they have subscribers (myself included, fwiw, disclaimer here).

comment 9y ago · link · parent

This is probably bad practice, and I don't hire much anymore, but when I did, I could usually put the resumes in three slots: 1/ Good match, want to see 2/ Maybe 3/ No

I generally give an immediate answer to 1 et 3. 2 are applicants that may do the job, but I am not really convinced, don't seem as great for the job as 1, and want to see them only if nobody in 1 gets the job. Also, 2 is definitely all the applicants that never received any answer from me, because I don't feel like telling them a straight no (in cas I'd need to interview them), and the job process usually takes a very long time. In the end, I either forget/procrastinate/feel like it's been to long to decently answer, so no answer.

As I said, I'm not proud of that, I know this is bad and not respectful to applicants, just being honest at how bad I am at the recruitment job.

comment 9y ago · link · parent

This was the company used by the kickstarter-funded «Secret Hitler» game to send the game to backers.

I sent them an email support on sept 15th regarding my package. Never got an answer. Never got my package either. Experience is awful. I'd never buy or back anything to anyone using them anymore. I wish I knew.

comment 9y ago · link · parent

I'm one of those guys that develop for a living (mainly from home) and play a lot. I love developping with linux, but need windows to play, so here's my story. I tried a lot of things, linux with Wine, linux with a virtualbox windows guest, windows with a linux virtualbox guest, same with vmware, same with hyperv, but all were suboptimal to me, and I didnt really like having two separate environments for work and hobbies (although I understand some people may be more comfortable that way)

Finally, I settled on a windows 10, a linux guest under vmware with no desktop environnement (an ubuntu server + the Xorg libraries I need), and I just use an X server running under windows (the one from MobaXTerm, but cygwin should be fine too) to display the linux windows apps in my normal MS-Windows environment.

I feel like I have the best of both world, I can use visual studio, unity3d, under windows, and play with my steam library, and for work that needs linux (mostly my server-side developments, but also a non-trivial QT application that I sell for windows and mac, but actually like developping under linux). Thanks to the X Server, the apps running in the linux vm are displayed in Windows as if they were standard windows app.

comment 10y ago · link · parent

In my humble case, Docker solves the problems I have to manage the systems on which my application runs (and that's mainly it). A single dockerfile of 20-30 lines describes a whole system (operating system, versions, packages, libraries, etc), and cherry on the cake, I can version it in my git repository.

This is not revolutionary in itself, but having the creation and deployment of a server being 100% replicable (+ fast and easy!) on dev, preproduction, and production environments, plus it's managed with my usual versionning tool, that is something I appreciate very much.

Sure, there are other tools to do the same, but docker does the job just fine.

comment 10y ago · link · parent

European countries were not really «prospering» on their own. They have been in war for centuries before. That's the point of having Europe as a community, play cooperatively, not free-for-all. Of course, not all countries were hit by wars, some even prospered from it. Was it your point?

comment 10y ago · link · parent

Could we rephrase it? «A program written by a clever human being, using randomness, probability, and natural language processing techniques, has passed literary prize screening».

comment 10y ago · link · parent

Happened to me. Was hired as a freelance in a company that had the "no telecommuting" policy. After 1 year and a half there, I got slightly bored and wanted to leave (long-commuting, like 2h, is too long when the job is not that appealing anymore).

As I have been performing above average for all my time there, they insisted to find a compromise so that I wouldn't leave. Told them I would consider staying but with 2 days per week telecommuting, 3 days on-site. I already had their trust, they knew I delivered, so they agreed cheerfully.

Some coworkers who tried to get some telecommuting days before got slightly angry at management for a few days, but not that much, as they liked me staying and understood why management dit it.

I think it worked because I was just not bluffing, and after more than 1 year working there, they fully trusted me. It would have never happened if I had asked for telecommuting at day 1.

comment 10y ago · link · parent

Unit Tests are not the one and only metrics for software quality. Believe it or not, before unit tests were coined, we managed to build reliable software too. Actually a lot of the internet was actually built that way.

But your assumption is very interesting, because it states a very common misconception of quality (whatever that means, reliability, maintainability, resilience, etc):

* "Unit tests imply reliable software". Well, it does not, you'd need reliable unit tests for that, and from what I've seen in the industry, not every unit test out in the wild increases reliability.

* "Without unit tests, you can't have quality software". That is just not true either. First, not all tests are unit tests, end-to-end (integration/functional/whatever) test are extremely useful and raises the quality too. Even without any automated test, the quality of documentation, contract programming, manual testing, etc also help a lot.

Also, note that apart from testing, a lot of different practices contribute to reliability. Separation of concerns, the language level of abstraction, the overall experience and involvements of the developers, and many others.

comment 10y ago · link · parent

Ho wow, you are totally correct, and I didn't know that. Thanks for pointing that out!

comment 10y ago · link · parent

You are right. I suppose there are many parameters, for instance countries trying to live from tourism are probably more likely to accept visa-free travellers from wealthy countries even without reciprocity.

comment 10y ago · link · parent

It's just a matter of reciprocity. Look for instance at Gambia: it's visa-free to go there for citizens of countries where Gambian citizen can go visa-free too.

this is just how countries managed/refused treaties with each others, based on mutual interests, history, etc

12345