You are here

Ingegneria del Software

Java Was Supposed to Free Us From the Operating System. Today, Codename One Is Getting There

Translate this article

A recent private conversation reminded me of a misunderstanding that has followed Java for decades. The person I was talking to had associated Java with the browser, with JavaScript, with invasive scripts, with old plugins, with poor privacy, and with the general feeling that modern computing often forces users into systems they don’t control.

That confusion is understandable. The names are similar, old browsers really did support Java applets, browser plugins really did become a source of security and usability problems, and Java’s historical promise of “write once, run anywhere” was often experienced by end users as “install this runtime before anything works”.

But that’s not the whole story. In fact, it may be the wrong story.

Java wasn’t born to make users dependent on a runtime. Java was born to reduce dependence on operating systems. Its deepest promise wasn’t that every user should manually install Java. Its promise was that software shouldn’t have to be rewritten from scratch for every platform, every vendor, and every device category.

For a long time, that promise was only partially fulfilled. Today, however, Codename One is approaching it from a different angle: Java or Kotlin for the developer, native applications for the user, and a single codebase that can target mobile, desktop, and web environments.

The Name Collision That Never Went Away

The first misunderstanding to remove is simple but persistent: JavaScript is not Java. MDN’s JavaScript documentation explicitly warns not to confuse the two languages: they have different syntax, semantics, execution models, ecosystems, and roles in software development.

JavaScript is the scripting language of the web browser. When we open a modern website, JavaScript is typically what makes the page dynamic: menus, forms, interactive maps, client-side validation, single-page applications, live updates, animations, and countless other behaviours. It is also true that disabling JavaScript often makes modern websites unusable, because the contemporary web has become deeply dependent on it.

Java is a different language and a different platform. It is statically typed, class-based, compiled to bytecode, and historically associated with the Java Virtual Machine. It is widely used on servers, in enterprise systems, in tools, in Android’s history, and in many kinds of long-lived software infrastructure. The two languages share a confusingly similar name, but they should not be treated as variations of the same technology.

This name collision has damaged Java’s reputation among non-specialists. For many users, “Java” became a vague word associated with “things running inside the browser”. But what ran natively inside browsers was JavaScript. Java’s browser story was much more specific: it was mostly the story of applets.

Browsers Were Not “Made in Java”

The mainstream browsers of the late 1990s and early 2000s — Netscape Navigator, Internet Explorer, Opera, Safari, Mozilla, and later Firefox — were not generally “made in Java”. They were system-level applications, mostly written in compiled languages such as C and C++, because they had to integrate tightly with the operating system, handle networking and rendering efficiently, and run on hardware that was far less capable than what we take for granted today.

Java’s relationship with those browsers was different. Browsers could load Java applets: small Java programs embedded inside web pages and executed through a Java Runtime Environment and a browser plugin.

In the context of the web of the second half of the 1990s, this made sense. HTML was limited, CSS was young, JavaScript was immature, browser compatibility was chaotic, and many interactive features that we now consider ordinary were not yet available as native browser capabilities. A Java applet could provide interactive graphics, educational tools, small games, chat clients, visualizers, and custom interfaces that plain HTML could not easily deliver.

For a moment, applets looked like a possible future of web applications.

But they weren’t the future.

Why Applets Lost the Web

Java applets had real problems:

  • startup could be slow;
  • the runtime could feel heavy;
  • browser integration was inconsistent;
  • security dialogs were confusing;
  • plugin versions varied;
  • compatibility was fragile.

From the user’s point of view, the experience often felt alien to the page around it: a rectangular foreign object embedded into a website, waiting for a runtime to wake up.

This doesn’t mean the idea behind Java was wrong. It means the deployment model was wrong for the web.

Flash, later owned by Adobe, became more successful in the browser for animations, games, video, advertising, and rich interactive experiences. It had its own authoring tools, a design culture, a timeline-based workflow, and a lower barrier of entry for many designers and creative professionals. But Flash had the same structural weakness: it was also a plugin. It wasn’t the web itself.

The web eventually chose another path. HTML5, CSS3, faster JavaScript engines, SVG, Canvas, native audio and video, WebGL, and later WebAssembly allowed browsers to absorb many of the roles previously delegated to external plugins. Adobe officially ended support for Flash Player on December 31, 2020, and blocked Flash content from running in Flash Player beginning January 12, 2021. OpenJDK’s JEP 504 later removed the Applet API, describing it as obsolete because neither recent JDK releases nor current web browsers support applets.

That wasn’t a defeat of Java as a language. It was the end of a particular client-side deployment strategy.

The Browser Moved On — and That Was Correct

