HNHacker News
TopNewBestAskShowJobs

antoineMoPa

1,924 karma · joined April 27, 2015

Check out my current projects:

- moon-dev-tools https://antoinemopa.github.io/moon-dev-tools/

- claydash https://claydash.com/

Github: @antoineMoPa

submissionscomments
antoineMoPa··on New video of Tesla crash demonstrates the problem of semi-automated driving
The car behind the pickup truck had almost 0 stopping distance. To me, it looks like the pile up could have been prevented there too. Good reminder to keep a safe distance.
antoineMoPa··on Ask HN: Is there an editor with insert mode and free cursor?
Open a file in emacs and do M-x artist-mode.
antoineMoPa··on Ask HN: How do you maintain your daily log?
Workflow: I store tiny bits of code, shell lines, reminders, tiny text drafts, links, random notes. I frequently search backwards to find some specific lines of code or shell script.

Tools: I use a single org-mode file and I have a shortcut command in Emacs to launch it (M-x wl). When I run this command, it generates a new entry with the date and time and places my cursor so I can type right away.

  (defun wl ()
    "Open work log"
    (interactive)
    (find-file "~/dailylog/wl.org")
    (newentry)
    )
  
  (defun newentry ()
    "New log entry"
    (interactive)
    (search-forward "#now#")
    (beginning-of-line)
    (insert "\n\n* ")
    (insert (shell-command-to-string "date"))
    (dotimes (i 50) (insert "="))
    (insert "\n\n\n")
    (forward-line -2)
    )
  
  ;; bonus function
  (defun codeblock ()
    (interactive)
    (insert "#+NAME\n")
    (insert "#+BEGIN_SRC javascript\n")
    (insert "#+END_SRC\n")
    (forward-line -1)
    )

Format: No particular format except the auto-generated date above. There needs to be the string '#now#' in ~/dailylog/wl.org, this is where new entries are generated.
antoineMoPa··on Ask HN: What not-profit-seeking project are you tinkering with this week?
I spent some of my free time learning how to work with Emscripten. So far, as an output, I have tiny sample files that can be used to start new projects:

- https://github.com/antoineMoPa/emscripten-sdl-sample-code

- https://github.com/antoineMoPa/emscripten-webgl-sample-code

I think the next step is to try doing the same with Rust.

antoineMoPa··on DRUIDS: Datadog Reusable User Interface Design System
Is this the same Datadog that sends spam calls to developers after office hours to sell their tools?
antoineMoPa··on Should we let cars use the road as a projection screen?
Projecting arrows for navigation would be nice, but would this work during the day?
antoineMoPa··on Show HN: Wavvy – web-based audio editor (Audacity port)
Actually, that's a good thing to keep in mind. I would not use this for anything serious right now, unless for some reason it perfectly fits all requirements one might have. I see this as useful more for fun side projects and as another commenter said, it's possible to improve accessibility later. Maybe text could be rendered as actual text over the canvas?
antoineMoPa··on Show HN: Wavvy – web-based audio editor (Audacity port)
This is awesome, and also awesome is this:

> I originally developed a WASM port of wxWidgets

I had some fun looking at the commits here[1] and I can imagine a lot of classic wxWidgets apps are going to be ported to wasm now. Congrats, that a lot of dedication!

[1] https://github.com/wxWidgets/wxWidgets/compare/master...ahil...

antoineMoPa··on Qt signal is ten times slower than a virtual function
Yeah I agree, I don't have actual data to back this snowballing effect idea.
antoineMoPa··on Qt signal is ten times slower than a virtual function
Qt is heavyweight when compared to say Gtk. But that being said, I agree that Qt perf is much better than electron / JavaFX. I mean everything is a tradeoff. Gtk Is more complex to develop-with than Qt, electron super easy, but super memory intensive. My main point is that we should not always think "This is premature optimization". This mindset makes it very difficult to care about performance in modern organizations.
antoineMoPa··on Qt signal is ten times slower than a virtual function
Not sure why you believe that, I built some (small) Qt applications so I know it's not a web framework, I was just referring to slow software in general.

I think it's less true now, but I remember KDE (Qt-based) being slower and buggier than gnome (Gtk-based) a couple of years ago, just to cite one thing. It just felt like Qt-based stuff was in general more of a pain to use & heavier than GTK based stuff. It's really a matter of personal preference here and Qt is a nice project, just that I have some criticism here regarding performance choices. I feel like bad performance decisions tend to snowball and get multiplied when people make library choices and add their own performance issues on top.

antoineMoPa··on Qt signal is ten times slower than a virtual function
> anyone who is worried about it is having a severe case of premature optimization.

I think the "This is a premature optimization" mindset is what leads to slow pieces of software that I like to avoid (React, Qt, electron). But I guess it's fine, as most users don't care as much as I do.

