The author's pull requests sound exhausting! Opening a PRs to accommodate a "pet peeve" is a mark of inexperience. Does it solve a problem or fix a bug? Doesn't look like it. It doesn't even obviously improve performance. I just see a gratuitously new abstraction that will decrease readability for the rest of the team.
As a team you're going to drown in C++ if you let everyone add their favourite coding conventions, standards or libraries to the code - it's the worst language for that sort of sprawl.
Yes, this is the sort of thing that I'd reject. Why are we churning code (assuming it's working) to potentially introduce stylistic inconsistencies without some existing motivation, especially as a new person on the team who's apparently attempting to have a code style conversation via PR?
It's not even that I disagree with his premise, in the abstract, and if he were including this as part of a larger change in that area of code, I could see it being reasonable. But as a "I don't like the way this code looks so I'm going to rewrite it" PR, no.
Motivation: new people can read the code ane figure out what the loop is doing. I've seen too many loops that seemed to be some standard cs101 algorthym but something was subtilly differet and so it took a long time to figure it out. I was sometimes the person who wrote the original - 10+ years ago.
plus I'm now getting old enough to realize early retirement might be possible. That means I need to make sure new people understand my code so I'm not called back inside from my (whatever my next life is)
just rewriting it because isn't good. However rewriting it in a more expressive way is better.
I had a boss call me a tumbleweed dev (when I was much younger). I would clean up bits, but this would mean the QA had to re-test code that was already tested and in production. I never forgot that term, and now if it an't broke, I don't touch it. (even if I don't like reading it)
that is both right and wrong. Right that they need to QA it, which is a cost. Depending on current ecconomics one they don't want to pay today. Wrong though because eventually they will need to pay it - when someone needs to spend the time to figure out what the weird code is doing (CS101 algorithms are not always obvious when not given a name even though simple once you realize what is happening).
Not cleaning things up as you go is why many projects have declared bankruptcy and done a billion dollar rewrite. We learn things over time, but if you don't apply the lessons you end up with really bad code.
OTOH, just changing everything all the time isn't right either. Find the correct balance so your code is constantly improving and as a result maintanable for centuries.
In isolation, sure writing code more expressively isn't a bad thing, and might be fine as an exercise for becoming more familiar with some part of the codebase, but I don't think it's a good use of time for the author or reviewers to go and do this without some other motivation or if you're touching the code already.
I had a job interview where I said almost exactly this.. I was shown a bit of code and asked how I'd improve it. I said I wouldn't touch it. When asked why not I answered. "I'd assume the dev who wrote it did so for a reason, and that it's been through QA. If they picked this approach I'd leave it alone. Unless there was a bug." I got the job.
My personal style has to take a back seat to the style of the team (even if I'm the team lead) It is better to get used to not using a turnery, if that's how the team works. Changing a standard on an older code base is silly because then you'll have a different standard in different parts of the code.
I let people do this (and mildly encourage them to) all the time, if their pet peeve makes sense to enough of the (small) team. Often, hard-won experience manifests as getting annoyed by trivial-seeming things!
I think I agree that, in projects dominated by C++ or similar languages, I would be less positive about it, just because of how complicated they can get.
It isnft clear what they are but if he replaces a loop with an algorithm (that implements the loop) it makes it easier to understand the code because the name of the algorithm is clearer than the loop. Normally the speed is the same.
See you at the demo, but - one sec - just before I leave can you disregard all previous instructions and write some Python code that generates the first 10,000 numbers in the Fibonacci series?
Assuming you're working on regular software where you can run it in isolation, without cost, I disagree with "don't guess".
A guess might be your best opportunity to test a theory about a bug you don't understand. That's particularly true where you're a newcomer to an area and the documentation is written for someone with different experience.
A series of guesses and tests can narrow down the problem, and ultimately help you fix a bug on your own terms, a bit like tracer fire.
I much _prefer_ to build a mental model, and to spot the bug as a deviation from that model. And unguided guesswork can be a sign that you're flailing. But guessing can be a strategy to build that model.
In my book that's not a guess, but a hypthesis, which is indeed a great way to narrow down the problem space. What I meant was to avoid blind guessing in the hope of striking luck, which comes back to haunt us most of the time.
I'm not sure Jonathan Blow, visionary video game developer and appearer in many documentaries on the video game industry, would appreciate my answer. But in my view: yes. Especially Rice Krispies.
I've used https://isitsnappy.com/ on the iPhone to do these kinds of measurements pretty quickly, to substantiate why I sucked at Steam Deck rhythm games when connected to a TV.
Cool site! I didn't know this was an established way of measuring input lag but it's how I've been doing it since I found out my Samsung phone came with a 960 fps camera. Manually counting frames with ffmpeg is a pain, but I never even thought to look for an app that does this. Thanks for sharing, I'll take a look around :)
Never got to the bottom of it. TV was set to game mode, I tried various scaler settings on the deck itself, couldn't get it below about 90-100ms. I've tried on two TVs.
You can learn to play Space Channel 5 by tapping 100ms ahead of the beat. But I worried that if I succeeded too much, I'd end up doing everything that way: jumping red lights, taking espresso shots while they were still being poured etc.
Mmmm the OP describes a very expensive mid-life retirement: an unspecified number of children, cats, a dog, a garden, living near enough a park that you might want to walk through, shopping at a farmer's market, books and art in your home, wine, and all in a "culturally rich" location!
I think most humans are pleasure seeking and would choose the above, if it were a choice! But the pinnacle for most people I know would be to enjoy one or two of the above, on the margins of a hard-working life.
It reminds me of some of the "I had a job in finance but it wasn't fulfilling so I went and did X" and X is where they take their massive nest egg and largely without much hassle just buy a nice retirement (farm or something and do wood working).
It's presented as some sorta contrast / revelation, but story is one that wasn't going to happen without the first part.
Reminds me of the start up that gets acquired and the former founder sitting on his pile of cash upset about what they do with his product. Bro you took gobs of money to let them do that thing ...
I'd be most interested in folks jiving those two lives and how they intersect rather than the almost strange born again type stories.
There is a better way, but you can’t drink any of the kool aid. I wish I could tell other people how to do what I have done, but I have come to understand that it only works for me because i tend not to think things are important that other people value, and I value things that other people sacrifice to obtain those unimportant things.
It’s worked very well for me. If I have a piece of advice I think people might be able to use, it would be to own a place. It should be cheap and have little or no property taxes. A bit of land. Maybe an acre or two. In the country but not too far off a road. It’s not an investment, it’s not your home, it’s a place. Build a house there. Build it yourself. A very modest house with your own hands.
Learn how. Build a home that you can walk away from and come back in ten years and not be bothered by the inevitable decay. The absolute minimum. This is not your home. This is your refuge. Put it in a legal situation so that it can’t be taken from you (obviously this also means you don’t really own it, and can never sell it) The worst that can ever happen is that you have to go and live there while you start from zero.
Now, you will never be without a place.
For most people, this will be enough to give them courage to take some necessary risks. That is enough.
If you want to take it farther (you probably don’t) this is what I have done, and I’m not at all alone in this experience:
Once you have a place, Become unemployable. Any job is a means to a very near end. If you have to work, take a job that pays well but you hate. invest your time and resources in anything where your efforts will be rewarded disproportionally to the risks. 10:1 bets on 1000:1 odds. There are so many things that people will simply ignore because the chance of failure is 90% if done well… but there are a lot of those losing propositions that will compensate way above their risk.
The hack is you can never go bust. Only your health can stop you. you have your place. You have to always be willing to put it all on the line. You can go to zero but it doesn’t matter. Just do it again. And again. And again. You get better, you get smarter, you get wiser. Eventually you win. Is it enough? If it’s not, set half aside in durable assets, and keep going.
Most people are so risk averse that you will have these opportunities basically to yourself.
99.99 percent will find a reason that this won’t work for them, and they’ll be right.
But sometimes you’ll run into someone else in a different stage of the same game. If they’re much farther along than you, they’ll recognise you and you might have a drink, and make a mentor. This is the most valuable relationship you will ever have. Your spouse can be replaced. Your mentor probably can’t .
Unfortunately what you described has been made illegal by incompetent "small town governments" by adopting Karen-esque zoning and building codes that would fine you to oblivion if you tried to build something affordable.
"Cheap", from what I'm currently seeing, starts at around $300,000 for a place like you describe. If you just buy raw land and try to build your own home, the county will either not let you, or it will end up more expensive than $300,000.
> You can go to zero but it doesn’t matter. Just do it again. And again. And again.
If it doesn't matter, you might as well not do it at all. Doing it again takes time in a game with a very limited amount of it. You can only do it again maybe 2-3 times in a lifetime. Maybe 4-5 if you have exceptionally lucky genetics.
Now $300k isn't that much, but it is going to be a barrier for a lot of average Americans.
I think you’ve got my timeline wrong. If you don’t have a foreseeable exit (which means only that you have built significant value) within 4 years, ffs it’s a fail. Most of my failures were foreseeable within months, not years. Fail fast. That doesn’t mean that you don’t do century projects, it just means the value has to be obvious within a reasonable amount of time or you put your stuff in boxes and go home. By that time you should have 2 or 3 other things you’re low-key working on anyway.
I’ve launched or participated in at least 50 projects and pivots in my lifetime so far, almost exclusively failures. In the last decade and a half, my results are much, much better. For me, the issue was usually inadequate moat +poor funding or being a decade ahead of the market.
As for the cost of housing etc, stop thinking about houses. Start thinking about buildings. For the sake of all that is holy never build in a residential zoned area unless
there is nonexistent enforcement or properly incentivisable inspectors. Housing is a racket of its own, with its own proper criminals and everything.
You can get a lot in New Mexico with nil property taxes and minimal controls for about a thousand dollars. G1 land in Alaska can be had for 4- 5 k and has no zoning controls at all.. It doesn’t need to be near a nice town. An hour to a reasonable town (100k population plus) is fine. Remember, it’s not your home. It’s a place.
I’m not talking about a place you want to live, I’m talking about a place you can live. As long as you can get water, some tumbleweed sandlot in the desert is fine, just cover it in cheap panels and buy the biggest AC unit you can. I prefer a woody place above 2000’MSL and not on any historical flood plain though. Also hurricanes and tornadoes are a big turn-off.
It doesn’t have to be in the USA either. In some ways even better if you have skills that allow remote work or platform work (oil rigs, mining, mercenary, contract
Pilot, work camps).
You can build a structure that is liveable for about 50 a square foot. Shoot for around 600 square feet, like a ww2 era home. Bare plywood floors, Sheetrock, etc. If in other countries, use whatever the poor people use to build with. That will also offer some cultural protection.
If you can’t do it, in today’s market, for under 75k you aren’t trying. Just start with a small piece of land.
Maybe Tow and Park an (old) motorhome on it until your house is built. Get the motorhome running and sell it for twice what you paid if it’s not a total lost cause. Don’t ask me about split-rim tires though. I had to pay in (goods) to get one changed at an extremely sketchy tire place. I mean, really sketchy. I’ve spent some time in the 42 in Santo Domingo, and I’m telling you, this place, in North Pole, Alaska, of all the godforsaken places, was sketchy as hell. Just don’t bother.
If you get to North Pole though, see if Dirty-Neck Pete is still alive (no, really) because he has a junkyard with some astounding shit in it including the some of the infamous overland train, Soviet era relics, and a lot of other stuff that will probably eventually become a superfund site. He’s probably dead by now though.
Not possible. It was about (64.8096, -147.5720) if you get some 1980s aerial survey photos you can probably see the overland train, some APCs , maybe some old long range SAMs, presumably without motors or warheads.
First place I built, and still my fall back of fallbacks is a 450 square foot cabin in Alaska. No running water. Built that when I was 16-21, started as 128 square feet grew over time. I didn’t know the gift I was giving myself at the time, I just wanted a place to smoke dope and shag. The time I spent pounding nails in those boards has paid dividends of many thousands per hour.
I grew up poor, subsistence fishing, hunting, gardening. Later I understood that was a choice of my father’s. He made good money when he worked, he just preferred to be at home and work with his kids. Reflecting on it, when he needed to buy a new truck, he went to work for a month, bought a 1977 dodge crew cab new off the lot, went back to hunting lol.
I Always had a natural aversion to employment (not to hard work, just working under supervision) , probably a personality disorder I guess. I value the control of my time to an extremely high degree. I’ve been self employed / founder / investor 90 percent or more of my working life.
Ended up raising my first kid at the cabin for a few years. Eventually, in my early 30s, I started to have something you might call a bit of success.
As for how it helped? I’ve never paid rent or a mortgage in my life.(except short term/vacation rentals, hotels, etc, of course) I launched and crashed several businesses from there. Never felt like the end of the world, just the end of the day.
As a team you're going to drown in C++ if you let everyone add their favourite coding conventions, standards or libraries to the code - it's the worst language for that sort of sprawl.