2
$\begingroup$

I'm getting into scripting in Stellarium, and it's fairly similar to the scripting language used in a real Planetarium I used to work in, which used DigitalSky2, if memory serves. In the Planetarium I was able to write code "in real time" as such - meaning I could write one line and run it, like writing Python code into Terminal, and in doing so I was able to learn a lot about how it worked (and break it - all. the. time.)

This having to write a script, upload it and run the whole thing is less than efficient, and doesn't suit my learning-a-new-language style. Especially when I'm really just wanting to play around with the script, one line at a time, and see how I can best break it... I mean, tests its limitations!

Is there any way of doing this? Or is it a pipe dream I have to let go of for the time being?

Cheers!

$\endgroup$
  • 1
    $\begingroup$ This is natures way of telling you to read the manual ! Note as a programmer I'd suggest learning a new language by experiment with another API for a complex system is not a good idea. You need to learn the language properly, independent of another complexity and then apply what you understand of the language to the API designed for it - it's a lot less problematic as you have two smaller problems to deal with rather than one huge one. You can have confidence in your language knowledge so that you don't find yourself having to work out the source of a problem - language or API. $\endgroup$ – StephenG Mar 23 at 14:51
  • $\begingroup$ Have you looked into the Text User Interface (TUI) or "Remote Control" plugins available in Stellarium 0.19.3? If neither works for you, you can edit the script in place and re-run it with the same name. Also, as a programmer, I completely disagree with @StephenG in this matter. $\endgroup$ – user21 Mar 24 at 17:53
  • $\begingroup$ @barrycarter Perhaps you could clarify what "completely disagree" actually means : what do you think is a good way to approach learning a new language and new API at the same time ? $\endgroup$ – StephenG Mar 24 at 19:09
  • $\begingroup$ @StephenG I disagree with I'd suggest learning a new language by experiment with another API for a complex system is not a good idea -- I think experimenting with an API is a fine way to learn a new language-- the concept that you have to learn the language properly is overly timeconsuming, especially given the number of languages out there. I also felt your comment was rude and unhelpful. The OP even said [...] doesn't suit my learning-a-new-language style. Respect that other people learn things in different, but equally valid, ways. $\endgroup$ – user21 Mar 25 at 14:55
  • $\begingroup$ @barrycarter So no rationale, just your intuition at work. My experience with bug fixing is that even experienced programmers will make assumptions about how they think things should work, generate bug reports and then you discover the problem is not properly learning the basics or reading the manual for the API properly. A day of proper language study can avoid weeks of frustrating false bugs later. If you feel it's disrespectful to give people constructive advice then that's your problem and I can't fix that. Whatever "insult" you're reading into you remarks is not my problem. $\endgroup$ – StephenG Mar 25 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.