Merken

Rediscovering ActiveRecord

Zitierlink des Filmsegments
Embed Code

Automatisierte Medienanalyse

Beta
Erkannte Entitäten
Sprachtranskript
the you and that
the and the legislature was is where I work for the real of you had a more work of then image controls that that they all and when went to talk to the on the screen is the of British scoring active so so that that the release
right we are all familiar with the record and when I came to rail sitting out there and the usability of the 1st thing that I think hear from the people is what was that what was magic for the 1st that we just sort of tree with a finer class but how why and side events and that's with my know working working pressure that the years ago of a stand by and watch over time but but just find out that on and actually this is my job and recorded and at the request of empirical things that are already present hiding a lot of the complexity and so that implies to happen a model can be connected to a table in the database that regret at the end the resources the magical I and I went on to hear from locus just to do some minor inspiration of and when I will guide the mind on actions and that the acting records is doing for us the landlords to transform what was inquiry into and out the so this system would die Asians
why my function properly you're all familiar with this this line it as like a rung alright we are basically just having uh Yonatan enega temporal definition of at the core we're going and that is something that is the alcoholic as variation bias and let you know and this is Audio loading magic and the file that and after Council right I can run this is this this query the way there and that is the the active equitable to leave you wondering here and lost 1 of the writers with the allergies annually with we see below is mostly actualize forms and you only work with the 2 images that on the 3 is case they have an idea dividing and a utterance and of you wouldn't have been treated with you and make them and they see you I work dealing with solid here is the proper and how that you have a of of HaploRec doing by how connected Bricker comic from this in to being able to execute you increase this ways of doing out there in the boiler Madigan grating so we use the 1st thing that we
were invited to understand is that ActiveRecord needs to use some kind of loss on the nature of howl another dates in suspicion the 1st model that are you to perform for pretty a bootstrap to ask the base what is the wage schema picture was that we have to stabilize math and none were not getting a lot of things so the 1st thing to do that we loads JavaServer CSS a model for an application and we try to go through it and in the end of operations like the query really useful the 1st thing that's going to happen is that as uh that's where was by all because coming following basically what it's doing it's calling dismantled if we find that the rounds known as the just configure some although think copies these are the 2 types of what we're gonna or tribal finally these met that it's gonna fire something about the inside of the activity code which is the last year the no we cannot believe that the this this mental this is delegated to the call to the actual content have the death of the universe connection effect to ask that what is the schema for specific model updating that model value the cannot raises a hand in the Met cash upon his so it means leaving that even every time on this the 1st time that we try to use a model that freedom our k at the break was gonna go in or the other pooled their table schema that I made a copy of that caches and at 384 asked for the next calls to these models so it means that only the 1st time for each model we don't make these vote as interest and go like booking like also
distance of the connection is contained guilt loaded here has direct with everything last by which it contains about it at all the attributes older schema for this specific model and we can see presented in this
in this piece of gold but there have always been on the other hand has to discussion of women's position able even to model is nothing that reason not to have where are remission actually issue of authority to the database go it'll depend on each layer is sparse and the how where is was a look like and but if only and we're going to get a hold information that we need to argue that string is a the schema for my say is not so that we can so other application what we are getting but if we if we call directly to ski manner the gas compassion with our simple at the reducer we're gonna get this this because we have the keys are 1 of the onset of the table people and that go don't you it's going to be an object that it's more cautious and have a lot of information but probably is some of the art is more than 1 piece of data that we're looking at here is the whole activity but we cannot hear that that the data were available this model year but also an have like a default values in any other important information that we can use instead of Active Record now that we have these these understanding the Lotus command that middle and also needs to uh only give us the
graph of the of of sorry for and information from the resides over the use of the reality of happened in the past I In the past life it's
something that will allow us to converts but whatever but the database system in acid is gonna be the the the the the datatype that we're studying the database and then what the data type is gonna become on the release site for for India probably this is this is pretty simple mean if we have a number of we're going to have have an integer in the database program have integer on the on the release site but for things like for example 9 7 0 the size of the of the Annual Consortium in there that will help us to make the Caspary over more of the original data type into a B type here and there what is happening in center photographer today's
that was just implement these acting moltaí this is this is a very long that to say that you the real mood public health writer by controller and how it is that you're always gonna make this casting between database states interval women sites if we inspect the ActiveRecord source so we're going to find out that we have a real thermal tied into here at the mall type strain at the mall at the time of the day and and in some other kind of objects that will help us to create this is the 1st gas in the new arena in rising tide you will actually be here is implemented in braille will actually call and the ideas is private is is not available for us but wondrous 5 if you're on actually a greater own types like a for example imagine that we have a a few in the database were we're storing and as they store data in there and then we want to pull the data into a room or breaks up location so here more than an error in has signed wanted to us and red heads and bodies are being sort of objects and this object doesn't really need to be enacted model object it can be pretty much everything or probably we can convert that into an instructor something like that so we can actually define or online at the a tight race for for a time and the way that we can we can do that is that we don't find in them in at least 3 methods on this from the state by all the annotators embodied right as the first one is the civilized peoples is the area 1 until by the rails for record and how we're going so where the hell out there on whatever we're begin from the database into a Ruby are genuine screens that right by the 2nd 1 is cast this 1 is being used for a just sorry so simple it was a halogen as our in our the 100 we have something in the field of has input field so that the number of world when the forum post that information back to 2 rails we need a way to I get a number fair inverted so we're looking into the final type that is going to be stored in the database and finally you would not implement a civilized and nature of the service I O that when I think each of writing following the Ruby died out data is gonna be transformed into a the various that there is like so as they say this is that of the attributes that are without his own out there until and now that we were able to pulled the databases can now i is 1 and 1 the thing which we will be providing of interesting types because or fully or interfering of or other will be in our last but that what is the it's own self time Internet interview with all these
attributes types we can see here were from the uh the response so
that so here is 1 of the it's thinking and we do we know that we can understand that mn but we can dispose steel that to just 1 word or about the way the issue here
request see the and thing URI or rover happen and it's too but on is so you created well the way things like here's a cooking information Active Record is
smart enough to try to minimize has that has a when opted for us that means the way I'm announced him when we execute the query socially these that find and the number rabbits went do this when it tries to find if that the same and has been executed before by is between if it is a is the was the out we're going to just pull out the reason we're just standard forms between every action is rather would provide if not then a or metal is gonna be converted into lot it it a environment how so we can see here in the area of law that's that's the covariance that's whole defined passion header find number response vanity is being conducted all use available for it this is the but the 1st something here that around them and we need to to to pay attention is that the the where cross on so the passing the idea of the object that is about 4 there the are or I'll workers is something by and so by interacting and live in Islamabad means in a minute taking a list of so they don't have the query routing in between the 2 and a half to 2 right and you ones if we go to the statement cache of file wouldn't have find the smallest dismantled in this is this is about the work of the extent of solitary in the quarterfinals sort of like we surrender 1st thing basically going
only when your economy had is tackling with DAE is headed upward into parallel is the control
is and that's what the matter sort of trade create Methodist going this block that called older of action without executing the where clause that we that we that we see before but the point in this work cause it's been converted into this RL and 3 what we have this knowledge which is quality right we have at the active you which is the attribute ID and then on the right side we have something called a dying harm and this is kind of place where the where religion here uh replace that with the idea of octet that we're looking for and if we see the other structure that we have on the left that we see at the end of that we have a block which a reference to the ID but instead of saying that it's an integral over or displaying the value what is actually saying is that this is a associated to substitute this is something that we're going to replace at some point
the next part that we need to work that to
create method assumes on what happens later experienced by the by now use of what basically setting up what are the farms that we're 1 of the best of the 2 the query vector right but the first one on on on the right is as a model for the limit us because we are doing look finds the edges we're actually asking for just 1 record and uh the 1 on the left is that the fish exist for the for the zoning laws lattice so is the idea the info is laboratory that was last the and it's is the 1 that I think it's when
happened here for the but with when I use this query builder soft you have rail the and then we use what actually is going to construct a rightist government inside in this case the is in a specific um a database so that in order to create the right query for the right 1 database so in many cases the persuasive Ragab reducing meticulously announced the query probably will be a little bit the different or here as you can see in the query that I sort of Euler of this these grand for us is that the idea and believe that has the same question mark is which the have that those are placeholders supplement replaced at some point In these n doing this will allow was also to catch the query on the right size shift but also we're going to write their hands on the database which means that in the case the 2 cats equation the action with the action plan for the query and the was quite like all right the you interact
so if you met with me up to this point we we a what the model knows what is a schema fight we know the value that we need to either a query or whether Fazly replacement next
is Williams Notre let your rank student that many of you are you have the money and we're
reconstituted with the thank you and bang
and to happen is that I think now that we have this statement and we're going to be able to call this method execute intimate that executes as you can see 1 of the parties this feeling is how right the the the the trying to you can map to have or the record does not travel from the database the the and what we also present it has random action the execute will do the apple things here the 1st is that
it's going out of actually performed the binds rather you remember right in the previous steps we have a binary and we have 2 attributes in the the first one where of Aberdeen close have and the 2nd 1 was for the ID but at that point but the idea was marked as efficacious a student at the whole we are and how the replacing of employers altitude that's under replacing the value real idea of the record that we have accessible rails engine so what the
fans know well that we are asking and and this step is to actually give us the SQL statement the stream that we're going around and India is we see that we have in highly 90 placeholders at relevant and
then once that we are ready but with active break was going to do is just execute this fine by is secure where we are actually going to pass the at moment learning divine values which are the values of D N a and B are sent to the place for recording and and you can mountains what we are going to get is so at some point this this result that it's going to be something like this from an
interapplication is just now after the applicant has a hierarchy and that roles and for the rows this is an array of of wrestling so on the last sphere but
we are going to perform this we're gonna execute the maps were over so set and it is that you printer is the 1 that is going to create the instances for each of rolling 1 of the records that we all enough rather database here kind but which due to this
information I feel like we know well so it does but for the reasons you include those of threatens the 1st thing is that much to allocate the object like that actually create the object or from user of model and then in the square so initialize the attributes spelled out working in the system is an important step actually they
called for an initial is how the attributes is the 1 that you see in here for the 1st the 1st thing that we
prove that ever ever commits to perform is to define all the original source and the components of the of the of paints things like means this is the 1st time that we use this model so it doesn't have like i . 9 4 . e-mail into and this is this is where endorsement of 7 a B. I having to be defined a they instead of the mall there is a flight that saves the file all the attributes of an initializer not it is not a fan and there is something the prongs and create all these this is the and all the queries and of the logic for this is if you want to look into the source code the very evident networks and actually the logic is his lifelong using the internet origins in that only meets all not by its own because these uh at the requestor from analog his work in the what where and how they up from now that we have employed the activations are the next thing that we need to say for the model is is to create these attributed this sleazy at the research is everything that we call like I do sir . operates on a quarterly we're delighted that knowledge into into the plastic that are in this class so I'm on the nose of what is and what is the data that or model is contained in or that that or the value or object is holding on find or about it now we will spend
society the without having to find out the test and the 2 main variables here the first one is the types do remember at some point told you that uh once a we get the schema we need that cast I and discuss type is a sort the way that would allow a lot data from the data doesn't really type so here we have this has form the urgency of what each of the attributes what it's worth the cost of that is going to
be used and also we have the values that by this is where we are actually holding the data as as it comes from the data is there is there is no transformation here there is nothing that we haven't made to the data to it is just the role data that we get from from the data was the name of the of this class lazy
attribute test this it it it testimony meaning because foreground and let's say that your model has of 10 attributes and when we do just at that time 1 and we get a model so if we if we wanted to cast all the data for the 10 attributes just as soon as we get the data and or if they were spend time over there just doing the casting not to prepare the data to be to be used by us but for example what the place if you attach this is doing is that it is the name that if we just you said that fine the number 1 we're gonna get them the model but not casting is going to be performed on 2 we do something like USA . name and we try to pull the name then that's when the lazy attribute test is chronicled the is going to perform the casting but this is this is the same for me for the rest of the of the attributes so
ones that we do something like that uh user . ID as you can see there is another viable inside of the lazy attribute test which is the bill and this 1 this actually London in devalue that it comes in several values for my database and the final value rate was just for example if this were a gas fire of the timestamp we're going to see on the body we forecast that it was just constraint during and defined I value will be the actual be type that purpose the things go wrong conveyed during all yes it's it's working place so if
finally had and after going through all these hoops and accurate core was had point was able to perform the query that I ask for and I got to meet the president so so as you can see that for is a lot of work and this is the last action the book landing in reverse I friends in all of your own ideas in class using the number to racially having a adequate work it performed so there's something for us I mean at so
online learning then here as the the 1st thing again is that there's no magic work act active requests to and actually a pretty cool at precooled thing and obviously when I show you here were were mostly the highlights but a following the cold this is not the part is actually sexually pretty pretty easy to just pick up 1 of 2 core try to follow what is that I whatever the Solingen underneath it annoys thing that I learned what is what I was doing this is that the active records gonna try to cast in B. S. Lee possible every that we are with the models if there is an award that it doesn't need to be not only just a matter of of all at the revolutionary just our involvement in the area to something else to do what we actually require that and if there is a chance for Active Record to actually cast whatever we are doing and into the different operations in thin active records going right to to to that information for us and 1 as a say following the code is not is not every and the of in Korea but we only have we don't really need to to go the into understanding of how all the things work in the framework but obviously that mean that we need to have some sort of some sort of quite recently and with the help of kind everyday walk through just to get you probably have heard when you when you create a a resident of their what it's what is and what was going on how how things work I I got interested in the closest and was writing on a bluff post and the only 2 weeks before the 1st better 1 of far inside of the it's so I was going through all the different so that they can pull request upon on because the moment when I find a lot of things that were happening inside of active ActiveRecord and that's how I just started off with electricity to see what is happening inside of the for every time that will run the program so so that I
think you noticed it for me and the like thinking thank you for this and you have them the like you I don't know if you have any interest in some graph give relevant into that the other places the on 0 and try 1 1 more thing to mention about that gender that kind portal of well that your as there is a can o yes your even if there is any in the other resources other than just going directly to the cold if you want to learn in order to understand what's going on with the that Active record of the non-jury mean that there is this minus e to the odd man who were groups agenda while also that's why I remember going directly to the kids have a review was the jump back as we go on but if you look in with I of the whole back and everything's meanings as well which is why you have at the and also going in this standard is going to be namespace and was the how plays on and now girls and and that's that's the thing that tops profligate treatises engine on the right side of the which of the I will the important there is Iran generating character alone will summary by there that knows this rate of that situation when I is requested the yes sort of like have like my own the threat and they were in a work file 1 of the things have I mean if you might want
Mereologie
Kontrollstruktur
Bildgebendes Verfahren
Computeranimation
Touchscreen
TVD-Verfahren
Kontrollstruktur
Gruppenoperation
Klasse <Mathematik>
E-Mail
Komplex <Algebra>
Computeranimation
Netzwerktopologie
Datensatz
Informationsmodellierung
Bildschirmmaske
Prozess <Informatik>
Gerade
Bildgebendes Verfahren
Einfach zusammenhängender Raum
Lineares Funktional
Benutzerfreundlichkeit
Datenhaltung
Temporale Logik
Abfrage
Physikalisches System
Elektronische Publikation
Quick-Sort
Ereignishorizont
Druckverlauf
Rechter Winkel
Speicherabzug
Tabelle <Informatik>
Einfach zusammenhängender Raum
Soundverarbeitung
Umwandlungsenthalpie
Abstimmung <Frequenz>
Einfügungsdämpfung
Stabilitätstheorie <Logik>
Natürliche Zahl
Bootstrap-Aggregation
Mathematisierung
Systemaufruf
Abfrage
Unrundheit
Kartesische Koordinaten
Code
Computeranimation
Last
Informationsmodellierung
Last
Datentyp
Kontrollstruktur
Abstand
Inhalt <Mathematik>
Grundraum
Attributierte Grammatik
Tabelle <Informatik>
Autorisierung
Videospiel
Graph
Ortsoperator
Zirkel <Instrument>
Datenhaltung
Kartesische Koordinaten
Ordnungsreduktion
Computeranimation
Objekt <Kategorie>
Informationsmodellierung
Datensatz
Information
Default
Schlüsselverwaltung
Tabelle <Informatik>
Zeichenkette
Umsetzung <Informatik>
Web Site
Atomarität <Informatik>
Natürliche Zahl
Zahlenbereich
Computeranimation
Internetworking
Datensatz
Informationsmodellierung
Ganze Zahl
Webforum
Reelle Zahl
Digitale Photographie
Datentyp
Kontrollstruktur
Touchscreen
Attributierte Grammatik
Schreib-Lese-Kopf
Datenhaltung
Datenmodell
Quellcode
Physikalisches System
Ein-Ausgabe
Auswahlverfahren
Quick-Sort
Objekt <Kategorie>
Dienst <Informatik>
Datenfeld
Flächeninhalt
Ganze Zahl
Gamecontroller
Attributierte Grammatik
Information
URL
Aggregatzustand
Fehlermeldung
Retrievalsprache
Datensatz
Ganze Zahl
Datentyp
Endogene Variable
Datentyp
Information
E-Mail
Computeranimation
Attributierte Grammatik
Retrievalsprache
Kovarianzfunktion
Abstrakter Syntaxbaum
Gruppenoperation
Zahlenbereich
Befehl <Informatik>
Gesetz <Physik>
Computeranimation
Eins
Bildschirmmaske
Endogene Variable
Speicherabzug
E-Mail
Parallele Schnittstelle
Befehl <Informatik>
Abfrage
Elektronische Publikation
Quick-Sort
Objekt <Kategorie>
Isolation <Informatik>
Flächeninhalt
Existenzsatz
Rechter Winkel
Caching
Gamecontroller
Binäre Relation
p-Block
Programmierumgebung
Punkt
Physikalischer Effekt
Rechter Winkel
Mereologie
Gruppenoperation
Binäre Relation
p-Block
p-Block
Datenstruktur
Quick-Sort
Computeranimation
Attributierte Grammatik
Bit
Punkt
Freier Parameter
Datenhaltung
Gruppenoperation
Automatische Handlungsplanung
Abfrage
Gleichungssystem
Vektorraum
Gesetz <Physik>
Computeranimation
Inverser Limes
Informationsmodellierung
Datensatz
Verbandstheorie
Rechter Winkel
Inverser Limes
Binäre Relation
Information
Computerunterstützte Übersetzung
Ordnung <Mathematik>
Verschiebungsoperator
Retrievalsprache
Informationsmodellierung
Mereologie
Punkt
Kontrollstruktur
Rangstatistik
t-Test
Abfrage
E-Mail
Computeranimation
Retrievalsprache
Datensatz
Mereologie
Kontrollstruktur
Datenhaltung
Gruppenoperation
Speicherabzug
Befehl <Informatik>
Computeranimation
Schnelltaste
Befehl <Informatik>
Datensatz
Punkt
Fächer <Mathematik>
Reelle Zahl
t-Test
Computeranimation
Inverser Limes
Attributierte Grammatik
Resultante
Last
Datensatz
Punkt
Momentenproblem
Hierarchische Struktur
Kontrollstruktur
Kartesische Koordinaten
E-Mail
Computeranimation
Datenhaltung
Physikalisches System
Instantiierung
Computeranimation
Mapping <Computergraphik>
Objekt <Kategorie>
Datensatz
Informationsmodellierung
Last
Quadratzahl
Attributierte Grammatik
Information
Betriebsmittelverwaltung
Instantiierung
Attributierte Grammatik
Mathematische Logik
Datennetz
Klasse <Mathematik>
Quellcode
Elektronische Publikation
Mathematische Logik
Computeranimation
Internetworking
Arithmetisches Mittel
Objekt <Kategorie>
Informationsmodellierung
Fächer <Mathematik>
Attributierte Grammatik
Zusammenhängender Graph
Modelltheorie
Analogieschluss
Attributierte Grammatik
Softwaretest
Punkt
Datentyp
Transformation <Mathematik>
Auswahlverfahren
Quick-Sort
Computeranimation
Bildschirmmaske
Variable
Ganze Zahl
Typentheorie
Datentyp
Attributierte Grammatik
Softwaretest
Datentyp
Datenhaltung
Zahlenbereich
Bitrate
Auswahlverfahren
Computeranimation
Eins
Arithmetisches Mittel
Informationsmodellierung
Typentheorie
Datentyp
Attributierte Grammatik
Zeitstempel
Attributierte Grammatik
Punkt
Momentenproblem
Klasse <Mathematik>
Gruppenoperation
E-Learning
Abfrage
Zahlenbereich
E-Mail
Framework <Informatik>
Code
Quick-Sort
Computeranimation
Informationsmodellierung
Datensatz
Flächeninhalt
Reverse Engineering
Code
Mereologie
Speicherabzug
Information
Optimierung
Hilfesystem
Differenzenrechnung
Arithmetisches Mittel
Wechselsprung
Datensatz
Namensraum
Geschlecht <Mathematik>
Gruppenkeim
Ordnung <Mathematik>
Elektronische Publikation
Bitrate
Metropolitan area network
Standardabweichung

Metadaten

Formale Metadaten

Titel Rediscovering ActiveRecord
Serientitel RailsConf 2016
Teil 28
Anzahl der Teile 89
Autor Chavez, Mario Alberto
Lizenz CC-Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Unported:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen und nicht-kommerziellen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen und das Werk bzw. diesen Inhalt auch in veränderter Form nur unter den Bedingungen dieser Lizenz weitergeben.
DOI 10.5446/31551
Herausgeber Confreaks, LLC
Erscheinungsjahr 2016
Sprache Englisch

Inhaltliche Metadaten

Fachgebiet Informatik
Abstract Being a Rails developer is more than just understanding how to use the Framework to develop applications. To become an efficient developer, you should learn how the Framework works; how deep this understanding should be is up to you. Exploring the Framework code is something that everyone should do at least once. Not only may you learn how it works but also, you might learn new tricks from the code itself or discover small features that are not widely publicized.

Ähnliche Filme

Loading...