Programming Leftovers

-
Gemini Isn’t The Solution To The Broken Web
I’m not sure if you heard, but The Web Is F*cked and techies everywhere are touting the Gemini protocol as its saviour. I disagree. A lot.
When I wrote The Web Is F*cked, I had a number of people reach out asking why I didn’t mention Gemini, as it’s the saviour of the web…apparently.
Well, I didn’t mention Gemini because I think it actually does more harm than good when it comes to the web. Let me explain…
-
Hashset vs Hashmap in Java
The Java programming language has two distinct yet similar types of data containers, HashMap and HashSet . Both use a hash table to store data. A table is a table of values that uses a hash function to determine where to look and store data. This allowsquick access to data because a value does not have to be searched. Instead, the hash function can provide the exact location of the value. Despite so much use of hash tables, HashMap and HashSet are quite different from each other.
-
Java assert
Assertion in Java is a statement based on the reserved word, assert, having a boolean expression and ending with a semicolon. It happens that certain conditions in a program may prevent it from working properly. The assert statement checks if such conditions exist in a program. Java assert is explained in this article.
-
How do You write Comparable in Java?
Examples of Java lists are; Vector, Stack, AttributeList, ArrayList, and LinkedList. The Java Collections class has overloaded methods to sort a list of predefined objects. The Java Arrays class has overloaded methods to sort an array of predefined objects.
The predefined sort() methods are to sort predefined objects. What about user-defined objects? Java has an interface called Comparable. An interface is a kind of class whose methods are declarations without definitions (bodies). So, a class must be implemented from an interface for the methods to be defined (given bodies). From the implemented class, objects can be instantiated from a name given by the programmer.
Java has a predefined Comparable class. The sort() methods in Collections and Arrays use the predefined comparable class to sort predefined objects. However, in order to sort a list or array of user-defined objects, the programmer has to implement (define) a user Comparable class from the Comparable interface. This user implemented (defined) class enables the sorting of user-defined objects in a list or array. So, a predefined Comparable class enables sorting of predefined objects, while a user-defined Comparable class enables sorting of user-defined objects. User-defined objects are not literals, so a class of user-defined objects needs its own user-defined Comparable implementation.
This article illustrates how to write Comparable in Java.
-
Hashtable in Java
A hash table is for key/value pairs. Internally, the values are stored in an array. Each key is converted into an index of the array. This conversion is known as hashing. It is done by a hash function internally. In other words, the keys do not have to be stored. All that is the hash-table, in java and in other computer languages. This article explains two constructors of the Java hastable and its commonly used methods.
-
How AJAX works
AJAX comprises a set of useful web development techniques utilized to develop dynamic and speedy web pages. Behind the scenes, it shares small chunks of the data, permitting the web pages to be updated asynchronously. This states that by using AJAX, HTML page elements will be updated without reloading.
This write-up will discuss the components of AJAX and how AJAX works. We will talk about the working of AJAX in some top web-based applications. Moreover, a comparison between the conventional and AJAX model will be provided. So, let’s start!
-
Sunsetting gzip substitutes availability
Starting next month (2022/03/01), the build farm known as ci.guix.gnu.org will no longer offer gzip-compressed binary substitutes. The Guix daemon has known to use lzip for substitutes since 2019; unless you are running a very outdated daemon, you have no need to worry about this change.
This idea was first discussed about a year ago, when it was found that gzip-compressed substitutes accounted for about only 1% of the downloaded substitutes. Since then, the daemon has gained support for zstd on top of gzip and lzip, and the build farm has happily generated compressed substitutes for all of these compression schemes.
-
I would like a job writing Haskell
Perhaps someone out there wants to take a chance on a senior programmer with thirty years of experience who wants to make a move into Haskell.
-
Shockingly Pragmatic | Coder Radio 452 | Jupiter Broadcasting
Mike makes a shocking admission, and Chris wishes he had a time machine.
-

- Login or register to post comments
Printer-friendly version- 2268 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago