Jump to content

Stargazers Lounge Uses Cookies

Like most websites, SGL uses cookies in order to deliver a secure, personalised service, to provide social media functions and to analyse our traffic. Continued use of SGL indicates your acceptance of our cookie policy.

Tomatobro

My first line of code in Python

Recommended Posts

I just wrote my first line of code in Python. I do not know what to do next but I will think of something (apologies to the Ape and the monolith of intelligence.....)

Share this post


Link to post
Share on other sites

Such a tease!

I at least expected to see that first line of your Python code :D

 

  • Like 1

Share this post


Link to post
Share on other sites

>>> Print ("Hello Tomatobro")

I am still to decide what the best editor to use in Ubuntu, any suggestions?

 

Edited by Tomatobro
  • Like 1

Share this post


Link to post
Share on other sites
5 minutes ago, Tomatobro said:

>>> Print ("Hello Tomatobro")

I am still to decide what the best editor to use in Ubuntu, any suggestions?

 

You're not a coder unless it says "Hello World" :D

I use vim when im on linux, but im usually restricted to terminal access. Im sure there must be more modern solutions out there but I just got used to it.

My fav editor for a GUI environment is Sublime

  • Like 2
  • Haha 1

Share this post


Link to post
Share on other sites

Lately I use VS Code (on both linux and windows) - it feels lightweight enough and powerful enough for my needs ...

  • Like 2

Share this post


Link to post
Share on other sites
2 hours ago, Tomatobro said:

I just wrote my first line of code in Python. I do not know what to do next

Probably use spaces to indent the following line!

  • Like 1

Share this post


Link to post
Share on other sites

I use vi/vim for editing on Linux.  I spent eight years after I graduated porting code to all sorts of UNIX-like hardware and vi was the only editor you could be fairly sure would be on the target system, so learning to use it was the path of least resistance.  I'm not sure I'd describe it as "learner-friendly" though.

James

Share this post


Link to post
Share on other sites

For my level of coding nano works great.  Its about as basic as it gets no frills.

Share this post


Link to post
Share on other sites

Just had a tinker with VS code, a whacking 29gig download for the lot😲, lucky I’m on a decent fibre conn.

Steve

Share this post


Link to post
Share on other sites
9 hours ago, Gasman said:

Just had a tinker with VS code, a whacking 29gig download for the lot😲, lucky I’m on a decent fibre conn.

Steve

At least its not on xbox - then it would need a 29gig update every week! 🤣

I've always stayed away from VS/VB stuff - most of my coding was for web so PHP etc - luckily never really needed any big bulky editors/ides - largest platform I used was PHPStorm which was very nice at project management, great IDE once it was setup how I liked to work still prefered sublime/vi though

Share this post


Link to post
Share on other sites
12 hours ago, Gasman said:

Just had a tinker with VS code, a whacking 29gig download for the lot😲, lucky I’m on a decent fibre conn.

Steve

What are you downloading? Maybe complete VisualStudio?

VSCode is completely separate product - open source editor. When I start installer download for Windows platform it is only 50Mb.

https://code.visualstudio.com/

 

Share this post


Link to post
Share on other sites
On 30/07/2019 at 18:16, Tomatobro said:

I am still to decide what the best editor to use in Ubuntu, any suggestions?

"Best" would be highly subjective. But I can add a suggestion.

Most of my dev work is done in a lightweight vi clone called vile (having used it for nearly 30 years).
However I found in recent years that Python work is more easily done in IdleX, which is an extension of the Idle editor (which comes with stock Python). It has builtin shell, editor, both with completion, documentation viewer linked to them, and ability to execute fragments of files being edited. Its editor lacks the much-loved vi feel (for me), and is instead a rather neutral notepad-like more suited to anyone.

Edited by rotatux
typo

Share this post


Link to post
Share on other sites
4 hours ago, vlaiv said:

What are you downloading? Maybe complete VisualStudio?

 

 

Yes, thought it was a good idea at the time 🤔

Steve

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Tomatobro
      Having watched plate solving in action I want to give it a go but I have a question regarding connectivity.
      I use Charles Du Ciel and Sharpcap pro. My question is can I connect the mount via EQMOD to both Sharpcap and CDC at the same time if both software's are open and running on the same laptop? I am looking download an image from my ASI1600, plate solve using Astro Tortilla and have CDC update its position.
       
    • By Tomatobro
      With the transit of Mercury coming up and possible outreach meeting I wanted a sunscreen for my laptop (forever an optimist) and looking online they varied from £30 to £90 which was a bit out of the budget.
      I found that Ikea do a fold flat box (Drona for Kallax shelving) which does the job. The sides are cloth covered cardbord so I cut holes for the USB cables to suit.
      laptop cooling does not seem to be a problem as there is enough clearance on the sides. Box cost less than four quid.
      It worked for me.....

    • By oobydooby
      I was interested in the above mentioned item advertised in the Accessories section at FLO (Link Here)
      I wondered if anyone has any experience or use of this product.  Firstly does the ice from the cloud drop in a similar fashion as hailstones or as one great slab? I suspect a slab might be a bit hazardous and care should have to be taken to make sure the area is clear.
      Secondly if one uses a goto telescope and needs to do a 3 star alignment would the gun need to be pointed at three different areas of the clouds to make said alignment? If that was the case there might need to be several lookouts a few miles apart to ensure the three ice blocks do not hit members of the public.  Perhaps we should give out hard hats to everyone and ask the police to organise a 30 mile exclusion zone.
      I might just contact FLO and see if they have some answers.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.