Better HN
topnewbestaskshowjobs
Log inSign up

terminalcommand

1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions

Corporate lawyer with a passion for computers.

Software design and implementation should be a joyous art, a kind of high-level play. If this attitude seems preposterous or vaguely embarrassing to you, stop and think; ask yourself what you've forgotten. Why do you design software instead of doing something else to make money or pass the time? You must have thought software was worthy of your passion once...

To do the Unix philosophy right, you need to recover that attitude. You need to care. You need to play. You need to be willing to explore.

Submissions

comment 8y ago · link · parent

I did not know about your experiences, it comes very strange to me that people on the spectrum can lie. But I can imagine that some people on the spectrum can.

Maybe there is a difference between Autism and Aspergers? Many people on the tech scene start programming at an early age and are obsessed with computers at some point in their lives. Thus many of us at least can relate to people with Aspergers.

Nevertheless, I still think an interviewer should note that the candidate is stubborn or pretentious, rather than just writing "on the spectrum". As you've there could be people on the milder side on the spectrum who could work really well.

comment 8y ago · link · parent

JavaScript would also be suitable, it is easy, it is ubiquitous. The kids would need to be introduced to the basics of tcp/ip and HTTP and then be able to use Node.

comment 8y ago · link · parent

On the other hand C, Java and PHP complement each other. Whereas Python is a general purpose scripting language PHP is built for Web. It will be a huge motivation for a first year comp sci student to be able to write together a simple site in PHP and find some free host to put it in.

I think "practicality should beat purity" for an introductory course. The students usually will have a chance to catch up on Python in a data visualization class anyway.

PHP is much simpler in terms of understanding, you do not need to explain what WSGI is, what routing is, what template engines do etc. Put your code into <?php and ?> and you're all set.

comment 8y ago · link · parent

On the other hand he/she can provide a deeper insight into your work AND be able to communicate. People on the spectrum with a special interest in computers tend to speak like they program a computer: simple, succinctly, efficient.

Another plus side: a worker on the spectrum will most likely not be able to lie to you and will often be completely honest.

Does it really matter, if he/she can't look you in the eye or can't understand the social hierarchy and games played in the office?

comment 8y ago · link · parent

Yes I am, for a pin-point location you might want to look at the second video on http://www.computerhistory.org/atchm/the-deep-history-of-you...

You do not need to watch the whole 2 hours, only 20-25 mins where Steve Jobs introduces Nextstep and demonstrates it on a Next machine.

comment 8y ago · link · parent

> If I type "git " I want to see "add" as an option, with docs in a tooltip as I navigate the options. When I "git add " I want to see a list of files that make sense to add, eg only files that can be staged right now

With fish you can customize auto completion for individual commands with full color and tooltip support.

As a long time emacs user I want to believe that much of the required functionality for menus can be achieved via a text only format (either using standard escape codes or a markup language).

I completely agree that we need to be able to incorporate native UI elements in CLI programs.

Recently I stumbled upon Steve Jobs's presentation of Next computers and the initial UIkit. Jobs himself programmed without writing a single line of code, only using the built in interface builder. This was in the 80s, now the year is 2017 and we are still trying to remember the parameters for tar to extract files :)

I think the future should not rely on terminals where we extensively type and read. There should be drop-down menus for all applications, whether text based or GUI based. And these menus should be able to incorporate system-native dialogs e.g choose a file, choose a font etc.

And I'd want PostScript support to all terminals. Green on black mono fonts are cool but we have 4K displays now, come on! I want to be able to specify font, show images, draw charts etc. in a terminal window.

Frankly the future of terminals should look like Python Notebooks such as Jupyter. We need to be able to use cool fonts graphics UI elements and we need to be able to share our terminal "page" with others.

comment 8y ago · link · parent

Side note: comments at the bottom on singularity and moore's law are IMHO also highly interesting.

Direct link: https://lwn.net/Articles/286739/

comment 8y ago · link · parent

Well, ssh sometimes certainly feels sluggish to me. If you have your aliases configured and are typing at a high speed, you should be basically limited by your fingers.

Terminal use at this level of focus, is inseperable from thinking. You do not think to compose a command nor contemplate to move your fingers to type and execute, it just happens.

Therefore I think latency is also severely important at the terminal level.

comment 8y ago · link · parent

Contrary to popular opinion Thinkpads are not durable as they seem. There are various conditions such as deep coma (when the laptop won't wake from a sleep) or random shutdowns unrelated to heat/any observable cause etc.

I thought my thinkpad x201 was like a tank, but then random shutdowns became more frequent. I disassambled the laptop 4-5 times, replaced thermal paste, checked connections, replaced all software (including BIOS), couldn't find a solution. Then I stumbled upon a 45 page thread at the lenovo support forum. Many people were claiming the existence of the exact problem, but the only solution was to "replace the motherboard".

At least, apple offers world-wide decent for their products. With used thinkpads, you're basically on your own, no matter how tech-savvy you are.

If I were to purchase another laptop for on-the-go usage I will think twice before opting out for a thinkpad for it's durability.

Thinkpads are marvelous machines, but in my experience not all that glitters is gold :).

