Well, as the title states we'll be addressing software development topics (mainly in English). Topics will be quick and short and most probably aligned with the training "problems", sorry, programs I am involved in. PS. Some links are "internal" (not publicly available): If you are not able to reach it, google will find you a publicly available information source for sure. Happy trails to you.
sexta-feira, 14 de dezembro de 2018
BOOK: Beautiful Code (Leading Programmers Explain How They Think)
Beautiful code » nvie.com
Quoting (nvie.com):
""The book's concept is simple: each of the 33 chapters is written by a well-respected professional programmer who answers the question: "What is the most beautiful code you've ever seen?" after which they discuss elaborately why they think it's beautiful."
Quoting Amazon.com (this is the link to buy it):
"How do the experts solve difficult problems in software development? In this unique and insightful book, leading computer scientists offer case studies that reveal how they found unusual, carefully designed solutions to high-profile projects. You will be able to look over the shoulder of major coding and design experts to see problems through their eyes. This is not simply another design patterns book, or another software engineering treatise on the right and wrong way to do things. The authors think aloud as they work through their project's architecture, the tradeoffs made in its construction, and when it was important to break rules. Beautiful Code is an opportunity for master coders to tell their story. All author royalties will be donated to Amnesty International."
segunda-feira, 1 de outubro de 2018
SW Design: FB open sources LogDevice
https://www.infoq.com/news/2018/09/logdevice-distributed-logstorage
About how FB uses it and the design features it was made to support (quoting):
"Facebook open sourced their internal distributed log storage project called LogDevice. It offers high write availability using replication, durable log storage and recovery from failure.
Most of Facebook's applications that perform logging require high write availability, durable storage of logs, and workloads that vary in terms of performance and latency requirements. Another important requirement was to be able to survive hardware failures. An older Facebook project called Scribe was more focused on aggregating logs to central storage, and there were cases where data loss could occur. Scribe now uses LogDevice as a log storage backend.
Facebook uses LogDevice internally in its datacenters for stream processing pipelines, distribution of database index updates, machine learning pipelines, replication pipelines, and durable task queues where it ingests over 1TB/sec of data. Although Facebook has built a lot of open source tools to manage LogDevice clusters, they are yet to open source any of those except a basic toolset at this point. The LDShell tool allows cluster management from the command line, and the complementary LDQuery command can be used to view cluster statistics."
(...) "[Other] log storage systems [include] Apache BookKeeper and Apache Kafka.
sexta-feira, 21 de setembro de 2018
SPACE: TESS architecture and SW image processing made
Due to bandwidth limitations, heavy processing of the high res images taken is made at space and only relevant results are sent back. Here is an interesting description of the new NASA's TESS mission (now that the Kepler mission is being phased out due to lack of fuel) that has the goal of finding new exoplanets:
https://arstechnica.com/science/2018/09/get-ready-for-a-flood-of-new-exoplanets-tess-has-already-spotted-two/
Quoting:
"TESS images a single area for roughly a month before moving on to the next. Over the course of a year, this will allow it to capture most of the sky in a single hemisphere; it will switch to the other hemisphere for its second year of observations. Should the hardware still be operational at the two-year mark, it will have imaged most of the sky, and a similar cycle will likely start again.
This cadence creates some trade offs. If a planet's orbit is such that it doesn't pass in front of its star during the month TESS happens to be pointing that way, we'll miss it (unless it's part of the small overlap between separate areas). This will bias us toward finding planets with short orbital periods, where a transit is guaranteed to happen whenever TESS gets around to pointing at it. Short enough orbits mean we can observe multiple transits during that month, confirming the planet's existence without the need for follow-on observations."
quarta-feira, 8 de novembro de 2017
Virtualization: Docker as an helper for dev envs (as well as production scenarios)
Allows independent "containers" to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines (VMs). [Source: Wikipedia]
INTERNAL: Useful for creating and maintaining dev, test and pre-prod envsironments made available to IS project teams as well as Maintenance and Support (M&S)teams, DevOps (additional terms used in this include or development envs, testing environment, qualification environment, maintenance environment) .
But also used in production: e.g. used at the OVERSEE S&R IS for production environment (for fault tolerance, several app servers or web servers at the same production VM for instance, several RDBMS instances, etc.).
Additional information:
https://en.wikipedia.org/wiki/Docker_(software)
quarta-feira, 1 de novembro de 2017
Security: Cloud security?
Sure! How? Some considerations:
https://www.theregister.co.uk/2017/11/01/how_to_secure_a_softwaredriven_technology_stack_in_a_cloud_of_moving_parts/
Quoting:
"That makes securing the APIs important. Start by authenticating the client, and then enforce SSL encryption to ensure that the client is talking to an authenticated server.
Commercial identity and access management (IAM) tools can handle authentication, meaning that you don’t have to code it directly into the API. This has two advantages. The first is that you don’t have to maintain authentication code that has been implemented in duplicate across a range of applications and interfaces. The second is that you can fold the client/server authentication process into a broader user identification system.
Finally, on the API security side proper vulnerability management and patching of the infrastructure hosting the API is a crucial part of the security process. While APIs may be the major touchpoints for developers and operations staff in a cloud environment, it’s still important to understand and secure each of the layers on which they rely."
(...)
Hardening components at each layer of the technology stack is important. Virtual machines should be security hardened, as should containers.
Other aspects of the cloud stack that should be hardened include your servers, applications and underlying databases. Automate compliance by codifying the rules for hardening your system as configuration parameters into your software. This will be more efficient than imposing security rules as written policies that business departments can ignore.
The hardened configuration can be audited at set intervals to ensure that the system is taking the security measures it is supposed to. If there are any problems, you can use configuration management tools to correct things and ensure that your cloud-based infrastructure is compliant with the necessary rules. This automation concept underpins the DevOps discipline, and it is a crucial part of a cloud deployment.
(...)
"There are broad guidelines you can subscribe to and follow to help secure a cloud-based stack of moving parts. These include the CSA’s Security Guidance for Critical Areas of Focus in Cloud Computing v4.0 that was released in July (...) for OpenStack, Microsoft’s Azure, and Amazon’s AWS.
A mixture of general best practice and platform-specific implementation will help you avoid becoming the next headline."
sexta-feira, 13 de outubro de 2017
SW Design: Composable Apps vs. Monolithic COTS
http://www.computerweekly.com/feature/How-composable-application-can-improve-software-development
Quoting:
"They now talk about the merits of ‘composable’ applications.
Composable applications is the idea that the functional blocks of an application can be decoupled from the complete applications. These individual component parts can then be more finely tuned to create a new application that is ideologically, if not also functionally, greater than the sum of its parts."
sábado, 19 de agosto de 2017
Architecture: Database for complex datasets (Grakn.ai)
https://grakn.ai/pages/overview/index.html
Quoting:
"Introduction to GRAKN.AI
GRAKN.AI is the database for AI. It is a hyper-relational database for knowledge-oriented systems. Grakn enables machines to manage complex data that serves as a knowledge base for cognitive/AI systems.
For an application to be more intelligent, it needs to know more. To know more, an application needs to collect more information. When collecting and integrating more information, the resulting dataset becomes increasingly complex.
What makes a dataset complex?
Data models make datasets complex. Real world models are filled with hierarchies and hyper-relationships, but our current modelling techniques are all based on binary relations. Querying these legacy datasets is challenging, because query languages are only able to retrieve explicitly stored data, and not implicitly derived information.
GRAKN.AI is the database solution for working with complex data that intelligent applications rely on. Grakn allows an organisation to grow its competitive advantage by uncovering hidden knowledge that is too complex for human cognition. The data model can evolve as a business “learns” all while reducing engineering time, cost and complexity."
domingo, 16 de julho de 2017
Architecture: Cubesats explained
Modular architectures (highly reusable designs) allow for the creation of new market segments to explore. A good example are Cubesats:
https://www.space.com/29320-cubesats-spacecraft-tech-explained-infographic.html
Quoting:
"The CubeSat program began in 1999 as a collaboration between California Polytechnic State University and Stanford University. The goal was to design a standard for picosatellites, tiny Earth-orbiting boxes usually with a volume of about 61 cubic inches (1 liter) and a mass of about 2.9 lbs. (1.33 kilograms).
CubeSats are built in a variety of sizes, from 1U (one unit) up to three-plus units. Rails on the edges smooth the ride as the satellite is ejected from the P-POD deployer. Rectangular access doors are arrayed down the side of the satellite."
Architecture: Cutting down exploration costs through redesign
This is more related to Systems Engineering (not software Engineering) but is an interesting effort to drive down system costs (development and operation) through the development of a new, ground breaking architecture to explore the moon, and from there the solar system:
https://www.space.com/37464-moon-express-solar-system-exploration.html
Quoting:
"Therefore, the potential exists to cut space-exploration costs significantly — for example, by an order of magnitude or so on MX-9 missions, Richards said.
"That's when you get a radical price reduction — a collapse, really, of the costs down to hundreds of thousands of dollars a kilogram [of payload to the lunar surface] from the millions that it is today for smaller systems," he told Space.com. "I really hope that we're able to do for lunar access what cubesats did for access to low Earth orbit.""
segunda-feira, 21 de novembro de 2016
DIGEST: Additional Info on SW Design / Architecture - Further Reading
Security topic and the embedded link to the Check List repository:
- http://silvaonsoftware.blogspot.pt/2016/05/sw-design-security-as-design-quality.html
- http://silvaonsoftware.blogspot.pt/2016/07/resource-security-is-process.html
- http://silvaonsoftware.blogspot.pt/2016/08/security-magic-quadrants-for-mss-remote.html
- Slightly off-topic but equally interesting: http://silvaonsoftware.blogspot.pt/2016/11/security-industrial-control-systems.html
- Design patterns: "The index" in Wikipedia is here.
- Several books to read, also called "bibles": The GOF book as well as Code Complete 2.
- Another interesting resource is sourcemaking.com (Design Patterns, Anti-Patterns and Refactoring / Code Smells).
- Performance (and architecture that drives/enables this performance): http://www.javaperformancetuning.com/