-
Content Count
52 -
Joined
-
Last visited
-
Days Won
1
Posts posted by ConstantGardener
-
-
39 minutes ago, Lars Fosdal said:... appear to be nice at first glance, but they tend to be confusing.
I'd recommend unique names for each constructor instead.
...good point, especally when your Code Insight is broken.
-
29 minutes ago, Dalija Prasnikar said:The advantage of passing all required data as parameters during construction process is that you cannot accidentally forget to initialize some required field. If some fields are optional, then you can stick to initializing through properties, but using simplified examples before this last one.
...or you can use default parameters or even overloaded constructors with different parameters.
- 2
-
I am signed up only for the fact that Allen Bauer comes to the party.
- 2
-
2 hours ago, Lars Fosdal said:Does anyone know of any Indy OAUTH2 server side implementations?
I.e. Where an external service can use OAUTH2 authentication to achieve connection rights to an API implemented with the Indy http server component?
-
-
-
4 hours ago, Anders Melander said:I'm often working on applications where it can take 5-10 minutes to launch the application and navigate to the point of interest. Hot reload could save me hours every day.
Here not 5-10 minutes, but 2-3 minutes. Without question , hotload can save us hours, but in c++ it can save days. 🙂 That's the whole point.
-
4 hours ago, hsvandrew said:In my opinion hot reload is probably the most significant improvement to development since the Delphi IDE made VB look ancient.
Developers are very expensive, and there are never enough hours in the day.
For some reason developers spend all day making productivity tools for others, but seem to still work with spades instead of bulldozers.
I can see this feature being worth at least $5000USD/year/developer which is a game changer.
The fact the Delphi community doesn't see how important this is, well, it says a lot.
On the other side: when you take the compiletimes of c++ into account the hotreload is of more interest in this ecosystem then in delphi.
- 1
-
Take a look at this thread in the german delphipraxis. In the second part is a step by step guide for installing an old quickreport version in newer versions of delphi.
U need a source-version of quickreport.
-
i don't know the devEx one, but the TMS thingy has a very wide range of events, procs and functions for such operations. Maybe you need to add some eventhandlers, but all in all it is very powerfull. My 2 Cent!
-
...the TAdvStringGrid from TMS should do the trick.
-
....this is more a topic for static code analysis (for example TMS FixInsight)
-
This may be the case for very complex projects, but when the Tooltip show's you the right file and classname and an Ctrl+click shows you nothing (don't open this file/class) in a not so big project (build's in 17 sec)? This drives me crazy!
-
On 10/14/2021 at 8:48 PM, Bill Meyer said:Whether it improves compile time depends on just how many Unit Dependency Cycles you have. In a large legacy project, it can be a very large number, and reducing that number can greatly help with build time. Also not, "build" not "compile".
from @Vincent Parrett in another thread about 10.2.4 LSP : "If the code is too complex for the tooling, then the tooling needs improving, valid compiling code should not be a problem."
-
Hmm ok. For me is every dependency i can eleminate from my main project a win.
I try to focus on well maintained libs with sourcecode (TMS for example).
A not maintained component from torry would be an absolut no go for me. my 2 cent.
-
54 minutes ago, David Schwartz said:I found an old component TjanRoundedButton on Torry's that I can put on a FlowPanel that gets me what I need.
...one more dependency for this? I would go with remy's solution.
- 1
-
function ResponseWithScaledJPG (const AFilename : string; var Response: TIdHTTPResponseInfo) : boolean; var JPEGImg : TJPEGImage; AStream : TStream; begin result:=false; if FileExists (AFilename) then begin AStream := TMemoryStream.Create; JPEGImg := TJpegImage.Create; try JPEGImg.LoadFromFile(AFilename); if JPEGImg.Width<500 then JPEGImg.Scale:=jsFullSize else if JPEGImg.Width<1000 then JPEGImg.Scale:=jsHalf else if JPEGImg.Width<2000 then JPEGImg.Scale:=jsQuarter else JPEGImg.Scale:=jsEighth; JPEGImg.SaveToStream(AStream); result:=true; finally JPEGImg.Free; Response.ContentType := mime.ImageJPeg; Response.ContentStream := AStream; end; end; end;
....use this as base for your own solution. This function is from a little INDY webserver for responding with scaled pic's to jpeg-requests for limiting the traffic payload.
- 1
-
...it fails for values like 5,00 or 10,00. Just saying!
-
function RoundUpToFive (AValue : Double) : Integer; begin result:=((Trunc(AValue) div 5)+1)*5; end;
....should do the "trick".
-
1 hour ago, Edwin Yip said:Another great job done by @Anders Melander (apart from the drag-and-drop component suite)!
Another has a download link to the standalone VTune Profiler? I want to avoid downloading the 3.3GB oneAPI toolkit....
....and "Better Translationmanager"!!!
- 1
-
Please fix the lsp in the first place and then, and only then, think about new stuff!
-
25 minutes ago, Vincent Parrett said:Doesn't work well on this project - feel free to analyse my code and tell me what I did wrong 😉
https://github.com/DelphiPackageManager/DPM
If the code is too complex for the tooling, then the tooling needs improving, valid compiling code should not be a problem.
+1000
- 1
-
-
https://quality.embarcadero.com/browse/RSP-30755
...and some new bugs/regressions. TSpeedButton dont show the correct font anymore. You can change it to any font/Size and so on, but the font stay's the same.
- 1
New to delphi - coming from web
in General Help
Posted
@Alexander Sviridenkov