4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions
I hope the spam filter will respect it!
comment 5y ago · link · parent
Applications should be built on fast iterations with the user present, until each detail is perfect and the full workflow is validated to be as useful as expected. Only then should engineering issues be addressed, to make the tool robust and fast.
comment 5y ago · link · parent
http://worrydream.com/LearnableProgramming/
His visual interactions for programming are a great advance in the state of the art for fast development, and they've greatly influenced recent advances in development environments - making everything more reactive, and with code and data more intertwined.
comment 5y ago · link · parent
"people don't make functionally identical clones"
"massive refactoring to allow for extensibility"
You're enumerating the factors that make my point true. Those are some of the reasons why building software takes a lot even if you know exactly what it is supposed to do.
You can compound that to the problem of figuring out what the software should do, which classic IDEs are also bad at. Online collaboration and prototyping tools that put the program in front of stakeholders early; they're like car makers' focus groups that were used to design cars tailored to a target demographic group.
comment 5y ago · link · parent
That actually reinforces my point ;-) All the steps in the toolchain could benefit from more agile interactions, allowing the programmer to spend less time fiddling with syntax errors and recalling which functions need to be applied in what order, and more time evaluating and fixing errors in the current logic as written. That would expose what the build program is doing and how it differs from the expected intent.
The online notebooks used in data analysis (Jupyter, Apache Zeppelin) are a step in the right direction; IMHO their approach of 'data is always readable besides the code processing it' makes for a better introspection infrastructure than the REPL loops of old.
comment 5y ago · link · parent
You are supposed to build code by stitching together commands for all the data handling functions required to handle each case in the data. Yet development environments make it really hard to actually _see_ what effect the functions are having on the data. You need to enter a special debug mode and place strategic breakpoints, logs and watched expressions, instead of making easy to compare the full program state before and after executing each function.
In that respect, spreadsheets and reactive functional languages make it easier to prototype new software fast, since they have close together both functions and the data on which the functions operate; and in spreadsheets, you also get the intermediate steps for chains of functions.
comment 5y ago · link · parent
Usually, creating a new DSL is a complex programming task; yet with Tree Notation, a domain expert may tweak an existing DSL or even build a simple one from scratch. As you say, maybe the markdown ecosystem would benefit from this approach.
comment 5y ago · link · parent
Anyway, to handle the exception, you could start the algorithm with a "check for the empty collection" base case; that would make it a natural definition for a computational recursive definition as well.
comment 5y ago · link · parent
The 'project' maintaining the software may be centralized, but all its users "own" the software in the sense that the don't need to ask permission to the maintainer, and they can create their own modifications.
comment 5y ago · link · parent
|-1..12-|.to_a ## e.g. months in a year
#=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
/1..\13.to_a ## e.g. hours from 1h (1AM) to 13h (1PM)
#=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
It requires compiler support, but hey, you said a new language.comment 5y ago · link · parent
/9..10\ : "short" interval : size 1 (hour) == half-open interval [9..10)
-|20..21|- : "long" interval : size 2 (days) == closed interval [20..21]comment 5y ago · link · parent
Spreadsheets, expression-rewriting languages or any other functional programming language don't necessarily have this limitation, and declarations can be made in any order if the compiler supports it.
comment 5y ago · link · parent
I once developed a shortcut notation to simplify reasoning about ranges differentiating between "point cero" and "interval between 0 to 1", to make off-by-one errors less likely, but in the end it was functionally equivalent to the popular open/closed interval notations.
comment 6y ago · link · parent