For me, it's always the Full Line completion. That'll run at 100% CPU, all the time, and bring my Macbook from 10 hours of battery time, to at most an hour and a half.
Thanks for sharing this! I see where all the other comments are coming from, but sometimes just getting something working like this is fine. It's not ideal, but what ever is? I learned something today, thanks :-).
You have a database table named categories. The only columns in there are the primary key, an integer id, and a label, a string. The only way to modify this table is through the PHP code.
The blog posts table will have a column named 'category_id', which has a foreign key constraint to the category table, with ON UPDATE set to RESTRICT, and ON DELETE at to restrict as well
You'll always refer to the category by name, and use the name to get the pk for using it with the blog posts
Say you have categories: travel, food, and misc. You add a blog post, to 'travel', get the primary key for 'travel', so do an INSERT into the blog post table, and set category_id to the pk of the travel category
What? What do you mean by undesired issues? If you're adding one, you're adding one. Nothing to it. Deleting one? If it'd attached to a blog post, it'll either fail or empty the category id depending on the foreign key, and if it's not attached to any post, it'll get deleted just like that 🤷
We started off by including our entire database scheme in our project - to deal with autocompleting SQL queries. Was a small step, took some getting used to. Then, my next step was to actually include both the Code Style and Inspections. This was a bit difficult, as different Phpstorm versions format those files differently, leading to some weird commits because people weren't paying attention
Trailing new lines, a newer setting being turned on/off. Next step is to look at PHP CS, or something along those lines, although I myself am a bit hesitant.
I like having guidelines, and I do enforce those during code reviews, but I'm not at all that comfortable having it enforced upon me by a tool, rather than human eyes
No worries -- you're absolutely right, in every way. It's exactly because I myself am in this situation, I see no issues, merely exciting things to be won over. OP is new to this, and I should have taken a step, two steps, back, to figure out what he really wants/needs.
Again -- absolutely right, if not for the simple fact that the web server config (which I tried to find just now, but couldn't) was completely messed up, and didn't make any sense whatsoever.
I was going to say, HTTP_HOST is sort-of client input, but so would the fastcgi_param be, it's just feels a bit more safe.
But, we have a mapping in front of ours. If the subdomain does not exist, just redirect to our main website. We also support different TLD's, and can run the same container/database config for different subdomains, all because we, in Nginx, decide what the SUBDOMAIN param should be, rather than rely on HTTP_HOST.
The OP is a noob who's willing to learn. He's sure that there's a way, he just needs help figuring out what it's called, and is looking for examples. OP is alright in my book. You learn by doing, and failing.
this made me say what the fuck out loud
Great work so far!
Would love a
Model::factory()click through, like Laravel Idea has, to end up at theModelFactoryclass. That one's very useful haha.For me, it's always the Full Line completion. That'll run at 100% CPU, all the time, and bring my Macbook from 10 hours of battery time, to at most an hour and a half.
Why do I have to wait 11 seconds for it to load? 🤯
How's life as a Chinese agent?
https://github.com/mezzio/mezzio-swoole/issues/71
Tests? Absolutely. Barely scratching 20% of lines I'd reckon, but perhaps 60% of files. No static analysis sadly.
Coverage at my current job is much better, but still no static analysis (but we're seriously thinking of it)
I used to at my previous job: but that's because too many times people simply didn't check their own code or merges properly, so it was a necessity.
Haven't needed it at my current job for 9 full months so far.
I've voted for 48 hours, but what I meant was, please go dark indefinitely as to follow /r/music
thats what i see
We have brand new M1 Macbooks, and PhpStorm is definitely not sluggish or whatever. It's an absolute beast.
Thanks for sharing this! I see where all the other comments are coming from, but sometimes just getting something working like this is fine. It's not ideal, but what ever is? I learned something today, thanks :-).
NO ESCAPE FROM REA-LI-TY
I don't disagree - and yet, I feel if you were to see it next to the other brands on the shelft, it would definitely stand out.
Which is, in all fairness, what you want.
Can we conjure up a mnemonic? Santa hates needles, and not hay (string haystack needle, array needle haystack)
I'm so glad the PHP ecosystem isn't riddled with those stupid, littlest 11 lines of code packages. At least to my knowledge.
no, no it's magic all the way down
What values store?
You have a database table named categories. The only columns in there are the primary key, an integer id, and a label, a string. The only way to modify this table is through the PHP code.
The blog posts table will have a column named 'category_id', which has a foreign key constraint to the category table, with ON UPDATE set to RESTRICT, and ON DELETE at to restrict as well
You'll always refer to the category by name, and use the name to get the pk for using it with the blog posts
Say you have categories: travel, food, and misc. You add a blog post, to 'travel', get the primary key for 'travel', so do an INSERT into the blog post table, and set category_id to the pk of the travel category
What? What do you mean by undesired issues? If you're adding one, you're adding one. Nothing to it. Deleting one? If it'd attached to a blog post, it'll either fail or empty the category id depending on the foreign key, and if it's not attached to any post, it'll get deleted just like that 🤷
Seems like they were automatically built though.
"Top 7 PHP Frameworks", then only goes to show 5.
:shrug:
We started off by including our entire database scheme in our project - to deal with autocompleting SQL queries. Was a small step, took some getting used to. Then, my next step was to actually include both the Code Style and Inspections. This was a bit difficult, as different Phpstorm versions format those files differently, leading to some weird commits because people weren't paying attention
Trailing new lines, a newer setting being turned on/off. Next step is to look at PHP CS, or something along those lines, although I myself am a bit hesitant.
I like having guidelines, and I do enforce those during code reviews, but I'm not at all that comfortable having it enforced upon me by a tool, rather than human eyes
They're messing with you :(
No worries -- you're absolutely right, in every way. It's exactly because I myself am in this situation, I see no issues, merely exciting things to be won over. OP is new to this, and I should have taken a step, two steps, back, to figure out what he really wants/needs.
Thanks colshrapnel :).
Again -- absolutely right, if not for the simple fact that the web server config (which I tried to find just now, but couldn't) was completely messed up, and didn't make any sense whatsoever.
I was going to say, HTTP_HOST is sort-of client input, but so would the fastcgi_param be, it's just feels a bit more safe.
But, we have a mapping in front of ours. If the subdomain does not exist, just redirect to our main website. We also support different TLD's, and can run the same container/database config for different subdomains, all because we, in Nginx, decide what the SUBDOMAIN param should be, rather than rely on HTTP_HOST.
The OP is a noob who's willing to learn. He's sure that there's a way, he just needs help figuring out what it's called, and is looking for examples. OP is alright in my book. You learn by doing, and failing.