OK Folks, some introduction. I wasn't born in the US, I come from the underdeveloped world, where due to lack of resources it was usual to have a pair of bare wires acting as a light switch (seriously!) and there was no such thing as formal codes, NM-B wires, GFCI outlets and so forth. However, I studied electrical engineering early in my career (now I'm a software engineer), I am pretty familiar with US electrical codes (although not so involved in deep details, don't have time to read the full NEC book...).
The question is:
Can I do electrical work in my own house? I'm planning to install some lights in the attic, and I know for sure that I am not going to cause a fire hazard. I know how to install junction and switch boxes, run NM-B wiring, ground everything properly, following hot/neutral color codes, secure wires with staples, and so forth. I plan to run power out from an existing outlet in the existing circuit that powers that outlet and the typical attic light bulb. I plan to add 3 or 4 more lights and a new switch.
Am I supposed to ask for an electrical permit? If so, let's say that I don't ask for a permit and do the work? What problems could this imply if anyway, nobody knows what's inside my attic?
Just trying to save some bucks, since I feel pretty hesitant to hire an electrician and spend 100+ bucks for doing something so trivial to me. I would feel like an idiot, throwing away money, when I have seen poor electrical work done by supposedly "licensed contractors". Any ideas?