HNHacker News
TopNewBestAskShowJobs

ldd

464 karma · joined April 10, 2014

e-mail me at hn@lddstudios.com
submissionscomments
ldd··on Ask HN: What's your quarantine side project?
Exactly why I made it for a 72-hour gamejam. This is still a very, very early prototype of a game, but I hope to put a little bit of time each week until it becomes awesome.

Also, thanks for the words of encouragement, they mean the world to me!

ldd··on Ask HN: What's your quarantine side project?
Game Tools:

- Visual Tech Trees (React, javascript) [0]

Games:

- Slay the spire + pokemon (React, javascript) [1]

- HN Comments Matcher (Phoenix, elixir) [2]

[0]: https://ldd.github.io/react-tech-tree/

[1]: https://ldd.itch.io/nu

[2]: https://hn.lddstudios.com/

[0-source]: https://github.com/ldd/react-tech-tree

[2-source]: https://github.com/ldd/hn_comments_game

ldd··on Show HN: Match HN comments to their parent game [Phoenix LiveView]
Source[0] | MIT licensed

I've had this silly idea for a while, and I decided to try Phoenix for the first time to make this website. If anyone has any suggestions for features, or code review ideas, please let me know.

Impressions: I already love elixir, but I really liked using Phoenix. As usual, if you find problems you need to google around things a little bit more than for more popular frameworks, but overall, just like elixir, development is pretty painless and easy.

On the other hand, deployment took a bit of reading, I'm not gonna lie.

[0]: https://github.com/ldd/hn_comments_game

ldd··on Happiness is a freshly organized codebase
There is this wonderful utility: dependency-cruiser[0] for javascript / typescript projects.

It visualizes dependencies in a project. I found it so so easy to refactor and move files around after I started using it. I am not usually a visually-oriented person, but for this usecase, and to be happy, `dep-cruiser` surely helps.

[0]: https://github.com/sverweij/dependency-cruiser

ldd··on React-flow: a library to create interactive node-based graphs
I made a similar (though less complex version) of this for tech trees.

https://ldd.github.io/react-tech-tree/#examples

So the answer is, to make games!

I used it my library for my own game here:

https://ldd.itch.io/nu

ldd··on React-flow: a library to create interactive node-based graphs
What sort of non-trivial behaviour would you be interested in?
ldd··on React-flow: a library to create interactive node-based graphs
I made a react-based visual tree demo a couple of weeks ago.

https://ldd.github.io/react-tech-tree/

It imitates a long X-Men family tree and slay the spire's room selection.

But this seems pretty cool, and a natural next-step to what I wanted to make.

ldd··on The Quest for the Perfect Dark Mode (Gatsby/React)
I agree with you partially.

Dark Mode is pretty easy to do in CSS. I purposely picked jekyll with no javascript for my static site, and despite contributing a plugin for Gatsby, I do not use it these days.

Yet, there is at least some modern applications that can be made thanks to javascript, and React. We do not need to go back, but it is perfectly acceptable to say that not everything is a nail and you do not need a hammer for every single task.

ldd··on Show HN: jql – Easier jq Alternative with a Lispy Syntax Written in Go
only tangentially related, I made a VS Code extension to help out with jq development[0].

Also, jq supports modules. which is awesome!

[0]https://marketplace.visualstudio.com/items?itemName=ldd-vs-c...

ldd··on I Wasn’t Prepared for Work (2013)
I'm with you on Persona 5. I haven't finished it, but it has already influenced my life in a positive way.

You should consider playing "Tales of Berseria". It poses an interesting question: "Why do bird fly?", and gives interesting answers.

ldd··on I Wasn’t Prepared for Work (2013)
> For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much—the wheel, New York, wars and so on—whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man—for precisely the same reasons.

― Douglas Adams, The Hitchhiker's Guide to the Galaxy

ldd··on Ask HN: What to do if you're not great at your job
I'm surprised nobody has quoted Meditations by Marcus Aurelius yet.

