Originally posted on infoworld. From little-known scroll-snap properties to astonishing new color palettes, here are seven Cascading Style Sheets updates you won’t want to miss. Cascading Style Sheets (CSS) first dropped in 1996, and it remains an essential, evolving part of the web development stack. Like other living languages, CSS is constantly introducing new features in...
Tag: programming
JDK 19: The new features in Java 19
Originally posted on infoworld. Virtual threads, pattern matching for switch expressions, a vector API, and a Linux/RISC-V port are slated for Java 19, a non-LTS release of standard Java due in September. Java Development Kit 19, due this September, has just had a seventh feature proposed for it: structured concurrency, to simplify multithreaded programming. Structured concurrency joins...
Exploring Scopes and Closures in Python
Originally posted on realpython. Have you been wondering how scopes and closures work in Python? Maybe you’ve just heard about object.__closure__, and you’d like to figure out what exactly it does. In this Code Conversation video course, you’ll use the debugger Thonny to walk through some sample code and get a better understanding of scopes and closures in...
Go: The language of cloud-native development
Originally posted on sdtimes. The Go programming language is continuing on a path of accelerated adoption and is beloved by the developers that use it. This is evidenced by several recent developer surveys, as well as sentiments expressed by developers who use the language. In JetBrains’ 2021 State of Developer Ecosystem report, Go was among the top...
8 great new JavaScript language features in ES12
Originally posted on infoworld. ECMAScript 2021 highlights include replaceAll(), promise.any(), AggregateError, and new logical assignment operators, for starters. Let’s dive in. The JavaScript language specification, also known as ECMAScript or ES, is a living document, modified every year in response to evolving needs. While JavaScript started as a scripting language, the ECMAScript specification overview notes that...
Programmatic SEO with Next.js
Originally posted on dev. This article will cover one of the hottest terms today in the marketing world – Programmatic SEO, and show real-life examples using Next.js. What is Programmatic SEO? In short, we are leveraging code to generate organic landing pages at scale, specifically for SEO. Remember how when you search Google for the best romantic...
8 Sweet Treats in Modern C#
Originally posted on dev. 8 Sweet Treats in Modern C# C# through the Ages Many, many eons ago ✨, C# ’twas but an archaic, OOP focused language. Alas, ’tis no more! Many updates and feature requests later C# has evolved, shedding the object focused shackles of its past, becoming a modern, functional, programming language. Here are 8 🔥 sizzling 🔥 features to...
A Complete Guide to Python Dictionaries for Beginners
Originally posted on dev. Table of Contents Introduction Definition Creating Python dictionary Accessing dictionary items Changing and Adding Values Removing Items Looping through a Dictionary Dictionary Methods To Sum It Up Introduction Python Dictionary is a composite data type. It is an ordered collection of data values that is used to store them. Each Dictionary...
How to Write SQL in Native Python
Originally posted on kdnuggets. If the idea of being able to link with SQL databases and define, manipulate, and query using Python sounds appealing, check out the SQLModel library. Do you write a lot of SQL? Do you end up calling a lot of this SQL from within Python? Does the idea of being able...
Why do we use Hello World? – the history behind it
Originally posted on dev. Hello World! Oh wait… Hello everyone! I got bored today and did some intense research on the history of Hello World!. My mission (of finding out why us programmers use “Hello World!” instead of something like a simple “Hi”, “Test” or random key spam) succeeded and I felt like sharing this truly...
Top coders say these skills will give kids a head start in the industry
Originally posted on cnbc. Jobs in programming continue to be lucrative and in demand, and there are a number of skills that kids can pick up to ensure they have the best chance of succeeding in the industry. There’s no shortage of roles in programming. In fact, according the U.S. Bureau of Labor Statistics’ occupational outlook...
Have you tried the unpack operator in python?
Originally posted on dev. The one thing, which I love in Python is its unpack operator (* and **). This operator can be used with any iterable(list, dictionary, tuple, etc). It makes the code very elegant, adds performance to the code and I can do a ton of things using it. Here are some of...
How to write performant React code: rules, patterns, do’s and don’ts
Performance and React! Such a fun topic with so many controversial opinions and so many best practices flipping to be the opposite in just 6 months. Is it even possible to say anything definitive here or to make any generalized recommendations? Usually, performance experts are the proponents of “premature optimisation is the root of all...
Meta’s Bean Machine: The Hot Topic In Probabilistic Programming
Originally posted on analyticsindiamag. Through probabilistic modelling, engineers and data scientists can account for random events in future predictions while measuring different uncertainties. One of the biggest challenges of this decade is solving uncertainty, ethical and explainable problems in the thousands of machine learning models we interact with daily. Meta, formerly Facebook, announced the release...
What is infrastructure as code? Automating your infrastructure builds
Originally posted on infoworld. Treating computing infrastructure as code is the smart and modern way to provision software in the cloud. Here’s what it is and why it’s better. As more and more organizations move to the cloud, the skill of knowing how to provision and configure a physical server is becoming less relevant to how...
React Hooks from scratch
Originally posted on dev. What are Hooks React hooks are like Anchor ( same as what ships drop in the ocean to attach the ship and ocean floor) between React state (ocean floor) and life-cycle features ( ship ) of functional components. Only work with function based components, not with class based components. Both arrow...
11 Useful Python One-Liners You Must Know
Originally posted on makeuseof. Python One-Liners can help you perform complex tasks with just one line of Python code. Here are some of the most useful ones to know! Python is known for its short and clear syntax. Due to the simplicity of Python, it’s sometimes referred to as “executable pseudocode”. You can make Python...
Programming in Ruby: A critical look at the pros and cons
Originally posted on searchapparchitecture.techtarget. While Ruby showcases an impressive spread of beneficial features, there are still specific shortcomings that may explain why its adoption numbers have been conspicuously erratic. Since its release in 1995, programmers have used Ruby for both web development and higher-level server management projects. Whether a novice or veteran, Ruby and the...
Python 3.10 is finally adding some much-needed features
Originally posted on techradar. The next stable version of popular open source programming language, Python 3.10, has been released, bringing with it a host of new syntax and typing features that’ll appeal to long-time developers. Python 3.10 follows the languages’ 30th anniversary earlier this year in February 2021, and though it doesn’t have a long list of new features,...
7 Algorithms Every Programmer Should Know
Originally posted on makeuseof. These algorithms are essential to every programmer’s workflow. As a student of programming, you’ve likely learned plenty of different algorithms throughout the course of your career. Becoming proficient in different algorithms is absolutely essential for any programmer. With so many algorithms, it can be challenging to keep track of what’s essential....