 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
WndDrgn Cheater
Reputation: 0
Joined: 24 May 2015 Posts: 49
|
Posted: Wed May 27, 2015 11:07 pm Post subject: What do you like about lazarus |
|
|
I want to learn about lazarus, and object pascal in general.
So i want to hear everybody's reason to learn lazarus.
What do you like about lazarus or pascal?
Please dont mention about: how easy to build interface using lazarus.
I was thinking like that before.
But now i dont know anymore.
My IDE is just TotalCommander and SciTE, but i can build any interface i want, more easy than if i imagine to build interface with lazarus by text editor only.
Please dont misunderstand, im not using qt or wxwidget or gtk or anything that known beside just compiler.
So i cant look for that reason.
I look for anything else.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Thu May 28, 2015 3:42 am Post subject: |
|
|
i like it because:
i know and understand it better
it allows inline 64 bit assembly
and as you stated, the interface design is a lot easier. I hate and actually refuse to design gui's in text editors
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
WndDrgn Cheater
Reputation: 0
Joined: 24 May 2015 Posts: 49
|
Posted: Thu May 28, 2015 4:54 am Post subject: |
|
|
Dark Byte wrote: | i like it because:
i know and understand it better
it allows inline 64 bit assembly
and as you stated, the interface design is a lot easier. I hate and actually refuse to design gui's in text editors |
ok, thanx for your reply.
btw, i learn lazarus because i want to communicate with you or everybody in this forum better.
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Fri May 29, 2015 1:17 am Post subject: |
|
|
WndDrgn wrote: |
btw, i learn lazarus because i want to communicate with you or everybody in this forum better.  |
That is a terrible reason to learn something. You won't get far even if you decide to. Also you don't understand i guess that Lazarus is an IDE, you mean you want to learn delphi or pascal lol.
I don't like Lazarus, i tried to compile CE and holy shit, it is a terrible terrible IDE ever built. There is no backward compatibility, you need to actually have the same version that DB uses to compile CE or it would throw a thousand errors. I can compile my old code written in VS 2005 completely fine in the new VS 2013 without having to worry about versions. Actually, that is true for other IDEs i have used, they all support their older versions.
I haven't used it aside from that to know what i like or don't like about it, i tried to learn delphi and it is similar to c++ in some aspects that i see no reason to learn it, doesn't offer any benefits that c doesn't, the support for 64-bit inline assembly is enticing though.
_________________
|
|
Back to top |
|
 |
WndDrgn Cheater
Reputation: 0
Joined: 24 May 2015 Posts: 49
|
Posted: Fri May 29, 2015 2:43 am Post subject: |
|
|
STN wrote: |
That is a terrible reason to learn something. You won't get far even if you decide to. Also you don't understand i guess that Lazarus is an IDE, you mean you want to learn delphi or pascal lol.
|
I dont need to go far, because my basic is c and a bit cpp.
And i think it is good to be able to communicate with everbody.
And about lazarus, i too found something a bit odd.
But i think it is not a big problem, because in visual design, that problem will not seen.
I try to to look at lazarus example: hello.pp and helloform.pp.
And surprise that to build simple window and a button, it need about 50 line or ';'. This is something that disliked by many programmer like me who prefer text mode programming.
While in c/c++ language, it should be only about 12 line.
Ah yes, i am only using vc6 and tdmgcc right now, with no widely known interface library support like qt/wxwidgets, or gtk, or something else.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri May 29, 2015 3:21 am Post subject: |
|
|
WndDrgn wrote: |
I dont need to go far, because my basic is c and a bit cpp.
And i think it is good to be able to communicate with everbody.
And about lazarus, i too found something a bit off.
But i think it is not a big problem, because in visual design, that problem will not seen.
I try to to look at lazarus example: hello.pp and helloform.pp.
And surprise that to build simple window and a button, it need about 50 line or ';'. This is something that disliked by many programmer like me who prefer text mode programming.
While in c/c++ language, it should be only about 12 line.
Ah yes, i am only using vc6 and tdmgcc right now, with no widely known interface library support like qt/wxwidgets, or gtk, or something else. |
Majority of the users that have come and gone from this forum do not use Delphi / Lazarus. So your opinion there is kind of mute.
As for the UI example you looked at, and comparing C/C++ to it, that is because there are two separate things going on there. In the Lazarus instance, you are looking at a wrapped creation of a window and a control that lets you specifically set each property of those controls. Where as with the C/C++ versions most of the same things are bundled into the single API call. I wouldn't say it is too fair to compare two separate style things (one being a wrapper around an API, the other being straight API). Along with that you also are skipping over a lot of other details that are involved in the Lazarus example.
For example:
Code: | button1.OnClick := @button1click; |
Here you have a simple property to handle when the button is clicked. A function named button1click will be called. That is 1 line of code that is using the Lazarus UI wrappings. In straight C/C++ this is going to require you to have a window callback, along with handling the WM_COMMAND event, and within that event handling the specific command ID assigned to the button you created. Which is going to be a lot more lines of code then that simple 1 setting.
I'm not saying one or the other is better, it is clearly dependent on what you plan to do with the language.
I suggest that you, instead of picking a language with the attitude strictly of 'Dark Byte uses it, I should too', to actually picking a language because you are genuinely interested in learning it and making use of it.
Quote: | And surprise that to build simple window and a button, it need about 50 line or ';'. This is something that disliked by many programmer like me who prefer text mode programming.
While in c/c++ language, it should be only about 12 line. |
Not sure if the ; was a complaint because most languages make use of semi-colons as line endings.
_________________
- Retired. |
|
Back to top |
|
 |
