« first day (2905 days earlier)      last day (2268 days later) » 
01:00 - 20:0020:00 - 00:00

20:00
@NikiC Ah. That makes sense....
Wes
Wes
if(
    $veryLong1 ||
    $veryLong2 ||
    $veryLong3 ||
    false
){
who else does this :B
@Wes Isn't that "false" redundant ?
@Wes nobody
Wes
Wes
function test(
    $a,
    $b,
    $c,
    $unused = null
)
absolutely nobody
Wes
Wes
20:02
ahaha
not a single person
not even yourself, really
@Wes I do (without false)... when I have no other options. But first thing I try refactoring that condition in a function/method
@Wes If long if I will usually make each line have to be true. it would be something like:
Wes
Wes
@bwoebi shhhh
20:03
@Wes the way to write this is by the way:
Wes
Wes
that is too much even for me
if ($veryLong
 || $evenLonger
 || $theLongest) {
    // bleh
}
if(
true || false
&& $foo
&& $bar
)
@bwoebi naah, it fucks with 4-space indentation
"if (" just magically happens to be 4 spaces
@tereško that's why you use tabs
20:05
;D
Ok. Lastly how would you recommend I clean up my past mistakes :P
@JBis document them
@tereško to distinguish block-level indentation from actual fine grained alignment
same way as '$sql = "' just happens to be 8 spaces
I was thinking next time the user signs in rehash everything with those algorithms.
20:06
@bwoebi my actually point was, that the whole thing should be written as if ($this->isMatch()) {
@JBis at work I have a folder called "documentation" in OneDrive... and anything related to my documentation with my job goes in there... mainly it's for other people, but if there's something I know but can't remember for the life of me at that moment, I'll try to have something in there with the answer
when you have complex conditions: extract them as a method/function
@tereško Happens often enough that I have some assignments in there if (($a = ...) || ($a = ...) || ($a = ...))
I have a document for "Why our Document Library in SharePoint uses Classic Experience" because I kept forgetting. I eventually remembered and wrote it down. (it has a search box, the "site-wide search" isn't as thorough for documents as the one in the document library web part)
@bwoebi that's just terrible .. and you are well aware of it
20:09
@tereško I don't like it particularly, but sometimes I just need the short-circuiting and this is the simplest way to write it
@Tiffany thats smart
@bwoebi and it's the hardest way to maintain it
@JBis I learned from my mistakes ;)
really ... just extract a method
you can still have an assignment, but only one
@tereško If you want to maintain it and the condition is getting too complicated, just extract it then.
20:10
Also "PASSWORD_DEFAULT - Use the bcrypt algorithm (default as of PHP 5.5.0). Note that this constant is designed to change over time as new and stronger algorithms are added to PHP.". Wont that fuck up all old hashes?
return is almost custom-made for short-circuiting
@Tiffany I have /docs folder in project root for that
@JBis it shouldn't because the hashes are made at the time of creation (I think)
and editor has a pretty nice search
@Tiffany Thats good.
@tereško Sure, there are definitely cases where the condition is self-contained and easy to describe with two words
and does not involve like 10 different variables
20:11
btw @tereško, How can I remove this db_dump which exists on old commits and has 500MB size from, the repo?
There extracting it is perfectly fine
@Tiffany Oh. I get it. password_verify will check what algorithm to use....got it
@bwoebi you do not always need to use is<condition> naming scheme. Instead you can use should<condition of body> instead
@tereško but there exists a point where it gets ugly
@tereško that's just an example of the type of documentation I keep... basically any question that I've asked myself more than two or three times and I keep forgetting, I put in a document and save to that folder.
20:13
@tereško I'm not even arguing as I agree with that
> .. and you are well aware of it
I know, I am just point out that you are being lazy
I guess password functions are idiot proof.
I have that folder set up to where it's shared to multiple people in my department, they all have read-access to it, in the case that I don't have a "procedure" written for one of my job functions and I'm unavailable.
@Tiffany you probably should talk to your management about setting up a self-hosted GitLab ... it comes with "Wiki" feature
@tereško I'm the only one that uses git, remember? ;P
20:16
@Tiffany should I ups you a lead pipe for ... emmm ... additional argumentation and improvement of team moral?
we do use spiceworks at work for ticketing, but no one else uses the knowledge base feature of it.. I tried getting people to
Thanks for your help guys!
@Shafizadeh you can try it on your own, just make a separate clone of your repository help.github.com/articles/…
@tereško our "primary" documentation is a huge-ass Word document with "procedures" of job positions that people wrote. It's like 400 pages now.
> You can get more with a kind word and a gun than with just a kind word. -- Al Capone
20:19
we have a "no concealed guns" sign on our doors
besides, I'm too mentally ill to own a gun
- Does anyone in your family suffers of alcoholism?
- Noo doc, we all enjoy it.
you're going to die from cirrhosis :P
doubtful
@Tiffany on a more serious note, you really need to push your team to adopt git
@Shafizadeh and you need to push your team to start using feature-branches
(in both cases, the GUI tools for GIT will be beneficial)
you know, two of our team's members have the same account .. because of bitbucket limitation .. I guess it's hard to force them to use branches
20:26
@Shafizadeh you will need to migrate to GitLab soon
@tereško I've tried, multiple times. One problem is I don't know git well enough to argue for using it because I tend to use it in a haphazard fashion, though I am getting better.
if you can't do it on your own, I can help you
@tereško I guess now is not a good time .. learning gitlab interface takes a while
@Shafizadeh they should not need to learn gitlab interface
all the need is to register and add SSH keys
@tereško well I need :-)
20:27
:D
@Shafizadeh when is it ever a good time?
you gotta make time
@Shafizadeh I can "talk you through on fingers"
it's quite simple
@Tiffany when we updated our website (probably tomorrow). This new ver will boost our SEO.
@Shafizadeh what I would suggest to you is to let your team know, that you WILL be migrating to GitLab at some point in the near future
@tereško talk with me through fingers? Is "fingers" an chat-app like Discord?
20:29
so that they can on their own research it for a week or so
@Shafizadeh no, what I meant is that I can tell you where to click and what it will do
@tereško agreed
@tereško ah ok good .. like always :-)
@Shafizadeh it's never a good thing to drop "new changes" on your team's head like a bucket of cold water
also, do you have any idea about hiding "robots.txt" file for others (but not search engines like google) ?
@tereško I'm good in managing a team .. do not worry
I do worry :P
as for robots.txt .. well ... you can always run it through php
:D .. well don't .. my teammates worship me :-)
@tereško how do you mean exactly?
20:32
well, you can't do it right now
I need to finish working on those architectural changes
then you will be able to add robot.txt as a "route" in the configuration
so that the request can be handled by PHP code instead
and in this php code you can do all the bot-checks you want
Well we will upgrade the website tomorrow, so you think I have to keep robots.txt still hidden?
@tereško I see
leave it as it is now
we can talk about changing server's configuration, when that branch, that I am working on, is ready to be merged
do you know currently it not accessible for other except googlebot ?
(assuming I do not get distracted, it should be ready in 3-4 days ... and 2 days for code review ... so, about a week to prod )
@Shafizadeh yes, I know
@tereško ok, at least, how can I find a list of all huge-search-engines domain names to put them in the list here:
<Files robots.txt>
    Order Deny,Allow
    Deny from All
    Allow from googlebot.com google.com google-analytics.com