> Thou sayest, Men cannot admire the sharpness of thy wits.- Be it so: but there are many other things of which thou canst not say, I am not formed for them by nature. Show those qualities then which are altogether in thy power, sincerity, gravity, endurance of labour, aversion to pleasure, contentment with thy portion and with few things, benevolence, frankness, no love of superfluity, freedom from trifling magnanimity.

Dost thou not see how many qualities thou art immediately able to exhibit, in which there is no excuse of natural incapacity and unfitness, and yet thou still remainest voluntarily below the mark? Or art thou compelled through being defectively furnished by nature to murmur, and to be stingy, and to flatter, and to find fault with thy poor body, and to try to please men, and to make great display, and to be so restless in thy mind?

No, by the gods: but thou mightest have been delivered from these things long ago. Only if in truth thou canst be charged with being rather slow and dull of comprehension, thou must exert thyself about this also, not neglecting it nor yet taking pleasure in thy dulness.

ldd··on What if you couldn’t program with loops?
yup.

  const action = (thing) => ...
    
  array_of_things.map(action)
ldd··on Sum-of-Three-Cubes Problem Solved for ‘Stubborn’ Number 33
It works in your browser with javascript if it supports bigInt[0]

  8866128975287528n**3n+(-8778405442862239n)**3n+(-2736111468807040n)**3n


[0]:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
ldd··on Ask HN: What topics/subjects are worth learning for a new software engineer?
Maybe something like

lambda f: [x for x in my_list if f(x)] + [x for x in my_list if not f(x)]

ldd··on Ask HN: Should I quit trying to be a programmer?
I've been in your shoes before, and I think the others have said it better, but basically:

- You need better practice, not more practice

- There's a difference between <being able to be hired by google> and <being able to be hired by a small company that needs a programmer>.

- Go through the MOOC "learning how to learn", sleep 8 hours, eat some ice cream, get hired by a small company, become a programmer.

Thank me in a couple of weeks for that.

ldd··on Advice for First Time Founders
Oh well, in that case it kinds of makes sense, as long as you are also transparent during the hiring process that this is the state of affairs in your company.

I guess I jumped to conclusions too quickly, but I can see how firing fast could maybe work paired with regular feedback to avoid surprises. I don't think it could work for everyone (particularly parents with young children), but under certain circumstances what you say probably makes sense.

ldd··on Advice for First Time Founders
How is that supposed to help team morale?

Perhaps it's just me talking, but I like my work. I like my co-workers. I have no kids nor debt, and I would be pretty sad working at a place that says that they want to fire quickly.

The hiring process sucks, and employees are human beings. Perhaps you mean to say that you should be fully transparent when someone underperforms? If that's the case, I would agree with you. No need to beat around the bushes, just be honest.

ldd··on Universities spend millions on accessing results of publicly funded research
Unbeknown to you, there are plenty of programmers, and engineers making "only" 45k / year or less.

And that is already a lot of money. More money than I can think of spending and enough money to let me save 50% of my paycheque.

So excuse us for making 'barely anything above minimum wage'

ldd··on The State of JavaScript 2017
I just want to say that react/vue(javascript) on the frontend and flask(python) on the backend is a combo made in heaven:

So I don't think you are the only one :D

ldd··on I Watched All of the Chrome Dev Summit 2017 Videos
I wish to voice the opposite view from OP: I love the fact that you stay at a 'higher level'. My primary focus when watching these talks is knowing the current state of chrome, and some information directly from the source on what you worked and will be working in the future.

Because of this, I want to say thank you precisely for not giving more lower-level details in your talks.

ldd··on Leaked: EU governments want to give record labels control over what we can post
A classic, but an old essay on the topic:

George Orwell, Politics and the English Language[1]

[1]http://www.orwell.ru/library/essays/politics/english/e_polit...

ldd··on Overthinking Fizzbuzz with Monoids
Just for the fun of it, I tried going the complicated way in Javascript:

