NEED HELP! Want to code PERL and Python on VS Code on Fedora KDE 27
Hello everyone,
I'm graduating soon from university with my bachelors in software engineering soon. I want to get into programming hardcore since school doesn't teach you the proper way to write code. I have the latest version of Visual Studio Code(check it out its awesome!) and currently deving in C#.NET. However, I also want to explore coding in perl and python as well. I'm running into issues like for example, I have three python extensions which everything works except the linter. It should come with the extension evening though I enabled it...still has error.. I have even tried to install that pylint and still nothing. I'm trying to dev on python 2.7.17 then 3.6. So how do I fix this? Now to dev in Perl im using code runner which supposively will support and run across multiple languages. Which perl is supported however, when I try: using diagnostics; it says it needs the diagnostics module. Okay cool, so I go ahead install cspan and tried to install the module through terminal it doesnt exist??? Can anyone tell me how do you see the complete list of module names in the cspan repository &|| the name of the module itself? Can you give me installation details with cspan? My go to IDE is intellij but I want to try out vs code. If there is not solution to either, can you provide me an recommendation on IDE for PERL? Thanks! |
Dusting off my hat here a little on this one. First, I am not sure what you mean that University doesn't teach you to code properly? They generally provide you a solid foundation on proper tecniques, that is really what they are there to do. It is up to you to take it to the next level.
Moving on to Perl.... There are a few IDEs out there for Perl but most of the time you simply use a vi (editor of choice) or something of that nature. I used Optiperl for a while (http://www.xarka.com/optiperl/) but I don't think it has been updated in a long time and to be honest and I have also tried Eclipse, I ended up using notepad++ (windows based) back in the day. Bottom line is that not every language has an IDE that you can or should use. All that said, I could be wrong and will probably have someone blast me for it. here is a good source for options... https://perlmaven.com/beginner-perl-maven-editors |
Quote:
Code:
use diagnostics; |
Quote:
Good catch, I didn't even notice that! |
just an opinion here so ...
" C#.NET" C# is basically a replacement for MICROSOFT Visual Basic ( MS's own version of basic that is not the same as basic ) if you really want to use a Microsoft tool "visual studio "code" " then you really need to use a Microsoft operating system that that software is meant for yes there is MONO but MS's history of embracing , and then KILLING off the original is as old as Microsoft . |
Quote:
Well here is the thing. I'm studying at UOP(dont go here to study code, trust me.) Where the classes are a month long, they toss you an ebook with certain chapters that are either missing or skipped ahead for that week lesson only. They will either provide you some of lynda.com or puralsight courses regarding to the language but wont cover anything. Therefore if you are new to coding like myself and want to learn deeply then you wont learn a thing. Reason is this isn't a hands on course because the instructor isn't teaching you to code. Instead, he/she just have awful instructions up on the assignment board in which you have make a program out of it. Thats it! During my whole time for these past 3 years they teach only html, SQL, Java, and C# in the same class format like I stated above. All I learned was either irrelevant courses or business regarding in IT(which was okay). They don't teach you how to properly write your code in the most secure way possible, how to debug to find bugs,how to work with frameworks, how to work with deployment systems, etc. This is what I thought I was going to receive from my education but I was completely wrong. However, another passion rose inside me. In the past year I decided to study in Cyber Security regarding in Penetration Testing. I read books, watched video courses, and practiced hacking on my lab which I got pretty good at it(still lots to learn). I got certified and got two industry certs and currently studying my third on. CEH. My goal is to learn and incorporate the programming knowledge i learn to perform manual testing against websites/web apps. In essence, I want to become a web application penetration tester. I also interested in database, browser, mobile, and cloud hacking as well. The reason I want to study perl, python, and other languages on my list is because with perl you can communicate with the backend of a web server and inject SQL code. Ofcourse perl can do many other things like gather your entire machines, ip addr, mac, and sub along with other info as well. So now you know guys! Please help out a pleb to git gud in programming :) |
Quote:
hmmmm i was watching Derek Banas Perl Tut on YouTube and I remember following his exact instructions. This could be a typo on my original post(been reading C# book alot)and I could of subconciously typed using directive from C#. I'll look at your suggestion and try again to see if it works. I'll upload a screenshot if i run into problems. |
Quote:
In some ways VB.NET is similar to C#.NET but its not. C# does a whole lot more than VB can plus there is so much support to it. I do have on my Win 10 Pro guest Visual Studio 2017 Community installed where I dev my school projects. The VS Code community of devs some of which came from the MONO community had a vision with IDE. So far they did a pretty good job with C#.NET but you have to code and set everything manually. Also you have to learn certain syntaxes to update, build, and run your code. For example, dotnet restore(updates, when you updated your code), dotnet build(builds your program) dotnet run (runs your program) in the integrated terminal within VS Code. You can also just hit ctrl-F5 (for console apps, without debugging) and with debugging F5 as well. If you like VB.NET and want to code in C# but dont want to mess with Windows; I encourage you to install VS Code bro! |
This is a bit old, but may be worth a read http://mamchenkov.net/wordpress/2004...rl-developers/.
Also, if new to Perl try the Llama book aka Learning Perl. Also, the Perl Cookbook is very worthwhile :) I've got a bunch of Perl links but that should do for a start, apart from perlmonks.org, which is where the Perl gurus hang out. Enjoy Perl - it's a great lang (imho ;) ) |
1 Attachment(s)
So it appears that configuring VS Code is very... difficult but I managed to some what have it work. Although I need some sort of debugger for perl since highlighting the code and right clicking it to run the code is quite annoying. It seems that diagnostics isnt really working on my behalf as it wont highlight the wrong syntax if i code it wrong on the text editor. Does anyone have this set up with a debugger or working with code runner or other extension to code perl with in VS Code?
Also I'm following Derek's tutorial on perl and bros/gals I'm not sure if the latest perl has update the syntax or sumthing. Like how is my $name "William"; or $name 'William'; isnt a valid syntax??? I dont have a book yet on perl but going to get it soon. I just want to get up to speed on this. Any insight or references to the changes for perl version 5.26.1 code??? Dereks youtube https://www.youtube.com/watch?v=WEghIXs8F6c |
Quote:
|
Quote:
|
Quote:
|
@OP: There is a lot of good stuff as I mentioned at perlmonks - just for an example, here is the Tutorials page http://www.perlmonks.org/?node=Tutorials
Also, the Perl docs referred to by Keefaz post #3 always have lots of examples - much easier than the *nix manpages :) |
All times are GMT -5. The time now is 11:47 AM. |