I know the feel. You start just writing really dumb repetitive code, then you learn to abstract stuff away and go completely overboard with that just to realize it creates all kinds of now problems. The question in the end is: how many repetitions justify an abstraction?
-
-
-
premature DRY feels like a separate issue from speculative generality, although I'm not sure how to articulate the difference
. but it also fits into the category of "overeager abstraction" -
I’m a lazy abstractor now. As late as possible.
-
For the last 10 years I've called it "What you need, when you need it"
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
When it comes to abstractions I always remember The Wrong Abstraction from
@sandimetz - "duplication is far cheaper than the wrong abstraction, prefer duplication over the wrong abstraction"https://www.sandimetz.com/blog/2016/1/20/the-wrong-abstraction …ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
Over-engineering is the product of inexperience and, if I may put it bluntly, vanity. Yes, we're all SO clever, we can anticipate the future. No, save those cycles for when they count, when you're solving a concrete problem. Then, and only then, should prior abstractions evolve.
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
I'm constantly saying to myself and other devs, "Don't try to predict the future."
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
I like how Linus Torvalds put it in his Ted Talk... Some people try to solve problems way out. Just fix the pothole right in front of you first
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
Mmm isnt this some kind of catch 22 situation ( pretty common in infosec)? What if you are not dealing with an exorbitant amount of bugs because of your taken measures? I think this had a name in the world of security
its pretty much unmeasurable how much was wort it.ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
Premature generality is the root of all evil. ;)
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
I find this is important from a personal productivity standpoint too. Easy to get distracted with “oh, what about this concept or potential issue” and your whole afternoon goes away.
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
That's just job security. Future bugs are opportunity knocking from the beyond. Costlier still is general speculation. Everyone trying to tell fortunes in order to make fortunes.
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
Sadly, I think a lot of functional programmers fall into this trap
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
reading this thread and wondering how we ever got computers to start with ;-) ... much less things like Sql, vi, and printer drivers!
#ifyourabstractionfailskeeptrying -
But I do agree that abstractions can and do work! After all, I'm writing this in a sandboxed javascript VM, augmented with HTML and CSS, with the tweet sent over HTTP, down a network cable, across the Atlantic, by switching billions of transistors on and off!
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
The extreme opposite is what I call "clipboard oriented programming", also know as "fuck whoever gets to maintain and update this hot mess in the future".
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
I have found I am very bad at guessing what future behavior/features will be needed in any piece of code, so speculative future-proofing misses the mark a lot. Whereas coding/refactoring to what I know I need right now (or the single next step) is far easier to get right.
-
(As some others have basically already written here.) Also Yogi Berra's axiom on predictions applies here.
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
Couldn’t disagree more. Can not count the amount of shitty legacy code replicating errors, I’ve encountered during my career. The problem lies in the prediction - that will always be a lost cause.
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
লোড হতে বেশ কিছুক্ষণ সময় নিচ্ছে।
টুইটার তার ক্ষমতার বাইরে চলে গেছে বা কোনো সাময়িক সমস্যার সম্মুখীন হয়েছে আবার চেষ্টা করুন বা আরও তথ্যের জন্য টুইটারের স্থিতি দেখুন।