```

var createRange = n => Array.from(Array(n), (_, i) => i + 1);

var rem = (i, n, message) => (i % n ? '' : message);

var accumulator = (a, b) => a + b;

var insideReducer = (p, n) => accumulator(p,rem.apply(null,n));

var outsideReducer = (p, n, i) => n ? p + n: p + (i + 1);

var messageFilter = (n, filterArray) => createRange(n)

    .map(i => filterArray.map((el)=>[i,...el])

        .reduce(insideReducer,"")
                       
    )

    .reduce(outsideReducer,"")
var fizzbuzz = n => messageFilter(n, [[3, 'fizz'],[5, 'buzz']])

```

ldd··on Show HN: A library to record and intercept JavaScript at runtime
partial call tree recording is supported, I think. Take a look at section "28.3.2 Intercepting method calls" from the link I posted above.

More importantly, you are entirely right about ES5 support. Babel doesn't polyfill Proxies, and the google polyfill is not as powerful.

ldd··on Show HN: A library to record and intercept JavaScript at runtime
I only observe certain classes because observing anything and everything is not convenient. Nothing prevents you from doing

`window = new Proxy(window, handler)`

(or more generally, to Proxy the global object) where the handler replaces anything with a Proxied version of it either once a trap triggers (yu-gi-oh style) or immediately.

Then again, I did not write the specification for `Proxy` and Iroh is cool. It probably has plenty of use-cases where Proxy would not do a good job. I'm just showing what we have right now.

ldd··on Show HN: A library to record and intercept JavaScript at runtime
proxies can do this relatively easily.[0]

Here's a minimal fiddle doing just that: https://jsfiddle.net/6v82dj01/

As for actual implementations, I used it in a small analyzer for RPG Maker MV plugins[1] that roughly does what you want with very little actual code[2].

[0]: http://exploringjs.com/es6/ch_proxies.html#sec_proxies-expla... [1]: https://github.com/ldd/plugin-analyzer [2]:https://github.com/ldd/plugin-analyzer/blob/master/plugin-an...

ldd··on Show HN: A library to record and intercept JavaScript at runtime
I'm not sure how relevant my code is, but I did something similar using Proxies[0] for a game engine built on javascript (RPG Maker MV) following some useful advice I found online[1].

I presume that the same type of logic could be used to make more powerful loggers.

[0]:https://github.com/ldd/plugin-analyzer [1]:http://exploringjs.com/es6/ch_proxies.html#sec_proxies-expla...

ldd··on Raising a Truly Bilingual Child
>True bilingualism is a relatively rare and a beautiful thing(...) Highly competent bilingualism is probably more common in other countries, since many children growing up in the United States aren’t exposed to other languages.

I acknowledge that this article is aimed at Americans, but I don't really think that bilingualism is rare in the world, or for that matter, in certain parts of the USA.

Perhaps this is not relevant to the article, but it seems that bilingualism is a forgotten issue these days in the USA. Yet, it is actually a very important issue. One time a person simply told me that they couldn't see the point in Junot Díaz work because it used so many 'foreign' words.

At the time of writing this reply, there were already plenty of other replies that suggested that we should all speak English exclusively or at least that speaking English proficiently should be prioritized. I think that they are probably at least partially right, but it surprises me that there is really not a lot of controversy on this topic.

All I am saying is that here we have a perfect topic in which humans are not entirely rational, and instead of being puzzled and talking about it, we just simply forget about it.

[edited for clarity. Like Celia said, my English is not very good looking, so I'd appreciate corrections :D]

ldd··on How Nature Solves Problems Through Computation
Look into pantheism if you ever have the time.
ldd··on The effects of growing up with an extremely common name
I like to think that everyone thinks that the grass is greener on the other side.

In my case, I have never been 'average' or 'normal', and I always envied the Sarahs and Johns of the world. Then I realized that often 'normal' people really want to be unique, and those born 'unique' really want to be average.

Besides my mom, nobody really uses my real name - Leonardo - and I am very vocal to correct everyone to use the more natural "Leo". As for my last name, which has two parts separated with a space due to how Spanish last names work, I usually avoid writing the accents and provide only the first one.

All of that doesn't mean that I am ashamed of my name, which I adore. I just want to assimilate and make other people comfortable. In the words of Abed, from community:

"When you know who you are and what you like about yourself, changing for other people isn't such a big deal."

← PreviousPage 3 of 5Next →