No, publication of an invention in any form by the inventor before filing of a patent application would disqualify the invention to be patentable. Hence, inventors should not disclose their inventions before filing the patent application.
The invention should be considered for publication after a patent application has been filed. Thus, it can be seen that t11ere is no contradiction between publishing an inventive work and filing of patent application in respect of the invention.
Patent is a statutory right for an invention granted for a limited period of time to the patentee by the Government, in exchange of full disclosure of his invention for excluding others, from making, using, selling, importing the patented product or process for producing that product for those purposes without his consent.
The date of patent is the date of filing the application for patent (whether provisional or complete). The term of the patent is counted from this date.