Live data from Hacker News

Ask HN: What technologies greatly improve the efficiency of development?

news.ycombinator.com

71–80 of 87 posts

Re: Ask HN: What technologies greatly improve the efficiency of development?

#71

Long, self-documenting variable names. Because someone else will eventually have to debug or rework your code. And that might even be you, six months from now after you've forgotten everything. It's relatively cheap and cross platform compatible.

Its also easier to search through a codebase for unique and specific variable names.

The length of a variable name so old be proportionate to the scope. Global scope? long descriptive name. Loop variable? 'i' or 'j' is fine.

Re: Ask HN: What technologies greatly improve the efficiency of development?

#72
Debugging tools, especially conditional breakpoints. I’ve come across far too many people who say “yeah I use PyCharm” (for Python) but when I ask them if they’ve used the debugger, they say they don’t know how to use that. Investing time in learning to use the debugger and especially how to insert conditional breakpoints can be a lifesaver.

Re: Ask HN: What technologies greatly improve the efficiency of development?

#73
post #24

PHP For all the hate PHP gets, a massive positive of it is entire classes of development friction that just doesn’t exist for it. COMPILE: Slow compile times, nope - it’s interrupted & you can run the code instantly. DEVELOPMENT: Confusing and complex development tooling or middleware, nope - just SFTP a single file to your webroot. So the language / environment you pick to develop in can has massive impact on produc…

100% THIS! There is a reason so many products and platforms - like WordPress, which powers so many blogs on the internet - were built leveraging PHP: productivity/getting stuff done! I would add that i'm not only implying that conventional developers gain productivity...but that also that PHP empowered - yes empowered - folks who may not be "real" developers, and gave them a tool/platform to participate on the produc…

I always thought the reason was that nearly every webhosting offers it, even though it has serious warts.

Re: Ask HN: What technologies greatly improve the efficiency of development?

#74
post #73
post #24

Earlier quoted context omitted.

100% THIS! There is a reason so many products and platforms - like WordPress, which powers so many blogs on the internet - were built leveraging PHP: productivity/getting stuff done! I would add that i'm not only implying that conventional developers gain productivity...but that also that PHP empowered - yes empowered - folks who may not be "real" developers, and gave them a tool/platform to participate on the produc…

I always thought the reason was that nearly every webhosting offers it, even though it has serious warts.

Oh yeah, i agree that making PHP or other platforms more widely available helps them get more adopted. But i would have to guess that web hosting providers either were responding to customers requests to run PHP (because said customers felt they could do more), or these providers believed that php was good enough to offer to their customers because it empowered their customers but was not too much of headache to support. I say "not too much" because as noted, php has its warts. But even still if i put my business hat on, i would guess that a business would not purposefully make a platform available that is so bad which would create more work - hence tech support - that it would lessen or do away with any profit margin. In other words, if php were really that bad, web host companies - especially the low cost ones - would definitely not provide such a service because the constant tech support work would kill their profit margins...Full disclosure: i have never been a web host provider company (other than, small amounts of work in setting up web environments for my consulting clients)...so only someone in that industry could confirm/deny my theory.

Re: Ask HN: What technologies greatly improve the efficiency of development?

#75
post #74
post #73

Earlier quoted context omitted.

I always thought the reason was that nearly every webhosting offers it, even though it has serious warts.

Oh yeah, i agree that making PHP or other platforms more widely available helps them get more adopted. But i would have to guess that web hosting providers either were responding to customers requests to run PHP (because said customers felt they could do more), or these providers believed that php was good enough to offer to their customers because it empowered their customers but was not too much of headache to supp…

As a former small-time webhoster, I ran PHP because it was the easiest to run, but that doesn't mean it was the best app platform or the easiest to develop with. Making Ruby or Python or Java hosting was out of reach back then (without Docker and other niceties of today).

Re: Ask HN: What technologies greatly improve the efficiency of development?

#76

Long, self-documenting variable names. Because someone else will eventually have to debug or rework your code. And that might even be you, six months from now after you've forgotten everything. It's relatively cheap and cross platform compatible.

A version of this is extremely useful in Deep Learning code, where a lot of time is spent trying to guess the shape and dims of tensor variables. To help with this I often name variables like inputs_b_t_f where b = batches, t = time steps, f = features. This combined with something like einops [1] ( intuitive reshaping library) can be a huge time saver.

[1] https://github.com/arogozhnikov/einops

Re: Ask HN: What technologies greatly improve the efficiency of development?

#77

PHP For all the hate PHP gets, a massive positive of it is entire classes of development friction that just doesn’t exist for it. COMPILE: Slow compile times, nope - it’s interrupted & you can run the code instantly. DEVELOPMENT: Confusing and complex development tooling or middleware, nope - just SFTP a single file to your webroot. So the language / environment you pick to develop in can has massive impact on produc…

I still cant get over its syntax.

Otherwise I agree with all your point. It basically kept things simple while every other web development language increase their complexity by 10 to 100x.

Re: Ask HN: What technologies greatly improve the efficiency of development?

#78
> greatly improve the development efficiency of your team?

Embrace using open source not reinventing the wheel, hopefully you are already standing on the shoulders of giants

Practise extreme programming. Test driven. Pairing. Trunk based development. Stop using PRs... that's a controversial one - pair instead

Continuously integrate and deploy.

Now optimise that loop. How long does it take a pair to get a commit on mainline. How long does it take for that commit to be live. If the commit had a bug how long does it take to revert and have the fix go live.

Write tests first. TDD. Otherwise all of the above is for nothing and you'll have very quickly developed a big pile of something that doesn't do what you want it to do

Re: Ask HN: What technologies greatly improve the efficiency of development?

#79

Debugging tools, especially conditional breakpoints. I’ve come across far too many people who say “yeah I use PyCharm” (for Python) but when I ask them if they’ve used the debugger, they say they don’t know how to use that. Investing time in learning to use the debugger and especially how to insert conditional breakpoints can be a lifesaver.

I use pdb to debug via the CLI and don’t face any problems. I default to the CLI for debugging and try to look for GUI alternatives only after nothing works.

Re: Ask HN: What technologies greatly improve the efficiency of development?

#80

> greatly improve the development efficiency of your team? Embrace using open source not reinventing the wheel, hopefully you are already standing on the shoulders of giants Practise extreme programming. Test driven. Pairing. Trunk based development. Stop using PRs... that's a controversial one - pair instead Continuously integrate and deploy. Now optimise that loop. How long does it take a pair to get a commit on ma…

Are you saying to pair program instead of using PRs?
Post reply on HN