Programming Leftovers
-
Polymorphism and other important aspects of inheritance
This was in fact too much of a hot take, because I left out something that's sufficiently important that it keeps being reinvented. This is what I'll call data inheritance or embedding. One version of this embedding is done ad hoc in C through, for example, preprocessor tricks or 'struct at start' literal embedding. Go has a more thorough version of C's struct embedding (see Struct types in the specification), where the embedded thing is more transparently visible than you normally get in C, where fields and methods in the embedded thing can be promoted to be accessed as if they were part of the struct.
-
Towards Technical CEOs
In software companies, almost every decision has technical implications. Those choices get compounded over time, accumulating technical debt or future-proofing infrastructure. Understanding the technology more can lead to creative strategic options: commoditizing your complement, api warfare, programming to the interface, and embrace/extend/extinguish.
-
New R Package For HTTP Headers Hashing
While effective, HHHash’s performance relies heavily on the characteristics of the HTTP requests, so correlations are typically only established using the same crawler parameters. Locality-sensitive hashing (LSH) could be used to calculate distances between sets of headers for more efficient comparisons. There are some limitations with some LSH algorithms (such as the need to pad content to a minimum byte length) that make the initial use of SHA256 hashes a bit more straightforward.
-
The Doyle spiral with R
It also returns a matrix providing the centers and the radii of the circles, and the color index of each circle. This allowed me to plot the Doyle spiral in 3D with rgl: [...]
-
How to Compile and Run C/C++ Program in Ubuntu
Ubuntu is getting popular in programming for developers because of being a free and open-source operating system and most of the programming software and compiler
-
Rose Hudson: GSoC status report 4
Some would call this whining - skip this section if you're here for technology :)
You're not supposed to make yourself work when you don't have energy to because you'll feel bad. People have tried telling me this and I've tried listening but to really take it on board I had to figure out what low energy actually feels like, so here we are, skipping a week of status reporting and holding a suspiciously high Factorio play time. I spent some of that play time making a cool blue circuit factory! Downtime is a good idea, hopefully - we'll find out next week whether it worked.
It's surprising that one of the hardest problems given to me by the Fates has been fighting against myself, which sounds overly dramatic but in a literal sense is true. I would be moving faster if I felt up to it, but I don't feel up to it because I moved too fast recently. It's my fault because I wore myself out, but it's not my fault to rest when I need to, so instinctively I remain undecided on whether it's my fault. Sadly this isn't a balance that I've learned to strike, at least not for large scale work that I care about.
-
Reactive database access on the JVM
A couple of years ago, Reactive Programming was all the rage, but it had one big issue: reactive stopped as soon as you accessed a SQL database. You had a nice reactive chain up to the database, defeating the whole purpose. Given the prevalence of SQL databases in existing and new apps, one couldn’t enjoy the full benefits of Reactive Programming but still pay the full price of complexity.
-
Pandas Add Index
To add an index to the Pandas DataFrame, the “dataframe.set_index()” method or the “dataframe.index()” attribute is used in Python.
-
Pandas Add Row to DataFrame
To add/insert a row to Pandas DataFrame, the “dataframe.loc”, “pandas.concat()”, and “dataframe.append()” function is used in Python.
-
Reverse a String in Python: Practical Examples
Python, a versatile and powerful programming language, offers a plethora of tools and techniques for manipulating strings. One such operation is string reversal, which, while seemingly simple, can be performed in various ways, each with its unique benefits and use cases.