177 points · by greggyb · 4y ago · 114 comments
I am one of two technical cofounders for a small software company. We have really good discussions about the design of our product. I am pretty good at searching. We are comfortable weighing alternatives and making a decision and living with the consequences. All that said, sometimes I want to discuss with other people some of the design challenges we face, or seek input on how people have approached the problem.
Are there fora that you enjoy for such discussion? It seems that it does not fit with the theme of most Q&A sites. Most IRC channels I know of are pretty focused on their own specific topic.
2. Make a blog post and share on HN
3. Let the commenters tell you everything you did wrong and what they would have done instead
Put more seriously—I think if you don't have an external professional network to lean on, then you should blog it, talk at conferences, etc. Saying "we aren't sure this is right but it's what we came up with" will definitely invite comment. Keep an open mind and remember any publicity is good publicity: your harshest critics will still be engaging and giving you feedback.
I don't think chat services (IRC, Matrix, Discord) are a good fit here, unless used to talk to a group of people you already know and have some cachet with. But I might just be old-school.
> 2. Make a blog post and share on HN
> 3. Let the commenters tell you everything you did wrong and what they would have done instead
It's called Cunningham's Law[0]:
> Cunningham is credited with the idea: "The best way to get the right answer on the Internet is not to ask a question; it's to post the wrong answer." This refers to the observation that people are quicker to correct a wrong answer than to answer a question.
The Codeless Code : The Purple Beggar - http://thecodelesscode.com/case/170
> ...
> The monk opened his laptop. “Five separate posters have each called me a blithering idiot and offered a simple solution to my problem, which they claim to have tested on their own systems.”
> Yishi-Shing nodded. “My walk once took me past a beggar whose sign read, You do not DARE throw coins at ME! His body was purple with bruises but his bowl was always full.”
Comments regarding the areas I have expertise in are frequently quite wrong, but worded confidently.
It makes me wonder how wrong comments about other areas are - ones I'm not well-versed enough in to disprove.
For this reason, I don’t think a wisdom-of-the-crowds approach is valid.
At least I'm not alone. I find the quality of the conversation in random online communities lacking. I toyed with the idea of joining vetted professional communities (paid or invite-only) but I haven't yet. Suggestions are welcome.
The C channel was the opposite. Any question was met with "google it" or "we're not going to do your homework for you." If the question was really specific, then the conversation turned to how it wasn't good for discussion in this channel because it was machine dependent.
Specifically I have lived your anecdote. Early aughts, I was in highschool at the time and asked that C channel for some advice building my first 2D RPG game in C (was using BASIC, then Pascal/Delphi before this). Literally got the exact response "we're not going to do your homework for you" when all I was asking was for some direction (libraries etc) + any existing example projects that I could read.
Honestly, I find that most highly technical people are miserable and not very receptive to helping someone learn the ropes. The majority of the peers I've worked with would rather isolate and protect their work, rather than to work collaboratively - and, I 100% get it. I've seen so many people thrown under a bus just for asking simple questions in regards to their solution. Unfairly so.
I'm not a part of one, but the only community formed online that I've found to last, was one with a weekly video meeting with a few people from the larger community. This actually outlasted the original community.
It's just so easy for any member to become inactive in the community without regular interaction. Free communities on Discord can plausibly be a great option, with the major caveat that the core interactions are over regular scheduled video calls, instead of mostly messages in large group chats.
(IE, be careful before you drink the kool-aide on "cloud" or whatever comes next.)
Also, many blog posts are by people trying to make themselves feel important, pad their resumes, or otherwise self-promote. Tone management in a blog post can make an awful architecture sound wonderful. Other wonderful architectures may be the wrong fit for what you're trying to do.
Finally: Avoid many layers of abstraction. It just adds unneeded complexity to your code and makes it too hard to onboard new hires. Carefully review all 3rd party libraries before you commit to using them. Sometimes introducing a 3rd party library to "save an hour today" will quickly "burn a day, week, or month" later.
Or just use mature solution like Rails for example it solves most of typical problems and has easy itegrations. If you need more flexibility then maybe Node.js or other ecosystem is better.
Generally theme about architecture is called System Design and there are resources to learn it for interviews/learning purposes but most of it only is applicable at very big scale and you might never need it. Read "Designing Data Intensive Applications" and look into [1] if still interested.
IMO better to invest time into data design/querying (caching) so that you won't think you need some vodoo to handle your traffic. Like 90%+ of sites/apps don't have 1000req/second and this should be handled by Python on Arduino so as long as your DB design is good you are fine.
For async processing it's worth taking a look into Temporal [2] as it looks as promising alternative to job ques and cronjobs.
I can also recommend [3] to learn some cloud patterns
[1] https://github.com/donnemartin/system-design-primer
[3] https://docs.microsoft.com/en-us/azure/architecture/patterns...
There's even intro about web services: http://aosabook.org/en/distsys.html
There's usually no right or wrong answer - it's all about tradeoffs. I personally prefer to keep the stack and architecture as simple as possible, but many others prefer to rely on 3rd party code as much as possible, regardless of added complexity. Sometimes my choices bite me (I have to reinvent more wheels than I was expecting), sometimes the too-many-layers-of-abstraction approach will bite too (like errors you have no idea why they happen).
Compare different solutions available to the same problem, understand their tradeoffs, and then pick what better aligns to the needs of your project. If you're working with a team, you probably will not be making that decision alone, but the process could be the same.
You can’t beat this type of knowledge. And you learn even more things on the side. I am still blown away by the capabilities of eBPF and what the guy at Netflix does with it for instance. Or stuff like Falco. And if someone (here a devops let’s say) think your are like half bluffing you can show them exactly that you are not. And it also work to spot those that are bluffing and really just read a blog post about it.
Which comes back to the question: better to learn by doing and then you see more the real experts and can lean on them. Or continue yourself to be one.
So ya best way to get knowledge. Like we say there is no free lunch.
Isn't that what the IEEE and ACM is for? I'd argue that there isn't a dearth in "professional/academic societies" or "guilds". If anything there are far too many of them. Before you fall into the trap of inventing the umpteenth "all-encompassing" computing guild, like in that XKCD comic, how about trying to address the underlying problem that you'd like to have solved?
I firmly believe that the problem to solve is much closer to facilitating and recording the results of the ceremonies. That is effectively done in part by the above organizations but, in my opinion, the real problem lies with the follow up about implementation inside of the real world. I do think that USENIX is much better at _that_ than the ACM or IEEE.
Likely because any consistent architecture is going to work fine. And the typical developer is writing code with a business need in mind. So it pays to stick to something simple rather than experiment with new design patterns.
This is also a worthwhile thing to keep in mind. Most decisions made right now are likely to not be an issue if they are consistent. That said, it is still nice to know where the scaling and operational issues may arise given these decisions. It is a fine line to walk between over-engineering and just having awareness of things to expect.
(I'm not via The IET either, but could be in theory. That's part of the problem, it's difficult when there's a lack of resources or examples for our discipline - vs. plenty for others. I also sort of think if I managed it it would just be for the letters, it wouldn't actually be helpful or signify anything relevant. It would be nice if there were something to work towards and achieve in that regard that did actually mean something, and motivated working on useful things.)
Some examples we are currently tackling are secret management and rolling out updates. I can easily find products that promise to solve these. I can find some articles about "how we, at $COMPANY, solve this particular problem." If I am really lucky I can find one or two articles that answer "here is what we, at $COMPANY, do, and here are one or two alternatives we did not like for reasons relevant to our context." It is very difficult to find a proper review that lays out common patterns of implementation and gives a framework to discuss tradeoffs thereof.
Beyond being in the boiler room and being a part of a principal engineering community, I basically just do the math and think about it. I also try new things, and I'm building my own architecture at the moment.
The core challenge is that architecture is fundamentally about trade-offs, and it's hard to navigate because we don't share challenges. The essential skill is to solicit a sufficient number of requirements to understand how the trade-offs pull in any direction.
The other thing: there is no perfect, no silver bullet. There can be, however, slam dunks which companies will monetize for specific verticals.
I'm curious how often you find that people get actionable information from outside that they couldn't have discovered with better introspection or understanding of the basics. I'm in a similar role and find that people want validation of working systems due to some new person casting shade, have a desire for more exotic technology, or just want people to shoot the breeze with peers on these topics. The answers to their actual problems are often staring them in the face, but are too mundane or boring to accept. Given the pressure to deliver, they'd be better off focusing on the basics for their stakeholders which is the place I try to get them to.
I agree that having a bit more involved discussion will lead to a more informed opinion. From my experience of working as an architect for more than a decade, finding someone with domain knowledge would help a lot if depth is important. A generalist can help validate the design decisions at a high level or suggest alternatives when appropriate.
We have folks talking about their technical challenges at work (myself included). I've seen a number of times someone get unstuck talking through on there.
I think live chat is the best way to work through open-ended questions. Like others have pointed out, non-forum QA sites are (maybe just by choice) not great for that.
Feel free to hang out: discord.multiprocess.io.
A second thought, maybe HN can have a monthly "Let me help you with..." thread where people just post their core skill set for others to leverage. As for me, I am not a programmer but am very fluent in infrastructure architecture. I can speak days/weeks on servers, networking, storage, virtualization, operating systems, etc. Always happy to chat with people, understand their problems, and answer questions relative to my area of expertise.
- Paper. We learned a lot from the paper, like Google Spanner, Google Percolator, Raft Algorithm, etc. - Learn from the open source projects and Leverage the power of community. E.g, we learned storage engine from RocksDB, ClickHouse, etc. to build our own engine. We also let the community contribute ideas and codes to our product. - Try to link people as many as you can and learn from them. E.g, when I read a paper, mostly I will try to contract the authors and have a discussion about the paper with them, at the same time, I also ask them to introduce their friends to me for further communication. - Sharing. The more you go out and share like Meetup, Blog, Webinar, etc., the more you get.
I guess my point is be sure to enable paths for those types of roles to exist in your company as it grows - technical leadership that isn't people leadership.
I chose my wording carefully in my question to emphasize discussion, feedback, tradeoffs, and inputs. I do not expect anyone to give me an answer, but I would greatly appreciate being challenged, questioned, and perhaps informed of alternatives. I am also happy to do the same for others where I have worthwhile experience.
The closest thing to commodity information would be an awareness of alternatives/options in a broad category. This also has value, and can sometimes be found. The most common source I have seen for this sort of thing is a cursory overview of the options that a product is replacing in thinly veiled sales copy for a product aiming to solve the problem.
https://randsinrepose.com/welcome-to-rands-leadership-slack/
So far, HN has been the best non-work community for developing my ideas.
My strategy is to find a post like "SQLite 3.39.2" where I will make a comment about how I use that technology and then get into some nuance regarding certain concerns in an indirect manner. Inevitably, someone will gently correct me or provide some alternatives I might not have considered yet.
I have done a fair # of "design reviews" using HN in this manner. I don't think any of this goes against the rules or spirit of the community. Others seem to benefit from reading and participating in the same conversations.
Maybe we need a more long-form aspect to HN where these sorts of conversations would be easier to have?
It's absolutely in the spirit of HN and those kinds of conversations are _the most_ [1] valuable out of anything in this community. When researching a new piece of infrastructure or SaaS or even book topic one of my first search queries is "site:ycombinator.com [x]"
I literally searched "site:ycombinator.com sqlite" just yesterday and discovered rqlite, dqlite, litestream, and so on. Repeated the search with each of the keywords and got tons of discussion comparing the tradeoffs, helping me identify solutions for several stalled projects with barely a look at the home pages. I was done with research and implemented the most immediate need within a few hours thanks to HN commentary. This would just be the start of the due diligence for something I'd use at work but (especially) for low risk personal projects it has saved me untold amounts of time and effort by shortcutting the discovery process altogether.
[1] citation for extra emphasis
Good luck.
What helped me was to use the experience that I have from aerospace engineering when making architectural decisions, where we have had to budget and do trade analysis on key performance metrics such as accuracy, mass, power, bandwidth and cost. It's been surprising to me when I talk to seasoned developers who recommend various solutions without first asking me about number of users and requests and data sizes I'm looking to serve.
Recently I was tasked with building a new product that will bring significant revenue to the company. And with that comes tons of new challenges and responsibilities that I haven't had to face previously. From the non-technical side I have to wear basically every hat, project management, recruiting and interviewing, managing the team, etc, because I was given no resources or direction and these things are needed to build a successful product. With that comes lots of people skills that impact the product and architecture, e.g. making sure you hire compatible people, giving people freedom to own things but still giving important direction and feedback, and most importantly reining them back in when they try to introduce the latest tech fad into the product.
Getting back to the question, from the technical side, I had to decide if I'm going to stick with the same tech stack and basic architecture as the rest of our products and if not, I better have a damn good reason. And the truth was, we had essentially zero architecture, and the frameworks we were using in our existing products was a major contributing factor to a high defect rate. And even worse, management assumes I can re-use large parts of our existing products code but that code is tightly coupled to the tech stack they chose. Ultimately the success of the product was on my shoulders. Every night I was reading up on software architecture, researching web frameworks, listening to architecture podcasts. Much of that time was searching HN to read postmorterms of different architectures trying to separate the BS from what works. I chose the hard path of deviating from the existing companies stack. We're now quite a ways into development and that initial effort was worth it. We have a very simple layered architecture in a monolith. Our code quality is fairly high, we have solid unit tests, and our small team is very happy working with the codebase. With that said, I still have imposter syndrome especially when interviewing people that have more experience in areas I'm lacking. And every dev interview I seemingly have to explain and justify why I'm not using microservices!
Would love to know if you have any recommendations along these lines.
I feel like not using microservices is a pretty common decision, if anything I think using microservices requires justification more than not using them
Regarding microservices, that may be common advice on HN but I'm not sure about the general dev community. I think most developers feel it's important to have on their resume along with docker, kubernetes, etc. And the only way to do that is to work at companies using microservices.
Anecdotal, but many of my developer friends during the initial hype were asking me my thoughts on microservices and deciding to take lead roles to introduce microservices at companies without knowing anything about their codebase. Then they would change jobs every 6 months and repeat.
The "hallway track" is a great place to talk to other practitioners about what they are doing, as well as BOF (birds of a feather) sessions. Especially if you can find a conference with an unconference section (like most DevOps days for example), that's another great venue for discussing things.
You'll also get to meet people who you can potentially reach out to directly with questions. It's a great way to build up a network if you don't already have one.
https://randsinrepose.com/welcome-to-rands-leadership-slack/ can be a good resource for talking with folks of diverse experience and backgrounds about architecture.
- the product was initially developed chaotically, it was a big ball of mud without any architecture, it was hard to maintain
- the first step was consulting with a senior dev from another team (who happened to teach system architecture at a college), he gave directions what books to read, etc.
- then our senior devs completed an online architecture course by a former CTO/turned consultant (I don't know who recommended him, but he's pretty respected in the field, it seems), the class had like 20-30 students with live discussions and practical homework
- then they invited that consultant to audit our code/our processes, he highlighted the problems and suggested changes in our processes
- then we made it obligatory to always have architecture reviews before greenlighting new features, i.e. devs discuss code changes in 1-2 hour sessions, everyone learns in the process (including juniors)
- every year we started sending devs to thematic conferences/meetups where they can talk to other devs and learn how other companies design their products
- we host our own meetups sometimes; there's also thematic Telegram channels both created by us and others
- some devs are good at networking so they can arrange meetings/calls with acquantainces from other companies (in the same field as us) and discuss design problems in person
When he's not available, though, a rubber duck will do. Explaining it to a rubber duck, or even better a friend who has no context into your system. Explaining things simply, just by forcing you to think about them and break them into simple components, helps a lot.
It was originally about a ruby framework, but it's a slack server where we had great architectural discussions all time (still there!). When the discussion gets too complex, we would switch to videoconference.
I would suggest going/presenting at conferences, and networking with the other speakers and form your own network where you can ask questions like this.
I’m happy to be a sounding board for you if you’d like.
AmA
There are probably only 500 CTOs globally who operate at the level of just "budgets and choosing platforms" with another ~100k CTOs who really are de facto system architect. All depends on scale, size of biz, etc.
If you want, feel free to reach out via my bio.
Clubhouse was awesome for this until they destroyed themselves.
Once upon a time coffee breaks and after work drinks was the most common time these discussions took place.