Click here to Skip to main content
15,891,943 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Actual Coding - Learning Curve Pin
den2k883-Jul-16 22:08
professionalden2k883-Jul-16 22:08 
GeneralRe: Actual Coding - Learning Curve Pin
OriginalGriff3-Jul-16 23:15
mveOriginalGriff3-Jul-16 23:15 
GeneralRe: Actual Coding - Learning Curve Pin
Kornfeld Eliyahu Peter4-Jul-16 1:11
professionalKornfeld Eliyahu Peter4-Jul-16 1:11 
GeneralRe: Actual Coding - Learning Curve Pin
OriginalGriff4-Jul-16 1:23
mveOriginalGriff4-Jul-16 1:23 
GeneralRe: Actual Coding - Learning Curve Pin
PeejayAdams4-Jul-16 2:58
PeejayAdams4-Jul-16 2:58 
GeneralRe: Actual Coding - Learning Curve Pin
KarstenK3-Jul-16 22:22
mveKarstenK3-Jul-16 22:22 
GeneralRe: Actual Coding - Learning Curve Pin
Member 116832514-Jul-16 3:04
Member 116832514-Jul-16 3:04 
GeneralRe: Actual Coding - Learning Curve Pin
Marc Clifton4-Jul-16 9:51
mvaMarc Clifton4-Jul-16 9:51 
If I understand what you're saying correctly, the issue is the "impedance mismatch" between knowing what you want to do and knowing how to do it. It can be very impeding!

For example, when doing Python programming, I know various basic things about the language and its syntax, but I don't know hardly anything about useful 3rd party utilities (or even the ones built into Python!) and I certainly don't know the Pythonic way of doing things. So, for example, in C#, if I want to iterate over an IEnumerable, I have a couple options that are well known to me:

for (var foo in bunchAFoos) {...}

or

bunchAFoos.ForEach((f)=>...);

But how do I even write a loop in Python? Is:

for foo in bunchAFoos:

The best way? What if I want an index? Well, I use an extension method in C#:

bunchAFoos.ForEachWithIndex((idx, foo) => ...);

I have google the answer for Python:

for index, foo in enumerate(self.buncAFoos):

And is that the best way?

It gets worse -- do I wrap my Python functions in a class (their called "methods" then)? How do create a static singleton of the class? How do I derive from a class? How do I call the base method? Discovering that I have to explicitly call the base class constructor was a WTF is going wrong debugging session.

And then there's the debugger (using Visual Studio Python plugin). Why can't I step over the code>if statement? On a fluke, I changed:

if self.state == AppState.performing:

to:

if (self.state == AppState.performing):

and weirdly, I can now step over the if statement in the debugger. Why?

How do enums work in Python? (Answer: use the "enum" module and write it like non-member assignments, like this:
class AppState(Enum):
    offline = 1
    online = 2
    unconfigured = 3
    waiting = 4
    performing = 5

TheOnlyRealTodd wrote:
Is this pretty typical for a new coder or coders in general?


It's typical of coders with a new language/framework/platform. Don't even get me started on the lunacy of trying to launch an app at startup in Debian (or any *nix OS.)

So, to re-iterate, the impedance mismatch between knowing something because I've read a book or watched a few videos, vs. knowing how to do a thing, well, that can be cough shocking.

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: Actual Coding - Learning Curve Pin
BillWoodruff4-Jul-16 11:15
professionalBillWoodruff4-Jul-16 11:15 
GeneralRe: Actual Coding - Learning Curve Pin
kdmote5-Jul-16 8:04
kdmote5-Jul-16 8:04 
GeneralRe: Actual Coding - Learning Curve Pin
Kiriander4-Jul-16 21:40
Kiriander4-Jul-16 21:40 
GeneralRe: Actual Coding - Learning Curve Pin
Harrison Pratt5-Jul-16 1:07
professionalHarrison Pratt5-Jul-16 1:07 
GeneralRe: Actual Coding - Learning Curve Pin
Harrison Pratt5-Jul-16 1:07
professionalHarrison Pratt5-Jul-16 1:07 
GeneralRe: Actual Coding - Learning Curve Pin
Eng. Boniphace Udoya5-Jul-16 1:13
Eng. Boniphace Udoya5-Jul-16 1:13 
GeneralRe: Actual Coding - Learning Curve Pin
David Days5-Jul-16 4:23
professionalDavid Days5-Jul-16 4:23 
GeneralRe: Actual Coding - Learning Curve Pin
SeattleC++5-Jul-16 6:30
SeattleC++5-Jul-16 6:30 
GeneralRe: Actual Coding - Learning Curve Pin
Member 32576065-Jul-16 10:05
Member 32576065-Jul-16 10:05 
GeneralRe: Actual Coding - Learning Curve Pin
Member 104709657-Jul-16 14:06
Member 104709657-Jul-16 14:06 
GeneralBrain pollution Pin
Peter_in_27803-Jul-16 15:19
professionalPeter_in_27803-Jul-16 15:19 
GeneralRe: Brain pollution Pin
Garth J Lancaster3-Jul-16 15:26
professionalGarth J Lancaster3-Jul-16 15:26 
GeneralRe: Brain pollution Pin
Peter_in_27803-Jul-16 15:59
professionalPeter_in_27803-Jul-16 15:59 
GeneralRe: Brain pollution Pin
Garth J Lancaster3-Jul-16 16:17
professionalGarth J Lancaster3-Jul-16 16:17 
GeneralRe: Brain pollution Pin
Mark_Wallace5-Jul-16 7:36
Mark_Wallace5-Jul-16 7:36 
GeneralGNOTD Pin
Brisingr Aerowing3-Jul-16 13:48
professionalBrisingr Aerowing3-Jul-16 13:48 
GeneralSince it's Independence Day Eve PinPopular
Jörgen Andersson3-Jul-16 6:32
professionalJörgen Andersson3-Jul-16 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.