HNHacker News
TopNewBestAskShowJobs

sirsuki

329 karma · joined June 5, 2014

http://tritarget.org/

[ my public key: https://keybase.io/sukima; my proof: https://keybase.io/sukima/sigs/p_xMUMbEohTq3s3PJJfqHVAdVw_1U8gdMnM-9eYaYQ0 ]

submissionscomments
sirsuki··on Commit messages guide
Look, the simple matter is that commit messages are designed from the bottom up to be a medium of prose in the same way email is. I would venture to guess that an email written with good grammar, capitalizes subject (that is less then 50 characters), and a articulated thoughts would ecstatically welcomed compared to the drivel we normally recieve. Commit messages are no different. If one feels that a one liner is sufficient to establish context because the code is so impeccable then that is nothing short of arrogance.

Think of commits like little emails. They have a subject that should fit in a subject cell of a table. They have a body. And they have attachments (the diffs).

Why wrap lines? Because it is text. If you feel every client ever created handles wrapping appropriately then I’d ask to move the rock you’ve been under. For 30 years I’ve watched client after client screw up text wrapping. Heck, just sample a few government websites. By claiming commit messages are text you are taking back control of the crazy cesspool that is the modern app era and crafting a prose and typesetting fit for your own high standards.

As Steve Jobs once quoted: “Be a yard stick of quality. Some people aren't used to an environment where excellence is expected.“

sirsuki··on iTerm2 beta adds Python API
both iTerm2 and Terminal.app got so slow that I switched to Hyper which contrary to common sense is blazing fast for me. I’ve also started experimenting with URXVT via XQuartz but the native feel just isn’t there like it is for Hyper.

Who knew Electron apps could out perform native ones (even with GPU acceleration in iTerm2’s case)! I don’t know how or why but in this case it is so.

sirsuki··on VS Code on a Remote Server
I have to say it because no one else has yet. Vim, Emac, Nano, Pico, etc. has been doing this with good ol' fashioned SSH decades before this. It fascinates me to see editors constantly reinvented over and over. Is text really that complicated?
sirsuki··on Firefox Send: Free encrypted file transfer service
First off, Mozilla believes in the service. Mozilla itself gets funding from donations and corporate backing (I think). The cost of bandwidth is small compared to other file share sites in that the files stored are temporary. The transient nature of the files means that the max storage space needed is relative to the concurrent number of users. Bandwidth also. That means sans a very clever DDoS their expenses should be manageable compared to say Google Drive, Dropbox, or MS One Drive.

I remember sending a signed PDF via Firefox Send and was at first horrified when I realized I couldn't get the file back after 24 hours but then relieved knowing that the recipient got it and then it disappeared from the internet. Very cool!

sirsuki··on Ask HN: What made you change your mind about a programming language/paradigm?
Any one of Sandi Metz's talks. Made me realize just how easier things are when you can abstract them to an object with a well defined messages.
sirsuki··on You probably don't need a single-page app
Is there any possibility that the added complexity is a symptom of the framework in use and not a general problem with ALL frameworks? I know I've experienced many projects and found server side rendering more complex then client side when using frameworks like Ember.js.
sirsuki··on Tasks That Can Be Done with Pure HTML and CSS
In my narrow mental model I've always heard the claim that HTML and CSS is the purest form of document representation. A static site that can not get any more lean then that. And yet after removing the JavaScript (the source of all evil on the net) the site still can not handle the traffic and offers a 500 internal server error!!! Really? they can't serve static HTML on a site that is promoting static HTML features?
sirsuki··on Asciidoctor – A fast, open-source text processor and publishing toolchain
Oh believe me I love AsciiDoc. I would use it all the time if half the tools out there would support it. Sadly, as it stands most forums and chat apps still think Markdown is the only format ever to be invented.
sirsuki··on Asciidoctor – A fast, open-source text processor and publishing toolchain
How does AsciiDoctor compare to Pandoc? Based on the AsciiDoctor hype page it seems to describe the same features Pandoc offers.
sirsuki··on Fifty Fizzbuzzes
Why does static content need a database connection? #OverEngineering
sirsuki··on Bill to ban bots impersonating people for telemarketing and influencing election
How are we able to have discussions on this article when it links me to a page that says: "503 Service Unavailable":

>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

I mean it's just text right? How hard can that be to serve in high volume? Oh did they get politically DDoS'ed?

sirsuki··on Ask HN: What is your best advice for a junior software developer?
Please please study the tools and the principles you use. No schooling will offer these things you learn then through experience. If on your own then that takes a long time. To expedite find rules like Sandi Metz's rules and S.O.L.I.D. principles, Learn OOP patterns and code smells. Don't worry if you don't understand why these rules and principles are in place just follow them. You'll eventually get there and the code you produce will not cause catastrophes later on.

But if anything this simple rule is the best: K.I.S.S. (Keep It Simple and Small) Make small things. If you ever find yourself saying "do this and then do that" your talking about two things and make them two things (separate functions/objects) and name them.

sirsuki··on Linux, Git, MetaEdit+: how 3 Finns brought versioning, models and code together
I'm confused. The story is a "Service Unavailable" page. What is going on?
sirsuki··on Linus Torvalds apologizes for his behavior, takes time off
I am very surprised at how many comments this story has gotten on HN. I am even more appalled at how many continue to excuse his actions in the name of "being right" or "technically valid".

This reminds me of the infamous [Wheaton's Law](https://everything2.com/user/OldMiner/writeups/Wheaton%2527s...) states: "Don't be a dick." A very sound piece of social expectation.

As comparison if I were to attempt to learn to be better I doubt I would have any luck with a mentor who swears and insults me irregardless of being right or wrong. I'm curious just how as people it is possible to excuse such behaviour. Does the end truly justify the means? And if so can the end be reach effectively with different means? If someone is a really good soldier but was physically abused as a child is the abuse justified?

I only try to illustrate some of the absurdity that (in my opinion) is the justification of the means in this case. I to suffer from social awkwardness. I often find things funny when in fact they are insensitive. I wouldn't claim that anyone is immune to social difficulties. However, I can say that there is evidence that approaching social interactions with some tact can lead to far better results then being bullish or rude.

Here is a quote from ["How to win friends and influence others" by Dale Carnagie](https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influen...): "Don't criticize, condemn, or complain. Human nature does not like to admit fault. When people are criticized or humiliated, they rarely respond well and will often become defensive and resent their critic. To handle people well, we must never criticize, condemn or complain because it will never result in the behavior we desire."

I'll close with a quote from the [four agreements](http://www.toltecspirit.com/): "Be Impeccable with your Word: Speak with integrity. Say only what you mean. Avoid using the Word to speak against yourself or to gossip about others. Use the power of your Word in the direction of truth and love."

sirsuki··on HTTP 418 I'm a Teapot
> I’m thinking in IPv6 terms here

You do realize that the utopian future you dream of will never happen!

There is too much money to be had hording and selling IPv4 addresses.

sirsuki··on Itty Bitty: Sites contained within their own links
An example of a functional quine: https://tiddlywiki.com/#Quine
sirsuki··on Itty Bitty: Sites contained within their own links
It is smaller then data urls becausde the base HTML and javascript is provided by the itty.bitty server and not part of the data url. Only the inner content is encoded. So it is much smaller then a data url but requires a server to serve the initial decoding HTML page.
sirsuki··on Itty Bitty: Sites contained within their own links
No, the page content is never sent to the server. all the server does is serve a static HTML page with some javascript. The javascript reads the compressed encoded data in the URL (the fragment which browsers never send to the server during a request) and then it decodes the data and writes the data to the current DOM.

All content data is stored in the link itself and never seen by the itty.bitty server.

sirsuki··on Blooming Password – A banned password check using a bloom filter
A little confused. I thought a hash algorithm was designed to make every bit of the output significant. Meaning that there is a massive difference between the inputs of two hashes that differ by one character. In that case it is conceivable that pownd input could collide with non-pownd input especially if checking only a subset of the characters in the output.

What I'm saying is I had always thought the point of hashes was to always compare them in their entirety not as subsets of the output characters. This tools seems to suggest (so a crypto novice) that is not a concern.

How would users feel that their exceptional password might collide with a bloom filter to a pownd password?

sirsuki··on Show HN: HTTP Status as a Service
No CORS support. That seems silly.
sirsuki··on Now Is the Perfect Time for an RSS Renaissance
Link is broken. Anyone have an alternative so others can read this article?
sirsuki··on Xz format inadequate for long-term archiving (2017)
So what wrong with plain and simple

  tar c foo | gzip > foo.tar.gz
or

  tar c foo | bzip2 > foo.tar.bz2
Been using these for over 20 years now. Why is is so important to change things especially as this article points out for the worse?!
sirsuki··on Show HN: Visualizing disk IO activity using log-scale banded graphs
I'm confused. What does "2" mean in the context of a web page? If the server broke wouldn't it cause a 500 HTTP response? This just seems odd: 'if error write "2"'.

Maybe it is some kinda of secret society code: "I'm sorry Dave, I can not do that... TWO!!!!"

sirsuki··on Four rules for effective collaboration – Guidelines for better commits
In my experience these assertions are untrue. Also the tickets are often the over arching context and will have nothing to do with the code. My product owner doesn't care if I had to try three different algorithms till I got it right; but my colleagues and my future self sure would love to see that and all the stack overflow links during a git bisect!

Not only that but the ticket is a full feature. Maybe it took 5 commits to get there: "Fix bad indenting", "Extract base logic to command object", "Update I18N entries", "Add missing tests for current behavior", "Add the feature asked for".

sirsuki··on Show HN: HNBuddy – A fast and elegant HN client for iOS
For the curious, The J. Caesar quote "L xvh wklv dss hyhubgdb, dqg L oryh lw!" can be decoded with the following command:

echo 'L xvh wklv dss hyhubgdb, dqg L oryh lw!' | tr '[D-ZA-Cd-za-c]' '[A-Za-z]'

https://en.wikipedia.org/wiki/Caesar_cipher

Well played @tsucres. Well played.

sirsuki··on Bloxels – Build Your Own Video Games
Tried the demo in Firefox on my Linux box and load average spiked to 20+ and froze the computer for 10 minutes till FF eventually crashed. That is NOT how one should write JavaScript. Considering this a malicious concept will never purchase.
sirsuki··on Why Uber Can Find You but 911 Can’t
I always wondered why the Phone app didn't have location services on and a big button that when the user presses it would grab the GPS coordinates and reverse geocoded address then have Siri read those over the phone line. That way no 911 center needs to upgrade and no telcos need to change infrastructure.

A simple button right there on the phone that sends the following sound (in best Siri Voice imitation): "This phone is likely located near 1600 Pennsylvania Avenue North West, Washington DC, Latitude North 38° 53.8258', Longitude West 77° 2.1927' admire.admit.hulk" (last words intentional: http://what3words.com/)

sirsuki··on Ask HN: Alternatives to Yubikey?
http://www.sqrl.pl/ https://www.grc.com/sqrl/sqrl.htm
sirsuki··on Ask HN: What job did you leave IT for?
>change a lifestyle and sell myself much better.

What is this magic?! Please enlighten. I, like many IT folks, loathe sales. As such I can not sell myself out of a paper bag. Do you have any resources to help in this matter?

sirsuki··on Ask HN: If you use keybase.io regularly, for what do you primarily use it?
We use it at work to share tmate (https://tmate.io/) sessions. I wrote a shell script to save the session to our mutual shared private keybase directory: https://github.com/sukima/dotfiles/blob/master/home/.bin/tma...
← PreviousPage 3 of 4Next →