1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions
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.
comment 8y ago · link · parent
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
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
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
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
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
Direct link: https://lwn.net/Articles/286739/
comment 8y ago · link · parent
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
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
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
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 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
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
comment 9y ago · link · parent
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
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
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 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
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
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
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
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
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 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.