|
Peter Shaw wrote: This is why I always, always, always advocate a dev/stage/prod setup, esp for web applications. Fo sho man. Totally agree on the 4 environments that should be set up. You can get away with 3 if you're a solo dev in the company, but otherwise 4. My point was more about calling a live resource for a unit test makes them no longer pure or deterministic and very slow to run. By live that could be a dev environment as well, as in an actual API call.
Peter Shaw wrote: Prod, well I don't need to state anything about this one
Peter Shaw wrote: In many of the projects I work, I go in, and build the dev team myself, usually a very tight knit bunch who've all worked together before, and who bounce off each other very well. It's so hard to find that too. Real hard. But when you have that camaraderie it's gold. Usually it seems everyone is unhappy and hates life and has an agenda rather than the love of tech.
Peter Shaw wrote: These days I much prefer the consultancy life style, where I go in, advise, build, test after it's built then move on to the next exciting project IMO a lot can be learned from that. Like, if you have a team that refuses to modernize, you're stuck in one spot. Also a lot can be learned from sticking with a project for years, usually about supporting it, but a lot can be learned. I choose the former too though, if given a choice. I wouldn't want to be beholden to people who stopped learning and are content with that.
Jeremy Falcon
|
|
|
|
|
Started writing some Unit Testing year ago and found that with the services I develop, unit testing is futile. That said, I have my own extremely broad testing infrastructure that is constantly running JScript and PowerShell generated client requests against my servers, some of those requests intentionally contain client request errors that we've seen come from specific client types. If you are dealing with library functions and methods that have fairly simple input parameters, Unit Testing can be useful. When dealing with a client server model that takes a wide variety of complicated XML HTTP posts, from various vendors, all of whom implement specifications differently, not so much. Most of the problems would be caught somewhere else farther down the stack. That said, I have a variety of iOS clients to test with since Apple's developers excel at not following specifications, especially when it comes to return codes.
|
|
|
|
|
|
Yes, but nothing formalized. None of this automated stuff the kids do these days.
Frequently, when developing an SQL function (in SSMS), I'll add some calls to the function in a commented-out area so I can test it and remember what some of the known edge cases are.
I wish there were a way to do that for C# in VS.
|
|
|
|
|
PIEBALDconsult wrote: I wish there were a way to do that for C# in VS. Doesn't VS offer some sorta doxygen style comments? That's a great idea and I do the same in Node with jsdoc style comments. For VSCode at least, it has the bonus of also showing the example uses or edge cases via intellisense too.
Jeremy Falcon
|
|
|
|
|
I think it's things which get executed at compile time, but I would want to have the ability to execute ad-hoc tests whenever I like.
|
|
|
|
|
I really like using unit tests especially when I am working on some new algorithms. I can test instantly without firing up the GUI and entering the data manually. Helps me find the inverted logic and poorly managed edge cases (hey, sometimes I rush it a bit when I get excited!)
Other people's unit tests have saved my bacon many times. "Well, this is an obvious bug that needs fixing" followed by failed unit tests has led me to learn a lot more about some seemingly innocuous code. I usually add comments so future devs don't make the same mistake, btw.
|
|
|
|
|
Unit testing: very much yay.
I've been doing unit testing steadily since about 1999. I have my own simple unit test driver. Tests are static member functions. It can all be statically linked with an executable. No tests enabled equals no overhead in size or time. The two places I've worked that did unit testing also had the highest code quality of the places I've worked. I've used a couple of open source frameworks for unit tests, but they seemed unnecessarily complicated to me, and it's annoying to have to separately compile test executables. Writing unit tests helps me wring out my designs and of course avoid regressions when I change things (which happens all the time).
|
|
|
|
|
SeattleC++ wrote: I've been doing unit testing steadily since about 1999. Noice. For me it's only been a few years, but the more I do it and the better I get at it, the less of a chance of ever turning back ya know.
SeattleC++ wrote: and it's annoying to have to separately compile test executables Oh yeah, that is one one of the caveats I faced in a C project once. The way I handled it was to have my overall build command just compile both. Probably harder to get away with that for C++, so cool idea.
Jeremy Falcon
|
|
|
|
|
Had to implement a globally unique ID generator that would work in distributed/disconnected system for a project in TS today. Doesn't warrant an article (I think??), so here it is if anyone wants it. Much like YouTube IDs, etc. the result is in base62 to keep it as short as possible. Runs fast enough to generate 100,000 IDs in 340ms in a WSL environment.
Big ol' edit: Made this a tip/trick. Nothing to see here now. La la la.
Jeremy Falcon
modified 19-Apr-24 21:33pm.
|
|
|
|
|
Perhaps Tip/Trick or Weird and Wonderful material?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: Perhaps Tip/Trick or Weird and Wonderful material? Oh crap, I'm gonna seem like an old fart now... what's the tip/trick thing?
Jeremy Falcon
|
|
|
|
|
Ooooooooh, wait. I see it now. Um, it's been a while since I posted a new article, as you can tell. Thanks.
Jeremy Falcon
|
|
|
|
|
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Wordle 1,036 4/6*
⬛⬛⬛⬛⬛
⬛⬛🟨⬛⬛
⬛🟩🟨🟨🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,036 3/6
⬜🟨🟨⬜🟨
🟨⬜🟩🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,036 3/6
⬛⬛⬛🟨⬛
🟨🟩⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
🟨⬜⬜⬜⬜
⬜🟨⬜🟨⬜
⬜🟩🟨🟨⬜
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,036 4/6*
⬜⬜⬜⬜⬜
⬜🟩⬜🟩🟨
🟨🟩⬜🟩🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 1,036 4/6
⬜🟩🟨⬜⬜
🟨⬜⬜⬜⬜
⬜🟨⬜⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,036 3/6
⬜🟨⬜⬜⬜
🟨⬜⬜⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,036 5/6
⬛⬛⬛⬛⬛
⬛⬛🟨⬛⬛
⬛🟨🟨⬛⬛
⬛🟨🟨🟩🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,036 5/6
⬛⬛⬛⬛⬛
⬛🟨⬛⬛⬛
🟩🟩⬛⬛⬛
🟩🟩🟩⬛⬛
🟩🟩🟩🟩🟩
Jeremy Falcon
|
|
|
|
|
Of course it does...
Low-code tools boost developer productivity[^]
"Over 90 percent of respondents to a new survey say that low-code tools have boosted developer productivity in their organizations. 43.5 percent of developers are saving up to 50 percent of their time when they use low-code tools on a project."
I keeping thinking one of these days I will actually find an organization that actually measures developer productivity. Or devops. Or IT. Or DBAs. Or CEOs.
Now Sales ... those guys have it down ... 'how many contracts did you sign last month?'
But back to the article ...
""Low-code software has real value in democratizing software development to include non-developers," says Jason Beres, senior VP of developer tools at Infragistics, and creator of App Builder software."
Any one want to guess what Infragistics sells? Come on - I dare you.
The 'story' is based on a study created by ... bet you can't guess!
"The full report is available from the App Builder site."
|
|
|
|
|
I mean, I hear what you're saying.
But allow me to play devil's advocate in defense of low code tools at least.
Good ones are gold. SynthMaker (now FlowStone) is absolutely amazing. It was used to build Audio VSTs but is now an entire industrial automation creation tool. It's really well designed, and doesn't limit you strictly to its framework, which is extensible.
As far as productivity, I'd be interested if someone commissioned research on studying HOW to measure developer productivity effectively. That would be a tall order because you have to define things like effectively, but if one could pull it off I'd be rapt.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|