antoineMoPa··on Facebook's TikTok-like redesign marks sunset of social networking era
I like the comparison with Wall-E, but I'm not sure TikTok is worse than watching/zapping television for an hour (regarding your 10% of last hour question). That's what a couple of generations of adults has been doing with their evenings already. Also, your 15 minutes timer seems like a good idea! I should try that.
antoineMoPa··on GitHub user sends notification to 400k users
Does tagging you automatically invite you to private repos?
antoineMoPa··on GitHub user sends notification to 400k users
Fun fact: at some point I wrote @param in a PR comment, talking about a parameter's doc. I only realized after posting that there was an actual user named @param.
antoineMoPa··on Viz Studio: code-based live animation editor
> Having coded some of the original fractal math research for DeVanney and Mandelbrot,

Really? I would love to read any story you have about this!

antoineMoPa··on Using TODO For Everything
I try to never merge TODOs in master. I do use these in feature branches, but if it was not important enough to fix while working on a PR and there is no ticket for it, the probability that it ever gets done is low and it ends up cluttering the code. Considering I want to delete my TODOs before I merge, it's much easier to cleanup if it's all the same line prefix (TODO).
antoineMoPa··on Ask HN: Custom domain email for professionals?
My first idea was namecheap + an email provider, but I'd like to recommend a service where you don't even have to think about spf, dkim, dmarc.
antoineMoPa··on Ask HN: Custom domain email for professionals?
Did you have to manually setup spf/dmarc/dkim?
antoineMoPa··on Ask HN: Share your personal site
I used to have content, but now it's just a flashing green cursor:

https://a-mo-pa.com

However, there is still an "hidden" folder with web experiments: https://a-mo-pa.com/stuff/

antoineMoPa··on Ask HN: How do you search large codebases before adding a feature or fixing bug?
Honestly I never really needed to search across multiple branches*. What I want to find is usually in master or in my own dev branch. Sometimes though I need to search older versions of the code and I always find `gitk` useful for that.

* Except at the windows shop where Azure Devops would provide ways to search multiple TFS branches of our product. Life is much better in companies where the master branch is the source of truth and you don't have to maintain different branches.

antoineMoPa··on Ask HN: How do you search large codebases before adding a feature or fixing bug?
Maybe your comment is off topic? We are talking about searching. You are talking about good vs not good developers and understanding code. Searching != understanding.
antoineMoPa··on Ask HN: How do you search large codebases before adding a feature or fixing bug?
Tools I use:

- grep

- ag - Same as grep, but faster!

- find - when looking for a file by name

- helm (an epic Emacs package which does interactive search)

Used to work at a Windows shop and we used Entrian in visual studio. That was pretty good, bust closed source and a pain to setup.

antoineMoPa··on Ask HN: Why should I trust password managers?
I think local open source password management software that you run on your machine are more trustable and less likely to be the subject of a big targeted attack than a cloud tool. So just to be clear, I am not advocating against Keepass or similar, only web tools with thousands of users.
antoineMoPa··on Ask HN: Why should I trust password managers?
In my opinion, storing passwords in encrypted files is probably safer than putting passwords in a centralized location (provided you don't code your own encryption algo or make other silly mistakes).

There is not a lot of value in trying to attack a single person's password file, but the value is multiplied by the number of users when using a centralized platform.

antoineMoPa··on Building an Intelligent Emacs
Reminds me of the time I posted this https://news.ycombinator.com/item?id=29578748
antoineMoPa··on Don't make me think, or why I switched to Rails from JavaScript SPAs
I think you don't want to support the article's claims, but you kind of support it by mentionning the choice that you need to make between NestJS and Adonis or any other frameworks. With the ruby ecosystem, there is almost always a clear convention on what to do (example: the conventional choice is to use rails, which leads to a bunch of pre-made choices)
antoineMoPa··on Ask HN: What do you consider as “bad” code?
entirely_too_long_variable_names -> I prefer very long variable names which are self-explaining and easy to grep. Abbreviations make code less consistent and less greppable. Also what's the point of making shorter variable names if you need a comment to explain what it's doing - or worse I need to email the author to find the answer. A variable name should be the minimal representation of the role of this variable, but without cryptic shortcuts or abbreviations.
antoineMoPa··on Approved Cameras
I know we can't do this here, but can we talk about the scroll-locked header which takes almost a third of my screen?
antoineMoPa··on Ontario bans non-competes and creates right to disconnect from work
> It subsidizes the rest of Canada (the "have-nots"), but it can afford to do so.

How? I was wondering if you were talking about equalization payments, but it looks like Ontario is sending none and it used to receive payments from other provinces during most of the 2010's.

Also, many provinces may claim to be the California of Canada based on different aspects (laws, taxation, proximity to west coast, health system, climate, car-centricity - where Ontario would win, etc.), but this has the same value as cities claiming they are the new SV: not so much.

← PreviousPage 5 of 21Next →