Skip to content

u/DiscontentDisciple

In this archive from Oct 2010 to Jul 2020

1
posts
24
comments
0
media
58
score

Do you have test data? You could refactor it and just teat to make sure you get the same output. While your code may not handle every edge case since you don't know the business requirements that it addresses, you should be able to get the gist of it.

My guess is it's poorly written, no single class should be incomprehensibly large. So this is someone throwing their entire business in main()

Also, you could try walking through it and just comment the shit out of it. Start with what it's actually doing since you don't know why. If you're using an editor that allows you to collapse sections, comment then collapse leaving the comment visible, this will leave you with the flow. Your comments will suck without the why, but it might be enough to figure it out.

6 points

They are pretty close with the current versions. In the Old days, it was PostgreSQL for ACID compliance and MySQL for Speed, but these days both are totally compliant when configured correctly and both can be fast when configured for it. Basically, it doesn't matter. I personally prefer postgresql just because I find it easier to manage things like permissions on. But it's really up to you.

1 points

I just use windows for an IDE, I have a test server (Ubuntu) that the IDE pushes to when I check stuff in. I didn't feel like running this script there because I'm lazy and it was faster to throw it in the local directory. I also have a Windows Server with a Xeon in it sitting next to me that I was too lazy to setup WAMP on, because I'd have to figure out how to kill IIS. haha.

0 points

Just keep coding man. I look at code I wrote a year ago and wonder what the hell I was thinking. It happens to all Programmers. The trick is establishing some "best practices" that you do and always meet those and if some of your queries aren't optimized or something it doesn't matter. Just make sure you do the things that are on your best practices list (Hash Passwords, Don't pass sensitive data in plain text, etc. etc)

5 points

try breaking the URL into Segments 3 and 4, with 3 being http or https and 4 being the rest of the URL.

Then you can add the slashes back manually, or just use CI's prep_url() command if it's http.

edit, or just send it without the http/https and add an optional 4th parameter to handle the few https cases you get.

4 points

Just for the sake of testing, try sending something that doesn't have a domain at the end and see if that works. If it does, try changing your encoding to replace the "." with a "|" or something not normally in URL's and change it back in your controller. Apache might be seeing the .com at the end and getting screwed up.

2 points

It seems to have calmed down now, after having it open for a long time, it's possible it was still syncing. It's clearly much larger than other text-editors I've used in the past, but I've never really played with a proper IDE, so I don't know what's typical.

1 points

Right, I get that. I was trying to figure out what features people we're so in love with as to necessitate the fact that it's a brutal ram hog and slows everything down. I'm not familiar with it, so I'm sure I'm missing something awesome that makes it worth the cost. Clue me in.

2 points

This thing is a brutal resource hog. Even of successive openings when it shouldn't really be indexing anything. Does it ever calm down? It seems like some cool features, catching unused variables and such, but it's nothing I haven't seen with add-ons in notepad++, is it?

-1 points

Well, first, depending on where you operate the business, it may have to be licensed in the US. So be aware of that. Some Cities require business licenses.

And Even if an LLC isn't needed, it may not be a bad thing if you're making decent money, It's just a little bit of protection in the event something goes way wrong.

but to more specifically answer your question, you complete schedule C as part of your 1040. http://www.irs.gov/pub/irs-pdf/f1040sc.pdf

Also, I'm not a lawyer/CPA/Tax Attorney, just have an accounting degree. So Consult your CPA =)

1 points

Well, an LLC isn't a bad idea, as they can act as flow through tax entities as well. but formal, corporations, called C-corps, or an LLC electing to be taxed as a C-corp are taxable entities themselves, non-electing LLC's are not taxed. Just make sure you do your LLC paperwork correctly, as you can elect to be taxed if you wanted to. but LLC's default to partnership tax treatments, so untaxed.

Basically the biggest perk of a corporation is it can declare bankruptcy without damaging your credit or exposing your personal assets (House, car, etc) to the liability you incurred. If you do something deemed to be grossly negligent (knowingly sell lead tainted children's toys) or in bad faith (pull out a ton of cash and BK) then a court can "pierce the corporate veil" and come after your personal assets, but for the most part, your personal stuff will be safe in the event of debt or lawsuit.

The amount of profit you make doesn't have a lot to do with it. If you are in an industry that you don't have any liability (Selling Photoshop Layer Styles) then an LLC probably isn't needed. If you're a mechanic or something where you could get sued, then register as an LLC and limit your potential liability.

Edit: Typos.

3 points

FYI, Corporations are designed to Limit Liability, so if you're not going in significant debt or making a product which could potentially harm someone corporations only add to your tax burden as they are taxed themselves then you pay taxes on the salary you give yourself.

So stay a flow through tax entity (Sole/Partnership) as long as possible if you are not exposing yourself to risk.

2 points

Charge what you're worth! Seriously, this will be very hard to do.

You should be shooting for clients that A) are interested in paying you because they realize you're the expert and B) can afford to Hire and Pay you. You will get these clients more often if you're more expensive.

Good Designers are expensive, work on being worth a lot, and charge the correct amount!

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.