comment 8y ago · link · parent

If the screen is popping up, that condition might be trigerred by a swollen battery.

My iPhone 5 also did that, after a while, it worsened so much that the screen colors became affected. I took it to an apple store, paid the fee and had them replace the battery.

IMHO a swollen battery is a huge risk, and apple should have replaced my phone without charge.

Anyways, be careful and if the battery is swollen, it's time for yet another battery change :)

comment 8y ago · link · parent

You're right, it's better to establish a good relationship with your doctor.

The problem is that I seriously fear of developing complications such as blindness.

Therefore I was shocked to read that a supplement I take every day to prevent the very complications I feared, was claimed to be causing them.

I also agree with the subcomment that with chronical diseases such as T1D you're pretty much on your own after a while. Because I only go to a doctor twice a year at the most frequent. And when I go to the doctor, I get tests that allows the doctor to see if anything's wrong. If everything is alright, you're done in ten minutes.

But, as the subcommentor says, the bad feeling does not go away. I know that I'm not managing my blood sugar levels perfectly, I know that I'm not getting the perfect nutrition etc. But at least if I pop a supplement pill (omega-3 in this case), I feel like I'm doing something very benefical to my health.

Earlier this year, my vitamin D levels were extremely low, so my doctor prescribed me with supplements. After I finished taking them, I switched to a low amount of DHA.

I'm afraid of discussing these because hospitals generally view young diabetics as "fools". They think we ignore their advice and drive ourselves to doom. An eyedoctor who specializes in diabetics I recently visited told me that no one could see the development of retinopathy at early stages with the naked eye. He wanted to make a test with a laser and told me that I would not be able to see for two days. When I refused, he told me that he had seen young diabetics like me before and that we mistrust hospitals and go away and make ourselves blind. The next day I went to the same hospital to get my test results, I saw him in the corridor and he said "diabetics are very sensitive".

There are many stories I've heard like this. For example young diabetic children attributed to be thieves etc.

In light of all this stigma, I never thought of discussing these subjects with a doctor. But I'll be sure to ask for his opinion on DHA at my next visit.

comment 8y ago · link · parent

I've had type 1 diabetes for 12 years, in the recent couple of years I occasionally take Omega3 and DHA supplements every day. My daily intake is 300 mg of Omega 3, 180 mg of EPA, 120 mg of DHA.

I couldn't really understand the full article. Does this mean I should switch to pure Vitamin D supplements instead of DHA?

As far as I could find, current understanding is that Omega3 (EPA and DHA) help prevent vascular damage and retinopathy.

