6 ms·
I don't think this is a very popular opinion, but for those shipping software, consider having at least one programmatic way to "monkey patch" it. These are thi
by saagarjha 7y ago
I don't think this is a very popular opinion, but for those shipping software, consider having at least one programmatic way to "monkey patch" it. These are things like a plugin API, dynamically linking it, or using a language with an exposed runtime–things that allow programmatic injection of code, so that users who really care about tweaking the tool can do so. It doesn't even take much effort, either: my text editor has no plugin interface, but one of the reasons I stick with it is because I can hook its calls to libc to customize some of the things I don't like. My preferred mail client happens to lack a certain entitlement that most people don't even know about and that enables an entire cottage industry of software for it. Browsers let you specify some JavaScript to run on each page and suddenly the balance of power on the web tilts significantly towards the user. Even (or especially) if your tool is open source, consider supporting such an interface: it's much nicer to add on to piece of software than fork it.
- bem94 7y agoI agree that people would and do find such interfaces very useful in many of their programs and tools. Those with nefarious purposes find them extremely useful too. It's a lot of work to secure those interfaces against abuse.
- saagarjha 7y agoThis is why I believe it to be an "unpopular opinion" these days as most computing platforms move towards being more locked down and less extensible; for security or complexity reasons these kinds of things seem to get little love or are even axed completely. Usually, the hard part is not security per se, but identifying user intent. You want to come up with a process that ensures that the user who enables potentially dangerous interfaces knows what they are doing. Preventing the user from doing this entirely is an easy but fairly disappointing "solution" to this problem.
- bem94 7y ago> Preventing the user from doing this entirely is an easy but fairly disappointing "solution" to this problem. For sure. And if individuals are happy with trading some security for some functionality/flexibility in their software, I'll support their right to make that choice. It gets more complex when the people affected by that choice aren't the people making the choice. Which is more likely in the case of network programs. > Usually, the hard part is not security per se, but identifying user intent. You want to come up with a process that ensures that the user who enables potentially dangerous interfaces knows what they are doing. Indeed. I'd add identifying developer intent to that as well. What functionality am I trying to enable v.s. what else am I actually enabling? Coming up with that process is the herculean task there.
- saagarjha 7y agoUsually in the case of network programs you want users to have a way to control their view of the shared backend/database/whatever, which means providing things like REST APIs and hackable clients.
- conradev 7y agohttps://xkcd.com/2044/ https://xkcd.com/2044/
- fergie 7y ago"Those with nefarious purposes find them extremely useful too" Whilst I don't disagree with this point, it has all to often been used as an argument against open software, and ultimately leads to more closed and less secure software.
- bcrosby95 7y agoThe problem is support. Even if you put big caution tape around it, if you break it or change it in a way that isn't backwards compatible users will complain loudly about it. And if you have users paying lots of $$$ relying on it, it might force your hand. Building a plug-able system in a way that doesn't blow up in your face can be hard. Firefox got a lot of bad press for redesigning their plugin system.
- enos_feedler 7y agoThis is a great point and something to consider when designing runtime programmable tools. It should mean moving slow, cautious with minimal surface area and opinions about the future is probably a way to go. Having strong isolation is probably good too. This is something that made me uneasy about highly programmable/hackable platforms. I like when the core maintainers understand _how_ a system wants to be extended and shaped and provides precise hooks for doing so.
- funkymike 7y agoIt seems to me the key then would be to have that programmable interface be used to actually implement the features shipped as part of the project. It will be a lot easier to get the API right if the developers are using it themselves, plus that adds a lot more incentive to maintain backwards compatibility as well.
- nine_k 7y agoYes, the fabled Emacs way.
- arghwhat 7y agoArguably, it's not just about support: It's often just not a good idea, complicating the existing product, still only gives you pre-defined hooks. Jenkins is one of my favorite examples for why plugin systems are evil. As users accumulate plugins, it all becomes a giant, unmaintanable monolith that ends up unable to perform even the most basic tasks due to some unrelated/uninteresting/forgotten plugin somewhere doing something weird. Instead of stuffing everything into a monolith with plugins, split it out into individual composeable units with minimal features.
- jmercouris 7y agoI agree :-) The user should have the power. Also the interface should be as powerful as possible. One such browser that embraces this philosophy is Next https://github.com/atlas-engineer/next https://github.com/atlas-engineer/next. Source: biased author
- denster 7y agoVery cool! I'll show this to our team [1]; we have a few keyboard ninjas & I think they'll absolutely love it. -- [1] team of https://mintdata.com https://mintdata.com, where we've been known to appreciate a fine keyboard shortcut or 12. [2] partly an inside joke to our team who reads HN, since we recently shipped keyboard shortcuts for our top menu (Google Sheets, we borrowed what we could to ease the pain :D )
- denster 7y ago¯\_(ツ)_/¯ Card carrying member of the disagree-club here (malleable clan), but I think it's a tall order to ask users to write procedural code. Tools that are: (1) declarative by nature (HTML, DSLs) (2) based on direct manipulation (PSA: we're lucky to have Bret Viktor on this planet) is what will win out in my opinion. Or will we be writing procedural code 30, 50 years out? :) -- [1] YMMV, founder of https://mintdata.com https://mintdata.com here, where we recently opened public access & are seeing the above come true.
- slifin 7y agoMintdata looks cool, what does the imperative layer that drives the declarative layer look like? It'd be nice if this was a platform where engineers could sell the imperative layers
- denster 7y agoThank you! Genuinely warms my heart to hear it :) We've been using our own "Visual SDK" to build large parts of MintData for the past few years. It's 100% written in TypeScript/React, using decorators (cough: annotations!) and allows us to: 1) add new spreadsheet functions in TypeScript 2) wrap any React component 3) we get the auto-magic property panel UI "for free" & it instantly talks to/from the spreadsheet For our cloud/backend imperative layer: 4) we use our own real-time stream processor (think: Apache Storm but minus the Clojure stacktraces) 5) the SDK lets us quickly write flow blocks in Java using annotations & connect to all sorts of enterprise-y systems (SQL/NoSQL stores, Queues, File Systems, etc) @slifin -- in terms of engineers writing & selling those layers, we're open to it -- ping me if you have ideas & we can give you access to the docs & SDK. -- [1] I'd put a link here, but the flamethrowers have come out on this thread :)
- chrisweekly 7y agoLooks pretty cool; IMHO it's a good idea. (I once participated as a consultant / dev on a project to convert a Byzantine set of Excel spreadsheets into a deployable application built on web technologies, and this might have been a saner approach.)
- noizejoy 7y agoIt exists for software that considers itself a platform in the form plugins, themes and such. And it’s very different, much harder, software play for support and reputation management.
- hinkley 7y agoIt’s challenging to do, but there is something to be said for having features you don’t advertise. You don’t have to make them work for everyone. They don’t have to be safe in all possible scenarios. But they are there for Support to offer to users who are caught in a bind and need a solution. The about: box is a bit like this. It’s there, if you really need it, but they aren’t going to flood their menus for all the 2% cases.