</Files>
20:36
there are libraries in composer, which have a handy "is search bot" function - we can migrate to that, when the new routing system is done
@tereško ok good
@tereško very good
@Shafizadeh bing, duckduckgo
@Tiffany I need the exact domain actually
@tereško So, do you believe I have to avoid updating the website until that time?
@Shafizadeh bing.com, duckduckgo.com
20:37
you just update whenever you want
that's why I am working in a separate branch (nothing I do affects the master branch)
@tereško I don't want to update the website without robots.txt :-(
@Tiffany is there a full list name of them? I guess they have bots, like "googlebot.com"
@Shafizadeh just keep the robot.txt as it is now
@tereško I don't like that .. It is not good now
@Shafizadeh seems like something you could google 😛 I do recall spider traffic from yandex and there's another, but I don't know how popular they are
@tereško you know, we've done lots of great jobs for SEO in this version. I want to make that robots.txt good too
20:40
@Shafizadeh look at it this way: google has about 90% of the search market
@Tiffany ok sure :-) there is a good list named "user-agent" in this link. But sadly it doesn't mentioned to the exact domain name
and all of the other search engines actually use the data from google to supplement their results
if your site works only with google's bot for now, it is "good enough" as a temporary solution
@tereško The issue is, I'm not sure these are all of google's bot: googlebot.com google.com google-analytics.com. I'm worried about the rest of google's bot if there is any
@Shafizadeh googlebot.com isn't a site, googlebot is the name of the user agent
@Tiffany well I don't know .. I copy/pasted it from somewhere.
20:43
@Tiffany and getting that requires PHP code ... or some deep magic in .htaccess
better to leave it as it is now
when the new routing system goes up, you will be able to use PHP code to easily add the bot-checks
is it a good idea to add all of these in .htaccess too?
no, because you don't care about them
@tereško emm.. well hurry up .. I'm looking forward to publish that version :-) (containing a proper routing system)
@tereško ok sure
what you care about is Google, Bing, Yandex and whatever china has
@tereško do you know what should I add in .htaccess for having "Bing" ? Is bing.com ok?
20:46
I don't think they have a domain :(
hi friends, regarding JWT authentication, it says that token is not saved in db at server side. Then how does it verify the token at server side at every request?
Yandex might have (that's the major search engine in Russian Federation)
btw, Yandex has a pretty nice weather app for phones ... the use both neural networks and crowd-sourcing to supplement the data
and they don't require access to your call-history for the app to work
hmm .. sounds nice
also, what do you think about this solution??
20:50
that's a "PHP solutions"
as I said, you need to wait a bit to implement it cleanly
@tereško I can use in inside index.php
@tereško I really like to implement it until tomorrow, for the new version :P
@Shafizadeh you do not want to allow all the bots to access it
@tereško I want to allow everything, but not people (who may want to access my sitemap files and then spy my valuable databases)
people who will scrape your site will also use bots and crawlers
@tereško ah, I see
20:52
people will not scrape your site
other bots/crawlers - might
ok got it .. I will leave it what it is now
@Shafizadeh here is another thing you need to learn - there are very few "immediate solutions" in programming, and especially in "published projects"
everything you make need time to develop, time to test and time to deploy to production servers
having a pipeline of week is very good
I see. I understand
the main problem with published projects is that you can loose users, if you blow up your site because of some stupid mistake
true .. that's very bad
20:55
@ArunRaaj probably stored in a config file
@ArunRaaj That is the type of question that you are more likely to get a clear answer by googling, rather than asking in a chat room.
and if you get some "external requests" you would always tell that it will require at least a month
because the request will turn out to be a lot more complicated that you expected
and the people who can work on it will already be working on something else
The Mythical Man-Month: Essays on Software Engineering is a book on software engineering and project management by Fred Brooks first published in 1975, with subsequent editions in 1982 and 1995. Its central theme is that "adding manpower to a late software project makes it later". This idea is known as Brooks' law, and is presented along with the second-system effect and advocacy of prototyping. Brooks' observations are based on his experiences at IBM while managing the development of OS/360. He had added more programmers to a project falling behind schedule, a decision that he would later conclude...
you should really read this boook
(not sure if you can get it in Persian ... but you actually might)
yeah ... currently I'm the project manager of a company .. so I totally know how a project takes time to get done and how should I announce a deliver-time
trust me, you need to try reading this book, if you are dealing with project management
sure .. I will, I set a reminder to read it
and the sad part is, apparently there is not translation of it :-(
(in Persian)
21:02
well, this is one of the books I would actually recommend getting in a paper form
so that you can pencil in translations for hard-to-understand part and share with others
btw, has gitlab private repo for free?
ok good
good .. now I'm wonder why people use github
21:05
because it was the first one
and actually a lot of people have been migrating away from it
it' a bit similar to the question "why the language of internet is the english" .. answer is "it's because the country who made it uses that language"
"inventor's prerogative"
@Tiffany I recall you liked running: i.redd.it/5ry7helcm7p11.jpg :D
and, no, it's not Onion
21:24
@tereško lol
 
2 hours later…
Wes
Wes
23:11
i want to fucking die
any reason in particular, @Wes
?
Wes
Wes
i need to put the settings of phpcs in a repo, so i copied the directory structure exactly like another repo that does the same thing, and it does not work
i tried a million modifications and it's still not detecting it
php tooling is shit
@Wes you're going to try it again tomorrow and it'll be something that'll take you ten minutes tops
Wes
Wes
AAAAAAAAARGGHHHHHHHHHHHHHHH
this is insane
Wes
Wes
23:42
omg
basically rather than checking for the composer paths, it looks for a keyword anywhere in the path
my repo happens to be named like that keyword (sniffs) -__-
28 mins ago, by Wes
php tooling is shit
ah btw this thing is not capable of using composer for third parties, so you need a tool that hooks into composer and writes into the dependency's settings
i don't know why it has to be like that.....
i lost all my hopes
Does it sound ridiculous to track the number of times a user logs in?
01:00 - 20:0020:00 - 00:00

« first day (2905 days earlier)      last day (2268 days later) »