News for hackers. Stuff that matters.

miccah

Re:Habits I've developed for fast and efficient programming on Sunday October 24, 2021 @05:53AM (#28976362)
+1 for zsh-autosuggestions. It is the most important plugin I use because all I have to do is remember the first 2 characters of a command to get the suggestion and autofill it on the command line. It saves so much time and frees up space in my head for more important things to remember.
As a Rustacean currently learning Elixir, I found myself wanting this exact functionality. Kudos for making this, I'll definitely use it!
Immersion. The fastest way to get through the "practice hump" is to accept the dip in productivity and keep learning. No turning back to your old method. The same applied when I learned the Dvorak keyboard layout, and I presume the same applies for language learning among other examples.

For vim specifically, I think mode changes are the most important to learn first. Past that, it's building muscle memory for all the keybinds (and actually discovering the keybinds).

Re:Show HN: Computer Engineering for Babies Book on Sunday September 26, 2021 @03:13PM (#28663686)
Nice job! From the video it looks like many of the pages share the same buttons. I'm curious how you detect which page is open to operate the corresponding circuit?
Re:Ask HN: Who wants to be hired? (September 2021) on Wednesday September 01, 2021 @06:46PM (#28386462)

  Location: Houston, TX
  Remote: Yes
  Willing to relocate: Possibly
  Technologies: Rust, GoLang, Linux, etc.
  Résumé/CV: Upon request
  Email: hn at miccah.io
I'm most interested in security and embedded systems. I love learning and am happy to do so on the job.
Re:Surveys show Americans want more walkable cities on Saturday August 07, 2021 @09:53AM (#28098594)
I'm happy to hear this statistic, but American cities need to change so much to make it happen - mainly removing cars as other commenters pointed out. A good start would be making public transportation more available through buses and trains, followed by limiting cars in already more walkable areas of the city.

Not Just Bikes is a great YouTube channel that explores city planning and often compares American cities to cities in the Netherlands. He has a video on Strong Towns as well.

https://youtube.com/c/NotJustBikes

Re:Ask HN: Who wants to be hired? (August 2021) on Monday August 02, 2021 @05:37PM (#28043022)

  Location: Houston, TX (US)
  Remote: Yes
  Willing to relocate: No
  Technologies: Rust, GoLang, C, Linux
  Résumé/CV: Upon request
  Email: hn [at] miccah.io
  Hours: 15-25 hours/week
Looking for part time remote work, preferably in systems / backend / CLI environment. I very much enjoy working on open source projects, security, hardware, and tooling. I'm adaptible, learn pretty quickly, and I am easy going.
Re:Lang Jam: create a programming language in a weekend on Sunday August 01, 2021 @08:21PM (#28031576)
Does anyone have a good resource on writing compiled languages? I'd like to join this Jam but I don't know where to start.
Re:Ask HN: Easiest way to make simple web animations? on Sunday June 20, 2021 @08:34AM (#27569387)
Thanks for the suggestion! Through that search I found this HN post comparing most of the popular animation libraries.

https://news.ycombinator.com/item?id=23083730

Ask HN: Easiest way to make simple web animations?

I want to create very simple interactive animations for some blog posts (hosted statically). What is the easiest way to go about doing this? I have tried using HTML Canvas but my gut tells me there is a better solution that may already exist.As an example, I would like to create an animation displaying current flow through a transistor. The user can turn the gate on and off to see the electrons...

( Read More... | 2 comments | 3 points | on HN )
Re:Ask HN: Would you introduce someone to programing on Tuesday May 25, 2021 @10:19PM (#27285412)
I agree. The process of programming involves a lot of "head hitting the wall." Having a goal helps you stay motivated when running into such tedious issues.
All the parkour I do is at ground level (no rooftops), but even still running and jumping at walls can be dangerous if you slip. All of my injuries since starting 7 months ago have come from slipping on a thin landing (like a rail) and banging my shins on it.

That being said, the great thing about parkour is there are no rules. You can practice only at indoor gyms if you like, or do slower movements. Personally, all the jumps I attempt I'm 95% certain I can do them.

So, yes, it can be dangerous, but at the end of the day it's your choice in how you practice. Feel free to e-mail me if you want to chat more :)

Parkour.

It's great physical exercise, I get to spend time outside, set challenges / gradually achieve them, and express my creativity through movement.

Re:How I made a profitable Vim course on Friday April 16, 2021 @09:53AM (#26833879)
Congratulations, Slip looks awesome as well! I see only 5 languages are supported right now. Do you have any plans on adding more?
Re:Increasing my contribution to Zig to $200/mo on Tuesday April 13, 2021 @11:24PM (#26802603)
This quote about the V programming language surprised me, because I had the exact opposite experience.

> it was the unfriendly community I came across, the controversy surrounding it, and the secretive nature of the project that made me lose faith in its promise.

I know V has some controversy around it, but the community has always been open and kind in my experience.

Re:“username or password incorrect” is bullshit on Wednesday March 17, 2021 @02:21PM (#26494963)
The vulnerability lies in the registration page disclosing that information. To show absolutely no signs, you would accept the registration with a message: "An email has been sent to the provided address."

Obviously this is less convenient and arguably not a critical vulnerability for GitHub. The good news is, the registration page doesn't disclose which account an email address is associated with.

Re:Ask HN: Resources for Learning Idiomatic Rust? on Wednesday February 24, 2021 @10:00AM (#26250552)
I was in a similar position a few months ago. After reading the Rust Book, I felt I knew the concepts but still lacked the experience of writing Rust programs.

That being said, I have found the Rust track on exercism.io the best way for me to become more proficient with the language. It is great working through a challenge, getting mentor feedback, and also seeing how others solved the same problem.

Re:Organizations Using the D Language on Thursday February 18, 2021 @04:30AM (#26177760)
Take a look at V. It's like the love child of Rust and Go. It's extremely fast (both compiling and executing), has simple syntax with "one way to do things", has sum types and option/results with enforced error checking, and it even has a REPL.

Oh not to mention it has C interoperability and a native cross-platform GUI library.

https://vlang.io/

Re:Soft Skills in Engineering Leadership on Wednesday February 17, 2021 @10:40AM (#26167565)
Good leaders are people who teach others to grow, progress, and ultimately become their own leaders. Most managers aren't incentivized to grow their engineers because it would mean losing them. I find it hard to fully trust my manager because I know my best interests are only partially in their mind. They also need to care about the business and their own position, which usually carries more weight than how I want to grow my career.
Re:Most of the time, you don’t really need another MOOC on Wednesday January 27, 2021 @02:52PM (#25933047)
Mentors are definitely a great resource! Of all the learning activities I have tried, having a real person to talk to and ask questions has been the most effective and motivating.

For those who want an easy (and free!) mentor system for learning various programming languages, try Exercism [1]. I have been using it to learn Rust and Clojure.

[1] https://exercism.io

Re:XTerm: It's Better Than You Thought on Tuesday January 12, 2021 @11:52AM (#25749562)
> but we can hijack it to instead scan the screen for URLs and open the browser

For comparison, rxvt-unicode has perl utils for mouse-less URL selection [1]. Since it's operating within the terminal, scrollback is also available for selection (not just the currently visible screen).

After invoking the selection mode, it's as easy as using j/k to choose the URL and Enter to open or y to yank to clipboard. Installed on Arch with the `urxvt-perls` package.

[1] https://github.com/johntyree/urxvt-perls

Re:Show HN: CLI Heaviside text processing tool on Sunday January 10, 2021 @04:50PM (#25720360)
Hey HN, I made this tool to start or stop printing a file at a first match. It's pretty simple but would be happy to receive feedback and feature ideas.

Thanks!

Re:Ask HN: Show me your half baked project on Saturday January 09, 2021 @05:45PM (#25705803)
I have two:

An android app to remotely control mpv: https://github.com/mcastorina/mpv-remote-app

An interactive CLI for sending parameterized HTTP requests: https://github.com/mcastorina/repost

Re:Show HN: Hurl – Run and test HTTP requests on Wednesday January 06, 2021 @09:41AM (#25658133)
This looks really great. I like that everything is defined in plaintext, but is there a way to link in other files? It might help clear up some clutter for large payloads. Environment variables might be good for using secrets more securely as well.

I'm actually working on a similar project (also in Rust) but targeting interactive use and differing environments. It's a tool I created for myself because I was tired of hand crafting curl commands and forgetting which env variables are set to what.

It is still very young but I'll link it anyway: https://github.com/mcastorina/repost

Re:On Repl-Driven Programming on Sunday January 03, 2021 @09:20AM (#25621902)
I should have read more comments before posting, but it seems I reinvented an inferior wheel:

https://github.com/jpalardy/vim-slime

Re:On Repl-Driven Programming on Sunday January 03, 2021 @09:14AM (#25621864)
I admit I have not experienced true REPL driven development as the author defines it, but I have created an easier way for "development with a REPL" in vim. I love it because it's like a looser, faster Jupyter notebook, and it works with any language that has a REPL.

It works by sending highlighted text to vim's terminal buffer. I wrote a short blog post with a demo and the vimscript code here:

https://mcastorina.github.io/posts/vim-repl-driven-developme...

Re:A half-hour to learn Rust on Saturday January 02, 2021 @12:01PM (#25614168)
I have been learning rust interactively with Exercism, which uses a mentor system to provide feedback and suggestions.

https://exercism.io/tracks/rust

It's also great to view other learner's solutions once you complete the exercise.

Older »