Modern browsers no longer need Java applets or Flash to deliver rich user experiences. CSS can handle many interface animations directly. SVG can represent scalable vector graphics. Canvas can draw dynamic scenes. WebGL and WebGPU can expose hardware-accelerated graphics. JavaScript can coordinate complex user interfaces through browser-native APIs.

This is a better model for the web. A web page should not require an external plugin to show a chart, play a video, animate a menu, or run a small application. Those capabilities belong in the browser platform itself.

But the fact that Java disappeared from the client side of the browser doesn’t imply that Java lost its relevance. It means that Java’s future was elsewhere: servers, tools, enterprise systems, Android-related ecosystems, backend platforms, and cross-platform development models that don’t require end users to install Java manually.

That distinction is crucial. When a Java application runs on a server, users don’t receive Java bytecode in their browsers. They receive HTML, CSS, JavaScript, JSON, images, fonts, video, and other web resources produced by the server. Java remains invisible to the user. It is an implementation technology, not a browser dependency.

The same principle becomes even more interesting in client application development: Java can be the language of the developer without becoming the runtime burden of the user.

The Original Promise Was Still Noble

Java’s original promise was radical: write software once and run it on multiple operating systems. This threatened the traditional dependency between applications and the operating system. If developers could target a cross-platform runtime instead of a single vendor’s platform, the operating system would lose some of its power as a gatekeeper.

This is why Java wasn’t only a technical project. It was also strategically important. In the United States antitrust case against Microsoft, the Department of Justice described Java and Netscape as middleware threats to the Windows monopoly because they could provide alternative platforms for application development. Sun Microsystems’ legal conflict with Microsoft over Java compatibility was part of the same historical tension: a cross-platform Java ecosystem could weaken the gravitational pull of Windows-only software.

Whatever one thinks of the companies involved, the technical ideal remains compelling: developers should not be forced to rewrite the same application separately for every operating system, and users should not be locked into one platform merely because the applications they need exist only there.

That’s the noble side of Java. Not corporate nostalgia. Not plugin nostalgia. Not applet nostalgia. The deeper ideal is practical freedom from platform lock-in.

Where the Old Model Failed

The old Java client model often confused two different goals:

  • portability for the developer, meaning a single codebase that can run across platforms;
  • uniform runtime installation for the user, meaning that the user must have Java installed before the application can run.

The first goal is excellent. The second is where many real-world problems appeared.

For developers, a common runtime was attractive. For users, however, it could become friction: install Java, update Java, worry about security warnings, handle plugin or runtime compatibility, and distinguish between the application and the environment required to launch it. On the desktop, this made many Java applications feel less native than platform-specific alternatives. In the browser, the plugin model eventually became unacceptable.

The lesson is not that Java should abandon its cross-platform ambition. The lesson is that the ambition must be implemented differently.

The user should not have to care that the developer used Java.

The Better Model: Java for the Developer, Native for the User

The better model is this: let the developer write in Java or Kotlin, let the framework abstract the common application layer, and let the build system produce the appropriate output for each target platform.

That changes the meaning of “write once, run anywhere”. It doesn’t mean “ship a generic runtime and hope the user has it” anymore. It means “write one application and generate something that each platform can actually accept as natural”.

On iOS, that means an iOS app. On Android, an Android app. On macOS, a native Mac application. On Windows, a native Windows executable. On the web, a web-compatible target. The developer’s source language and the user’s delivery format no longer have to be the same thing.

This is where Codename One becomes important.

Source Code Recovery Is Not the Same Problem Anymore

There’s also another historical objection to Java that deserves a brief mention. In the early 2000s, during a job interview, I was asked which programming languages I worked with. I answered, first of all, Java. The person interviewing me wasn’t pleased. The objection was roughly this: “We deliver compiled software to our clients, not software from which the source code can be easily recovered”.

At the time, that objection wasn’t entirely irrational. Java bytecode is much easier to decompile than a traditional native binary. If a Java application is distributed carelessly, especially with debug information or without serious obfuscation, recovering human-readable source-like code can be surprisingly easy. I saw this myself years ago, in a legal professional context, when I was asked to recover the source code of a corporate Java application. The task was much simpler than many people would expect.

This isn’t an argument against free software, open-source software, or public-domain software. On the contrary, I personally believe that software released under free licenses, or even into the public domain, often has better long-term prospects than closed-source software. But it would be naive to deny that many companies and independent developers still build part of their business model around keeping their implementation private.

