Better HN
topnewbestaskshowjobs
Log inSign up

ducharmdev

893 karma · joined Oct 2, 2020 (6y ago) · 241 submissions

Submissions

comment 5y ago · link · parent

Shhh, OP might hear you, lol

comment 5y ago · link · parent

That's an interesting point - on the topic of readability, its often argued that the more abstract symbols and operators used, the harder it is to read (I think this is why operator overloading is sometimes frowned upon). But if you are not fluent in English, it wouldn't be much more accessible than a purely symbolic language.

The tricky thing about this, is we search based on language all the time. It's harder to search for an operator if you don't already know what that operator is called.

Maybe you could build this into the tooling of the symbolic language? E.g. provide a semantic name for a given std lib function in your chosen language, and get intellisense in your language.

comment 5y ago · link · parent

Do you have a source for this? Not that I don't believe you, but just curious about the history.

comment 5y ago · link · parent

If you have the time, there's this great talk by Bill Wagner that goes over some of these newer features. You can also skip right to the pattern-matching section; he shows a good example of how powerful switch expressions can be.

https://m.youtube.com/watch?v=aUbXGs7YTGo

Alternatively, this page on the C# 8 release has good examples too. They show how you can leverage tuples to make them even more powerful.

https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csh...

comment 5y ago · link · parent

I feel that. It always seems to come down to tooling; the moment you have to fight with tooling for a language, it immediately adds friction. Sure, individual developers can overcome these problems, but it still decreases the adoption rate of said language.

It makes me wonder what differed between the .NET and JVM runtimes, with .NET moving towards fewer languages, whereas the JVM supports more.

comment 5y ago · link · parent

If you really want something simpler than using a SSG, you can always use pandoc to convert markdown files to HTML. With a one-line command, you can take any arbitrary .md file and spit out .html.

comment 5y ago · link · parent

I think you have a good point when it comes to the public API exposed to users of a module or library; it's one thing if you are just using operator overloading in your internal implementations, but I'd imagine it'd be pretty confusing not seeing docstrings or being able to search for specific methods. Not sure how you would easily find that in the docs without peering into the object whose methods are overloaded.

comment 5y ago · link · parent

That's kinda where my mind went - even though it's not as exciting to a developer, that'd be a lot more accessible for non-technical people. Worst-case scenario, if you need a more fully-fledged app down the road, you could write a small script to import the .csv into a database.

comment 5y ago · link · parent

I'd argue that people have been taught to expect it to be free. When fundamental services like search, email, chat, etc. are provided to consumers for free, why shouldn't other services be free too?

Of course we know these services aren't really free; Google and Facebook still run their services on physical servers that have hosting costs. But by making their apps free and finding alternative revenue streams (i.e. selling data), they can set norms that harm competitors with less capital while making it easier to adopt new users (and collect more data).

comment 5y ago · link · parent

That Elixir part is pretty slick. But to be fair to JS, you could also write that JS function like this:

  let factorial = n => n === 0 
         ? 1
         : factorial(n - 1) * n;
But I do wish JavaScript had some more powerful pattern-matching syntax. For example, both Rust and C# both have nice switch/match expressions that can really simplify code like this.

comment 5y ago · link · parent

Very minor suggestion, but using bullets and numbering is a bit visually redundant. I would probably choose one or the other vs both.

Beyond that, really fun idea. It makes me happy to see an app idea with a more humanistic goal.

comment 5y ago · link · parent

If you have the time, I would be curious what your thoughts are on this talk by Bill Wagner. Gives a lot of insight into where C# is headed: https://www.youtube.com/watch?v=aUbXGs7YTGo

comment 5y ago · link · parent

GitHub Pages or Netlify for sure. With either of these options, your static site can be set up to deploy whenever there's new commits to the specified branch.

Me and a friend mentor for Code Louisville, and we're able to get the beginner frontend students up and running very quickly using these options - they're free and much easier to use.

comment 5y ago · link · parent

You can have the best of both worlds using spacemacs in evil mode. Essentially gives you emacs with a lot of community-selected plugins, but with vim keybindings.

As a vim user, there's just certain tools emacs provides to which there's no vim equivalent (or the vim implementation is lacking). Like org mode for example: I've yet to come across something outside of the emacs ecosystem that does a good job of replicating org mode. Maybe jupyter notebooks come close in some ways, but AFAIK the org mode experience is fairly unique to emacs.

comment 5y ago · link · parent

Do you have any concrete examples you can link to show these differences? I'm unsure what you mean by architectural decisions made at the language level.

comment 5y ago · link · parent

