Tux Machines
Posted by Roy Schestowitz on Oct 28, 2022
=> today's leftovers | Games: Steam Deck UI, Vulkan, Harmony's Odyssey, and More
Whitespace is the space between two printable characters. It can either be within a horizontal line or vertically separating lines. In other words, space between words, any blank lines, the nbsp tag along with tabs can be considered as whitespaces. The blank spaces at the start and/or at the end of the lines are also considered whitespaces.
=> ↺ Shell Script Best Practices
This article is about a few quick thumb rules I use when writing shell scripts that I’ve come to appreciate over the years. Very opinionated.
=> ↺ Learn to program in Python with our online courses
If you’re new to teaching programming or looking to build or refresh your programming knowledge, we have a free resource that is perfect for you. Our ‘Learn to program in Python’ online course pathway is for educators who want to develop their understanding of the text-based language Python. Each course is packed with information and activities to help you apply what you learn in your classroom teaching.
=> ↺ About my proposal for the Django Core Sprints
The first Python community I ever participated in was that of the Zope and Plone developers and I remember from that time on how they occasionally organized sprints for a few days to work together on internal issues. The idea has remained in my mind over the years, I have seen other communities organize similar events and I think perhaps I have mentioned the idea in an impromptu way to some members of the community.
=> ↺ How to Install R on Debian 11
Let’s see how you can leverage the power given to you by R by installing it on Debian 11.
=> ↺ Write documentation like you develop code | Opensource.com
Many engineers and craftspeople are particular about their tools. To do a job well, you need the best tools and the skills to use them. The best tools in software development can be very powerful when applied to other kinds of digital creation. The Docs as Code approach is a great example. Docs as Code entails writing documentation using the same tools and workflows used for developing code. Proponents of Docs as Code report that this method leads to better documentation while easing the workload of the people who write it.
[...]
The tools known and loved by engineers are very good tools, but they are useful for all sorts of other projects too. For documentation, they contribute valuable efficiency, especially when you need your documentation to be moving at the same speed as your development teams. All the tools discussed here are open source, so you can try them for yourself, deploy them for a huge global team, or anything in between. May your docs process be as smooth as any code process.
=> ↺ Dirk Eddelbuettel: RcppAnnoy 0.0.20 on CRAN: Maintenance
Another minor maintenance release, now at version 0.0.20, of RcppAnnoy has arrived on CRAN. RcppAnnoy is the Rcpp-based R integration of the nifty Annoy library by Erik Bernhardsson. Annoy is a small and lightweight C++ template header library for very fast approximate nearest neighbours—originally developed to drive the Spotify music discovery algorithm.
This release only contains internal changes to please, respectively clang-15 and (macOS) Xcode 14 (one of which PRed upstream too). No changes in package functionality. Detailed changes follow.
You can get “fast” by syncing files and doing incremental compilation tricks. Webpack dev server is probably the best example of this. You can get even faster if you hook the entire loop up to a file-watching trigger — automatically debouncing and triggering background compilation and deploys. However, an optimized runtime that’s completely different than a production environment loses much of its benefit. Most of these “fast” tools are specific to a framework or language, which limits their usefulness.
Why not have both, fast and correct?
=> ↺ Book Review : Template Metaprogramming with C++
I have spent the last few years programming often in C++. The C++ langage is probably one of the hardest to master. I still learn something new every week. Furthermore, C++ is getting upgrades all the time: C++17 was a great step forward and C++20 brings even more exiting improvments.
=> ↺ What if the team hates my functional code?
We’ve now written this code five different ways. But notice what we haven’t done. We haven’t introduced any side effects. We’re still working with pure functions that each do one small thing. We haven’t added any shared mutable state. And because we haven’t done these things, we can still be confident about our code. It’s still easy to test. It’s still ‘functional.’
Someone might be wondering, though, why not jump straight to the fourth or fifth version then? Why not make the code as readable as possible for everyone?
That’s a reasonable question. In fact, it’s more than reasonable, it’s admirable. It’s good to make things accessible. But, again, it comes down to the purpose and audience you’re writing for. We don’t start a physics paper with a recap of the laws of thermodynamics. If you’re writing an academic paper in physics, you expect the audience to know those. And to include them would be tedious for the readers. It would make their life harder, not easier. And the same thing goes for writing code. Different audiences will prefer different styles. And different people will need help with different aspects of the code.
On the Keyword Generics Initiative we spend a lot of time talking about, well, keyword generics! We're working on designing a system which works with Rust's various effects, which are represented through keywords. And sometimes we discover interesting interactions or meanings of keywords.
Previously I've written about the meaning of unsafe, showing how it actually is a pair of keywords whose meaning depends on whether it's in caller or definition position. const shares some similarities to this, and in this post we'll be looking closer at the different uses of const.
By default, computer programs are executed sequentially, usually line-by-line. Although this is very efficient, you may need to run multiple processes simultaneously or control the flow and runtime of your programs for numerous reasons. Luckily, Go gives us a way to run various processes concurrently or in parallel. Concurrency comes in handy for speed, process synchronization, and resource utilization.
=> ↺ The pheatmap function in R
The pheatmap function in R, the pheatmap function gives you more control over the final plot than the standard base R heatmap does.
A numerical matrix holding the values to be plotted can be passed.
=> gemini.tuxmachines.org This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB