TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What's your unpopular tech, programming opinion

20 点作者 kbrannigan超过 2 年前
I always like these type of questions because we get so much: impractical advice from dev due to changing times,<p>hyperbolic exaggeration or plain ignorance<p>What popular tech advice you wish you didn&#x27;t follow?

24 条评论

kens超过 2 年前
My unpopular opinion is that computing is stuck in a local maximum based on technology from the 1970s.<p>In particular, typing into an 80x25 terminal window with unformatted fixed-width characters should be obsolete; we don&#x27;t need compatibility with punch cards any more. There was a thread a week ago about displaying graphs in your terminal using ASCII graphics. This shouldn&#x27;t be necessary!<p>Also, code shouldn&#x27;t be a sequence of 80-character lines like a deck of punch cards. It makes no sense to carefully organize the order of code in a file for things that don&#x27;t matter. Chunks should float around and be displayed as sensible, not tied to an arbitrary location in a file. Code should be more like a database than a flat file. (Yes, I know the arguments that flat files are better for tools like grep.) We should get out of the 1970s editor model; Emacs is from 1976 and vi from 1978.<p>The whole command-line operating system approach is like being stuck in the 1970s, even using the same commands. Yes, small tools composable with pipes are nice, but there must be a better approach. We have powerful graphics, but we&#x27;re typing into terminal windows that simulate a Teletype.<p>To summarize my unpopular rant, hardware and I&#x2F;O is exponentially better than the 1970s, but our programming environment is still stuck with the approaches of the 1970s. Computing needs to get out of this local maximum. For a supposedly fast-moving field, computing changes at a glacial pace.
评论 #34586256 未加载
评论 #34587053 未加载
评论 #34597410 未加载
评论 #34587064 未加载
评论 #34589147 未加载
评论 #34585333 未加载
actinium226超过 2 年前
Docker doesn&#x27;t actually save time.<p>The thinking is that with docker you can manage your dependencies in one place, and so you don&#x27;t need to spend time and headache dealing with issues like incompatible packages.<p>In reality, you trade that time and headache for the time and headache of dealing with docker: did you mount all the files you needed? Did you start the container with the proper command to enable debugging? How do I attach the debugger to my process inside the docker container? And personally I don&#x27;t like the extra &quot;state&quot; I have to maintain in my head that I&#x27;m in a docker container.<p>My overall argument is that if the dependencies are so crazy that you&#x27;re wasting time on conflicting packages, take a hard look at those dependencies and see if you really need all of them, or if you can simplify.<p>To be absolutely clear, docker is still great for certain use cases. For spinning up new CI machines it&#x27;s fantastic and really simplifies that process in a meaningful way. But for local dev I think the advantages&#x2F;disadvantages wash out and makes it either a net zero at best or negative at worst, since that &quot;state&quot; will always be there.
评论 #34585382 未加载
mikewarot超过 2 年前
Minority Opinion: Computer security is a solved issue, and most people don&#x27;t know about the solutions.<p>We need operating systems that enforce file selection, instead of deferring to the applications. This is known as capability based security, and most people think of &quot;allow access to X&quot; on their phone, which is NOT what I mean.<p>When you want to open a file, an application shows a system supplied dialog box, then goes ahead and opens whatever the heck it wants with the full trust of the OS, no matter how wrong that is.<p>All I&#x27;m asking for is the OS to handle the file dialog and pass a capability (like a file handle) to the app instead of trusting it blindly.<p>The downside is that unless there are clever shims, this requires rewriting <i>everything</i>.<p>---<p>The reason we have VMs then Docker then Containers is that our Operating Systems don&#x27;t enforce capability based security, and we&#x27;ve been improvising a replacement for it in this manner.
评论 #34593316 未加载
mikewarot超过 2 年前
Minority Opinion: Programming productivity peaked at VB6&#x2F;Delphi&#x2F;Microsoft Office 2000.<p>These tools allowed domain experts to get a GUI tool built in a matter of hours, and for the most part, those solutions just worked.<p>Microsoft Access 2000 managed tables <i>and relationships</i> automatically. You could have master&#x2F;detail relationships multiple levels deep and it all just worked. It did queries well enough, hooked to SQL via ODBC, and did pretty good reports.<p>It was a pretty cool environment when you tied it all together.<p>- Then Microsoft got obsessed with .NET and Borland got greedy, and ruined it<p>On the Web side of things, there were WYSIWYG Web editors that worked in much the same fashion, with a whole stack to support it. You could lay out a Form, and have a CRUD app running on the web in short order.<p>- Then Ruby on Rails came along, and ruined it<p>The main thing we&#x27;ve gotten in the past decade is faster hardware, especially thanks to SSDs, and GIT. GIT is amazing, but don&#x27;t be fooled into thinking it actually stores deltas, it just acts like it does. GIT is a snapshot tool, way better than stacks of floppy disks&#x2F;USB sticks labeled Archive001 -- Date
dreamoffire超过 2 年前
Don’t rewrite it.<p>Every time I hear someone wanting to rewrite something without a VERY solid reason is a flag for me. It is hard improving a system that’s already there, but can be super rewarding if you change your mindset.<p>Everyone is eager to go with a blank canvas and greenfield a project but ultimately we’ll end up with the same shit situation in 5-6 years after the original authors have bounced and the newer devs are side-eyeing the code.
评论 #34586794 未加载
matt_s超过 2 年前
Unpopular opinion: there hasn&#x27;t been advancements in web app development for the last ~15-20 years. People are creating new tools&#x2F;frameworks because they can, not because there is an actual need for yet another new shiny thing to build HTML+JS+CSS pages that do CRUD on database rows via HTTP verbs. To put it another way, some people thrive on solving problems that already have solutions with nuanced solutions because its <i>their</i> solution.
评论 #34587271 未加载
评论 #34587178 未加载
jstx1超过 2 年前
- I like data structures and algorithms interviews.<p>- Writing Rust is generally unpleasant - trying to figure out how to do something that you don’t yet know how to do is much more painful than doing the same in another language.<p>- Unit tests are overrated.
tkiolp4超过 2 年前
Software design is subjective. After years of professional work, I cannot stand anymore getting entangled in architecture&#x2F;design discussions. Any competent software engineer (most of us are) can come with a reasonable working solution to common problems 99% tech companies face. So, it doesn’t matter if you use Date or DateTime, REST or gRPC, Postgres or MySQL, Go or Rust… In a commercial context, good software is software that brings money. Period.<p>In a more personal context, I do care about software quality… but this only applies to personal projects.
评论 #34598735 未加载
zoomzoom超过 2 年前
Cloud IDEs are the future. Nobody will run code on their laptop&#x2F;workstations in 10 years in a professional context.<p>There&#x27;s no difference to a business between first-gen infra as code (terraform&#x2F;cloudformation) and second-gen (CDK&#x2F;pulumi&#x2F;etc ...). They both should be replaced by a developer platform that runs in your own cloud<p>The best tool to build on is something that combines the two with one simple config, like what we&#x27;re building at withcoherence.com!
waynerad超过 2 年前
My unpopular opinion, which is less unpopular than it used to be, is that object-oriented programming is a bad idea -- in particular, inheritance -- and the Go programming language demonstrates that you can write everything you need without object-oriented programming. I learned in school that a language is &quot;object oriented&quot; if it has inheritance, encapsulation, and polymorphism. Some years ago, I was feeling like giant class libraries were very complex and asked if that complexity is really necessary? And embarked on an experiment to see if I could stop using object-oriented programming and do everything with regular functions. I discovered in short order I needed polymorphism, and that objects were the easiest way to do that. Encapsulation is nice to have. But amazingly, I never came across a scenario where I needed inheritance. Shortly thereafter I discovered the Go programming language, which does not have inheritance at all, though it does have polymorphism (through the inheritance keyword) and encapsulation (via control of exports at package boundaries). It&#x27;s not just me: powerful software like Kubernetes has been written in Go. The lack of inheritance doesn&#x27;t get in your way and in fact enables polymorphism to work the way it would in an ideal world. The decision to leave out inheritance was really bold on the part of the Go language designers and it is my favorite &quot;feature&quot; of the language.
euroderf超过 2 年前
The fact that (evidently) you can&#x27;t have some kind of seamless end-to-end connection between a relational database and &quot;front-end user interface&quot; data display&#x2F;entry fields, with some kind of uniform&#x2F;standardized DSL in-between to manipulate &amp; validate, strikes me as totally FUBAR.
评论 #34587207 未加载
springogeek超过 2 年前
* It (usually) doesn&#x27;t have to be perfect the first time. Programming is an interative process and your first attempt is going to have bugs, or make faulty assumptions about the problem.<p>* A design which can be generalised is inherently more complicated, and is often unnecessary (you probably won&#x27;t make use of that generality, leaving you the burden of maintaining it), so you&#x27;ll be glad you made a simpler first pass.<p>* I don&#x27;t like working with docker&#x2F;containers personally. It makes me feel so far removed from how services are deployed that it&#x27;s basically magic.
dinofp超过 2 年前
I&#x27;m a professional Haskell programmer and have been writing in the language for almost 20 years. It&#x27;s amazing and I love it.<p>Nix is the single worst thing that&#x27;s happened to Haskell development tooling. The last 9 months at my current job have been Nix misery non-stop.<p>Nix in general is hot garbage.
评论 #34613636 未加载
kaveh808超过 2 年前
We hit a local maximum in language design with Common Lisp in the 80&#x27;s. I mean putting in the hard work to make a language be as powerful as you can imagine.<p>Today the market moves too fast, priorities have changed, and there seems to less of a willingness to &quot;do the right thing&quot;.
评论 #34598629 未加载
JoshuaDavid超过 2 年前
Spicy take: Despite the amount of attention paid to code quality, it generally does not matter beyond some (extremely low) baseline. By contrast, data quality (consistency and sensibility of the data model, proper migration of old data to new schemas, alerting around anomalous data) is neglected but vitally important. Adding abstraction will usually improve your code quality metrics, but make it harder to tell where data is coming from, how it is being transformed, and where it is going. Copy&#x2F;paste&#x2F;modify will do terrible things to your code quality metrics, but frequently does not make your data flow harder to understand.<p>As such, abstraction for the purpose of avoiding copy&#x2F;paste&#x2F;modify is usually bad. You should just copy&#x2F;paste&#x2F;modify, and <i>maybe</i> extract out common functionality if the common functionality is obvious and well-contained.<p>Epistemic status: I don&#x27;t fully endorse literally the above take, but it gestures in the direction of my actual opinions if you&#x27;re starting from the viewpoint &quot;Martin Fowler&#x27;s <i>Clean Code</i> is approximately correct&quot;, which seems to be the majority viewpoint in my circles. As always, take into account the rule that you should probably reverse any advice you hear[1] -- if this take resonates with you, it is unusually likely to be bad advice for you in particular.<p>[1] <a href="https:&#x2F;&#x2F;slatestarcodex.com&#x2F;2014&#x2F;03&#x2F;24&#x2F;should-you-reverse-any-advice-you-hear&#x2F;" rel="nofollow">https:&#x2F;&#x2F;slatestarcodex.com&#x2F;2014&#x2F;03&#x2F;24&#x2F;should-you-reverse-any...</a>
abadger9超过 2 年前
Most DevOps technologies and teams are unnecessary. Things like app.logz.io, Prometheus, and Grafana provide no value. In fact I wish I could lay off the majority of our infra team @ every company i&#x27;ve worked, but I don&#x27;t have that authority.
DavyJone超过 2 年前
GitOps (as in ArgoCD style workflows) is not nice. Deploying from code, and storing all infra, etc as code is great, but this pull based approach creates IMHO a really decoupled and inconvenient deployment pipeline.
kbrannigan超过 2 年前
A lot of the complexity you see in code, tool or project are<p>Job-Security sub projects. At first you have a bright eyes junior dev who wants to do the right thing, change the world they said.<p>Little by little he realizes that documenting everything, writing easy to follow and bug free code is a great way to be out of a job.<p>Complex code is what gets you promoted because you have fire to put out, bugs to fix, getting pulled in meetings where you have to explain the intricate architecture.
评论 #34585506 未加载
ac2u超过 2 年前
While it&#x27;s valid to say that for most software jobs you won&#x27;t be having to write tree search algorithms 10 times a day, you&#x27;ll still need to use the intuition and body of knowledge that solving such problems requires more often than you think, even if it doesn&#x27;t present itself as a whiteboard trivia problem.
评论 #34585423 未加载
mikewarot超过 2 年前
Nobody seems to know what a data diode is, or when one should be used. Quite a few places where you want to monitor a system without being able to control it would benefit from the use of a data diode.
oscillonoscope超过 2 年前
ASICs are cheaper and better than most people believe. Companies are unnecessarily scared of them due to costs associated with the newest processes.<p>Embedded linux is more trouble than its worth 6.5&#x2F;10 times<p>A lot of PCB developrs pretty much refuse to perform proper V&amp;V on their designs because they&#x27;re allowed to push it off on firmware engineers.
thedriver超过 2 年前
Tabs are not that bad
moomoo11超过 2 年前
less &quot;people engineering&quot; and more &quot;technical engineering&quot;
评论 #34585390 未加载
throwawayacc3超过 2 年前
The madness that is overlay networking and other brainfuck networking stacks that are normalized now due to Kubernetes and Docker are horrific. Moving to micro-VMs with each one having it&#x27;s own unique IP and leveraging basic networking has paid us off in spades.