Nice, thanks for the detailed response! I did sociology & English in undergrad, so I got some decent exposure to Marx (I'll probably need a refresher though).

Not too long ago I picked up a copy of French Philosophy in the Twentieth Century by Gary Gutting, that gave some helpful info on the context of some of Deleuze's works (e.g. the Bergson and Spinoza stuff).

And ditto on ATP, what a trip haha. Not for the faint of heart!

comment 5y ago · link · parent

Deleuze was always my favorite too, it's been years since I read his works but I've been thinking of going back for the fun of it. I had stumbled upon DeLanda who helped clarify A Thousand Plateaus, but do you have any recommendations for reading and understanding Deleuze? Unfortunately I don't have a very extensive philosophical background beyond some undergrad courses and personal exploration on my own, which makes it a bit difficult when parsing references to Freud, Nietzsche, etc.

comment 5y ago · link · parent

That's interesting, as my experience was the inverse of this; I started in the humanities and later became a software engineer. My background makes my complaint slightly different: it is common in postmodern thought to critique essentialism, and although these criticisms can have a lot of merit, postmodern thinkers can get very meta in their arguments. To the point where even the texts themselves evade essentialism.

The trouble with this is that, for better or worse, we typically try to get at the essence of things in the learning process, i.e. we search for fundamental patterns in the domain we're learning. So at the same time that postmodern thinkers are critiquing essentialist assumptions that we may hold, they are also using the text itself to drive this point home. But for someone new to this stuff, it makes it very hard to learn.

I believe that there is value in these ideas, but they need to be made more accessible if they're to become popular outside of academia. The tech industry would benefit from exposure to other domains like this; although engineering holds a lot of power afforded to it by economics, I've noticed a lot of developers fall into the notion that their domain is the one to rule them all, and that it is enough to understand the world in it's relation to software alone.

comment 5y ago · link · parent

I would be very curious about your perspective myself if I were in that book club! It's interesting that you say the translation got in the way of understanding the text; I can see how the literary quality of this type of philosophy would not do well with one-to-one translations.

comment 5y ago · link · parent

I think this is why I enjoyed Deleuze & Guattari a lot; IMO they seemed to be more aware of the futility of the "burn everything to the ground" approach and overall, their conclusions feel more additive than subtractive.

comment 5y ago · link · parent

I was always conflicted about poststructural thinkers; on the one hand I was enamored with the creativity of their ideas and analyses, but on the other hand it seemed that their insights were always communicated in the most impenetrable writing. I get that their chosen modes of communication are often interwined with the ideas themselves, but nonetheless it reminds me of engineers that create overly complex solutions to flex how clever they are.

Although I always had more fun with the continental philosophers than analytic ones, I do appreciate certain thinkers that can bring clarity to the works of Derrida, Foucault, etc. For example, I've always had an interest in Deleuze & Guattari, but it sure is helpful to have someone like Manuel DeLanda when reading works like A Thousand Plateaus. If not for him, I doubt I would've made sense of the original text at all.

comment 5y ago · link · parent

Please, anything to get rid of that. LinkedIn really has set the bar low.

comment 5y ago · link · parent

I didn't really learn SQL until being given small tasks at work that involved some basic scripting. Requests for populating tables with new data so admins wouldn't have to manually input it from the web UI was a common one. That in particular was helpful because:

1. Performance is not usually as important for one-time scripts like these.

2. It gets you familiar with your database and the relationships between entities in your product.

3. It shows you how powerful SQL is. With a few hours writing a single script, I saved users many more hours that would've been spent entering it all manually.

The other benefit of this approach, it's easier for senior developers to review too. You can give feedback like, "this works fine for this use-case, but here's something you can do in situations where performance is a concern" and provide some useful tips in PR comments.

comment 5y ago · link · parent

I would be careful not to take software/CS metaphors too far. I don't mean to say one domain's concepts can never be applied to another domain, but developers hold certain assumptions about our domain that may not apply elsewhere. Even basic observations can rely upon more deep-rooted axioms.

I only say this because it's something I've been reflecting on lately - I've found that by being too immersed in the context of software development, I've often fallen victim to this mindset:

https://en.m.wikipedia.org/wiki/Law_of_the_instrument

comment 5y ago · link · parent

Although your UX looks a bit more appealing, this is what you are competing with: https://mermaid-js.github.io/mermaid-live-editor

So when determining your price point, you need to provide a fairly substantial service on top of this to justify a monthly cost. Particularly when you're targeting developers and architects, who are more likely to use free open-source alternatives even if the UX is not as good.

comment 5y ago · link · parent

Geez, have you heard of a contrast checker before?

https://webaim.org/resources/contrastchecker/

comment 5y ago · link · parent

I like the convention in C# where you prepend generic type names with a T, clearly signifying that it's a generic while being more descriptive. E.g.:

public delegate TResult Func<in T,out TResult>(T arg);

238.

No Transpiler? No Problem: Integrating Vue with Asp.net Razor Pages(ducharm.medium.com ↗)

1 points · by ducharmdev · 5y ago · discuss

comment 5y ago · link · parent

Agreed - trying out nest.js the first time gave me hope that we'd see something like Django for typescript/javascript. Especially paired with nx workspaces, with shared code between front & backend... so nice.

comment 5y ago · link · parent

Although the questions posed here are thought-provoking, the notation of + and - feels a bit reductionist. In the vein of lambda calculus, it would be more interesting to determine the smallest, most atomic patterns with which you can compose plot lines that are broader in scope, but in a way that will maintain clarity as you compose more and more patterns together.

Additionally, categorizing events in a plot in terms of good or bad makes it difficult to apply this in general without very specific definitions. I know it may seem obvious that the boy getting the girl is a positive, but that is from the perspectives of the boy and girl. Stories are usually made of many characters whom all respond and feel differently about a given event, and the audience relates with that array of characters in a variety of ways based on their own life experience, identity, etc. that informs their idea of what is good or bad. When you are analyzing the structure of a plot, ideally this should be done in a way that focuses on aspects of the story that will not vary from person to person.

1
56789