Better HN
topnewbestaskshowjobs
Log inSign up

ducharmdev

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

Submissions

comment 4y ago · link · parent

> This allows code to look natural, while still producing literals that are desired, and avoiding runtime costs if this required the use of specialized string manipulation routines.

Maybe a source generator would be applicable here? Not as nice has having it built into the language of course, but it would at least eliminate these runtime costs.

comment 4y ago · link · parent

If career ambitions aren't a factor, I'd definitely second Svelte. I used to do frontend dev and switched into a more backend role, but every time I do a hobby project with frontend work, I always pick Svelte. I briefly peek into the others, but Svelte is the simplest by far.

comment 4y ago · link · parent

I feel the same way about using websockets to get SPA-like interactivity; Blazor Server in the .NET world is similar. htmx peeked my interest though, as I can see the appeal of the LiveView/Blazor/Hotwire approach, but would still prefer inexpensive HTTP requests for most use-cases.

comment 4y ago · link · parent

Compared to the Blazor tooling, the Typescript tooling is miles ahead imo. We did a Blazor app during a hackathon and I was pretty frustrated with how inconsistent the build errors were with blazor components.

What makes me most skeptical about Blazor though, is that it's shifting a huge burden to the client just to make developers happy. Even if the runtime is stripped down and compiled to wasm, it seems kinda wild to send a whole runtime just so you can run C# code, especially when there's alternatives like Rust that require no runtime.

What's funnier too, is that it's been possible to write F# on the frontend for a while now, compiling down to javascript (like clojurescript). It makes me wonder why this approach was never done with C# too, even if there are pitfalls in compiling to javascript.

comment 4y ago · link · parent

When person A has been working on a technical problem for some time, they may have a greater awareness of the context than person B that's just heard about the problem. If A has the contextual knowledge but poor communication skills, they may forgo the high-level discussion that B needs to adequately understand the problem, or the system as a whole.

B needing that high-level discussion doesn't mean B isn't a good developer, and A being narrowly focused on implementation details doesn't mean A isn't a good developer. But they both need to be able to meet each other in the middle to be most productive.

comment 4y ago · link · parent

It's possible, but I sure do wish it was more common. I went to school for English and switched to software dev via self-teaching, and the contrast is quite stark to me.

I've had coworkers unable to write basic emails without someone helping them; or worse, they can't clearly explain their thought process on anything and are confused when you're unable to read their mind, verging on some kind of mind-blindness.

Of course, not everyone is this bad. But by the nature of the work, chances to practice communication skills are few and far between.

comment 4y ago · link · parent

I hear sentiments like this often with lisp, but if this were the case, why isn't everyone using lisp?

comment 4y ago · link · parent

Assuming the GC proposal eventually reaches general availability, do you think the approach of the wasm-bindgen+web_sys crates you mention could serve as a model for garbage-collected languages wishing to serve as a replacement for JavaScript?

I know the original intention of WASM was to peacefully coexist with JavaScript, not replace it, but one can dream.

comment 4y ago · link · parent

This is the question I want answered more than anything. If WASM can get these, there's no doubt that it will completely reshape the future of web development.

comment 4y ago · link · parent

I took OP's comment to mean having a wasm runtime in a container, not as a container; AFAICT, krustlet seems more like a replacement for Docker containers.

comment 4y ago · link · parent

This is the best response I've seen to this question

comment 4y ago · link · parent

On my current team we work on a cashiering desktop app, that needs to interact with local devices for processing checks and credit cards. Although almost everything reaches out to an API at some point, I'd generally say desktop apps are still relevant in cases like this.

comment 4y ago · link · parent

This sounds pretty similar to code koans, where you learn a language by making all the tests pass. The rustlings course for Rust works this way too - very effective IMO.

Some examples:

- F#: https://github.com/ChrisMarinos/FSharpKoans

- Ruby: https://github.com/edgecase/ruby_koans

- Powershell: https://github.com/vexx32/PSKoans

- Rust: https://github.com/rust-lang/rustlings

comment 4y ago · link · parent

I appreciate the clarification, my understanding of this stuff is pretty superficial.

Putting it that way, I can see why someone would appreciate that Rust guarantees safety by default, instead requiring you to opt-out explicitly when needed (with `unsafe`), versus the opt-in nature of RAII - for greenfield projects, anyway.

comment 4y ago · link · parent

As someone coming from a web background with almost no systems programming experience, Rust is appealing to me in terms of it's language features and support for a functional style of programming, as well as the documentation and tooling (among other things).

But from the little I've learned about modern C++ and RAII, I wonder how systems engineers will respond to Rust in the long-term. Memory safety seems to be the primary argument in favor of using Rust, but what would be easier - rewriting everything in Rust, or refactoring existing code to take advantage of RAII?

