karraksc Posted August 17, 2015 Share Posted August 17, 2015 Most of what I was suggesting, you have already got figured. I have used NppExec on a couple other projects. Link to comment Share on other sites More sharing options...
minxomat Posted August 23, 2015 Author Share Posted August 23, 2015 I've secured some short-term gigs and won't be in the country for the next week or so. My apologies, but it will take a little longer. Job goes first Xandy 1 I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
minxomat Posted August 23, 2015 Author Share Posted August 23, 2015 @rjframe You did that on purpose, didn't you? I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
rjframe Posted August 24, 2015 Share Posted August 24, 2015 @rjframe You did that on purpose, didn't you? I just wanted to be sure you were paying attention... minxomat 1 Link to comment Share on other sites More sharing options...
Surya Posted August 24, 2015 Share Posted August 24, 2015 I Am too with you TheDcoder No matter whatever the challenge maybe control on the outcome its on you its always have been. MY UDF: Transpond UDF (Sent vriables to Programs) , Utter UDF (Speech Recognition) Link to comment Share on other sites More sharing options...
TheDcoder Posted August 24, 2015 Share Posted August 24, 2015 @Surya Do you want to join the Doc team ? If yes, ask @minxomat, he is our leader EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
minxomat Posted August 24, 2015 Author Share Posted August 24, 2015 I Am too with you TheDcoder I have no idea what this is supposed to mean. MikahS 1 I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
TheDcoder Posted August 24, 2015 Share Posted August 24, 2015 @minxomat neither me EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
guinness Posted August 24, 2015 Share Posted August 24, 2015 (edited) You can ignore this if you want, but over time your code base will become quite difficult to maintain if you're using a lot of global variables. My advice would be to prefix with $g_, so you can tell what is global and not. It also helps those who jump on board and submit PR, which I guess is what you want? There is also git related remarks left over in DLLImports e.g. <<<<<< HEAD as well as unresolved sections. I was in the process of creating a PR, but realised it's better if @minxomat resolves the conflict(s).I know you're porting over the code, but don't write AutoIt code like you're writing VB.NET, as AutoIt != VB.NET.Edit: The reason I wrote this post now, is because code with multiple team members shouldn't look like it's written by multiple team members and from what I can see, this is where it's headed. You have variables which are a mixture of pascal-case or AutoIt-like Hungarian notation, functions that are pascal case and camel-case and not very many comments. Therefore it's best at this early stage of the game to have a style guide and plan what is the best way of structuring this project. How should internal functions be named? What is the correct approach for commenting? What's the threshold for the number of lines a function can contain? Edited August 24, 2015 by guinness mLipok 1 UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
minxomat Posted August 24, 2015 Author Share Posted August 24, 2015 (edited) Porting is about creating a exact copy. Then there is cleanup. I'm already writing shorter methods, but the basics need to be sorted out first. If you fix something along porting, or rewrite it, there will be errors when the port is complete that are impossible to debug, because differences between the languages are buried deep down in abstraction. It may seem messy now, but it is a very secure system. But as I said, once the port is complete and verified, there will be a huge cleanup.but don't write AutoIt code like you're writing VB.NETYes. You can only spot misunderstandings in comparison.But I already posted this here: https://www.autoitscript.com/forum/topic/174143-so-you-want-to-port-code-from-one-language-to-another-huh/ There is also git related remarks left over in DLLImports e.g. <<<<<< HEAD as well as unresolved sections. I don't have time to look over the code right now, but I will do and of course fix the issues. If you found something that is fixed easily (like this), create an issue report on the port tracker and I'll look over it. Edited August 24, 2015 by minxomat I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
guinness Posted August 24, 2015 Share Posted August 24, 2015 I dunno if you saw my edit above. It explains a little further as to why I posted. I am not going to submit a PR, for reasons I explained above. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
rjframe Posted August 26, 2015 Share Posted August 26, 2015 Porting is about creating a exact copy. Then there is cleanup. I'm already writing shorter methods, but the basics need to be sorted out first. If you fix something along porting, or rewrite it, there will be errors when the port is complete that are impossible to debug, because differences between the languages are buried deep down in abstraction. It may seem messy now, but it is a very secure system. But as I said, once the port is complete and verified, there will be a huge cleanup.@minxomat: This is correct; but @guinness is right that we should be developing coding standards, and it makes more sense to begin the discussion now than wait; if we wait until the port is complete, we'll have to make a full stop in development while we fight to the pain about where to put our periods. My current assumption has been that our guidelines will be similar to the AutoIT UDF guidelines.We can also be documenting the language specification as well as future goals (I've seen you post a couple of times "we're going to do that", but that information needs to be in more than just one person's head). There seem to be certain reserved keywords (e.g., "class") that are never used in the examples. It would be nice (in my opinion) if we can use an intentional and methodical process in designing the standard library, rather than throwing things together as they are deemed necessary (or at least, let's throw things together but declare the API unstable until we like it).At minimum, can we agree to use tabs? Scite in wine keeps switching between tabs and spaces (it seems most of the time to be a tab, then spaces), so I'm going back to vim. But some of my files have whitespace issues because I'm a terrible person and didn't fix it prior to pushing my code. You can ignore this if you want, but over time your code base will become quite difficult to maintain if you're using a lot of global variables. My advice would be to prefix with $g_, so you can tell what is global and not. It also helps those who jump on board and submit PR, which I guess is what you want? There is also git related remarks left over in DLLImports e.g. <<<<<< HEAD as well as unresolved sections.1) Agreed about marking globals.2) The merge issue is my fault; I thought I got everything, but obviously not. Link to comment Share on other sites More sharing options...
minxomat Posted August 26, 2015 Author Share Posted August 26, 2015 My current assumption has been that our guidelines will be similar to the AutoIT UDF guidelines.Yes, they are - or will. but that information needs to be in more than just one person's head)That is why I've mentioned that I'm away right now (before @guinness posted). I typed up some guidelines already, but I don't have the time to finish them right now. Best would be to not merge into master before I'm ready . At minimum, can we agree to use tabs? Scite in wine keeps switching between tabs and spaces (it seems most of the time to be a tab, then spaces), so I'm going back to vim.Yes, tabs. You can manually invoke Tidy before pushing, though. It will clean up whitespace issues .Additionally to UDF guidelines, I think it would be best to follow some Google-like CC:Mark todo points as ; TODO(username): Add this ...If there is a code-block longer than 3 lines, put an empty line above and under it:Func foo() Local $n If 1 = 3 Then bar() bar() bar() Else foo() foo() foo() EndIf If 4 = False Then some() Return 5 EndFunc And what @rjframe already does: Leave the original code above the ported method.I have to disagree with marking globals for now. There must not be any new variables in the port. The namespace is clean in the VB code. We (or I) will restructure the code away from globals after that. I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
rjframe Posted August 26, 2015 Share Posted August 26, 2015 Mark todo points as ; TODO(username): Add this ...If there is a code-block longer than 3 lines, put an empty line above and under it:I like those ideas. Func foo() Local $n If 1 = 3 Then bar() bar() bar() Else foo() foo() foo() EndIf If 4 = False Then some() Return 5 EndFuncStack overflow. minxomat 1 Link to comment Share on other sites More sharing options...
minxomat Posted September 2, 2015 Author Share Posted September 2, 2015 I was reviewing some code an github on my flight and noticed something in your code @rjframe. On numerous occasions you replaced a loop exit with a hard return. This causes illegal code paths. For Example, in your port of the DLLImports module, take a look at the original code block in line 55 following. This particular code is used for scanning through the import table and identifying dead imports. If the scan is finished, the code should skip to the end of the parent for loop, not exit the function. Use ExitLoop instead of Return. There is code after this loop that uses the import table. I'll review the code in detail when I'm back home. I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
minxomat Posted September 2, 2015 Author Share Posted September 2, 2015 @rjframe You also made the typical porting mistake when it comes to VBNET. The return value variable can be manipulated but is returned at the end of the function:Function foobar() foobar = 1 Dim k as Long For k = 1 to 5 If k = 6 Then Return 6 foobar += 1 Next k End FunctionStill returns on every code path (in this case it always returns 6). In AutoIt this is very confusing, but in VBNET there are Subs and Functions. Functions always return, no matter wether or not they actually have a return statement.Feel free to fix this in your fork, but I see that I have to hurry with the guidelines . I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
minxomat Posted September 12, 2015 Author Share Posted September 12, 2015 (edited) @rjframe and I had a discussion about a better way of reviewing additions to the port. We agreed upon managing the code/peer review entirely through pull-reqs. Because the code is designed to run as one file, (for the time being), additions must be made to this file. After everything is done, we will proceed to cleanup. Sounds complicated? It really isn't . The next post will be a complete visual guide for making contributing to the port. If you are not directly contributing, please contribute by reviewing (aka. approving) pull reqs from other users (Step 7).Edit: Please keep your forks single branched. Edited September 12, 2015 by minxomat I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
minxomat Posted September 12, 2015 Author Share Posted September 12, 2015 I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
minxomat Posted September 12, 2015 Author Share Posted September 12, 2015 Ported about 1,5k, please review: https://github.com/Perseus-Dev/Perseus-Portbase/pull/9/files I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
minxomat Posted September 22, 2015 Author Share Posted September 22, 2015 License ChangeAll parts of the Perseus Code (including ports and examples) are now licensed under the conditions of the Artistic License 2.0. In short, this means thatIt is required toInclude a license and copyright notice, andstate all changes you made should you choose to republish (parts) of the project.It is permitted to Use the project commercially,distribute it anywhere,make any kind of modification (except to the license),use it privately, andsublicense.It is forbidden to Hold any of the developers liable for anything, anduse trademarks elsewhere or for derivative works.You can view the license in full text at https://github.com/Perseus-Dev/Perseus-6/blob/master/LICENSE.TXT. Xandy and TheDcoder 2 I will answer every single PM, and you are free to ask anything anytime. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now