HNHacker News
TopNewBestAskShowJobs

laurentl

685 karma · joined January 25, 2017

submissionscomments
laurentl··on Ask HN: Is GDPR hurting European tech valuations and acquisitions?
You can look at it the other way around: GDPR can be a barrier to entry in the European market, therefore making EU compagnies more resistant to outside competitors, which increases their valuation.

As a foreign company, if you want to enter the European market you can either comply with GDPR (which honestly is not that hard despite all the FUD), or take a stake in an existing EU company, provided you let it continue operating as it currently does or at least in a GDPR-compliant way. Buying a EU company to siphon off its customer data (even if it’s just to merge with your own platform) is a big no-no, unless you yourself are GDPR-compliant.

laurentl··on Ask HN: How do you help your team “level up”?
A few thoughts, as a CTO with a small team:

- not everyone needs the same leveling up, and it’s not always technical. I coach one of my junior dev on improving his code, another one in being more confident of her skills. My lead dev is solid on code but doesn’t always take into account the business perspective (i.e. in which context the code will be used, how often, etc)

- my main method of coaching is to ask a lot of questions. How do you plan to implement this feature? Why this way? What’ll happen when <edge case>? Why did you choose this architecture? Have you thought of <situation that’ll result in a bug with the current implementation>? Whenever possible, I don’t say how it should be done but try to bring them around to figuring it themselves. It’s not (always) leading questions, either. I’m not cross-interrogating them, just trying to understand what they did and why

- closely related to above, I let them make their own mistakes. Rather than try to convince someone that their approach won’t work (if the round of questions isn’t enough to clarify this), I let them go ahead. They either figure out on their own that they made a mistake (and then they’re open to discussing alternative solutions), or when the code has become complex enough I ask them to demonstrate a few corner cases. When those fail, sometimes hilariously, we can go back to the design phase. I try to balance how long to let them flounder between “long enough that they learn something” and “not so long that they bear a grudge for being played”

- refactoring their own code (for junior devs). I ask them to come back to a piece of code they wrote mostly on their own, a few months after they’ve worked on it (e.g. something they did as an intern, or one of their first projects). Can you figure out what your code is doing? Hmm, guess some comments and clear method names would come in handy now! How would you do things differently in hindsight? How would you reorganize your code? Once the code is refactored, a before/after comparison to highlight how much better the new code is.

- I’ll sometimes point someone to books or articles and ask them to read it, when I want to make a specific point. E.g. I asked a dev who wrote some very stateful js (lots of methods without a return value would would manipulate global variables in weird ways) to read Learn You a Haskell for Great Good to get him to think about side-effects and how to avoid them when possible.

- I haven’t done this yet, but I thought about a team code advent where everyone would solve the same problem in the same language, and we would compare solutions. This implies setting out some time each day for everyone in the team to work on the problem, so needs a little bit of planning and finding the right time.

I realize that most of these ideas are time consuming, both for me and for the developer. It would be much faster to just tell them how things should be done (at least how I want them to be done), or to point out the mistakes as I see them unfold. But I believe that teaching a man to fish is a much better long-term solution than giving him a fish every day.

laurentl··on Gmail spam-filters Stripe security messages as well
Honestly, the first time I saw a Paypal email (something along the line of “check out your account activity”) I thought for sure that it was a phishing attempt. Not one link in their emails point to PayPal, they all point to stg like paypal-communications.com. You know, the type of domain name a phisher would come up with. Even the link talking about security doesn’t point to the PayPal website! That, and asking me to check my recent account activity when I know I haven’t used PayPal (and PayPal should also know that), is basically PayPal training their customers to fall for scams.
laurentl··on How London thieves exploit organisational silos
This reminds me of a card skimmer I found on an ATM about 12 years ago (unfortunately, after I had used it to withdraw cash). I basically lucked into finding the camera hole and managed to rip the fake cover + video camera + transmitter from the frame of the ATM. With that in hand (unfortunately I dis not think to also take out the card reader itself), I called the police. While I was on the phone with them, a foreign couple tried to use the ATM. I told them not to, they pretended not to understand, I went back to my phone call with the police. When I turned around, the card reader was gone: that nice couple was the thieves, they were somewhere near (to catch the video footage of people entering their PIN) and swooped in to retrieve the card reader and the data stored in it.

