I
I
instla2018-11-08 22:59:05
Python
instla, 2018-11-08 22:59:05

Where to look for partners for php projects/startups?

There is an idea for many services, and we need people with whom I could implement these ideas, share experiences, and help each other.
However, no one discusses the ideas. The forums discuss the code.
Thinking about it, I realized that ideas are being discussed on Habré. However, they don't often deal with php commerce.
Of course, you can post an announcement in the places of accumulation of php coders, a signature on the forum. Post your engines on github so that you can be found and offered something.
What sites can you recommend?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cobalt the Terrible, 2015-10-12
@Pompeius_Magnus

Below are the comments, questions that arose after I ran through the eyes posted on the link in five minutes.
Not about code:
1. Don't use .gitignore. You have README.md~ in your repository
2. You should use markdown in README.md itself
3. What's the commit with the all message?
About the code:
4. As already noted: a big sheet without splitting into functions, which for some reason was stuffed into the main function.
5. The code does not follow PEP8 (set yourself some kind of checker and check the code). In particular, there are a lot of long lines that are very difficult to read, it would be better if they didn’t put the code in main, adding extra 4 spaces to each line, but did without functions at all.
6. There are no comments about the logic of file processing. Perhaps, of course, the logic is simple, but it became lazy for me to delve into, parsing the code.
7. The code below can throw an exception if someone misconfigures the script. Why don't you process this exp, although you catch paramiko exceptions?
Check what you have configured in your script. With so many settings, it is guaranteed that there will be typos, forgotten commas and quotes.
8. Why is the call to getcwd wrapped in str in one case, and not in another? This should be explained with a comment if str is really needed (which I doubt :))

path_local = str(os.getcwd()) + '/logs/' + name_logfiles
path_to_logs_parser = os.getcwd() + '/logs/' + name_parser_logfiles

9. Since the os module has already been imported, why not use os.posixpath.basename instead
name_logfiles = file_path.split('/')
name_logfiles = str(name_logfiles[-1:])...

10. Similar note about os.posixpath.join
11. Use string.format. Instead of
12. If you really want to cram if-s into one or two lines, then use conditional expressions.
if i - context < 0: j = 0
else: j = i - context

converted to
j = i - context if i - context >= 0 else j = 0
# а то и вовсе пишите
j = max(i-context, 0)

13. Why are you constantly comparing your found_error and first_iter variables to False? What prevents to write at once if no (first_iter)? Why do you write if found_error == False: print '1' else: print '2' instead of the simpler if found_error: print '2' else: print '1' ?
14. Use context managers, list comprehensions. The code snippet below does not need a comment. You are just duplicating code.
logfile = open(path_local, 'r')  # open file for read
for line in logfile:
    logfile_list_old.append(line)
 logfile.close()

Compare with
with open(path_local, 'r') as f:
    logfile_list_old.extend(f)

Then it became too lazy to write. In short, the code is very bad. It is disgustingly structured and not documented in any way. To top it off, he's not exactly pythonic either.

S
Sanes, 2018-11-08
@Sanes

Ideas are discussed in communities on the topic of the idea itself. It has nothing to do with code.

I
ikerya, 2018-11-08
@ikerya

Have you tried Topface?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question