Re: "I think the community needs more explicit direction...."
I teach programming at the local university and have found that one of the
biggest mental blocks which students need to overcome is the assumption
that there is only one way to solve any problem, and
By
Frank Carver
·
#35760
·
|
Re: "Find or Create" functions: a discussion
I like to separate between the ideal and pragmatic designs.
If an idealized model says the record should already exist, but for
pragmatic reasons we haven't created it yet, allocating on fetch
By
Jeff Bellegarde
·
#35759
·
|
Re: "I think the community needs more explicit direction...."
In my view TDD requires three distinct skills to be "fully effective":
1. Writing the test first (as opposed to after)
2. Writing good tests (as opposed to crappy tests: You can write crappy
tests
By
Roy Osherove
·
#35758
·
|
Re: We are back on the air!
Yup!
By
Roy Osherove
·
#35757
·
|
Re: "Find or Create" functions: a discussion
First thing first, it looks strange to look for something by giving the
values it should fetch.
On the UI side I would usually have a get that fetches me data to get a
state of my application. And at
By
Yoann R.
·
#35756
·
|
Re: "Find or Create" functions: a discussion
In the case of identifying for medical reasons, it would be vital to distinguish the person: a "find or create" method would invite duplicate records, and loss (or at least unawareness) of other
By
BobFBPTest
·
#35755
·
|
Re: "Find or Create" functions: a discussion
When developing web applications we should bear in mind that some people that do not want to have I.e. any citizenship, this would lead to dirty data
Mit Freundlichem Gr¨¹?en
Ahmet
By
Ahmet Murati
·
#35754
·
|
Re: "I think the community needs more explicit direction...."
This seems really important. Do other people see the same thing?
By
Brian Marick
·
#35753
·
|
Re: We are back on the air!
Thank you so much JB! It's appreciated ;-)
By
Carlos Bl¨¦ <carlos@...>
·
#35752
·
|
Re: "I think the community needs more explicit direction...."
Steve (et al)
So here is the real question I have
I've gotten older, and it seems out of touch with a lot of the younger developers
I was brought in to mentor them on this stuff, refactoring, TDD etc
By
Charles Gallo
·
#35751
·
|
Re: "I think the community needs more explicit direction...."
Last place I was at ¡°we can¡¯t touch anything in X library, because too much depends on it, and it might break¡±
Of course the way to fix about 50% of their problems was to add methods to the
By
Charles Gallo
·
#35750
·
|
Re: "I think the community needs more explicit direction...."
Autocorrect: yeah->teach
By
Steven Smith
·
#35749
·
|
Re: "I think the community needs more explicit direction...."
I yeah refactoring a lot, and I think practice helps (shocking, I know). I include it in my workshops as well as in free resources on my github (https://github.com/ardalis/kata-catalog). I also have
By
Steven Smith
·
#35748
·
|
Re: "I think the community needs more explicit direction...."
Ouch, that sucks. I'm part of a smallish team, but we deploy via CI/CD
and if any of the test suite, code coverage minimum, linter, or typespec
checker fails, it doesn't go out.
We reject PRs for not
By
Hassan Schroeder
·
#35747
·
|
Re: "I think the community needs more explicit direction...."
The other problem is there is a megaton of lip service done to TDD.
You¡¯ll even have working tests. They make some framework change that breaks the tests, and they stop running them, or ¡°crunch
By
Charles Gallo
·
#35746
·
|
Re: "I think the community needs more explicit direction...."
Hi all,
Spontaneously I would guess there is a difference in experience between us trying to learn TDD with 5-10 years or more of programming experience and loads of examples of why it was necessary,
By
Samuel ]slund
·
#35745
·
|
Re: "Find or Create" functions: a discussion
Pragmatically, in the vast majority of applications much less data is
required for finding an entry than creating it. Creating an entry with so
much missing data can create data integrity
By
Steve Gordon
·
#35744
·
|
Re: "Find or Create" functions: a discussion
Apologies for brevity. I¡¯m on my phone.
I think it depends on how transactions are being managed. If called within
a transactional scope, I¡¯d be happy with separate ¡°findPatient¡± that
returns
By
Nat Pryce
·
#35743
·
|
Re: "I think the community needs more explicit direction...."
Yes. I don't know how to get my hands on good, realistic examples, because
they are typically confidential material. I don't have the energy to spend
months finding and refining good, realistic
By
J. B. Rainsberger
·
#35742
·
|
"Find or Create" functions: a discussion
Hi, folks. An old issue came back to the surface this month in consultation
with clients and I'd like your opinion. It regards the old "find or create"
pattern. It seems to violate Command/Query
By
J. B. Rainsberger
·
#35741
·
|