The police squad that came around was fairly decent, but they didn’t really seem to be on the lookout for this type of crime; one of the cops confessed that he’d used the same ATM the night before and was genuinely impressed that I’d spotted it. Spending a couple of hours in the police station to give my statement (rather than going to the restaurant as initially planned) sucked, of course. I was shocked at how bad I was at describing the thieves, even though I’d seen them and talked to them.

Following up with the bank was similarly frustrating; the bank director told me he personally checked the ATM at opening and closing time, meaning the thieves installed and removed the card reader every night. I never found out if the other victims were made aware of the fact that their card details were stolen.

So, yes, thieves are brazen and smart; police are nice (sometimes) but helpless or just don’t care about these types of crime; and even though I did all I could to mitigate the situation, I still felt a bit shitty and helpless about the whole experience.

laurentl··on Making websites with vanilla JavaScript in 2019?
(CTO, not front-end dev so will answer more on philosophy and strategy than nuts & bolts)

We recently upgraded our B2C website, which is a SPA/vue affair. After going through the development and upgrade of the site, and seeing first-hand what the code looks like after having to do some debugging in it, I will clearly keep the SPA/js hammer in the tool drawer unless I have a very specific nail to hit.

Our next project, which is a back-office/CRUD app, will be Django or flask with a sprinkling of vanilla js (maybe some jquery to make things easier) and plain, honest html. I expect the experience to be quite less eventful than building a SPA.

To answer the rest of the questions, some reasons for this: dev time per page seems higher with SPA (of course the fact that I talk about pages is a hint that SPA may not be the right fit); harder to reason about when what bit of page is displayed how; and cold sweats every time I look at the length of package.json (it may very well be that we don’t do things The Right Way, but The Right Way is easier with classical frameworks)

laurentl··on Ask HN: What programming language should I learn next?
I’m somewhat in the same position as OP, except that I know I want to explore FP. I’ve more or less settled on Ocaml, although I might be sqwyed by F#’s integration with the .net ecosystem (will have to look at some F# code to see if it makes me want to dive in as much as Ocaml)
laurentl··on Ask HN: How do you concentrate in a noisy open office environment?
Chiming in, although most has already been said:

- noise-canceling headphones with ambiant noise / music. I like Focus@will for this, some of their tracks are spot-ok for me.

- a large slot of time in which I know I can work uninterrupted. Blocking 2 hours in my agenda does the trick, any shorter and I have trouble motivating myself to get started.

- no distractions. I close Slack and my email client, put my phone away or in “don’t disturb” mode, close my slacking-off browser (I use FF for most of my browsing, including mails/blogs/comic strips, and Chrome for a few websites and when I need to specifically use Google; closing FF effectively leaves me with stack overflow, trello and google). I also explained to my coworkers that headphones on = don’t disturb me unless the building is on fire (and even then let me finish writing my method first)

If getting large-enough blocks of time is an issue, you can point your manager to Maker’s Schedule, Manager’s schedule by Paul Graham

laurentl··on How do you extract the most possible value from a book?
I find that re-reading the books help. For instance, it wasn’t until my 3rd read of The Goal that I felt as if I completely understood the underlying themes.

As others mentioned, being able to relate to the content of the book helps immensely. For instance when reading The Innovator’s Dilemma I kept finding parallels to my previous industry and company. This struck me so much that I can list most of the content of the book simply by thinking back to those insights.

As a last note, non-fiction books are seldom gripping. Reading a few pages before going to sleep doesn’t cut it for me, words zip past my eyeballs without hitting the brain. I need to actively focus on the content, much more so than when reading fiction. I try to force myself to pause and actively think about the content every few paragraphs: does it make sense? Can I follow the logic of the argument? Does it resonate with my experience? It’s the only way for me to actually get anything lasting out of the book.

laurentl··on Ask HN: How should we implement tracking as privacy conscious startups?
You don’t have to use GA for your own needs. If you have a traditional web site, you can get a lot done with nginx logs. Things get hairier with an SPA, but it isn’t too complicated to replicate Google Analytics’ “event” features on your own.

I recall someone posting a privacy-friendly analytics tool on show HN a few months back, so you don’t have to roll your own.

The downside is that you lose GA’s insight into who your users are (gender, interests, age group...). But that is some seriously creepy stuff when you stop to think about it.

laurentl··on Bitcoin ETF research finds that 95% of Bitcoin volume is fake
Well, the study shows that there are legit exchanges, so there is some place for the usual market forces to apply (and indeed, the price of Bitcoin on these exchanges lies in a tight band, too small for arbitrage opportunities). That doesn’t mean the price of Bitcoin can’t be manipulated by pump & dump or other price manipulation schemes.

