Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 10/12/22 in all areas

  1. dummzeuch

    Change of coding style/structure..

    Once you have tried to debug code with with, sometimes even with multiple variables listed in the statement ("with a, b, c do") and even nested, you will start to dislike it even for small parts of code. And then there are the issues with new properties and fields being introduced in ancestor classes which break the code in a with block because rather an accessing a local variable all of a sudden the code accesses a property brought into scope by a with. That's where my "passion" comes from. My time is too valuable to waste it with problems introduced by being too lazy for typing an identifier. If you really want to save some keystrokes, at least declare a local variable, even inline if your compiler supports it: begin var Items := ListView1.Items. for i := 0 to Items.Count - 1 do begin Process(Items[i].Caption); end; end;
  2. IMO, the modern alternative is a decent website. I was a member of the ASP and even sat on its Board for two years. Like PAD, it served its purpose and is now completely obsolete. Honestly, if I could take down every single file download site listing of my software, I would. People find your software with search engines, not download sites. Today, download sites exist to siphon visitors away from direct sources so they can shovel borderline malware at visitors with useless file download and scanner tools, etc.
  3. Sherlock

    Change of coding style/structure..

    There should actually be a refactoring tool to "de-with" a portion of code. That would be really cool. And something else is in the toolbox you would not dream to use: Goto
  4. David Heffernan

    Change of coding style/structure..

    This blows my mind. The try/finally is to protect the resource. So you must enter the try immediately after the resource has been acquired. I suggest that you read Dalija's book on memory management.
  5. dummzeuch

    Change of coding style/structure..

    I actually used Goto once and I still think it was better than all alternatives in that one specific case. But in general I agree. But do we really need yet another discussion on this? And Exit, and Continue and Break and .... FreeAndNil ? I think everything has already been said about these, multiple times, actually too many times.
  6. FPiette

    Change of coding style/structure..

    Yes, it should. I always code like that and when taking code from elsewhere, I rewrite it like that.
  7. gkobler

    Firebird - Monitor 2.5 / 3.0 / 4.0

    A new version is available V1.5.5.158 Visit our Homepage and download the Trialversion: https://fbm.gksoft.ch
  8. I think Dave is trying to tell you to read highest scored Remy's answer there. I would say, it would be easier for you to use TNetHTTPClient on Android platform.
  9. Anders Melander

    Lazy loading progressbar dialog

    https://bitbucket.org/anders_melander/better-translation-manager/src/master/Source/amProgress.API.pas and another, slightly older, version of the same: https://bitbucket.org/anders_melander/dwscriptstudio/src/master/Source/amProgress.pas and even a DWScript wrapper (the second & third screenshots are actually from a DWScript): https://bitbucket.org/anders_melander/dwscriptstudio/src/master/Source/ScriptRTL/amScriptModuleUserInterfaceProgress.pas Displays a non-modal form with a progress bar, a status message, and an optional cancel button. Defer the initial display of the progress form (what you call lazy loading). Default delay is 500 mS. Limit rate of progress update to minimize UI overhead. Default is max 1 update per 100 mS. Selectively pumps message queue to avoid application freeze and enable user to move/cancel progress dialog during use. Progressive or marquee mode. The current implementation uses DevExpress label and button controls but these can just be replaced with regular VCL controls without any loss of functionality. Usage: var Progress := ShowProgress('Hello world', False); Progress.EnableAbort := True; Progress.Progress(psBegin, 0, 100, 'Charging flux capacitor...'); for var i := 0 to 100 do begin Sleep(100); Progress.AdvanceProgress; end; and in Marquee mode: var Progress := ShowProgress('Hello world', False); Progress.EnableAbort := True; Progress.Marquee := True; Progress.UpdateMessage('Charging flux capacitor...'); while (not Progress.Aborted) do begin Sleep(100); Progress.AdvanceProgress; end;
  10. Dmitry Arefiev

    Delphi 11.2 Patch 1 bug ??

    Is on the Tools -> Options -> User Interface -> Form Designer -> Enable VCL Styles ? If yes, then try to turn it off. Does it help ?
×