I should really learn RoR. I guess the padev is all set up for it eh?
I tried to set it up on my home server a while ago and got confused as fuck. There seemed to be a documentation gap between "rails new <project>" and very narrowly focused code snippets.
For example, I have no idea what a "generator" is or how it's used to stub out a web app. If you give it a go, can you post some updates from the front to this thread?
A generator in Rails is just a script that sets a basic scaffold up for you. "rails g controller" and it makes all the basic bare-bones CRUD methods, "rails g model" is ditto for the model, or "rails g scaffold" for the whole shebang.
edit: that book I linked above mentions generators, but it seems to mostly ignore them and write all the code from scratch in order to teach it properly.
I should really learn RoR. I guess the padev is all set up for it eh?
I tried to set it up on my home server a while ago and got confused as fuck. There seemed to be a documentation gap between "rails new <project>" and very narrowly focused code snippets.
For example, I have no idea what a "generator" is or how it's used to stub out a web app. If you give it a go, can you post some updates from the front to this thread?
balrgh........so burnt out. I'm starting to think its time to move on. I'm a contractor here and no matter how much work I do I get zero credit. I did a small project that somehow BOOMED and became really interesting for our sponsors. So I finished it up, put it out the door.....they sent out an Email to us and their entire company thanking the woman who Emailed them the project for all her hard work........This is not the first time this has happened. Why is it so hard to give credit where credit is due? Grrrrrrrrrrrrrrrrrrrrrrrr. Really sucks cause I like the people I work with and the work that I do, just can't stand the ZERO credit I get.
Thanks @echo , I have a book here for straight up ruby, is that just going to give me a basic overview of the language as a whole similar to writing apps? I imagine RoR is the "cgi" equivalent?
What I'd really like is a web UI maker. So I don't have to toil with HTML and all that. Also so I don't have to fudge around with CSS. Really if I can avoid that whole process that'd be great. I notice you guys recommend some framework for making swag sites, but, whenever I tried using it it still wanted me to have some basic idea of what I wanted it to look like.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
Funny thing is that bbcode was created so whoever did it could avoid having to regex out unwanted HTML tags by just using [ ] instead of < > for the tags.
Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.
Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.
You are interpreting it wrong. This isn't intended to fix php, it's intended to help php programmers and projects to achieve interoperability despite the language's shocking deficiency in being consistent. Once you work with a production codebase that conforms to it, you will appreciate the difference.
Not establishing a coding standard is right there in the top 3 of easy mistakes to make on multi-developer projects.
Is all open source documentation worthless, or did I luck out with Symfony2 and Composer?
Not all, but most! Nobody likes documenting things, and especially nobody likes documenting things that they're contributing to for free with their spare time.
Is all open source documentation worthless, or did I luck out with Symfony2 and Composer?
Not all, but most! Nobody likes documenting things, and especially nobody likes documenting things that they're contributing to for free with their spare time.
Good point. Still, it sucks having to drill through github issue tracker comments to learn things that should be in the README.md, or the project's website, or a CLI --help command.
PSN/XBL/Nintendo/Origin/Steam: Nightslyr 3DS: 1607-1682-2948 Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.
Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.
I like how I've never seen this guide before but already follow the majority of its standards.
Except, of course, for
Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.
Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.
Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.
I like how I've never seen this guide before but already follow the majority of its standards.
Except, of course, for
Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.
Heretics!
There is a special circle of hell for you and those like you.
Yeah, I already invented most of that style guide on my own. Was working on a general style guide of my own, actually.
0
Monkey Ball WarriorA collection of mediocre hatsSeattle, WARegistered Userregular
I'm flexible, I try to follow the style of whereever I'm working, which has up till this point always been next-line, but when I'm doing stuff for myself, I keep it same-line.
In Go, you have to use same line, not doing so is a syntax error. Mostly because semicolons are optional and discouraged.
"I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
Posts
I've only read a teeny bit of it, but this seems pretty darn solid for learning Rails.
I tried to set it up on my home server a while ago and got confused as fuck. There seemed to be a documentation gap between "rails new <project>" and very narrowly focused code snippets.
For example, I have no idea what a "generator" is or how it's used to stub out a web app. If you give it a go, can you post some updates from the front to this thread?
I don't think it's the same thing in ruby/rails as it is in python though.
edit: that book I linked above mentions generators, but it seems to mostly ignore them and write all the code from scratch in order to teach it properly.
Better yet, to the front of PAdev. 8-)
It could be a webseries.
"rails new poopypants - Part 1"
Out of all PHP :rotate: I think this is my personal top pet peeve.
And I see you found out the hard way why you never use empty(), ever. It is best thought to not exist.
"THIS function came from THIS language where it has that name and THAT came from THAT language, so we kept the names!"
And that's why I call it a cargo cult language.
foo:par
from looking like
foo
I know I have often had problems with inadvertent emoticons.
Someone used regex for parsing? You don't say.
Thanks @echo , I have a book here for straight up ruby, is that just going to give me a basic overview of the language as a whole similar to writing apps? I imagine RoR is the "cgi" equivalent?
What I'd really like is a web UI maker. So I don't have to toil with HTML and all that. Also so I don't have to fudge around with CSS. Really if I can avoid that whole process that'd be great. I notice you guys recommend some framework for making swag sites, but, whenever I tried using it it still wanted me to have some basic idea of what I wanted it to look like.
It's certainly an ideal usage, but it's also never easy to match every intended input while rejecting every unintended input.
I'm gonna get tired linking this:
https://github.com/php-fig/fig-standards/tree/master/accepted
Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.
Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.
I see no reason for this software not to emulate a N64. Put it on as "desired", on the board please.
He does this from time to time.
That's a really nice bow they tied on that turd.
Same effect, new code, for VANILLA :rotate:
Fie on you and your code.
You are interpreting it wrong. This isn't intended to fix php, it's intended to help php programmers and projects to achieve interoperability despite the language's shocking deficiency in being consistent. Once you work with a production codebase that conforms to it, you will appreciate the difference.
Not establishing a coding standard is right there in the top 3 of easy mistakes to make on multi-developer projects.
Worthless piece of horseshit.
My eyebrows are frowning. FROWNING.
oVo
*mutter*mutter*should have been retired years ago*mutter*mutter*
Waaazzaaaaaaaaaaaaaaa........
Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
Not all, but most! Nobody likes documenting things, and especially nobody likes documenting things that they're contributing to for free with their spare time.
Good point. Still, it sucks having to drill through github issue tracker comments to learn things that should be in the README.md, or the project's website, or a CLI --help command.
Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
I like how I've never seen this guide before but already follow the majority of its standards.
Except, of course, for
Heretics!
There is a special circle of hell for you and those like you.
Link to existing bugs: BUG-7238, BUG-8143
These bugs keep on reoccuring due to my current desk being made of particle board, thus causing "Knock on Wood" to return false.
Request desk upgrade to oak, or native rimu, to ensure permanent resolution of linked bugs.
In Go, you have to use same line, not doing so is a syntax error. Mostly because semicolons are optional and discouraged.