But still, the study (at least the highlights given in the twitter thread) looks solid and well-presented.

laurentl··on Ask HN: What do recruiters look for in a GitHub profile?
I would say that it’s more like a dating profile picture. You don’t have to add one, but if you do, it better be one where you’re smiling, not the one where you’re in hung over with a little bit of barf on your pajamas.
laurentl··on Ask HN: What should be considered when starting a web development project?
From a security perspective, the OWASP top 10 is required reading if you don’t know it yet. More generally, always assume your users are hostile and don’t trust any input that comes from them (this may come across as harsh, but really: if there is a loophole or data that you don’t validate server-side, someone will abuse it).

If you need to support a variety of clients, especially older ones, stay away from fancy js stuff and focus on vanilla html and server-side rendering. Invest in a way to test your website from different clients (this can just be a few VMs running different OS/browser versions). Fun story: after launching a new SPA website, extensively tested in Chrome, FF and Safari, our first user complained of seeing a blank page. He was using IE11...

Scalability is pretty much a solved problem for websites: load balancing and auto-scaling will take you a long way; you may eventually encounter a bottleneck at the database layer for which mature solutions (e.g. read replicas) exist.

Invest in monitoring your app, both from a technical standpoint (response time, % of 4xx/500 pages, etc) and from a functional perspective (e.g. set up a script that simulates a login, fetching a document, filling out a form... and send an alert if the script fails)

laurentl··on Ask HN: FastMail vs. ProtonMail?
> More free strange space

I love this typo!

laurentl··on Hackers ransack Citrix, make off with 6TB+ of emails, biz docs, secrets
Knowing the organization exists and knowing that someone specifically works the organization are two different things. In fact, this is the defining characteristic of any secret organization (governmental or otherwise: CIA, Stasi, KKK (in the 50s)...) that wants to project power: we exist, we are everywhere but you don’t know who we are.
laurentl··on Hackers ransack Citrix, make off with 6TB+ of emails, biz docs, secrets
I don’t know specifically about Golden Bridge but I have been on the receiving end of other trophy clearinghouses: we were notified we had won a whatever of the year award without even applying for it and that we could purchase the actual trophy for a very reasonable price. Basically these companies’ business is selling overpriced crystal trinkets.
laurentl··on Proton Technologies awarded €2M from the EU
What provider did you switch for?
laurentl··on Ask HN: Been self-employed for 18 years, am I hirable?
Reading through your post, it struck me that your skill set is very close to that of a CTO of a small startup (the missing part is around hiring and managing, and maybe you’ve done that as well). At least it sounds a lot like my first few months on the job: one day you’ll be setting up the company website, the next doing some hacky back-end scripting, then some “good enough” ML for a product prototype, and the next day you’ll be troubleshooting the O365 corporate account. So this might be an avenue to look into... perhaps as someone else mentioned by attending meetups where you’ll meet similar-minded individuals who’ll be more interested in what you can do than what your CV says.
laurentl··on France Plans 5% Digital Tax as Governments Chase Internet Giants
Well the page on MOSS lists “distance teaching” as falling under the definition of digital services. So I guess the answer is yes?
laurentl··on Functional Programming in OCaml
Thanks, I'll have a look at F# syntax to see if it resonates. Is there a tutorial or (text)book you would recommend to get started?

> in a world where python is taking over, f# is very refreshing.

Can you elaborate? I happen to like Python but I'm always open for refreshments :D

laurentl··on Functional Programming in OCaml
Thanks for the feedback. At this stage the goal is purely to dabble in FP with "Advent of Code" style mini-programs, and basically opening my developer chakras.

An added benefit would be to use this new language at work, which means that the size of the ecosystem (3rd-party modules, frameworks, etc.) can be a factor - one in which I guess OCaml is behind F# and Reason?

laurentl··on France Plans 5% Digital Tax as Governments Chase Internet Giants
Everyone pays VAT but if you’re a company you get reimbursed (by having your accountant compute all paid VAT and asking the state for a refund IIUC). VAT is only supposed to apply to the last transaction with the consumer, hence the “value added” in the tax ;)

Selling fake goods between companies and applying for the VAT refund for all the fake transactions is known as a VAT carrousel.

