Better HN
topnewbestaskshowjobs
Log inSign up

thinkharderdev

1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions

https://www.thinkharder.dev

[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]

Submissions

comment 6y ago · link · parent

I think the point is that police will stop people for no reason in order to shake them down for a bribe.

comment 6y ago · link · parent

I think the counter argument would be that the issue with police bribery is not so much that some people are able to get out of minor citations (it's not like these cards will get you out of murder charge or anything) but rather the issue of corrupt police shaking people down for bribes.

comment 6y ago · link · parent

Because the police force would spend approximately 100% of its time writing jaywalking citations and courts would spend approximately 100% of its time dealing with the administration of jaywalking offenses.

I think a charitable way to think about it is that jaywalking can sometime be a serious threat to public safety but most of the time its harmless. So we have a law against jaywalking in general but in practice its more like a law against jaywalking that causes a breach of public safety. But the latter condition is hard/impossible to really codify so in practice the best way to deal with it is just make a law against jaywalking and then make the second condition discretionary on the part of law enforcement. It is of course abused frequently (police may be much more likely to hassle minorities or people who "look suspect") but I'm not sure the alternatives would be better on net

comment 6y ago · link · parent

Yeah, fair enough. I guess at least from MSFTs perspective bad code was better than nothing.

comment 6y ago · link · parent

This assumes that bad code is, at worst, worth nothing which isn't the case. Bad code that crashes a mission critical system is absolutely worse than nothing. Or to take your Windows example, I could argue that the problem with Windows was the opportunity cost. If Windows didn't take over the world maybe we would have more choices when it comes to desktop OSs

comment 6y ago · link · parent

I think you misunderstand what "correctness" is really about. To me at least it's about creating a small set of powerful abstractions that can be applied generally to any problem. In order for those abstractions not to "leak" they need be really rigorously defined. The alternative I think is to have a lot of ad-hoc abstractions for each application that break as soon as requirements change. I really, really disagree with the idea that bad code that ships is always better than code that doesn't. That is how we get software that is riddled with security issues. Even if the specific application isn't that important, it very well might be a major catastrophe if it has a severe security vulnerabilities that allows an attacker to get a root shell on a server in your internal network.

comment 6y ago · link · parent

I'm not sure the Haskell community really wants the language to become more popular as a primary goal. Sure, it would be great if more people appreciated its power and adopted it, but not if it requires compromising on its core strength: rigorous correctness. And that's fine! Not every language needs to focus world domination. It's probably better that we have a lot of niche languages that are uncompromising and highly optimized for specific types of problems (or rather highly optimized for certain types of programmers). Also, you don't need to be mathematician or really be grounded in math at all to understand the abstractions favored in Haskell. I think https://www.scalawithcats.com/dist/scala-with-cats.html is a really good example of explaining abstractions that are grounded in Category Theory without ever even trying to connect them to their mathematical origins. The abstractions can be explained and applied on their own terms.

comment 6y ago · link · parent

I've had a similar experience. There is something about scarcity of time that breeds discipline. Whenever I go through a period of life where I have to spend a huge amount of time on some particular task project I always think "man, when this is over I'm going to be able to use all this time to do X,Y,Z. It's gonna be great!" And then the project ends and I essentially waste all of my newly found free time. I end up accomplishing less, even on my side projects somehow.

comment 6y ago · link · parent

For what it's worth, I agree that the advice in the article is badly wrong. I'm just saying that building a rocket is fundamentally different than building a software product because a rocket is well-specified in advance. To you point, the MVP is different from the product as it will exist once fully realized. And the reason is because you don't know in advance how users will respond. You're not trying to satisfy the physics of rocket flight, but trying to please actual human beings who have weird and idiosyncratic preferences. So you build something (an MVP), let them use it and then incorporate their feedback into the next iteration. I'm with you in the sense that once you have a concrete MVP that you want to build, then you should approach building it as you would approach building a rocket. It's just that you may find that user didn't actually want a (proverbial) rocket, they wanted a helicopter.

comment 6y ago · link · parent

I agree, but I think the constraints are doing all the work in your statement. I've just been in the position many times in my own career where product managers are pushing to get something, anything out there so they can get "real user feedback" And the V in MVP goes right out the window.

I was responding in particular to "a quick prototype in front of real users gives you far better information than any amount of internal brainstorming." Maybe it's just a semantic difference but to me "quick prototype" doesn't imply look great, work great and handle all edge cases. Perhaps you meant quick prototype that looks great, works great and handles all edge cases but I think that implication is often lost on product people. They want something deployed and don't care if all of the engineering team's fussy edge cases are handled.

comment 6y ago · link · parent

Setting aside the specifics of particular agile methodologies like scrum, etc I think the core insight of the Agile manifesto is that building software products is fundamentally different than building things like rockets. When you are building a rocket you more or less know exactly what you want to build from the beginning so doing a detailed up-front design is definitely the right way to go. When building a software product (or really most software products, there are of course pieces of software that are well specified in advance) you don't know what the end state is or even if there is an end state. The information flow is bi-directional in the sense that observing how the software is used in the wild feeds back into how the software should be designed.

comment 6y ago · link · parent

This is a common sentiment but I don't think it's actually true. Users like software the works and is performant. Putting a quick prototype in front of users doesn't tell you anything beyond what the users think of the quick prototype. Did they have a bad impression because they ran into one of the many edge cases you didn't account for in the prototype? Or is it because the software is ill-conceived and not something they would like even if executed flawlessly. It's hard to tell. I think you run the risk of putting together a crappy prototype and then iterating your way into a local optimum that is still far inferior to what a properly engineered piece of software could be. Or it never gets that far because users hate the initial iteration because it doesn't work very well.

comment 6y ago · link · parent

This doesn't seem like a great system to me for a couple reasons. First of all, it can be used to dismiss basically anything. If someone is bullish on crypto and also has a big financial stake in the crypto ecosystem are there more reliable because they have "skin in the game" or less reliable because they are just "talking their book"? But more importantly, it is really reductive about making predictions. You can look at vague predictions as wishy-washy or you can look at it at as someone being thoughtful about the fact that the world is complicated and the best we can do is assign probabilities. And how do you evaluate that? Was Nate Silver wrong because he gave Hillary Clinton a 70% chance of winning the 2016 election? According to him she "should have won" but didn't but things with 30% probability happen a lot so a single event doesn't really tell us much.

comment 6y ago · link · parent

I'm not sure that framing makes a lot of sense here. This was a SaaS product for process automation which seems like a perfectly reasonable product. I would argue in fact that having tech companies (meaning companies which have specific expertise in building software products as opposed to companies that have a expertise in something else and also have an "IT department" bolted on) manage sensitive data is likely to make it more secure rather than less. Companies and other institutions which don't have any particular expertise in software engineering and security aren't likely to do a good job. Of course when those companies do screw up they should be held liable though, up to an including criminal liability is the leak is bad enough and the exploited vulnerability is egregious enough.

comment 6y ago · link · parent

Bars are loud. People smoking outside of bars late at night tend to be very loud and sometimes get in fights. If you're trying to go to sleep, it's annoying to have a crowd of drunk young men screaming at each other outside your window.

comment 6y ago · link · parent

That makes perfect sense and it's definitely true that sometimes the hotfix is not a bug in your code (which can be solved by a rollback) but instead having to patch a problem in a dependent system. But that seems orthogonal to the container issue. Shelling into a live server and changing something only works if you have the entire build toolchain on the production server which hasn't generally been the case in my experience. Even if you aren't using containers you still need to build artifacts and deploy them. It's just that you are deploying binary artifacts instead of containers. It doesn't seem like the container builds are the real long pole in that process.

comment 6y ago · link · parent

I was wondering about this too. Most Uber/Lyft drivers in my area drive for both services but it seems like they could prevent people from doing that as part of a formal employment contract (I'm guessing IANAL).

comment 6y ago · link · parent

Are there any restrictions on what the multiplier can be? If not then they can effectively set the fare. The "standard" fare is $X per mile and I want $Y per mile. I just set the multiplier to Y/X

comment 6y ago · link · parent

Right, of course dicking around with the codebase for personal amusement is bad and a poor use of time. But I think refactoring doesn't necessarily have to be achieving a clearly defined end goal to be useful and appropriate. Primary because product development itself doesn't have a clearly defined end goal. It's an iterative process where the end goal can change as you discover new information. To follow on your example, if I'm building a two story house and pour a foundation to support that but then the foreman comes along and says "actually we need to build a ten story office building on the same footprint" then you absolutely should start over and pour a new foundation. If you have a well-defined spec to begin with and it doesn't change and you STILL need to do a bunch of refactoring along the way then you probably did something wrong. But in my experience that is almost never the case. Refactoring happens because the requirements change and assumptions you made are no longer valid.

comment 6y ago · link · parent

I think we can all agree that the dev who starts a big refactor and then drops it when it's half-done is a terrible human being

comment 6y ago · link · parent

Mostly agree but I think the distinction is not always clear between data model changes and changes to application-tier logic. In most cases you can do a particular refactor either way and you have to figure out what is the best way to achieve it. Just pushing code around is usually not tremendously valuable but it's also not particularly costly.

comment 6y ago · link · parent

"Fred long ago learned that refactoring tickets always mysteriously sink to the bottom of the backlog, so he doesn't make them anymore."

Exactly this. Maybe Fred understands that if he creates a ticket to do a required refactor then it will never get prioritized and when things blow up in production 2 months from now it's his phone that's going to ring in the middle of the night.

comment 6y ago · link · parent

That doesn't seem like a fair characterization. The distinction between "refactoring" and "implementing a feature" is not always very clear. If a new feature violates some assumption of a dependent API, do you hack around it or refactor the dependent API to take change the underlying assumption. The refactor may not be strictly necessary to get the feature to work, but an experience developer may understand that the hack, quick solution will cause other more serious issues later and choose to do more work up front to head it off. Should that be a new ticket or a separate task? Maybe. We have to make judgements calls all the time on stuff like that and I don't think it is really possible to micromanage development of a complex application that way.

comment 6y ago · link · parent

Maybe it's just me but in my career (15 years at this point as a professional software engineer) by FAR the biggest problem is teams not doing enough refactoring. When new features come along that violate basic assumptions of the initial codebase, instead of refactoring out those initial assumptions you hack around them. It's almost always faster to do that then do a proper refactor for a particular feature but over time the codebase devolves into a tangle of spaghetti and incomprehensible chains of if/then/else where variable names have no semantic connection to how they are being used anymore. Sure, you can have the opposite problem where you refactor too eagerly and waste time but all the incentives in a corporate setting work against erring on the side of too much refactoring.

comment 6y ago · link · parent

I was thinking the same thing. I wonder how much of this is related to increased air quality in the west.

comment 6y ago · link · parent

Right, that's a legitimate security concern but the point I was trying to make is that the problem is not so much people using unapproved chat apps but people putting sensitive information in chat apps at all (approved or not). These applications aren't generally designed to have the sorts of access controls required to manage sensitive information. If I post something sensitive in a public slack channel at my work (where we use Slack) then it is available to anyone in the company. I guess it is marginally worse to have it available to everyone in the company plus any former employee who wasn't removed from the slack team, but only marginally.

comment 6y ago · link · parent

I'm not sure how much of a security issue there is. What's the threat model exactly? Terminated employees still having access because you don't have SSO? Sure I guess but if there is security sensitive data being posted in any chat app (approved or not) then you've got major problems.

comment 6y ago · link · parent

Yeah, the one killer thing that slack has is that there is a free tier which is perfectly usable. Organizations can try and force everyone to use Teams but in practice they can't stop people from just spinning up a free-tier slack account for their team. At the end of the day it's just not worth fighting it anymore if everyone is determined to use slack.

comment 6y ago · link · parent

This is an odd position to take given that, as a nation, we have failed spectacularly to address climate change in any way whatsoever. Will Amazon paying more in taxes substantially change the political economy of climate legislation somehow?

comment 6y ago · link · parent

Right, and more to the point the point of a carbon tax is to incentive the private sector to decarbonize which will require capital investments in clean tech. The problem isn't going to be solved by everyone reducing their carbon footprint by 10%. Everyone has to reduce their carbon footprint to zero and then we most likely still need to be pulling CO2 out of the atmosphere.
1
2021222324