comment 4y ago · link · parent

Where did you read this? Just curious, I'd like to share with someone I know that works in this field.

comment 4y ago · link · parent

In terms of the languages you listed there, sounds like V to me:

https://vlang.io/

comment 4y ago · link · parent

What do you mean by a large consolidation? As in users will coalesce around one of these ecosystems, or something else?

comment 4y ago · link · parent

Yeah, the final line seems to be far from any kind of "gotcha":

> What Ben-Yosef has produced isn’t an argument for or against the historical accuracy of the Bible but a critique of his own profession. Archaeology, he argues, has overstated its authority. Entire kingdoms could exist under our noses, and archaeologists would never find a trace. Timna is an anomaly that throws into relief the limits of what we can know. The treasure of the ancient mines, it turns out, is humility.

comment 4y ago · link · parent

I don't really enjoy exercise much, but I made a quick Django site to track my workout data, which makes it a little more interesting to me.

Sure, I could have used one of the million workout apps that are out there, but I feel more invested when I am completely in charge of collecting, managing, and using my data. I don't have to leave it up to someone else to gameify my exercise; I get to decide how.

comment 4y ago · link · parent

> We are in an industry that is so new, so fast-moving and so financially rewarding that people tend to gravitate towards popular programming languages. These people are quick to migrate to a new technology, they often skip fundamentals or simply have no interest in gaining fundamental knowledge.

One might say that this simply signals the success of these languages in attracting newer programmers. Senior developers should have this fundamental knowledge regardless of language.

I've read numerous impassioned calls to use a given language like this over time. Clojure, Haskell, every flavor of Lisp there is. More times than not, it leads me to a few weeks of buying into the hype, believing it's going to be the most transformational experience I've had as a developer.

Lines like this seduce you so easily; who wouldn't want to be able to express their ideas with so little friction?

> _ is the most expressive and flexible language. You can reach a flow-state where ideas can freely flow from your mind into code

And these languages can be a good way to learn new ideas and paradigms, sure. But for me, a lot of their usefulness ends there.

The tooling, documentation, community, and everything else beyond the language often matter as much as the language itself. And for better or worse, you simply have more eyeballs on these things as the language gets more popular.

comment 4y ago · link · parent

The key here is, how many mp3s are we talking about?

Even though I like music quite a bit, do I want to dedicate multiple terabytes and hours of my time building out and managing a personal catalogue of music I like? Because this is exactly what Spotify gives me for the majority of artists, with 0 effort.

comment 4y ago · link · parent

I also switched from python to rust, and it sure was rough haha. The compiler is a stern but effective teacher; I felt like I was constantly fighting the language, but primarily because of my lack of understanding of ownership (not rust's fault!).

The Dijkstra stuff on day 15 is what ended it for me; like you said, python makes it easier to prototype stuff, so if you need to learn/relearn algorithms you never use day to day, it's so much more forgiving.

comment 4y ago · link · parent

Have you tried spacemacs with vim keybindings? That may be right up your alley. Personally I still prefer VSCode + vim, but I did use spacemacs for it's org mode for a bit.

comment 4y ago · link · parent

An obvious one, but Spotify. They've solved so many problems in the music-listening experience, it's amazing.

I remember having to manage so many folders of mp3s, manually syncing them to devices. And paying $.99 a song meant a very limited selection. I often relied on free iTunes playlists to find new music, because I couldn't afford to buy new music at the time.

They've eliminated all of these problems. Pay $10-15 a month, and you can listen to whatever you want, wherever and whenever.

I say this purely from the consumer's perspective, though - I'm not super familiar with what artists' experience is like. On one hand I'm sure Spotify broadens your audience quite a bit, but I wouldn't be surprised if artists run into issues similar to creators on other platforms (e.g. YouTube).

comment 4y ago · link · parent

This is why I'm thankful for the experience from one job where everything was in stored procedures. Say what you will about stored procs, but they're a great way to get comfortable with SQL!

comment 4y ago · link · parent

But you can create PowerShell cmdlets using C#. If you're doing something that would really needs compile-time checks, simply extract the logic into a C# class inheriting from Cmdlet, and use that cmdlet in your scripts as needed:

https://docs.microsoft.com/en-us/powershell/scripting/develo...

comment 4y ago · link · parent

“In the middle of the journey of our life I found myself within a dark woods where the straight way was lost.” – Dante Alighieri, Infern.io

comment 5y ago · link · parent

From your example, it sounds like your gripe is more with engineers that follow a given principle dogmatically, rather than applying it judiciously based on context.

Although I think there is some value in principles like these, I am always wary of anyone that's overly absolute in their thinking.

comment 5y ago · link · parent

Haha, your last line really made me smile.
1
456
9