laurentl··on France Plans 5% Digital Tax as Governments Chase Internet Giants
I didn’t know what this was, so I checked (https://europa.eu/youreurope/business/taxation/vat/vat-digit...). Long story short: MOSS stands for “mini one stop shop” and looks explicitely designed to make it easier to sell across the EU.

> The Mini One-Stop-Shop (MOSS Scheme) enables you to supply digital services within the EU without the need to register in each EU country you supply to. It can be used by both EU-based businesses and non-EU businesses.

Honestly from reading the quick description of the law, if I was a business I would definitely try to take advantage of the law instead of registering in different countries for the single purposes of paying VAT.

I get that some payment actors allow you to do that easily, while others don’t (yet), and yes this would be a criterion in choosing a payment gateway. But apart from that, I don’t really see how this law is evil, or an illustration that Eurocrats don’t know anything about business (there are plenty of other examples, but this isn’t one). Can you explain in which way the MOSS is “horrible”?

laurentl··on Functional Programming in OCaml
Thanks for this (and the child comments). I was just about to post a “which functional language should I pick up” ask HN but I got most of my answer from this thread :D

I learned to program in Caml (20 years ago now... it still seems like yesterday) but switched to curly brackets land when I started working, and more recently Python. Last month I started reading Learn You a Haskell for Great Good and that made me nostalgic for FP. Haskell’s syntax and strict management of side effects is a bit of a turn-off though. The article and the comments have firmly put me in the Caml camp, but now I have to figure out which version (OCaml, F#, ReasonML) to go for.

Advice or opinions on the topic are welcome!

laurentl··on Functional Programming in OCaml
Which would you recommend from an ecosystem/performance perspective?

I’m thinking hard about picking up a new language and I think it’ll be oCaml, but F# does have the .net ecosystem behind it... how is ocaml’s stdlib? Is it easy to find what you need in 3rd-party modules?

laurentl··on Ask HN: Has anyone curated a list of hidden interview questions?
The Curbside challenge was pretty fun. It may be the one you’re thinking of, lots of API calls to get the key.

https://challenge.curbside.com/

laurentl··on FastMail loses customers, faces calls to move over anti-encryption laws
There may be no global, credible alternatives now. There would most certainly be local, semi-credible alternatives gaining ground shortly after such a move. If the biggest, most entrenched provider suddenly disappears... well that’s going to give some ideas to a lot of people.

There are other search engines (maybe not as powerful as Google, but if you don’t have a choice...). There are other e-commerce platforms, and there are a shitload of cloud providers. There are other high-end phone and laptop manufacturers. There may not be a credible FB alternative (but I’m not shedding any tears over that). The only real crazy-hard-to-replace infrastructure IMO is the App Store duopoly.

As another poster pointed out, there are countries (Russia, China) where credible alternative providers evolved because FAANG were not allowed to enter the market. In time, the same would happen if they were to leave a market.

laurentl··on FastMail loses customers, faces calls to move over anti-encryption laws
> Congratulations, you just got most of a country to angrily write their parliament-critters.

Yes, and you also got every single other country in the world to take notice and to wonder what would happen if the same happened to them... leading to ad hoc legislation, actively looking for alternative providers, and a surge of new, sometimes govt-backed competitors (you know, in the name of national independence). Not to mention that all your existing competitors will start yelling “we would NEVER do that” at the top of their lungs.

The FANG may be as powerful as big nations, but event the biggest country needs a very good reason to declare war —and defending privacy isn’t it.

laurentl··on Ask HN: What Are Some Startup Red Flags from a Candidate Perspective?
Ask about their runway/burn rate, and how they plan to raise more money (i.e. what milestones they plan to reach and how that gets them through a new round). This should be an easy question. Not being able to answer it or dissembling is a big red flag.

Ask to meet the co-founders and see if you get along with them. If not, bail. If something about them seems odd, bail. Trust your instinct on this. You’ll end up spending a LOT of time with them, it’s not worth it if they’re jerks (even brilliant ones).

laurentl··on Ask HN: Dead Man Switch / Emergency Drill UX Best Practice?
I would say that regular drills are useful to develop reflexes and awareness in the guardian. See e.g. fire drills in office buildings to make sure everyone knows where the emergency exit is and knows to leave the building without panicking. Just make sure it’s obvious quickly enough that it’s a drill.
laurentl··on Some Details of My Personal Infrastructure
> ours can also scam to mailbox

This would be a Nigerian scanner then? ;)

“Dear sir or madam, I have come in possession of a very valuable document scan which I am unable to get out of the country...”

← PreviousPage 3 of 10Next →