[SOLVED] NEED HELP! Want to code PERL and Python on VS Code on Fedora KDE 27
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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 .
daflake007;5819215]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.
[/B]
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.
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
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.
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 .
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!
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 )
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???
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 )
Thank you sooo much! I will look into this right away! I was just thinking in coding it on Konsole or thru Vim(which i haven't learned how to use it yet) if all fails with VS Code. Although I have read Strawberry is great. Has anyone tried Strawberry?
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
That explains some of it. I went to UoP for a few classes and wasn't impressed. It was expensive and I was left on my own to figure things out. Dropped the courses and moved on to a different university (UMUC).
That explains some of it. I went to UoP for a few classes and wasn't impressed. It was expensive and I was left on my own to figure things out. Dropped the courses and moved on to a different university (UMUC).
@daflake007 I'd checked out your course curriculum and I'm very impressed! If only I did my research ahead of time I would of probably choose a school with similar courses as yours. What else did you learn in your school courses? I was thinking of going to WGU (Westerns Governors University) for my MS in Cyber Security degree. Can anyone tell me if WGU is a good school to attend or recommend something else? I use financial aid and dont have alot of money to attend top dollar schools though... Highly appreciate the info you guys give me. I dont want to be stumped again.
@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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.