"Mice receiving the omega-3 rich diet were observed to have 40-50% less initial retinal vessel loss compared to omega-6 fed mice. As a result, the omega-3 group had a similar 40-50% reduction in pathological vessel growth. The results were virtually identical in the Fat-1 mice, confirming that increased retinal omega-3 levels inhibited neo-vascularization." (Source: http://www.sciencebasedhealth.com/-DHA-and-EPA-May-Protect-A...)

comment 8y ago · link · parent

Thanks for the notice, I didn't know about it. Unfortunately iPhone 5 is my primary phone so I use it daily. I was always charging the phone with a 2A charger back then, now I switched to 1A. I thought maybe slow charging will help preserve the battery.

Anyways 2 years is a reasonable time for me considering the age of my phone, after 2 years I'll probably switch to a new phone.

comment 8y ago · link · parent

After a while my iPhone 5 battery started swelling. It swell so much that the screen popped out. I took it to an Apple Store, paid the fee and got a refurbished new one. With iOS 10 it's really responsive. The only complaint I could make is about storage. In the age of spotify and bloated applications, living with 16G of storage is not pleasant.

comment 8y ago · link · parent

I did not know about this functionality, thanks for pointing out.

BTW: does anyone know anything about blog.explodingads.com, it seems to be reposting HN comments and then using the comments to comment on other sites.

I saw the reference on the link you mentioned.

comment 8y ago · link · parent

I do not know about deeper but Spotify offers gapless playback. One can listen a symphony without interrupts.

The problem with spotify is that i cannot search by label. I am new to classical music and sticking to a quality label helps a lot.

comment 9y ago · link · parent

I found that if I distract myself enough, I can start doing a task and the time just flies.

Currently my solution is to listen to classical music full volume. That way I can concentrate 1-1.5 hours a day.

On the other hand I too can focus without any problems when I'm programming. The problem is that I'm studying law :/.

comment 9y ago · link · parent

For lightness I think the x series are a much better choice. I've been using an x201 for many years now. Even at its old age, it's suprisingly light to today's standards and has decent battery life.

comment 9y ago · link · parent

I'm currently using an iPhone 5, have 11 tabs open and am streaming music from spotify.

Other than occasional crashes and a tiny bit of lag, my aged phone handles it very well.

On the other hand, when I'm on the desktop I open multiple browser instances with 20+ tabs open on each of them. I guess I have a problem :).

comment 9y ago · link · parent

Since you're here on HN, I suppose you're interested in Technology, Computers and Web. I'd suggest going through some tutorials on https://www.w3schools.com. I'd recommend the Node tutorial and a Bootstrap tutorial. From there on start creating some websites, build a small portfolio.

Then you might try your chances in web development.

If your job is not too demanding, you could slowly build up your skills in an area you enjoy. In the meantime you could focus on your mental health without fear and anxiety.

Best of luck.

441.

Node.js and MySQL Example: Handling 100's of GigaBytes of Data(blog.risingstack.com ↗)

2 points · by terminalcommand · 9y ago · discuss

442.

Glitch: write fun small web projects instantly(jvns.ca ↗)

1 points · by terminalcommand · 9y ago · discuss

comment 9y ago · link · parent

Vitamin D can be stored by the body. My Doctor also prescribed me one whole bottle every week for a certain period of time, then I switched to 6 drops a day.

Vitamin D defficiency is really a problem, I didn't know I had it till I got a blood test. I was feeling tired all the time, my bones ached, I felt low, dizzy, etc. Getting Vitamin D supplements helped cured all the symptoms, I feel much healthier now.

444.

Style guideline for Go packages(rakyll.org ↗)

2 points · by terminalcommand · 9y ago · discuss

comment 9y ago · link · parent

IMHO out of the box experience does not matter that much from a point-on, because configuring emacs with an existing configuration is very easy. You just need to save your .emacs.d folder and every config you've accumulated over years is there.

The nice thing about emacs is the extensibility, you can very easily write your own modules load it etc. I understand the same argument could be made for VS Code, but I think emacs is here to stay, because Electron can never be as responsive as a native application.

On the other hand it's true that installing emacs packages and getting them working is cumbersome. Maybe, as a community, we need to prepare modular dot files. For example, are you a Go developer, go install Go Emacs. Or are you a web developer Go install Web Emacs etc. Having a set of prewritten configs would benefit Emacs's popularity.

For example my init.el in .emacs.d consists of a couple of lines loading my modules:

  (package-initialize)
  (load-file "~/.emacs.d/melpa.el")
  (load-file "~/.emacs.d/golang.el")
  (load-file "~/.emacs.d/readability.el")
(I see now that there are some prepared configs such as https://github.com/purcell/emacs.d)

comment 9y ago · link · parent

Sorry, my fault. It seems in java you can declare constants in interfaces, but this is frowned upon.

  Interfaces cannot require instance variables to be defined -- only methods.
  (Variables can be defined in interfaces, but they do not behave as might be expected: they are treated as final static.)
(source: https://stackoverflow.com/questions/7311274/attributes-membe...)

(Another useful link explaining that statements resembling instance variables in interfaces are in fact constants: https://coderanch.com/t/178630/certification/Instance-variab...)

comment 9y ago · link · parent

I discovered Waitgroups during the project, but I have no formal training in concurrent programming, so it was a bit daunting for me. And as the error occured very rarely I could not be sure if using a mutex had solved my problem. But now I understand mutex was the way to go for accessing a shared resource.

As for the second point, sorry for the wrong wording, I meant "methods". But interfaces don't work like that everywhere they exist. For example in Java you explicitly use Class X implements Y, and if you do not implement all methods and properties, the compiler complains.

comment 9y ago · link · parent

How do you jump to the interface from any structure implementing it? Beside from comments there is no immediate way to which interface/interfaces a structure is implementing.

Maybe Gogland solves this by keeping records on all interfaces, and checking all structures whether they satisfy them. If that's the case, this is definitely solved by tooling.

comment 9y ago · link · parent

That's a clever way to solve the issue. I think most Go codebases could benefit from such explicit checks where the language does not provide an unambiguous solution.

The interface issue has been on my mind for quite sometime. I had thought maybe declaring all interfaces in seperate files might help with the structure (like having the definitions in a header file in C), but the Go standard library does not use this approach. Interfaces and implementations are scattered across files and modules. Maybe I'm being too clever and we all know that Rob Pike always says that programmers should not be too clever. Maybe I should loosen up a bit, and treat Golang more like a pragmatic language. They did the best they could and produced a wonderful language. Any additional feature such as generics and explicit implements statements would have made the language much more complex.

comment 9y ago · link · parent

I've run into concurrency problems using maps while writing an irc client. It was really frustrating for me, because it did not happen everytime I ran the program, but rather rarely. I had chosen Go for it's memory-safety and easy concurrency. But I felt like I could not vouch for my program's safety any more. I did not know about sync/map at the time, had I known, I would probably have used it.

I think Golang has a fondness for magical (to me) special language constructs. For example if you want to use the RPC modules, you have to write your functions a certain way. Or as I've explained in a comment above, if you want to use an interface you just have to implement all it's properties. Or you can't have generics, but we have a special language construct called maps, where you kind of can mimick genericks but it is not safe and may break.

Golang is a great language, but I think it expects all its users to think very rigidly in the same way their designers do. Basically, you have to explore the language's deficiencies yourself, read the designers' explanations, dive into the intrinsics of the language, understand it, make yourself believe and move on. I sometimes half-jokingly feel like Golang follows the principle of most obedience.

1
141516
23