from the world's big
5 Programming Languages Everyone Should Know
Programmer Larry Page offers language suggestions to amateur programmers who might not know exactly where to start.
Larry Wall is the computer programmer responsible for creating Perl, a powerful general-purpose programming language known for its strengths in text processing. Wall, whose graduate work was in linguistics, designed Perl in 1987 for reports processing and continues to oversee the language's development according to the motto "Larry is always right, even when he was wrong." He also originated the three canonical "virtues" of a good programmer: laziness, impatience, and hubris.
Question: What are the five programming languages everyone, even non-programmers, should know about and why?
There are heavier-weight object-oriented languages and the elephant in the room is sort of Java, you can't really make a list of modern languages without talking about it. Java is sort of the Cobalt of the 21st century, I think. It's kind of heavyweight, verbose, and everyone loves to hate it, though not everyone will admit that. But managers kind of like it because it looks like you're getting a lot done, you know, if 100 lines of Java code accomplish a task, then it looks like you've written 100 lines, even though in a different language, it might only take 5 lines. You know, it's like, you know, you can eat a 1-pound steak or you can eat, you know, 100 pounds of shoe leather and you feel a greater sense of accomplishment after the shoe leather, but, you know, maybe they're some downsides.
But it also, because it is sort of considered an industrial language and programmers are sort of interchangeable parts, managers like it for that reason, and for that reason, a lot of Java jobs have been outsourced from the United States.
Oh, what other languages? I think going in a different direction, coming more from academia, we have a language like Haskell, which we call a functional programming language. That means function in a mathematical sense, not in the sense the other languages are dysfunctional. But a function mathematically has an input and an output and it maps to, you know, with a great deal of mathematical certainty what those are. Haskell is one of those languages that mathematician-type-minded people love; it's sort of a language for geniuses, by geniuses. So you should probably know about it, if only to be able to say, "Well, is this kind of like Haskell?" And if so, then you know you have to hire some really smart people to program in it. Haskell is sort of a modern kind of Lisp in that sense.
What else? Well, we can't leave off modern languages without talking about C. The C language, that’s just spelled with the letter C, is actually about 40 years old, but people have tried to replace C with other languages that are like it and have by and large not succeeded because C is a very minimalistic language and very close to the metal, as we say, on a machine, and lets you get down and do very fine grain stuff, very efficiently, but it's a lot of hard work. But once you've done that work, you can run it pretty much everywhere. So almost all the other languages that you see, Java, Perl, whatever, actually if you look down underneath, they're actually implemented in C, or in a closely related language. So that continues to be a very fundamental language, if only because everyone is trying to reinvent it and not succeeding in doing so.
And finally, for a fifth language, well, you'd probably want to pick one of the scripting languages. There's several to choose from, there's Python, there's Ruby, but of course, I am prejudiced in favor of Perl, because I think it has the liveliest community and because we have intentionally been redesigning it lately to leapfrog all the other languages. For the last number of years, we've been redesigning it to out all the warts that we've noticed over time. And we figured it was just our one chance to break backward compatibility, break the things that need breaking, keep all the things that make Perl, Perl, keep it a joy to use, and with this redesign, make it a language that will be able to be useful and enjoyable for decades. And so I'd recommend Perl, but I'm known to be prejudiced in the matter.
Java is "heavyweight, verbose, and everyone loves to hate it," but programmer Larry Wall still thinks you should know it. In this video, he offers suggestions for people interested in learning languages, as well as suggestions for those significantly less invested in computer programming.
Join The Daily Show comedian Jordan Klepper and elite improviser Bob Kulhan live at 1 pm ET on Tuesday, July 14!
Gender and sexual minority populations are experiencing rising anxiety and depression rates during the pandemic.
- Anxiety and depression rates are spiking in the LGBTQ+ community, and especially in individuals who hadn't struggled with those issues in the past.
- Overall, depression increased by an average PHQ-9 score of 1.21 and anxiety increased by an average GAD-7 score of 3.11.
- The researchers recommended that health care providers check in with LGBTQ+ patients about stress and screen for mood and anxiety disorders—even among those with no prior history of anxiety or depression.
Study findings<p>For the study, <a href="https://link.springer.com/article/10.1007/s11606-020-05970-4" target="_blank">published in the Journal of General Internal Medicine</a><em>, </em>Flentje and her team evaluated survey responses from nearly 2,300 individuals who identified as being in the lesbian, gay, bisexual, transgender, and queer (LGBTQ+) community. Most of the participants were white, while nearly 19 percent identified as a racial or ethnic minority. Multiple genders were represented with cisgender women (27.2 percent) and men (24.6 percent) making up a majority of the participants. Sixty-three percent had been assigned female at birth. For the most part, participants identified their sexual orientations as queer (40.3 percent), gay (36.5 percent), and bisexual (30.3 percent).</p><p>The JGIM study participants were recruited from the 18,000-participant <a href="https://pridestudy.org/" target="_blank">PRIDE Study</a> (Population Research in Identity and Disparities for Equality), which is the first large-scale, long-term national study focusing on American adults who identify as LGBTQ+. It conducts annual questionnaires to understand factors related to health and disease in this population. </p><p>Participants filled out an annual questionnaire (starting in June 2019) and a COVID-19 impact survey this past spring. Flentje noted that on an individual level, some people may not have experienced a big change in anxiety or depression levels, but for others there was. Overall, depression increased by a <a href="https://patient.info/doctor/patient-health-questionnaire-phq-9" target="_blank">PHQ-9 score</a> of 1.21, putting it at 8.31 on average. Anxiety went up by a <a href="https://www.mdcalc.com/gad-7-general-anxiety-disorder-7" target="_blank">GAD-7</a> score of 3.11 to an average of 8.89. Interestingly, the average PHQ-9 scores for those who screened positive for depression at the first 2019 survey decreased by 1.08. Those who screened negative for depression saw their PHQ-9 scores increase by 2.17 on average. As for anxiety, researchers detected no GAD-7 change among the study participants who screened positive for anxiety in the first survey, but did see an overall increase of 3.93 among those who had initially been evaluated as negative for the disorder. </p>
Risks among gender and sexual minorities<span style="display:block;position:relative;padding-top:56.25%;" class="rm-shortcode" data-rm-shortcode-id="fc3fd1ae68b77bbbf58a6995638d6d65"><iframe type="lazy-iframe" data-runner-src="https://www.youtube.com/embed/EnUqDjCqg0A?rel=0" width="100%" height="auto" frameborder="0" scrolling="no" style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe></span><p>The LGBTQ+ community is a vulnerable population to mental health concerns because of their fear of stigmatization and previous discriminatory experiences.</p> <p>Previous research by the Human Rights Campaign has found "that LGBTQ Americans are more likely than the <a href="https://medicalxpress.com/tags/general+population/" target="_blank">general population</a> to live in poverty and lack access to adequate medical care, paid <a href="https://medicalxpress.com/tags/medical+leave/" target="_blank">medical leave</a>, and basic necessities during the pandemic," said researcher Tari Hanneman, director of the health and aging program at the campaign.</p> <p>"Therefore, it is not surprising to see this increase in anxiety and depression among this population," Hanneman said in the release. "This study highlights the need for <a href="https://medicalxpress.com/tags/health+care+professionals/" target="_blank">health care professionals</a> to support, affirm and provide <a href="https://medicalxpress.com/tags/critical+care/" target="_blank">critical care</a> for the LGBTQ community to manage and maintain their mental health, as well as their physical health, during this pandemic."</p>
What should health care providers do?<p>The authors of the study recommend that health care providers check in with LGBTQ+ patients about stress and screen for mood and anxiety disorders in members of that community—even among those with no prior history of anxiety or depression.</p><p>As cases of COVID-19 continue to mount, the sustained social distancing, potential isolation, economic precariousness, and personal illness, grief, and loss are bound to have increased and varied impacts on mental health. Effective treatments may include individual therapy and medications as well as more large-scale coronavirus support programs like peer-led groups and mindfulness practices. </p><p>"It will be important to find out what happens over time and to identify who is most at risk, so we can be sure to roll out public health interventions to support the mental health of our communities in the best and most effective ways," said Flentje.</p>
What we know about black holes is both fascinating and scary.
- When it comes to black holes, science simultaneously knows so much and so little, which is why they are so fascinating. Focusing on what we do know, this group of astronomers, educators, and physicists share some of the most incredible facts about the powerful and mysterious objects.
- A black hole is so massive that light (and anything else it swallows) can't escape, says Bill Nye. You can't see a black hole, theoretical physicists Michio Kaku and Christophe Galfard explain, because it is too dark. What you can see, however, is the distortion of light around it caused by its extreme gravity.
- Explaining one unsettling concept from astrophysics called spaghettification, astronomer Michelle Thaller says that "If you got close to a black hole there would be tides over your body that small that would rip you apart into basically a strand of spaghetti that would fall down the black hole."
The team caught a glimpse of a process that takes 18,000,000,000,000,000,000,000 years.
- In Italy, a team of scientists is using a highly sophisticated detector to hunt for dark matter.
- The team observed an ultra-rare particle interaction that reveals the half-life of a xenon-124 atom to be 18 sextillion years.
- The half-life of a process is how long it takes for half of the radioactive nuclei present in a sample to decay.
A new study looks at what would happen to human language on a long journey to other star systems.
- A new study proposes that language could change dramatically on long space voyages.
- Spacefaring people might lose the ability to understand the people of Earth.
- This scenario is of particular concern for potential "generation ships".