LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-12-2018, 10:08 PM   #1
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Rep: Reputation: Disabled
Question 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!
 
Old 02-13-2018, 04:52 AM   #2
daflake007
LQ Newbie
 
Registered: Jan 2016
Posts: 12

Rep: Reputation: Disabled
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
 
Old 02-13-2018, 06:02 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Quote:
Originally Posted by GHOSTIN7HESHELL View Post
when I try:


using diagnostics;


it says it needs the diagnostics module.
Code:
use diagnostics;
https://perldoc.perl.org/functions/use.html
 
Old 02-13-2018, 06:22 AM   #4
daflake007
LQ Newbie
 
Registered: Jan 2016
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post

Good catch, I didn't even notice that!
 
Old 02-13-2018, 11:15 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,400

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
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 .
 
Old 02-13-2018, 08:44 PM   #6
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by [B
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.

here is a good source for options...

https://perlmaven.com/beginner-perl-maven-editors


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
 
Old 02-13-2018, 08:47 PM   #7
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post

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.
 
Old 02-13-2018, 09:03 PM   #8
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
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 .

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!
 
Old 02-13-2018, 10:35 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,569

Rep: Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426
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 )
 
Old 02-14-2018, 12:18 AM   #10
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	Kool Right?.jpg
Views:	7
Size:	170.2 KB
ID:	26993  

Last edited by GHOSTIN7HESHELL; 02-14-2018 at 12:32 AM.
 
Old 02-14-2018, 12:21 AM   #11
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
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 )
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?
 
Old 02-14-2018, 01:58 AM   #12
daflake007
LQ Newbie
 
Registered: Jan 2016
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by GHOSTIN7HESHELL View Post
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).
 
Old 02-14-2018, 08:34 PM   #13
GHOSTIN7HESHELL
LQ Newbie
 
Registered: Jul 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by daflake007 View Post
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.
 
Old 02-15-2018, 06:00 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,569

Rep: Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426
@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
 
  


Reply

Tags
programming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Learning Python, how should I implement the following problem in Python 3 code? rblampain Programming 8 05-29-2016 11:53 AM
Error in Perl Code : Bad switch statement(Problem in code block)? near ## line # suyog255 Programming 4 02-20-2008 06:35 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration