-
Content Count
9 -
Joined
-
Last visited
-
Days Won
1
Posts posted by david berneda
-
-
I wish a compiler option to warn when calling class methods on instances instead of using the class type.
Another one, hint when methods can be safely converted to class or class static.
-
17 minutes ago, Fr0sT.Brutal said:F.ex., my colleague has project which periodically generates charts with thousands of points and exports that to image. And the main UI has to be responsible while generating. Alas, TTeeChart is visual control so he has to use such bad practice creating it inside bg thread.
I recently did a TeeChart fix to avoid creating its Windows Handle when just drawing it to a image without showing on screen.
https://www.steema.com/bugs/show_bug.cgi?id=667
We posted a beta yesterday available for download, let me know if your colleague is interested in testing I'll provide a license.
regards !
david
- 1
- 1
-
5 hours ago, David Schwartz said:in what respect? I mean ... what kind of use-case are you thinking of?
I asked about this because I've got a bunch of JSON data (array of records) that I'm stuffing into objects added to a TList, and it seems the only way to get something I need is to use a DB-aware control to view them. So I need to get them into a dataset so they can be viewed. Then the whole thing gets thrown away.
So the choice is to go from JSON --> TDataSet or TList<T> --> TDataSet, both of which are dependent on the same issues:
How much time do you want to spend writing code that speeds this up by less than a second?
It's a little funny to me that all of this great technology we have at our fingertips is all rooted in stuff designed back in the 90's to support Client/Server database technology while today a large amount of our work centers around data shipped between servers as JSON packets, that's either parsed and used immediately or stuffed into classes, and is mostly transient and never intended to be put into any kind of structured DB.
There are even plenty of NO-SQL DBs available today to help manage this data.
Yet the most useful visual components are all driven off of TDataSets that are intended to be connected to databases.
DevEx grids are incredible, but last I saw, they're totally driven off of TDataSets and are useless for JSON data and lists of objects.
If you need a Grid fmx/vcl to connect to TList of records etc, TeeGrid does it, without TDataset: https://github.com/Steema/TeeGrid-VCL-FMX-Samples/tree/master/demos/VirtualData/TList
-
69999
- 1
-
Needed a "Beep" equivalent function for Android, capable of playing a sound at a specific hertz frequency, and ended up porting and adapting a Java snippet.
Its freely available, hope it might help:
https://github.com/davidberneda/FMX_Tone_Beep
regards !
david
- 2
- 1
-
Hi !
I've just published the source code in Pascal/Delphi of "Vidi Language" v0.2-alpha:
https://github.com/davidberneda/Vidi
It includes a parser/compiler and a simple ide/debugger for a new programming language (Vidi).
This is a toy-experiment project in a very early stage.
Attached pdf reference, same here:
https://github.com/davidberneda/Vidi/blob/master/documentation/Vidi_Language_Reference.md
regards
david
- 9
-
Some languages offer union types to do this, for example in Typescript:
https://www.typescriptlang.org/docs/handbook/advanced-types.html#union-types
- 1
Funny Code in System.Types
in RTL and Delphi Object Pascal
Posted
Overflow compiler checking is lost here.