I discussed this issue years ago in a more technical article about reverse engineering Codename One applications. Some details have naturally aged, because the framework has evolved, but the general point remains useful: reverse engineering must be discussed per target platform, per build mode, and per transformation pipeline. A debug Android build, an obfuscated release build, an iOS build, and a web build don’t expose the developer’s original work in the same way.

Codename One changes the practical shape of this problem. The user doesn’t receive the original Java source code, and the final application isn’t simply a classic Java desktop program distributed as bytecode to be run by a local JVM. Depending on the target platform, the application goes through translation, optimization, native compilation, minification, or platform-specific build pipelines. Reverse engineering may still reveal strings, behaviours, protocols, resources, and parts of the generated code. It should never be treated as a substitute for proper security architecture. Sensitive logic and secrets should remain on the server whenever possible.

But recovering the developer’s original Java source code is a very different matter. In this sense, Codename One also answers an old business objection to Java: it lets developers work in Java without necessarily exposing the application in the old, easily decompilable form that many people still associate with Java distribution.

Codename One Reframes Java’s Promise

Codename One is an open-source, commercially supported cross-platform framework for building applications in Java or Kotlin. Its goal isn’t to revive applets or to force the old Java desktop model back into relevance. Its goal is to let developers build applications from a single codebase while targeting iOS, Android, desktop, and web environments.

In practical terms, a Codename One developer works with Java or Kotlin, Maven, a simulator, cross-platform UI components, CSS styling, build tools, and native integration points. The end user doesn’t install Java to use the application. The Java code is a development asset, not a user-facing dependency.

For readers who want a practical introduction, I wrote a Baeldung tutorial on cross-platform Java development with Codename One. That article focuses on hands-on development: project structure, Maven workflow, simulator usage, layouts, styling, persistence, REST integration, and the general mechanics of building a realistic application.

This article has a different purpose. It’s not a tutorial. It is an attempt to explain why Codename One matters historically: it offers a modern answer to a problem Java has carried since the beginning.

Why the Recent Codename One Updates Matter

The recent Codename One updates are especially significant because they move the framework closer to the most defensible interpretation of Java’s original promise: write in Java or Kotlin, but deliver native applications without making the user install a JVM.

The new native Windows port is a major example. Codename One describes it as a standalone Win32 executable generated through ParparVM, Direct2D, and DirectWrite: no JVM, no bundled runtime, and support for x64 and arm64 from one build. This is exactly the kind of result developers wanted in the late 1990s when they kept asking how to compile Java programs to an EXE.

The native Mac application target points in the same direction. A Codename One project can now build a real macOS application through the iOS pipeline, with desktop integration such as a title bar, native menu bar, interactive scrollbars, and desktop notifications, while avoiding the old assumption that a desktop Java app must bundle or require a JVM.

The same wave of updates also introduced a portable 3D graphics API and a gaming API with Box2D physics, alongside cross-platform printing and Apple Wallet support. This matters because cross-platform development shouldn’t be reduced to forms, buttons, and standard business interfaces. If Java or Kotlin can also express richer visual and interactive applications from a shared codebase, the original idea of platform independence becomes much broader.

These updates matter because they attack the old psychological problem directly. Many users and even many developers still hear “Java desktop app” and imagine Swing, AWT, JavaFX, a heavy runtime, and a non-native feel. Codename One is trying to make that association obsolete.

Just as important, Codename One isn’t limiting itself to UI portability. Recent work has brought WebSockets, GraphQL, and gRPC into the core, while the build-time code generation pipeline now includes an OpenAPI client generator, SQLite ORM, JSON and XML mappers, component binding, SVG and Lottie processing, and declarative routing. That’s not merely a way to draw buttons on many screens. It is the outline of a full application platform.

Not Nostalgia, but Continuity

It would be a mistake to present Codename One as a return to the past. The past is not coming back. Applets are gone. Flash is gone. Browser plugins are gone. The web rightly moved toward native browser standards. Users don’t want to install runtimes just to open a page or launch a small utility.

Codename One is interesting precisely because it doesn’t ask us to return to that model.

It keeps what’s valuable in Java: a mature language ecosystem, static typing, a huge developer base, a strong tooling culture, long-term maintainability, and the ideal of cross-platform development. At the same time, it avoids the most damaging part of the old client-side Java experience: exposing the runtime problem to the end user.

In that sense, Codename One isn’t a nostalgic defense of Java. It is a continuation of Java’s best idea through a more appropriate technical architecture.

The Social Value of Cross-Platform Development

There is also a social dimension here that is easy to underestimate.

When every platform requires its own codebase, software development becomes more expensive, more fragmented, and more dependent on large teams. Independent developers, small companies, educators, associations, public-interest projects, and local initiatives often cannot afford separate native teams for iOS, Android, Windows, macOS, and web.

