|
You can get away with murder, hahaha.
Actually, it's really cool for cross-platform development. I'm doing all the development on Windows, then doing final testing on the Beaglebone. It's also fun to test individual modules with stuff like this:
[edit] Funny, CP's parsing removes the double underscores before and after 'main' [/edit]
if __name__ != '__main__':
import Config
else:
class Config(object):
config = None
def __init__(self):
Config.config = self
def getTid(self):
return "1234"
Because, as with any duck-type interpreter, if the class quacks, use it. Actually makes mocking classes for unit testing really simple.
Don't mock me!!!
Marc
|
|
|
|
|
I agree with you the more I use it the more I like it. Doing some stuff on the RPi 3 and soon on the Pi Zero which is an awesome little device.
I like the pyCharm IDE, its really nice.
New version: WinHeist Version 2.2.2 Beta I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!
|
|
|
|
|
|
Mike Hankey wrote: I like the pyCharm IDE, its really nice.
Yes, thank goodness for JetBrains, we don't have to use Eclipse!
I've been playing around with their C# IDE beta as well and liking it.
Marc
|
|
|
|
|
Marc Clifton wrote: Yes, thank goodness for JetBrains, we don't have to use Eclipse!
I do use eclipse on Linux machine when writing for the RPi, but that's going to change.
Marc Clifton wrote: I've been playing around with their C# IDE beta as well and liking it.
Didn't know they had a C# IDE will have to check, thanks for the heads up. During the cooler season here in FL we hike, it's too hot and buggy the rest of the year. I'm also a section leader for a 9 mile section for the FL Trail along the Suwannee River so computing gets put on the back burner until it's too hot to hike...like starting now.
New version: WinHeist Version 2.2.2 Beta I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!
|
|
|
|
|
Mike Hankey wrote: Didn't know they had a C# IDE will have to check
Check out Rider, A cross-platform C# IDE based on the IntelliJ platform and ReSharper[^]
Page takes forever to load!
Mike Hankey wrote: when writing for the RPi
I finally took the plunge and hooked up some hardware to one of the BeagleBoneBlack's I have (part of a client project) to learn about the I2C and GPIO. Got a gyro module working this weekend and passing rotational info, via RabbitMQ, over to a C# app displaying a cube. Fun stuff! It's been years since I read a spec on an IC, gads that was a re-learning experience.
Marc
Marc
|
|
|
|
|
Rider looks interesting, thanks I'll check it out. And yes it takes forever to load, plus we live way out in the country and our internet is slow on occasion, tonight being one of the occasions.
I don't know how familiar you are with electronics but Practical Electronics for Inventors[^] is an excellent reference. They just came out with the 4th edition and it's fairly inexpensive and contains almost 2ce the information that was in the previous edition.
New version: WinHeist Version 2.2.2 Beta I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!
|
|
|
|
|
Get him outta here! GET HIM OUTTA HERE!
|
|
|
|
|
I'll be waiting.
One year from now there will be rants about Python, just like with Ruby et al.
|
|
|
|
|
Jörgen Andersson wrote: One year from now there will be rants about Python
Why wait?[^]
Honestly, I'd never use Python for a medium or large scale project, certainly not for web development (Django? shiver) but for cross-platform stuff on an SBC, bring it! Especially when there's so many people that have done cool things (like with LCD display modules) that I can use directly in Python, instead of having to resort to C. And when I need pin-level control of the hardware, talking to a C library is quite easy.
As with Ruby, my productivity is anywhere from 1/10 to 1/2 of what I can achieve in a language where the IDE tells me that with "Foobar = 5", "Foobar" not defined because I meant "foobar", instead of just happily creating the damn variable on the fly, leaving me to wonder why the program acts weird.
Marc
|
|
|
|
|
Marc Clifton wrote: Funny, CP's parsing removes the double underscores before and after 'main'
Make sure you uncheck the 'Use Markdown formatting' checkbox
if name != '__main':
import Config
else:
cheers
Chris Maunder
|
|
|
|
|
Chris Maunder wrote: Make sure you uncheck the 'Use Markdown formatting' checkbox
Ah ha! Learned something new. Those checkboxes are off the bottom of my screen, didn't even notice them before.
Thanks!
Marc
|
|
|
|
|
Hello all,
When I scroll up or down in the Microsoft Help viewer Visual Studio documentation, I can hear a beep noise through the loudspeakers...
Anyone hears the same while scrolling there?
And even better anyone knows how to remove it?
Thank you all!
|
|
|
|
|
|
My google fu is not working today:
I've searched by noise and sound but not beeping...
It looks like it works...
|
|
|
|
|
Joan Murt wrote: And even better anyone knows how to remove it?
Turn off the speakers!
If it's not broken, fix it until it is
|
|
|
|
|
Quote: Turn off the speakers! 🔇
Wonde Tadesse
|
|
|
|
|
Sorry I've turned off the speakers and I can't hear you...
It must be somethnig that happens to me, but after turning of the speakers I can't read too...
|
|
|
|
|
To prevent reoccurrence, you'd have to pull the sound card.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Even better - turn off the computer.
/ravi
|
|
|
|
|
Erhm,
Are you watching an episode of NCIS while you're working? Maybe it's the grand quignol's laptop and not yours?
(honestly, I'm trying to figure out to which one of these posts here in the Lounge THIS post is the solution)
|
|
|
|
|
Huh?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
People actually use Microsoft Help? Gosh.. personally I find Google quicker and more helpful.
|
|
|
|
|
Usually, when making machine set ups at customer companies there is no internet available.
Moreover, if like me, you are developing software for special machines usually internet is not offering a lot of help content.
|
|
|
|
|