HackerTrans
トップ新着トレンドコメント過去質問紹介求人

chhickman

no profile record

投稿

EbookFoundation/Free-Programming-Books

github.com
3 ポイント·投稿者 chhickman·4 年前·0 コメント

コメント

chhickman
·4 年前·議論
There has been an open source successor to REBOL called Red[1] for years but progress seems to have been pretty sporadic.

[1] https://www.red-lang.org/
chhickman
·4 年前·議論
Well, I would say that any physical implementation of a Turing machine will eventually halt because you cannot guarantee an infinite energy supply. So if we're willing to ignore physical limitations then humans can be Turing complete - if not, then no machine be either.
chhickman
·4 年前·議論
I would much rather see something like this:

  string longString =
                    `This
                    `  allows
                    `    differentiation
                    `  of
                    `formatting
                    `  indention
                    `    from
                    `  leading
                    `    string
                    `       spaces
                    `  using
                    `  back-ticks (\`)
chhickman
·5 年前·議論
You can still observe a related effect to this in Windows 10. Open up any large(ish) file in NotePad++ or most any other editor and place the cursor in the text and drag to the bottom of the screen so it starts scrolling. If you hold the mouse still at that point it will scroll through a couple dozen every half second or so, but if you wag the mouse side to side it will scroll through hundreds at a time in the same span.
chhickman
·5 年前·議論
One of my favorites in this vein is the channel below. This guy really knows how to "do what you can with what you have available".

https://www.youtube.com/c/K%C3%AAnhs%C3%A1ngt%E1%BA%A1oVN-tr...
chhickman
·5 年前·議論
Punishment via fines should be entirely replaced with something more generally equitable: time. $60 parking ticket should be replaced with 1 hour of community service, which (mostly) equally "inconveniences" a blue collar worker and CEO alike. Same scheme should apply to corporate crimes as well... when everybody's least favorite mega-bank gets caught defrauding customers, don't fine them, sentence the company to 1000 hours of community service, meaning every employee on the payroll has to do 1000 hours of community service and the company has to pay them their standard wages while doing it. That kind of loss would definitely change some board room attitudes.
chhickman
·5 年前·議論
Evil plan: Create a network distributed system (kind of like Seti@Home) specifically for doing this. If there was enough participation to make a difference the advertisers would have to invest in countermeasures which could lead to an arms-race that ultimately erodes all profit from it.
chhickman
·5 年前·議論
I use a FireFox plugin that applies CSS for colorizing visited links on HN:

  a:link{
    color: orange !important;
  }
  
  /* visited link */
  a:visited {
    color: green !important;
  }

https://mybrowseraddon.com/custom-style-script.html
chhickman
·5 年前·議論
This one has been very influential to me:

Big Ball of Mud

Brian Foote and Joseph Yoder

http://www.laputan.org/mud/
chhickman
·5 年前·議論
There's no shortage of very striking counter-examples to what you're saying in recent events. I think it's far more accurate to say that the educated can be led astray by complex ideas that are difficult to prove and the uneducated equally likely to be led astray by ideas that are laughably easy to disprove.
chhickman
·5 年前·議論
The original promise of separation of concerns wasn't simply a code organization scheme, it was that we would be able to write composable software where components could be added or replaced with minimal systemic impact. We were going to be able to drop in new UIs without touching the BL or fix a bug in a component in one place and have it fixed everywhere, etc. The problem was that SoC, and the other various concepts from SOLID and design patterns didn't quite accomplish that - inter-dependencies remained and only became more difficult to reason about. Chasing this fantasy led object oriented programming down a path of increasingly complicated frameworks to try to manage and hide these dependencies until one would find themself thinking more about program structure and writing more plumbing code than doing actual work. Worse, now you have all the bits of logic necessary to understand how something works spread across multiple files so you have to have a system-wide understanding of a systems organization and understand the workings and vagaries of the half dozen or so different frameworks that were used to make it all seem magically loose-coupled. I'm sure there's some <insert name>'s Law somewhere that states it better, but it boils down to the fact that for any given set of tasks you can only reduce the complexity so much and anything else is just moving the complexity around, not eliminating it. I think there's something to be said for having all the logic you need to understand an interface in one or two files and focusing on making that as clean as possible, which is exactly what (at least some) of the 4GLs in the past seemed to do well, or at least made possible.
chhickman
·5 年前·議論
I don't have time to watch the video right now, but after skimming the language reference I get the impression that is is sort of a modern-ish take on the 4GLs from 80s/90s - not the sexiest thing but I feel like there's definitely room for something like this. Of course, the painful lesson of 4GLs was the consequences of vendor lock-in... I didn't see any links here to the sources.
chhickman
·5 年前·議論
This is perhaps going to be an unpopular sentiment, but I think far too much breath is wasted on the "don't be clever" edict. No examples even spring to mind of any past experience where I ran into someone's "too clever" code causing me headaches. It has been dealing with the mountains of "not the least bit clever" code that has sucked thousands of hours out of my career. Mundane, "straightforward" code where they've re-used variables for different purposes, or deeply nested conditionals with multiple, multiple booleans in each check (often redundant, if not contradictory) and generally taken 50 lines of code to accomplish what could be done more cleanly in 10 or fewer. I'll take puzzling a few minutes over some too clever code over slogging through spaghetti code any day.