A good cross-platform framework doesn’t merely save time. It can change who is able to build software at all.

Of course, no framework abolishes the power of platform owners. Apple, Google, Microsoft, browser vendors, app stores, SDK policies, signing requirements, and distribution channels still matter. Codename One doesn’t magically remove those constraints.

But it can reduce duplication. It can lower the cost of supporting multiple platforms. It can let a small team produce software that would otherwise require several specialized teams. It can let a Java developer participate in mobile and desktop application development without abandoning years of experience.

That’s why I see Codename One not only as a technical tool, but as a practical form of developer freedom.

What Java Becomes in This Model

In this model, Java is no longer something the user must install. It’s no longer a browser plugin. It’s no longer an applet box inside a page. It’s no longer a visible runtime requirement.

Java becomes a source language, a design environment, an ecosystem, and a way to express application logic that can be transformed into platform-appropriate outputs. The user receives the application. The developer keeps the productivity, structure, and portability of Java.

This distinction is essential. The failure of Java applets did not invalidate Java’s ambition. It invalidated a particular delivery model. Codename One’s strength is that it separates the ambition from that failed delivery model.

Conclusion: Java’s Promise, Reinterpreted

Java was supposed to free us from the operating system. For many years, that promise was compromised by plugins, runtimes, corporate battles, desktop friction, and the limitations of the early web.

But the promise itself wasn’t wrong.

We still need ways to write software without surrendering completely to each platform’s separate technology stack. We still need tools that let developers reuse knowledge, code, architecture, and effort. We still need cross-platform development that doesn’t punish users with awkward installation requirements or non-native experiences.

Codename One is one of the most interesting attempts to make that promise concrete again. Not by putting Java back into the browser. Not by reviving applets. Not by asking users to care about the JVM.

Instead, Codename One points toward a better formulation:

Java for the developer. Native applications for the user. One codebase across platforms.

That isn’t merely a technical convenience. It is the modern version of Java’s original ideal.

(June 18, 2026)

Tutorial Codename One: sviluppo cross-platform moderno con Java 17 e Maven

Translate this article

Questo mio tutorial su Baeldung va oltre il classico esempio introduttivo e presenta Codename One attraverso una vera applicazione Java 17 basata su Maven:

Introduction to Cross-Platform Java Development With Codename One

Invece di concentrarsi su una singola schermata o su una chiamata API isolata, questo tutorial accompagna il lettore nella struttura di un’app completa, Daily Routine, mostrando i pattern che contano nei progetti reali: inizializzazione del lifecycle, contesto applicativo condiviso, navigazione tra form, layout responsive, UIID e styling CSS, localizzazione, persistenza locale in JSON, astrazioni di servizio, test dell’interfaccia, integrazione REST e anteprime su mappa.

Per chi conosce già Codename One, il valore principale del tutorial non è tanto scoprire singole funzionalità del framework, quanto vedere come queste si combinano in un’architettura applicativa manutenibile. Il progetto di esempio separa intenzionalmente il codice UI da persistenza, networking, impostazioni, localizzazione e logica riutilizzabile. I form restano concentrati su rendering e interazione con l’utente, mentre repository, store, servizi e un leggero "AppContext" forniscono una struttura pulita, testabile ed estendibile.

Il tutorial è particolarmente utile come riferimento per costruire applicazioni Codename One in stile production-ready con pratiche Java moderne. Mostra come integrare workflow Maven, funzionalità di Java 17, sviluppo tramite simulatore, theming basato su CSS, storage locale portabile, servizi REST a callback, mappe tramite "BrowserComponent" e test automatizzati in un unico progetto cross-platform coerente. In breve, presenta Codename One non come ambiente per demo minimali, ma come toolkit pratico per sviluppare applicazioni Java strutturate, manutenibili e multipiattaforma.

Come nota finale, ricordo ai miei lettori che negli ultimi anni ho già trattato in molteplici occasioni di Codename One... per chi volesse vedere cosa ho pubblicato, suggerisco questo link.

(9 giugno 2026)

Feedback: Codename One e gli agenti AI sono ormai un’integrazione straordinariamente solida per lo sviluppo reale di app

Translate this article

Per chi desiderasse commentare, questo è il mio post originale in inglese:
https://github.com/codenameone/CodenameOne/discussions/5045

Di recente Shai ha documentato un cambiamento importante nel blog di Codename One: i nuovi progetti Java 17 generati con Initializr ora includono AGENTS.md e una skill di authoring Codename One neutrale rispetto al vendor, così che i moderni strumenti di AI generativa e gli agenti AI possano capire che cos’è Codename One e come lavorarci:

