Re: Gordon programming language
On Sunday, 24 October 2021 at 10:13:14 UTC, Tero Hänninen wrote: Hello, I don't know how to make websites... and I want a much lighter background actually. Take a look! :) Haven't done html in years, but I believe this line is specifying the color of your text and the color of your background: -> body { font-family: monospace; color: #e0e0da; background-color: #1b1d1e; } <- The values in main.css are for a dark text on a light background: background: #F0EDE3; color: #33290A; You could either remove the "{body.." line from index.html or modify the "color" and "background-color" attribute values.
Re: Hunt Framework 3.0.0 Released, Web Framework for DLang!
On Wednesday, 6 May 2020 at 22:28:28 UTC, Dukc wrote: On Friday, 1 May 2020 at 10:54:55 UTC, zoujiaqing wrote: [snip] Thanks, but: Some of the files have Apache license, but some have none. I think you should add a license to the whole repository that would cover those files that don't have their own. This library has potential license issues as it has many files, at least on the core section that come from OpenJDK. Even the Java specific comments have been left I, such as this in AbstractCollection.d . The OpenJDK is GPL with static linking exception. It probably isn't kosher to take those files and make them Apache 2.0, even with modifications. This class is a member of the * href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> * Java Collections Framework
Re: My Meeting C++ Keynote video is now available
On Sunday, 13 January 2019 at 04:04:14 UTC, Walter Bright wrote: One major takeaway is that the bugs/line are the same regardless of the language used. This means that languages that enable more expression in fewer lines of code result in fewer bugs for the same functionality. Is the data to support this conclusion freely available on the web somewhere? My impression is that Python is considered the easiest language to use. If it has no more bugs per line than a statically typed program that seems to suggest that non-speed-critical work should be done in Python.
Re: DVM - D Version Manager 0.4.4
On Wednesday, 4 July 2018 at 19:14:57 UTC, Jacob Carlborg wrote: On 2018-07-03 03:34, Tony wrote: Thanks, that worked! It doesn't announce where it put the compiler, which turns out to be: C:\Users\\AppData\Roaming\dvm\ You're not supposed to know where it puts the compiler. You're activating it with "dvm use " where "" is the version you want to activate. This will persist for the end of the shell session. To set a default compiler use "dvm use -d". This allows to use separate versions simultaneously in different shell sessions. See the usage information [1]. [1] https://github.com/jacob-carlborg/dvm#use-a-compiler I should have done a little more reading. Thanks, and thanks for writing it!
Re: DVM - D Version Manager 0.4.4
On Monday, 2 July 2018 at 18:31:50 UTC, Steven Schveighoffer wrote: I still use dvm (this version 0.4.4 is the latest I believe). It still works, at least on OSX. But the errors it throws are not very user friendly, most of the time you get a stack trace. I've never used the --latest switch (which BTW fails on OSX as well). Likely it's a change in how the metadata is stored on the server. Just install by name: dvm install 2.080.1 Thanks, that worked! It doesn't announce where it put the compiler, which turns out to be: C:\Users\\AppData\Roaming\dvm\
Re: DVM - D Version Manager 0.4.4
On Monday, 2 July 2018 at 07:12:47 UTC, Basile B. wrote: On Monday, 2 July 2018 at 06:21:53 UTC, Tony wrote: On Sunday, 13 September 2015 at 16:26:04 UTC, Jacob Carlborg wrote: I just released a new version of DVM, 0.4.4. The most important I am on Windows 10. Is: dvm --latest install a valid way to get the latest dmd? When I try that I get an exception Seems unmaintained. Try Cybershadow's Digger which can handle building several versions of DMD too (https://github.com/CyberShadow/Digger), even from locally served webpage as UI. OK, thanks! I saw DVM mentioned in a thread recently and I went back and couldn't find it and found this one via a search. The one I saw may have been a very old thread that someone revived.
Re: DVM - D Version Manager 0.4.4
On Sunday, 13 September 2015 at 16:26:04 UTC, Jacob Carlborg wrote: I just released a new version of DVM, 0.4.4. The most important I am on Windows 10. Is: dvm --latest install a valid way to get the latest dmd? When I try that I get an exception -- dvm --latest install An unknown error occurred: tango.core.Exception.IOException@C:\Users\doob\AppData\Roaming\dub\packages\tango-1.0.1_2.067\tango\core\Exception.d(59): truncated response 0x004421D4 0x00441ECD 0x00441688 0x0040A637 0x0040A4F5 0x004334EA 0x0044FC5B 0x0044FB71 0x004021E8 0x769B8484 in BaseThreadInitThunk 0x77252FEA in RtlValidSecurityDescriptor 0x77252FBA in RtlValidSecurityDescriptor
Re: How an Engineering Company Chose to Migrate to D
On Friday, 22 June 2018 at 02:45:06 UTC, Tony wrote: On Wednesday, 20 June 2018 at 18:21:01 UTC, Bastiaan Veelo wrote: On Wednesday, 20 June 2018 at 16:06:15 UTC, Ali wrote: On Wednesday, 20 June 2018 at 13:21:30 UTC, Mike Parker wrote: The blog: https://dlang.org/blog/2018/06/20/how-an-engineering-company-chose-to-migrate-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8si75b/how_an_engineering_company_chose_to_migrate_to_d/ number 1 on hn https://news.ycombinator.com/item?id=17355348 OMG how am I to respond to all the comments, I cannot see the end of it! Who produces the Extended Pascal compiler you have been using? Oops, never mind. Read the article and see it's Prospero Software.
Re: How an Engineering Company Chose to Migrate to D
On Wednesday, 20 June 2018 at 18:21:01 UTC, Bastiaan Veelo wrote: On Wednesday, 20 June 2018 at 16:06:15 UTC, Ali wrote: On Wednesday, 20 June 2018 at 13:21:30 UTC, Mike Parker wrote: The blog: https://dlang.org/blog/2018/06/20/how-an-engineering-company-chose-to-migrate-to-d/ Reddit: https://www.reddit.com/r/programming/comments/8si75b/how_an_engineering_company_chose_to_migrate_to_d/ number 1 on hn https://news.ycombinator.com/item?id=17355348 OMG how am I to respond to all the comments, I cannot see the end of it! Who produces the Extended Pascal compiler you have been using?
Re: D only has Advantages
On Friday, 15 June 2018 at 04:52:20 UTC, Joakim wrote: Search this forum or HN for Paulo and Oberon, you'll find plenty of posts like this, where he lists all of them: :) https://forum.dlang.org/post/mioycakymbdpzryme...@forum.dlang.org Oops, I forgot that Go was garbage collected.
Re: D only has Advantages
On Friday, 15 June 2018 at 02:17:26 UTC, Adam D. Ruppe wrote: On Friday, 15 June 2018 at 02:02:52 UTC, Tony wrote: Have their been other languages - besides D - that compiled to object code and used a garbage collector? You can use a GC with C++ and you can compile Java to native code ahead of time. The distinctions aren't really that sharp, it just depends on how you use it. After I posted I wanted to edit it to add "disregarding JIT in conjunction with a VM like JVM or .NET". Have there been any C++ compilers that used a garbage collector? What I was getting at was, if someone says "I've got a systems level project I want to play around with, however GC is not a deal breaker for me. ", it seems like they are making an implied reference to D as I assume "systems level" means "compile to object code and link with linker to executable".
Re: D only has Advantages
"I've got a systems level project I want to play around with, however GC is not a deal breaker for me. " https://news.ycombinator.com/item?id=17302719 Oberon-2 has had some versions that used a garbage collector. Have their been other languages - besides D - that compiled to object code and used a garbage collector?
Re: Need a fancy domain for your project? .dub.pm has you covered!
Not a big deal since the same table is on code.dlang.org, but on the https://dub.pm/index.htm table, the headings "Name", "Registered" and "Score" are all active links, but the sort is not currently working.
Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side
On Saturday, 24 March 2018 at 01:15:46 UTC, Jonathan M Davis wrote A number of us have nothing good to say about TDD. That's fine. That's why they have menus in restaurants. But saying it is an inferior method is different than saying it won't work or can't be used in a maintenance situation. On Saturday, 24 March 2018 at 01:15:46 UTC, Jonathan M Davis wrote: But as far as whether or not it can be done with maintenance code, my original reply that mentioned it was to someone who appeared to be talking about a new project not getting everything tested, not a maintenance project. So saying "can't do it for maintenance" doesn't even apply to my reply. You were replying to H. S. Teoh talking about adding tests to an existing project, in which case, it's very much about maintenance. I said my "original reply", meaning the one where I first mentioned Test-Driven Development. That was to something that Steven Schveighoffer said (although I did not reply directly to his message, but replied to his comment that was still in H.S. Teoh's message): "I've worked on a project where the testing was separated from the code, and it was a liability IMO. Things would get missed and not tested properly." He doesn't explicitly specify development or maintenance, but I assume it was development.
Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side
On Saturday, 24 March 2018 at 00:12:23 UTC, Jonathan M Davis wrote: On Friday, March 23, 2018 22:42:34 Tony via Digitalmars-d-announce wrote: On Friday, 23 March 2018 at 22:32:50 UTC, H. S. Teoh wrote: > On Fri, Mar 23, 2018 at 09:45:33PM +0000, Tony via > > Digitalmars-d-announce wrote: >> On Friday, 23 March 2018 at 20:43:15 UTC, H. S. Teoh wrote: >> > On Friday, 23 March 2018 at 19:56:03 UTC, Steven >> > >> > Schveighoffer wrote: >> > > I've worked on a project where the testing was separated >> > > from the code, and it was a liability IMO. Things would >> > > get missed and not tested properly. >> >> That's where Test Driven Development comes in. > > That's not an option when you have an existing codebase that > you have to work with. You basically have to start out with > tons of code and no tests, and incrementally add them. > Having to also maintain a separate test tree mirroring the > source tree is simply far too much overhead to be worth the > effort. I think that you could "Test Driven Develop" the code you are adding or changing. Insisting on writing the tests before writing the code doesn't help with the kind of situation that H. S. Teoh is describing. And arguably it exacerbates the problem. Regardless, it doesn't help when the code has already been written. I don't see how it exacerbates it and I don't see how it doesn't help. The point of Test-Driven Development it to make sure you have written a test for all your code. You can also do test-driven development in unittest blocks. But as far as whether or not it can be done with maintenance code, my original reply that mentioned it was to someone who appeared to be talking about a new project not getting everything tested, not a maintenance project. So saying "can't do it for maintenance" doesn't even apply to my reply.
Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side
On Friday, 23 March 2018 at 22:32:50 UTC, H. S. Teoh wrote: On Fri, Mar 23, 2018 at 09:45:33PM +, Tony via Digitalmars-d-announce wrote: On Friday, 23 March 2018 at 20:43:15 UTC, H. S. Teoh wrote: > On Friday, 23 March 2018 at 19:56:03 UTC, Steven > Schveighoffer wrote: > > I've worked on a project where the testing was separated > > from the code, and it was a liability IMO. Things would > > get missed and not tested properly. That's where Test Driven Development comes in. That's not an option when you have an existing codebase that you have to work with. You basically have to start out with tons of code and no tests, and incrementally add them. Having to also maintain a separate test tree mirroring the source tree is simply far too much overhead to be worth the effort. I think that you could "Test Driven Develop" the code you are adding or changing.
Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side
On Friday, 23 March 2018 at 20:43:15 UTC, H. S. Teoh wrote: I've worked on a project where the testing was separated from the code, and it was a liability IMO. Things would get missed and not tested properly. That's where Test Driven Development comes in. Yep. As I mentioned elsewhere, recently I've had to resort to external testing for one of my projects, and I'm still working on that right now. And already, I'm seeing a liability: rather than quickly locating a unittest immediately following a particular function, now I have to remember "oh which subdirectory was it that the tests were put in? and which file was it that a particular test of this function was done?". It's an additional mental burden to have to keep doing the mapping between current source location <-> test code location (even if it's a 1-to-1 mapping), and a physical burden to have to continually open external files (and typing a potentially long path for them) rather than just "bookmark, jump to end of function, navigate unittest blocks" in the same file. There are pluses and minuses to both approaches, but I don't think that a separate file approach is as difficult as you are suggesting. The naming is typically identical to the project entities being tested, with a prefix like "Test_" tacked onto the front of the project, modules, classes and functions, making finding things straightforward. And most modern editors/IDEs will allow multiple files and projects to be open at the same time, allowing test code to be opened only once per coding session.
Re: Why think unit tests should be in their own source code hierarchy instead of side-by-side
I think unittest blocks are good for write-once and quick-and-dirty projects, or as a first-cut of testing that ultimately gets moved to a full-grown test suite in a separate project. I'd prefer not to read source code that has unittest blocks inter-mixed with the actual code.
Re: The D Language Foundation at Open Collective
On Monday, 19 March 2018 at 03:12:52 UTC, Nick Sabalausky (Abscissa) wrote: (And McDonalds $1/large thing seems to have gone away, I think it was just a temporary promotion. At least around here, anyway (Cleveland area, in the US)). Still doing it in the Northern California McDonalds near me. $1 for a large soda too. I'll never understand the whole "pour over" coffee movement. There is a coffee chain that started in San Francisco, Philz Coffee, which specializes in pour over coffee, and is now up to 42 locations. It is popular, and pour over and popular means an excellent chance you end up waiting in a significant line, but a lot of people don't seem to mind. I even wonder if it adds to the experience, making the product seem more valuable. However, someone must not like the wait because I read an article recently that mentioned some upscale coffee places were going back to using machines. I believe they only mentioned the time factor, but it is also labor intensive to manually pour the water.
Re: The D Language Foundation at Open Collective
On Sunday, 18 March 2018 at 20:18:45 UTC, Tony wrote: I have seen regular coffee at $4.50 and as high as $5.50 in the USA (and not always a large), I believe they currently have a $5.50 pour over, but this undated third-party hosted menu for Voltaire Coffee House in San Jose, CA shows "pour over" cups of coffee from $4 to $5: http://places.singleplatform.com/voltaire-coffee-house/menu
Re: The D Language Foundation at Open Collective
On Thursday, 15 March 2018 at 12:36:24 UTC, Meta wrote: Sorry to derail, but I had to ask: where does 1 coffee (even extra large) cost $5 USD? Let me know so I know to never move there. I have seen regular coffee at $4.50 and as high as $5.50 in the USA (and not always a large), but in order to get there, it has to be "single cup pour over" made, as opposed to coming out of a machine into a pot. And the beans have to be organic or they are telling you exactly where they were grown and giving you alleged "flavor notes" and maybe they roasted them in-house or locally, and the place has to have an upscale or luxury vibe. But Starbucks in the USA gives you a 20oz out-of-a-machine for under $3. McDonald's beats everybody - $1 for a large. Although I am not a big fan of the McDonalds coffee (maybe psychological due to the low price). 7/11 convenience stores and Chevron gas stations both have several varieties of coffee on tap that they sell for under $2 for a large, that I think tastes good.
Re: Vision document for H1 2018
On Friday, 16 March 2018 at 15:04:21 UTC, Kagamin wrote: On Thursday, 15 March 2018 at 16:03:14 UTC, rumbu wrote: Are you sure that you are talking about phobos and not tango? :) I'm eager to find how I'm uninformed. Tango doesn't use UFCS, while phobos and .net framework are big on extension methods. Also tango uses object oriented console IO, while phobos and .net framework use procedural style for it. I thought C# was like Java and does not allow free procedures. Can you give an example of C# procedural-style IO?
Re: Bootstrap D template
On Friday, 2 February 2018 at 01:16:50 UTC, Seb wrote: `DEFAULT_GOAL` allows to set an explicit target and keep a everything nicely ordered. Thanks! (didn't even notice that line) Is something not working when you just type `make`? No Or are you just trying to understand how things work? Yes, sorry for the confusion. What are you planning to do? I was only trying to understand the Makefile.
Re: Bootstrap D template
On Thursday, 1 February 2018 at 22:01:52 UTC, Mike Wey wrote: https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html#Prerequisite-Types Thanks! Couldn't seem to get a search to work. I was hoping the "|" would explain the behavior that I don't understand, but I don't think it does. The instructions say to just type "make". My understanding is that without a specified target, the topmost target in the Makefile is used. In this case it is "bin", which has no dependencies, and one action - mkdir. I would think that the Makefile would stop after making that directory as no other actions are given and no dependencies were specified. But it doesn't.
Re: Bootstrap D template
On Monday, 29 January 2018 at 11:04:19 UTC, Seb wrote: https://github.com/wilzbach/d-bootstrap Happy bootstrapping! What does "|" do in a makefile?
Re: Reorganization and list of D libraries (300+)
On Saturday, 4 November 2017 at 00:12:19 UTC, Fra Mecca wrote: For this reason I have edited a list of libraries that could aid in this process. I also considered that the following features could be of importance to you: - License - Garbage collector - last modification (automated) Nice, thanks! I don't like having to hunt for, and sometimes not find, the license of a library to see if it is permissive or not. GC is nice too.
Re: Moving forward with work on the D language and foundation
On Wednesday, 9 December 2015 at 07:49:58 UTC, Rory McGuire wrote: On Wed, Dec 9, 2015 at 9:12 AM, Tony via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: [snip] One thing that comes to mind to refute the contention that senescence would be insignificant at the age of 50 is notable technical achievement. If we were to list the mathematical and scientific discoveries of the past - like calculus and theory of relativity, etc. - how many would have been done by someone at the age of 50 or older? How many milestones in computing history were achieved by someone 50 or older? How many were done by someone over 40? And I think most of the aging process isn't even quality (what would most impact notable discovery) - it's quantity (that is, slower clock cycle). And companies probably have more concerns about quantity of thought than quality. Lol not sure where you getting all this, but the average 25 year old is a dumb ass compared to the average 50 year old. However that being said the average 50 year old is a lot less likely to get excited about their work and to do something super creative / learning new things. These things are not based on their brain activity though, it has a lot more to do with social conditioning and disillusionment. There are a lot less 50 year olds that are motivated to something disruptive in their fields of experience. I'd be swayed if you could link to interviews with older scientists, mathematicians or computer scientists who said their work declined with age because they became disillusioned or they ran into social conditioning issues. The number of scarily intelligent people aged over 60 is most likely a lot higher than the number of 25 year olds that are so. Its just the way our brains work, your brain optimises its thought processes continually, and experience is where you get that. Rather than the two of us expressing opposing opinions and you loling, we should probably look at research on the matter. Unfortunately, there is some disagreement with regard to cognitive decline. Some see it as a gradual decline from early adulthood and others seeing the decline postponed until later in life. This paper titled "The myth of cognitive decline" https://mindmodeling.org/cogsci2013/papers/0230/paper0230.pdf actually appears to acknowledge and accept that speed of reasoning declines with age: "Findings from a range of psychometric tests suggest that the rates at which the mind processes information increase from infancy to young adulthood, and decline steadily thereafter (Salthouse, 2011). Increasing reaction times are a primary marker for age related cognitive decline (Deary et al, 2010), and are even considered its cause (Salthouse, 1996), yet they are puzzling." but then attributes it to the brain having to deal with more information rather than having a slower processing speed - a bloated registry, if you will. "However, age increases the rage of knowledge and skills individuals possess, which increase the overall amount of information processed in their cognitive systems. This extra processing has a cost." But an employer wouldn't care if an older worker was thinking slower because of physical decline or because they had to sift through more information.
Re: Moving forward with work on the D language and foundation
On Wednesday, 9 December 2015 at 09:27:55 UTC, deadalnix wrote: I thin what you are looking at here is that youngster are more willing to take risk. When Einstein say that time is relative and ether doesn't exists, that mass and energy is that same thing and that energy exchange is quantized, he takes the risk of looking like a fool big time. But he has no reputation to loose, and he has no involvement in existing theories. Maybe in the field of physics, but is it possible to release things in mathematics or computer science that aren't proven at the time of their announcement? Later in life, either you were not talented and most likely not made it, or you were talented and busy capitalizing and what you made younger. That's a very good point. Capitalizing or lacking equivalent motivation.
Re: Moving forward with work on the D language and foundation
On Wednesday, 9 December 2015 at 10:44:35 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 9 December 2015 at 10:33:33 UTC, Tony wrote: On Wednesday, 9 December 2015 at 09:27:55 UTC, deadalnix wrote: Later in life, either you were not talented and most likely not made it, or you were talented and busy capitalizing and what you made younger. That's a very good point. Capitalizing or lacking equivalent motivation. Actually it isn't. Capitalizing is to a large extent related to superficial aspects such as connections, appearance and playing by the rules. Although some people get famous for being different, they are in the small minority. But it makes better stories and headlines. How are you defining "capitalizing"?
Re: Moving forward with work on the D language and foundation
On Friday, 28 August 2015 at 20:34:16 UTC, Luís Marques wrote: On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. When I read this post one of the things that crossed my mind was how Andrei could afford to do this, but personal economic issues tend to be sensitive matters so I didn't presume to ask. It seems that someone else asked it (very directly) on reddit, and Andrei replied. His answer is basically that he's taking a large pay cut to do this: https://www.reddit.com/r/programming/comments/3ioy9b/andrei_alexandrescu_c_guru_leaves_facebook_to/cuip1pd Given the implicit donation (the financial opportunity cost) that Andrei is making to D, I just wanted to say: thank you. But wouldn't his Facebook stock alone allow him to live comfortably with no job? I think it is a good decision when you have reached financial independence to do what you most want to do.
Re: Moving forward with work on the D language and foundation
On Friday, 28 August 2015 at 13:08:36 UTC, Chris wrote: On Friday, 28 August 2015 at 12:28:43 UTC, Russel Winder wrote: On Thu, 2015-08-27 at 16:01 +, BBasile via Digitalmars-d-announce wrote: […] That's courageous, particularly past 50 yo. It's a different culture, past 50 yo in Europe people choose security, but in USA, past 50 yo some people still take the risk to try something new. Awesome. I say "bollocks" to your accusation that Europeans post 50 are a bunch of useless idiots. I call double "bollocks" on the claim that only in the USA do people do anything. I agree (I think it's the first time I agree with you!). Age is a state of mind. I've seen people in their 20ies who only think about a pension plan and watch TV every evening until they fall asleep. But in general, people slow down mentally as they age. Most US companies - and Mark Zuckerberg of Facebook is leading the charge with his FWD.us lobby group - would prefer the government give them the capability to hire an unlimited amount of 25 year old foreign programmers instead of them having to hire 50 year old American programmers.
Re: Moving forward with work on the D language and foundation
On Wednesday, 9 December 2015 at 06:08:01 UTC, Chris Wright wrote: On Wed, 09 Dec 2015 05:40:47 +, Tony wrote: On Friday, 28 August 2015 at 13:08:36 UTC, Chris wrote: On Friday, 28 August 2015 at 12:28:43 UTC, Russel Winder wrote: On Thu, 2015-08-27 at 16:01 +, BBasile via Digitalmars-d-announce wrote: […] That's courageous, particularly past 50 yo. It's a different culture, past 50 yo in Europe people choose security, but in USA, past 50 yo some people still take the risk to try something new. Awesome. I say "bollocks" to your accusation that Europeans post 50 are a bunch of useless idiots. I call double "bollocks" on the claim that only in the USA do people do anything. I agree (I think it's the first time I agree with you!). Age is a state of mind. I've seen people in their 20ies who only think about a pension plan and watch TV every evening until they fall asleep. But in general, people slow down mentally as they age. Most US companies - and Mark Zuckerberg of Facebook is leading the charge with his FWD.us lobby group - would prefer the government give them the capability to hire an unlimited amount of 25 year old foreign programmers instead of them having to hire 50 year old American programmers. 25-year-old people are more likely to work unpaid overtime. They generally get lower salaries. They're less likely to have families, which means lower health insurance costs. They're less likely to think about retirement, which means companies can advertise 401k matching as a competitive benefit without having to pay as much. Companies have the option to offer 50 year olds the same salary they offer 25 year olds, and to not give them 401K plans and reduce or eliminate their medical benefits. The government would support that just as much as they currently support laying off 50 year olds to be replaced by 25 year old foreign non-citizen visa workers or hiring visa workers in lieu of American workers. But they choose not to because none of that changes the fact that the brains of 50 year olds are not as good as the brains of 25 year olds, in the same way that the muscles of 50 year olds are not as good as the muscles of 25 year olds. The two situations are not entirely identical in that acquired knowledge and experience can help to level out the brain side more than it does on the muscle side. But the field of programming is one of the worst, if not the worst, for having past job experience match current job prospects. The assertion that people slow down mentally as they age is pretty vague. While senescence does have mental effects, that wouldn't be hitting significantly at the age of 50 unless you have early onset Alzheimer's or the like. If there are some other effects impacting productivity, there are benefits to an extra 25 years of experience. One thing that comes to mind to refute the contention that senescence would be insignificant at the age of 50 is notable technical achievement. If we were to list the mathematical and scientific discoveries of the past - like calculus and theory of relativity, etc. - how many would have been done by someone at the age of 50 or older? How many milestones in computing history were achieved by someone 50 or older? How many were done by someone over 40? And I think most of the aging process isn't even quality (what would most impact notable discovery) - it's quantity (that is, slower clock cycle). And companies probably have more concerns about quantity of thought than quality.