Friday Facts #366 - The only way to go fast, is to go well!

Regular reports on Factorio development.
orzelek
Smart Inserter
Smart Inserter
Posts: 3862
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by orzelek »

Sander_Bouwhuis wrote:
Wed Sep 01, 2021 7:21 pm
One of the problems I have encountered after having been a software engineer for about 25 years now is that features and fixes are billable hours, while writing tests are not billable hours. In 95% of the time I have to 'sneakily' add tests during development. Everything is a priority, everything has to be done yesterday. It's one rush job after another.
That seems like problem with your development process. Writing tests (of appropriate kind) should be part of billable hours for given task.

LuxSublima
Inserter
Inserter
Posts: 26
Joined: Fri Apr 28, 2017 1:14 am
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by LuxSublima »

Hi Kovarex and Factorio team,

I love this Friday Facts, and wanted to share a book that you might find relevant. It is geared toward enterprise business software development, not games, but is "cut from the same cloth" as the first several paragraphs of your post:

https://www.amazon.com/Righting-Softwar ... 0136524036
("Righting Software", by Juval Löwy)

I adore programming, but the sad fact is that many of us who take that love into the "real world" and become dependent on it for a living find the corporate reality to be far less satisfying than the hobbyist ideal, if not downright soul-crushing. Mr. Löwy captures why this is quite lucidly, and with a prescription to fix it. I was pointed to it by a fellow fan of Uncle Bob's approach.

If you happen to read it, or are perchance already familiar with it, I'd love to hear your thoughts.

In any case, happy coding. :-) And I so look forward to what you release next, however long it takes. :D

Best Regards,
LuxSublima

freezerain
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Oct 10, 2021 10:17 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by freezerain »

Hey boys, It was a pleasure to read this blog entry.

I want to share my experience with lambdas, I know they fun but keep an eye on them in path-finding or any other heavy alghorithm. While optimizing muliple heuristic I got 10%-30% improvement of function time after refactoring. Thats because compilers are usually not so good in optimizing lambdas comparing to classic approach.

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1126
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by ptx0 »

Sander_Bouwhuis wrote:
Wed Sep 01, 2021 7:21 pm
One of the problems I have encountered after having been a software engineer for about 25 years now is that features and fixes are billable hours, while writing tests are not billable hours. In 95% of the time I have to 'sneakily' add tests during development. Everything is a priority, everything has to be done yesterday. It's one rush job after another.
not at a proper company, everything we write at my company is billable and that includes tests.
My Mods - Fish Per Minute base size metric - Use your crashed spaceship as a belt balancer?
• • •
Base: Bob's @ 1 Million SPM
• • •
Linear search and overflows are indicative of sloppy coding practices.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12428
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by ssilk »

ptx0 wrote:
Thu Oct 14, 2021 7:39 pm
Sander_Bouwhuis wrote:
Wed Sep 01, 2021 7:21 pm
One of the problems I have encountered after having been a software engineer for about 25 years now is that features and fixes are billable hours, while writing tests are not billable hours. In 95% of the time I have to 'sneakily' add tests during development. Everything is a priority, everything has to be done yesterday. It's one rush job after another.
not at a proper company, everything we write at my company is billable and that includes tests.
Just seeing that yet.

No matter how, but writing software includes testing. Always.
So testing is part of your business. So writing tests is of course billable, because otherwise you need to test “by hand”. So it’s just the question how to test, not if, that makes a difference.

Exception: if you write a software, that is guaranteed that it is only written once and has no deep complexity I would eventually go without writing tests (and have done several times). Typically that are converters for migrating data from old to new software, which can be straightforward programmed (just a mapping of fields for example) or other quite simple run once and throw away scripts or some hacks to see, if the idea you have really works.

This is, because the effort of writing tests pays off, if you make changes to the program or if you have to guarantee certain behavior.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 2210
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by BlueTemplar »

Yeah, and I'm getting the impression that testing (whether automated or not) as a specialized job seems to be currently booming as a profession ?

(I'm currently helping someone that hasn't "seriously" used a desktop in years to get "back into it" as she is taking courses to become a tester, hopefully an automated one.)

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12428
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by ssilk »

BlueTemplar wrote:
Wed Dec 01, 2021 10:25 am
Yeah, and I'm getting the impression that testing (whether automated or not) as a specialized job seems to be currently booming as a profession ?
Currently? I make it so since about 10 years or so.

(I'm currently helping someone that hasn't "seriously" used a desktop in years to get "back into it" as she is taking courses to become a tester, hopefully an automated one.)
Tests are written by the team that makes the software. Any part of software development can be tested automatically. Testers are normally needed for some specific end-product testing or UX/UI testing, for example A/B-tests. Things where human interaction is needed and cannot simulated.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1126
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by ptx0 »

ssilk wrote:
Fri Dec 03, 2021 4:01 am
Tests are written by the team that makes the software. Any part of software development can be tested automatically. Testers are normally needed for some specific end-product testing or UX/UI testing, for example A/B-tests. Things where human interaction is needed and cannot simulated.
we use Selenium and Dusk to automate A-B UI testing.
My Mods - Fish Per Minute base size metric - Use your crashed spaceship as a belt balancer?
• • •
Base: Bob's @ 1 Million SPM
• • •
Linear search and overflows are indicative of sloppy coding practices.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12428
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Friday Facts #366 - The only way to go fast, is to go well!

Post by ssilk »

Yes, we too, and what do you want to say me with that? :) well I mixed here up two subjects. The first two sentences are about test automation. The second two are about the borders of test automation.

What I meant: You cannot simulate a humans decision if he likes red better than green. Or the button on the left better than on the right. For example. That needs to be tested with humans.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “News”