https://www.codenameone.com/blog/skills-java17-and-theme-accents/

Tra ieri e oggi ho condotto un esperimento pratico per verificare che cosa sia effettivamente fattibile con l’attuale stato dell’arte.

Non voglio discutere qui le questioni etiche e lavorative legate all’AI generativa, perché non è questo il luogo adatto per tale discussione. Ne ho già scritto ampiamente sul mio blog, anche in dialogo con l’ingegnere Giulio Ripa:

https://www.informatica-libera.net/

Qui voglio solo riportare un risultato tecnico. Spero anche sinceramente che questo post venga indicizzato dai motori di ricerca, perché penso che dica qualcosa di utile sull’attuale rapporto tra Codename One e lo sviluppo software assistito dall’AI.

L’esperimento è stato questo: ho immaginato una piccola app Android, ma reale, il cui sviluppo includesse diverse complicazioni non banali.

L’app si chiama StreakApp. Tiene traccia delle "serie di studio linguistico" (in italiano solitamente chiamate "slancio" e in inglese "streak", n.d.t.) leggendo l’utilizzo delle app Android in foreground per app come AnkiDroid, Duolingo, Drops, Rosetta Stone, Talkpal e Quizlet.

I requisiti includevano intenzionalmente:

  • Un nuovo progetto Codename One Java 17 generato con Initializr.
  • L’uso di API e convenzioni recenti di Codename One, come documentato nel blog di Codename One. Questo è importante perché l’agente AI doveva lavorare con informazioni molto recenti.
  • Interfacce native. L’AI doveva distinguere tra le API di Codename One e le API native di Android, e poi collegarle correttamente (tramite un'interfaccia Java, n.d.t.).
  • Non ho specificato quali API native Android fossero necessarie, né ho detto all’AI quali build hint di Codename One fossero richiesti. Ho lasciato che fosse l’AI a dedurlo da sola. Doveva gestire correttamente cose come le statistiche di utilizzo Android, l’avvio delle app, android.manifest.queries, le regole keep di ProGuard e i permessi/build hint.
  • Una descrizione dettagliata di ciò che l’app doveva fare, ma senza dettagli implementativi e senza spiegare le best practice di Codename One.
  • Una descrizione verbale generale del layout e dello stile visivo, lasciando le decisioni concrete sull’interfaccia all’AI.
  • Localizzazione in inglese e italiano.
  • Temi chiaro e scuro.
  • Gestione della dimensione del testo da valori piccoli a molto grandi, senza rompere il layout. Questo non è banale in un’interfaccia mobile.
  • Test su dispositivo Android reale durante lo sviluppo. Poiché sono coinvolte interfacce native, il simulatore non è sufficiente.
  • Generazione dell’APK Android tramite il build server di Codename One usando il mio account Codename One.
  • Installazione e aggiornamento automatici dell’APK sul mio dispositivo Android reale collegato via USB.
  • Test visivo sul dispositivo reale, inclusi screenshot, controlli del layout, controlli dei colori e correzioni CSS/Java basate su quegli screenshot.
  • Preparazione automatica della documentazione GitHub, degli screenshot, dei metadati del repository e di una release APK, rimuovendo al tempo stesso dati locali sensibili come il keystore Android e la relativa password.

Il risultato è stato molto buono.

Quasi tutto ha funzionato. L’app è stata creata, compilata, installata e testata ripetutamente dall’agente AI durante lo sviluppo, con pochissimo intervento manuale da parte mia. L’intero processo ha richiesto diverse ore. Durante quel tempo ho perlopiù supervisionato il lavoro e occasionalmente effettuato controlli manuali sul dispositivo, riportando all’AI piccoli problemi o rifiniture.

L’app è ora pubblicata qui, con codice sorgente, documentazione, screenshot e una release APK:

https://github.com/jsfan3/streakapp

C’è stato un bug che l’AI non ha risolto correttamente da sola: aveva frainteso la differenza tra CN.getCurrentForm() e Lifecycle.getCurrentForm() in un punto in cui è importante l’aggiornamento live dell’interfaccia. Ho individuato questo problema con una revisione manuale del codice, dopo di che la correzione è stata semplice. Sto deliberatamente menzionando questo dettaglio. La revisione umana è stata ancora necessaria, e penso che questa sia una buona cosa. Significa che lo sviluppatore umano è ancora parte del processo di sviluppo software, almeno per ora. I futuri modelli AI saranno probabilmente meno facilmente confusi da metodi con lo stesso nome in classi diverse, ma oggi questo tipo di revisione conta ancora.

Il mio verdetto finale da questo esperimento è:

Codename One è un framework Java cross-platform maturo, stabile e completo per lo sviluppo moderno di app reali con AI generativa, agenti AI e un flusso di lavoro guidato dai test.

Questa configurazione può sollevare lo sviluppatore dal dover gestire manualmente ogni dettaglio implementativo complesso, come le interfacce native e i relativi build hint, consentendogli al tempo stesso di mantenere una visione architetturale e complessiva di livello più alto sul lavoro.

A mio avviso, questo è perfettamente allineato con l’attuale rivoluzione nello sviluppo software causata dall’AI generativa.

Nei prossimi giorni userò StreakApp nella vita reale. Se non noterò altro che richieda rifiniture, potrei anche pubblicarla su Google Play.

Due note finali.

Primo, ho già testato Codename One + AI generativa / agenti AI su un progetto più complesso, che conto di pubblicare più avanti come tutorial. Anche in questo caso, ho osservato che l’AI comprende e utilizza le buone pratiche di sviluppo Java, suddivide le classi in pacchetti appropriati e produce codice ragionevolmente organizzato e facile da ispezionare.

Secondo, per questo specifico esperimento ho usato IntelliJ IDEA Ultimate con AI Chat configurata come:

  • OpenAI Codex
  • Modalità agente con accesso completo
  • GPT-5.5, sforzo di ragionamento xhigh

Questa è solo una configurazione possibile. Il punto importante è che Codename One è ora ben posizionato per l’integrazione con i principali strumenti di AI generativa e agenti AI.

26 maggio 2026


Risposta di Shai Almog:

Questo rispecchia praticamente la mia esperienza con l’attuale generazione di agenti AI. Li adoro perché sono così bravi con le cose facili/noiose e rendono possibile il lavoro DAVVERO difficile che richiede lunghe iterazioni/pazienza.

Grazie alla sintassi rigorosa di Java e alla documentazione approfondita, unite ai cicli di test molto rapidi che possiamo offrire nel simulatore, gli agenti possono essere molto più produttivi con Codename One che con qualunque altra piattaforma. A mio modesto parere, questa è una buona cosa. Come piccola azienda era quasi impossibile per noi tenere il passo con concorrenti del calibro di Google; ora puntiamo a superarli. Penso che gli sviluppatori più piccoli/individuali ora abbiano la possibilità di competere con le grandi corporation al loro stesso livello.

Intelligenza Artificiale - Una profonda analisi di Roberto Quaglia

Translate this article

fonte: https://luogocomune.net/30-scienza-e-tecnologia/6253-la-falsa-singolarit%C3%A0-tecnocratica-contro-la-vera-singolarit%C3%A0-tecnologica

La falsa singolarità tecnocratica contro la vera singolarità tecnologica

Articolo tratto dal II volume di Visione TV, intitolato “Il moderno prometeo artificiale

di Roberto Quaglia, 5 Giugno 2023

Quando si profila una tempesta mai vista all'orizzonte, hai voglia a chiuderti in casa e nasconderti sotto le coperte: la tempesta arriverà comunque perché la natura ha deciso così. Abbiamo messo in moto quel vortice di algoritmi che chiamiamo intelligenza artificiale e il turbine ora sta rapidamente montando alle dimensioni di uragano, ed è una tempesta che ci travolgerà inevitabilmente perché ormai così è nella natura delle cose. Buona fortuna a tutti!

Bene, dopo questa umile premessa, in effetti una promessa, proviamo ad affrontare uno degli argomenti più ostici di questo tempo ossia la creazione da parte nostra di una intelligenza artificiale in grado di risolvere tutti i nostri problemi, oppure - chi lo sa - di distruggerci e magari anche estinguerci.

Purtroppo, in gran parte delle discussioni a riguardo si dicono un sacco di scemenze, frutto del fatto che nessuno sa di che cosa si stia parlando. Probabilmente, nemmeno io lo so bene. E ad ascoltare gli stessi progettisti di queste intelligenze artificiali scopriamo con sconcerto che neppure loro lo sanno con esattezza. Ma il problema vero non consiste tanto in ciò che non sappiamo, quanto piuttosto in ciò che non sappiamo di non sapere. È riguardo a questo che ovunque si esagera.

A beneficio degli ultimi arrivati sull'argomento, facciamo quindi un breve riassunto delle puntate precedenti. Già nel 1950 Church e Turing formularono l'ipotesi che una macchina calcolatrice relativamente semplice sarebbe in grado di emulare un cervello umano, a patto di disporre di tempo e memoria infiniti. Ovviamente, questi non sono infiniti, per lo meno dalle nostre parti, quindi, è ovvio che dobbiamo scordarci la semplicità.

Callbacks disponibili in Codename One

Translate this article

In riferimento al corso introduttivo sulla programmazione multipiattaforma con Codename One da me precedente pubblicato, per promemoria personale e per utilità altrui stilo qui una lista dei callback generici disponibili, utilizzabili con espressioni lambda.

SuccessCallback<T>
FailureCallback<T>
OnComplete<T>
AsyncResult<V> (implements both SuccessCallback and FailureCallback)
LazyValue<T> (accepts multiple Object arguments and returns T)
Runnable
RunnableWithResult<T>
RunnableWithResultSync<T>

Codename One Freelancer (Francesco Galgani)

Translate this article

I'm a Full Stack Java Cross-Platform Codename One Developer (iOS, Android, Web-App).

CodenameOne FreelancerYou can download here my resume - See my email here - My page on Fiveer: https://www.fiverr.com/jsfan3/crossplatform-codename-one-app-for-ios-android-webapp

My main skills are:

  • Java (referring to Codename One and Spring Boot APIs)
  • Codename One (client side)
  • Spring Boot (server side)
  • GNU/Linux (both locally and remotely on VPS)

My main previous jobs were:

  • Cross-Platform Mobile App developer, specialized in Codename One, from 2017 to 2020, employed by a small startup
  • Web Developer employed by the International Telematic University Uninettuno, from 2011 to 2018, as creator, developer and administrator of the Students Community.

I'll:

  • discuss the app requirements with you;
  • create an Android app and an iOS app;
  • create a Web-App (Javascript), as extra service;
  • the Basic package includes client-only code, the Standard and Premium package also server-side code (if required);
  • create a custom app from scratch or convert an existing responsive web-site to app;
  • be available in office-hours, weekdays, Italy timezone;
  • allow you to test the app during the development;
  • fix code bugs even after the app is finished (if any bug will be discovered);
  • publish the app backend server on a Ubuntu Server VPS as extra service;
  • send the app to the stores as extra service and with your Google Play account and Apple Developer account; however, after the submission, the stores require time to publish the app that don't depend by me.

I won't:

  • work on unclear, not discussed or too broad requirements;
  • assume any responsibility if the app will be rejected by the stores; however, I'll try to help you in that case;
  • pay your VPS cost, your Google Play account cost, your Apple Developer account cost or any third-party service cost.

Requirements:

Please give me a list of the requirements (as LibreOffice file or Word file). You can attach UI mockups. Each requirement must be as precise as possible. For example: "The tap on the Button xxx will do...", "I want that the app will be available in the languages: ...", "My target device are smartphones only", "I want that the user interface of the first screen is ...", "Native fonts are fine", "I want this img, this text and these buttons", etc.

Programming languages and source codes:

I use mainly Java for the client (the mobile app) and for the backend server.
The client is developed using "Codename One", the server using "Spring Boot".

As extra service, I can give you the source code both of the client and the server, they are Netbeans projects. If you need Android Studio and/or Apple Xcode sources, I can give you also them, but consider that they are the result of the transcompilation of the Codename One project.

More info:

See my page on Fiverr: https://www.fiverr.com/jsfan3/crossplatform-codename-one-app-for-ios-android-webapp
We can also agree a custom offer if you need.

Francesco Galgani,
April 12, 2020

Components disponibili in Codename One

Translate this article

In riferimento al corso introduttivo sulla programmazione multipiattaforma con Codename One da me precedente pubblicato, per promemoria personale e per utilità altrui stilo qui una lista dei Component disponibili per creare le interfacce grafiche.

Il motivo per cui ritengo utile scrivere questa lista è che, nella Developer Guide di Codename One, sez. "The Components of Codename One", non tutti i Component vengono trattati. Aggiornerò questa lista se mi accorgerò di essermi dimenticato qualcosa o se nuovi Component saranno aggiunti alle API.

    Generics
        Component, see also ComponentSelector and Lead Component
        Container, see also Layouts and Safe Areas
        InterFormContainer
        Form, see also "Toolbar", "Right Side Menu" and "Search Mode"
        PeerComponent
        InstantUI
        UIFragment
        CodeRAD
    Containers
        Accordion
        ComponentGroup
        InfiniteContainer
        SwipeableContainer
        SplitPane
        Tabs
        Table
    Labels and Images
        Label
        SpanLabel
        RichTextView (revisited)
        ImageMapContainer
        ImageViewer
        ScaleImageLabel
        FloatingHint
    Buttons
        Button
        SpanButton
        MultiButton
        SpanMultiButton
        ScaleImageButton
        FloatingActionButton (see also FAB as a badge)
        ShareButton
    Toggles
        CheckBox
        RadioButton + ButtonGroup
        OnOffSwitch
        Switch (OnOffSwitch replacement)
    Toggle Lists
        ButtonList
        SwitchList
        CheckBoxList
        RadioButtonList
    Selection
        ComboBox
        Picker
    Text Fields
        TextField
        TextArea
        ClearableTextField
        AutocompleteTextField, and "AutocompleteTextField with images"
        see also: Validator, UIBinding, Lightweight Text Selection
    InputComponent & TextModeLayout
        TextComponent
        TextComponentPassword
        AutoCompleteTextComponent
        PickerComponent
    Media
        MediaPlayer, see also code examples
        AudioRecorderComponent
    Maps
        MapComponent
        MapContainer (Native Maps), see also "Map Component Positioning Revisited"
    Dialogs/Prompts
        InteractionDialog, see also "Picking a Dialog Type"
        Dialog, see also "Popup Dialog"
        Sheet, see also "New Sheet Positioning"
        ToastBar
        Progress + ConnectionRequest, see also "Alternative way to show upload percentage"
    Progress
        InfiniteProgress
        Slider
        SliderBridge + Slider + ConnectionRequest
        CircleProgress
        LoadingTextAnimation
    Advanced
        BrowserComponent
        SignatureComponent
        Calendar, see also Calendar CN1Lib
        Tree
        FileTree
        RSSReader
    Charts 
        ChartComponent
        BarChart
        BubbleChart
        CombinedXYChart
        CubicLineChart
        DialChart
        DoughnutChart
        LineChart
        PieChart
        RadarChart
        RangeBarChart
        RoundChart
        ScatterChart
        TimeChart

Francesco Galgani,
ultimo aggiornamento 18 maggio 2020

Elenco di risorse (perlopiù gratuite) per sviluppatori

Translate this article

In riferimento al corso introduttivo sulla programmazione multipiattaforma con Codename One da me precedente pubblicato, segnalo un elenco di risorse per noi sviluppatori divise per categorie:

https://github.com/ripienaar/free-for-dev

Ricordo che tutto ciò che è utilizzabile tramite un'interfaccia REST è utilizzabile con Codename One.

Francesco Galgani,
6 marzo 2020

Nel 2020 Java 8 è la versione di Java più utilizzata ed è al terzo posto tra i linguaggi di programmazione

Translate this article

In riferimento al corso introduttivo sulla programmazione multipiattaforma con Codename One da me precedente pubblicato, qualcuno potrebbe rimanere perplesso sulla mia scelta di Java 8 sia lato client che lato server.

Orbene, secondo JVM Ecosystem Report 2020, attualmente Java 8 è la versione di Java più utilizzata in assoluto (64%), a seguire Java 11 (25%). Le altre versioni di Java sono quasi inutilizzate. Tra l'altro, Java 8 continua a ricevere aggiornamenti. In ambito aziendale Java 8 è considerato una scelta ben collaudata e quindi affidabile.

Non solo: attualmente Java è tra i primi tre linguaggi di programmazione più utilizzati in assoluto, come riportato da The RedMonk Programming Language Rankings: January 2020.

Java 8 continua a confermarsi, quindi, un'ottima scelta.

Francesco Galgani,
6 marzo 2020

È possibile il reverse engineering di un'app fatta con Codename One per risalire al codice sorgente?

Translate this article
> INDICE DEL CORSO

Avvertenza: questa pagina non rientra nel modulo introduttivo del corso. E' rivolta a chi ha già un po' di esperienza con Codename One.

Argomenti:


È possibile il reverse engineering di un'app fatta con Codename One per risalire al codice sorgente?

Risposta breve: no, in generale la protezione del codice offerta da Codename One è robusta (nel proseguo di questo articolo analizzo le app Android, iOS e Javascript fatte con Codename One), ma ciò non preclude comunque ad un attaccante di studiarsi quel che riesce a decompilare e di provare a modificarlo. Crackers e hackers sono molto appassionati nella loro "professione" e sanno già molto più di quanto si possa insegnare loro: sono capaci di starsene per ore e giorni davanti a un computer finché non riescono a impadronirsi di un sistema. Non sarebbe la prima volta che un ragazzo o una ragazza adolescenti riescano a entrare in sistemi iper-protetti. Neanche i big dell'informatica sono riusciti a prevenire importanti fughe di dati riservati.

Risposta lunga: guardando più in dettaglio la questione, con specifico riferimento alle app fatte con Codename One, posso osservare che:

Pages

Subscribe to Ingegneria del Software