The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions. Or if you must, use the Back Room[^] - but enter at your own risk.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen. For those discussions where you wish to be a little more frank, use the Soapbox[^]
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number.
Well, the site said (and I kid you not) enter your phone number like this:
((xxx) xxx-xxxx), for example, ((619) 555-1212)
It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter:
xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30.
Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!
My wife runs a medical billing business, and the primary software she uses to do her work is the web-based application of some service provider whose name I can't remember at the moment.
Still awake? Good! Here comes the interesting part.
Here I am, poking around in Firefox, snooping at this application's HTML code, and what do I find? An <applet> tag! My wife, being a bit startled by my intense GASP, asked what was wrong. I mentioned that "these guys" are still using Java Applets, which as far as I know are not supported anymore by anyone. She acknowledged this and immediately responded that the new version, which is in beta, does not use Java at all, and proceeded to load the new version up in her browser.
Any of you guys still coding JSF or Applets? If not, when was the last time you've come across either in your work?
On the other hand, you have different fingers. - Steven Wright
RPG.. one of the languages I've managed to completely forget....
In college, we had to learn: VAX BASIC, VAX Assembler, Pascal, RPG and COBOL.
I can probably manage all of them now, except for RPG.. I'm good with that!
Since college, I've had to learn Fortran and C for work.. so the background has served me well.
My Saturday job requires using a web application that still uses good old Classic ASP...and it only works correctly in IE Compatibility Mode! They've been harping about an update for at least 5 years...not holding my breath.
At work, I'm migrating the last couple of Classic ASP sites I have left in preparation for a new server where I'd like avoid legacy issues. We also still use Flash for a dashboard in one of our web applications, though the horrible tool that was used to create it did not make the cut a few years back when I upgraded workstations.
Once I had to update my business address and the process was to use the CD that came when I register business number and that loads applet in the browser and that suppose to allow you to update your address. I could not for life of me get it to work. In this day and age this is the process to update business address. After wasting hours I gave up. So yes there are dark places out there that still uses this thing.
Zen and the art of software maintenance : rm -rf *
Maths is like love : a simple idea but it can get complicated.
Yeah. I should have realized the problem because I wasn't required to use a lambda. Enumerable.Repeat(()=>new Client(), 10); would be the expected syntax.
But I also read that using for loops is a lot faster than using Linq ...
Meh. For a service that gets called once a day and creates at most 1 to maybe 5 instances, I don't really care. The real travesty IMO is the ToArray() call because the web service interface where this gets assigned requires an array.