WndDrgn Cheater
Reputation: 0
Joined: 24 May 2015 Posts: 49
|
Posted: Fri May 29, 2015 4:54 am Post subject: |
|
|
atom0s wrote: |
I suggest that you, instead of picking a language with the attitude strictly of 'Dark Byte uses it, I should too', to actually picking a language because you are genuinely interested in learning it and making use of it.
|
Not just because DB use it.
Many people use pascal-lazarus.
In my country, there are many user of pascal-lazarus.
I want to communicate with them too .... hehe
atom0s wrote: |
Quote: | And surprise that to build simple window and a button, it need about 50 line or ';'. This is something that disliked by many programmer like me who prefer text mode programming.
While in c/c++ language, it should be only about 12 line. |
Not sure if the ; was a complaint because most languages make use of semi-colons as line endings. |
I typed wrong, sorry.
I mean 22.
More or less, like in this example:
Code: | #include <stdio.h>
#include <windows.h>
#include <w.h>
struct {
wObj hwnd0;
wObj hwnd1;
} Form1;
BOOL Form1_hwnd1_OnClick(HWND hwnd, WPARAM wParam, LPARAM lParam) {
PostQuitMessage(0) ;
return TRUE;
}
int __stdcall WinMain(HINSTANCE hIns, HINSTANCE hPrevIns, LPSTR lpszArgument, int iShow) {
Form1.hwnd0.Open("wDefForm", 0, 0, 0, 100, 100) ;
Form1.hwnd0.SetText("Hellow World") ;
Form1.hwnd1.Open("wDefButton", Form1.hwnd0, 0, 0, 20, 20) ;
Form1.hwnd1.OnClickProc(Form1_hwnd1_OnClick) ;
while (GetMessage (&msg, NULL, 0, 0)) {
TranslateMessage (&msg) ;
DispatchMessage (&msg) ;
}
return msg.wParam ;
} |
Last edited by WndDrgn on Fri May 29, 2015 7:21 pm; edited 1 time in total |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Fri May 29, 2015 5:31 am Post subject: |
|
|
in lcl/pascal that'd be:
Code: |
program project1;
uses Interfaces, Forms, StdCtrls, Classes;
type TNoClass=class procedure fclick(sender: TObject); end;
procedure TNoclass.fclick(sender: TObject);
begin
Application.Terminate;
end;
var
f: TForm;
b: Tbutton;
begin
Application.Initialize;
f:=TForm.create(application);
f.Caption:='Hellow World';
f.BoundsRect:=rect(0,0,100,100);
b:=Tbutton.create(f);
b.BoundsRect:=rect(0,0,20,20);
b.OnClick:=@TNoclass(nil).fclick;
b.parent:=f;
f.show;
Application.Run;
end.
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
WndDrgn Cheater
Reputation: 0
Joined: 24 May 2015 Posts: 49
|
Posted: Fri May 29, 2015 6:04 am Post subject: |
|
|
Dark Byte wrote: | in lcl/pascal that'd be:
Code: |
program project1;
uses Interfaces, Forms, StdCtrls, Classes;
type TNoClass=class procedure fclick(sender: TObject); end;
procedure TNoclass.fclick(sender: TObject);
begin
Application.Terminate;
end;
var
f: TForm;
b: Tbutton;
begin
Application.Initialize;
f:=TForm.create(application);
f.Caption:='Hellow World';
f.BoundsRect:=rect(0,0,100,100);
b:=Tbutton.create(f);
b.BoundsRect:=rect(0,0,20,20);
b.OnClick:=@TNoclass(nil).fclick;
b.parent:=f;
f.show;
Application.Run;
end.
|
|
i see.
so it can be sort.
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|