Peter's Solidity Recruitment Test
Peter's Solidity Recruitment Test · 24 Nov 2021 · 56:24
Peter Robinson leads an interactive session on how a Solidity recruitment test can work. After placing the pair programming interview within a wider hiring process, from application review to culture fit, Peter shares a short contract and the group works through it in Remix: fixing compile errors, explaining what the code is meant to do, and spotting access control and design problems. The session closes with discussion of what a good interview should reveal about a candidate and how take-home tests compare.
Speakers
Topics
From Peter's Solidity Recruitment Test, hosted by Ethereum Engineering Group.
Transcript
hello and welcome everyone um my name is peter robinson and today i am going to be presenting a talk on um ethereum and um solidity and how you might choose to run a solidity test and um if i can get to the right window it'll even work even better yeah there we go so um so this is um you know just my own this is not like some um test that's used throughout consensus or anything and as um is obvious i guess by the fact that this is gonna be up on youtube um we're gonna i'm gonna have to come up
with a new test um which is okay it's all good um but um yeah so something to keep in mind so i'm gonna talk about the overall process because i think it's it's good to i know there are a few people who us have specifically joined the meet up to understand you know how you might do a solidity interview and i think it's it's interesting and useful to stress this is not the whole interview process this is a very small piece i'll go through the test and some more code that you could use to get people to think and some thoughts so the overall process that we follow
generally at consensus and it's not completely uniform and there might be extra steps and obviously it depends on the role as to which of these steps you actually do and maybe for a different role say if you were becoming a product marketing manager idea so you're not going to do a pair programming test but this is the general approach and so we have an application review and that's really we you know you've submitted your resume and a cover letter and we have a look at that to try and understand you know do you appear on paper to have the skills um background you know to do the role is it likely that you could be successful
and then we'll have a screening interview where it's really you know let's introduce consensus and the role just to make sure that you understand what you're applying for and you know just check that you appear to have applicability to the role so you know look at your ref your background and talk about what you've done and what you want to do and you know make sure what you want to do aligns with what the role is and also i mean we'd allow people to work pretty much anywhere in the world but we also you know you've got to be able to legally work in the country you're living in so if you can't work legally there then we can't employ you
um and as well there also could be part of it like some even though you can work remote and work anywhere in the world if the team is say in gmt plus 10 so essentially brisbane australia maybe we're happy if you're living in new zealand or japan or you know say somewhere two or three hours either side but if you're working at the other end of the planet um in say the canary islands then it might just be too hard for the team to work with you so that might be something that we'll make sure about availability when could you start um also just check you know are you just applying for this role because you know we're a software company and you're
after a software role or is it that you're really interested in blockchain you think consensus would be an awesome company to work for and in particular you want to do this thing also some people have um accelerate expectations that are like off the planet and that's great that they have those expectations but if we're just not going to be able to give them um you know if it's not going to match you know what we perceive that they're worth and where we perceive they might end up in our overall levels then it's pointless proceeding with the interview process and the as well that interview this initial interview will work out can you
communicate over zoom given we do so much over zoom and via messaging the ability to communicate over the zoom is pretty important so the pair programming interview is the one that you know we're going to talk about today and in fact um you normally you wouldn't be just doing a solidity test you're going to be doing solidity and maybe some other language so you're trying to fit two programming tests all in one and really you know like you're trying to work out you know if they said i'm a superstar developer with 20 years experience in this language does their actual demonstrable experience you know match that and can they communicate over zone zoom
about software and code you know if that's going to be a big part of their role then if they can't communicate about software then it's not going to work and can they understand complex questions and respond to them and think on their feet we also have learning exercises so essentially you're going to have some domain specific area that they're going to work in and so you might come up with a area that they need to learn about and maybe it might be in the form of a presentation or maybe just a discussion and again this is about can the candidate think about technical concepts explain them communicate think on their feet we have a culture fit interview at the
end and that's really a matter of talking with some people who haven't been involved in the overall process thus far to work out whether you're likely to fit in to consensus and the team and you know whether your values are generally going to be aligned with the company values then the all the people who've been involved in the hiring process get together and discuss whether they think you should be hired or not and if say there were being multiple candidates were being interviewed at the same time for the one role it's going to be a matter of working out who the job should be offered to if anyone and finally there's an offer interview by the time you're at the offer
interview you know you should know that the seller your salary expectations are going to broadly match with what's going to be offered and you're going to be offered a job so it's pretty fantastic at that point you know you should be feeling very happy so big long process and we're just going to talk about a part of the pair programming interview which is the solidity test so i guess the thing to always think about when you're going to have an interview is what do you want to get out of it and um so what i want to get out of the solidity interview is can you read code comprehend it and discuss it do you know solidity
can you do problem solving and do you understand common solidity coding con conventions um it'd be great if i if there's i can probe into your knowledge of evm and gas usage and see if you know about commonly used libraries as well and the goal is as well given we've got all this mega interview process is let's and you probably want to be tested for more than one language it means the whole solidity test has to run for 25 minutes so i don't you know my goal is to have something where the candidate is comprehending the test communicating about the test and doing
it all in 25 minutes online so if everyone can crack open remix so i've got a link there and what i'll do is whoops oh um if i was really good here i'll if i give you this you may even end up um i think that may take you directly to the actual thing or you might just want to type in https colon slash remix dot ethereum
yep or maybe just that so crack open remix as a starting point and in um you can vote so if i was really smart i'd get the participant window up which is over here so if you can do a hand show on um in your participant screen that so you should be able to do um some sort of signaling thing and if yeah we've got a two three thumbs up that's good so um yeah so do a thumbs up yep we've got a few thumbs seven thumbs up all right i think we've got enough people
who are um someone's thumb went up and down maybe your thumb goes up temporarily and then comes down again anyway um it can can i just ask if so if i click on the link it opens remix but it doesn't actually open your workspace so i'm just assuming that you you wanna just open remix yeah just open remix at the moment because what i'm gonna do is i'm gonna copy and then i'm gonna get the chat and i'm gonna paste the code in and this is actually what i'll do in the interview is i'll paste the code straight into chat on zoom so if you open that up so have a little look-see
of that and so what i'm going to do is so that you can't see my cheat slides where i know what to do next um yeah so grab have a look at that code and just have a think about it and um chris do you want to be the brave soul um to start talking about the code and what you would do about it as a starting point you know what how do we get this to compile what things do we need to change and it's okay if you don't want to be the brave person are you talking to chris with a k uh chris with a c actually but okay
sorry i'll shut up i'll shut up chris you're pretty good yeah i'm sure you're good i mean or if you're definitely not all right just so advanced ah all right joanne why don't you help us so when you try and compile like i'm going to compile the code and you can see on my screen what i'm seeing so you know you talk to me and you tell me what you would like me to do to fix the code oh okay i was just trying to organize my windows sorry um and i should say i don't know how many other people have this i still have the thing when i open up remix that i can't make a new file i have to copy and paste
into one of the ones that exist i just have never solved that problem since we last spoke um okay so we're looking at line 23 sorry i just need to make my way but too many things open um so i can see it a bit bigger um let me just think so ronnie gabrielle has suggested moving over right so let's do that as a starting point all right and um he suggested not a view
all right so let's see if we can compile now all right we're in business we've compiled that's good so we've got some compiling code all right so who wants to so ronnie you've already answered two so we'll it's going to go to someone who's not you and joanne i'm happy you're you've had a ghost i'm happy for it to be a third person who can talk me through what they think this code is trying to do uh happy to give it a go challenge it here yep sure um it looks like you are storing a list of authorized users um and the authorized users are stored
in in the in a public array called uh odds users and basically that the all the functions are doing is that um you know adding authorized users um and and basically checking whether uh the modifier basically is something you you put in other functions to check whether the person who's calling is basically an authorized user so but so that that so you've described the access control mechanism which is good but why would i be you know i wouldn't just deploy a contract just to do access control would i so what is the overall thing that the contract is trying to do so rather than yeah so you know you've identified
access control but what's the contract trying to do um it's trying to verify that the that the the originator of the um originator of the the person who calls the function is an authorized user so in the modif again my uh i'm not i'm not super uh for example i'm not i'm not certain of certain things but i i think best based on on this whatever i see in the function is that it's trying to verify the modifier is trying to verify that the originator of the um or the originator of the person calling the the function is um is basically an authorized user yeah yeah but in in terms of the the
purpose it appears that the purpose is a contract that allows an authorized user to set the value of important important being a private you know unsigned into yeah 250 6k whatever important actually means we can't tell from the code sample that you're given yeah okay or a utility for something else maybe uh no yeah i mean it is um pretty much what um just a very simple thing okay it's just very simple because we've got to think that we've got to try and do this in 25 minutes but you're right though that it is about setting important so the access control was limiting who could set important
um and so that's good so let's have a look in remix so we've compiled it and then if we have a look over here and we deploy the code then we've got some deployed code here so we've so we we've got this important function we've got ad auth users that we can see we've got adolf users said important we've also got authors as an owner here um does anyone want to take a guess at why you know we haven't defined those functions and yet we seem to have them available to us does anyone know why they they are there the owner is there so
that the function to add authenticated usage should only be available to the contractor so you should probably write some function which modifier for early owner default accesses for the public properties that's right that's what i was going for yeah you're right we've got publicly getting automatic accesses because they're public um but ronnie gave us a good idea he's saying that um he's concerned that at the moment anyone could add auth users
and um yeah so we should have a either an accessor or we should have something like message dot sender equals owner that's good all right so if you look at the code then do you [Music] is this gonna work you know if if you were gonna run it so sly you're a smart guy yeah oh i know joanne joanne's even smarter she's going to talk sorry i was just i saw and frank's put it in the chat as well there's no um constructor to set the owner yeah that's right yeah without otherwise we're going to if we deploy this at the
moment it's going to be limiting ourselves to owner but owner's just going to be the default value which is zero all right so the and the good thing about this is in a normal interview of course the the actual person who's doing the interview would have been sharing their screen and so you'd be watching them type uh which is all good fun because you it helps gives an insight into the degree to which they know solidity but all right so we're going to have constructor and you can see for people like myself you can see what great spelling mistakes um they do hello is that the right term let's do that cons
why is that that's red that's not good all right so and we want to have what owner equals message.sender all right so now we should be i think a lot further along um yeah okay all right what other things are um [Music] let's see do we need so jd said don't we need a way to record important for each user so we don't the idea is these users so say if sly joanne and myself are the authorized
users any of us can see it important and so we don't need to have important on a per user basis it's more we want to have it just one value but limit it to them so can anyone ah yeah right so kronjit said he's not so sure about tx origin so kronjit do you want to tell people what's the difference between tx origin and say message sender um from my understanding tx that origin basically could be um someone actually starting a function called but but it could then go
through another smart contract which then then basically calls it however the dx origin doesn't actually verify that the um that the originals doesn't verify that the the the person or or the contract calling the function is the same as the message that sender so um yeah i i think that that is it but but i'm not i'm not super certain about it it's just that i know um to be very careful with the extra origin and and whether to use message to send it yeah so tx origin is the externally owned account that submitted the transaction overall whereas message center is the contract that called this function yeah and while you're in there can you
bomb out of the if once you've found true otherwise you'd be just like scanning through the entire array uh yeah sure we could we could do that um that's going to be a break isn't it yeah sure we can do that so all right let let's deploy it let's compile and deploy it i i know i can see a few issues but it's it's nothing like running some code um to help focus people all right so we've deployed it all right so let's go owner who are we let's get a copy of owner
we'll add ourselves as an auth user ad orth user let's go set important and let's set it set important to two because i'm a north user now set important and it is eric's saying we should maybe change it from a an address an array to a mapping that's good um and any index is not reset after the first run and oh we've got all sorts of things flying through all right so here's a here's something to think about
so where is index stored storage yep exactly go to the top of the class the index is actually stored in storage so there's a few things wrong here one is i've got an equals here rather than a single equals which as we all know if you do that then um index when it starts out as b0 so then um index will start at one which would be pretty bad um but even if we do that index is in storage so what this means is we go reach read from storage and then we're going to write to storage when we go plus plus and then as we iterate through that
array we're going to be reading out of storage all the time and reading out of storage all the time is going to be a complete nightmare because it's going to use a ton of gas so a an iterative thing towards fixing this would be just to have you in 256 here but then as someone has rightly pointed out maybe what we really want to do is make this a mapping so what's it going to be a mapping between though address to bullying
yeah all right let's make that public again all right so now we've got to change this in some way so how are we changing this now that it's a so obviously we're going to do auth users all right i'll do it uh art users address oh yeah so i think so if we do that
now um yeah we're not iterating through a loop in an array um and um we're all good so message sender is an address this will equate to a boolean which will be true if the user has been added so obviously we now need to change this code here as well yeah and so there we go so we've done that little bit of code so now i think we're standing on top of the world so now we go back we recompile it no compilation errors which is all good
so the tx versus uh the origin versus message gender is that because you use tx origin there could be a trojan attack on a real person where you you know um yeah look i think having pushed them into sending you a message and yeah yeah yeah you could have a you you could have some erc 20 buried like 50 layers deep in the call stack and then you could have tx origin say you know which calls a contract which calls another contract which ends up calling the erc20 and says transfer money and if you just were checking tx origin then you'd be in trouble but if you were checking message sender then
you know you're saying does the contract that's calling me have the right so you might use tx origin so in the g packed code i've used tx origin to compare it with message sender to say well is the is the thing that called this an externally owned account now um because obviously you can't call from an externally owned account to a contract and back to the eoa and then back to another contract so if tx origin equals message sender then the contract call must have come from an externally owned account beyond that i'm not sure why you would use tx origin okay
so let's deploy all right so we've we've deployed it um let's have a look at owner copy that add me as an authorized user and now if we look at xero fourth users it's oh what's happened here invalid address ah yes because now it's going to be it's not give me at a certain index it's going to be if i put an address in it's going to return true or false and it returned boolean true whereas if i get that address
and say change it from c4 to c3 and do that call it should hopefully return false okay you've done a require so it's going to throw it's going to throw a an exception isn't it ah yeah on 12. i'm 12 no because i'm actually calling the automatic function i know it's 22 it's um which one are you firing i'm calling the automatic function that's generated here yeah auth uses and i'm putting in the address
and it should be coming back false what about if we do like zero is it going to say all right it doesn't like 0x0 as an address which is just what you want all right you should be able to copy an address from up there in the address add address check some oh i know what the problem is yeah it's an invalid address so what i really need to do is find a real address um which shouldn't be too high it should be up the guest limit there above there's a whole list of addresses
so underwear accounts if you if you click on the account it'll give you a whole list of accounts and you can actually copy if you scroll up yep there you go under account you okay so you can just choose whichever one you copy from yeah all right there you go learn a new thing every day no need to use your um false all right that's good that's very good all right thank you all right let's get important yeah so there's yes exactly true good on your mark you're right so at the moment now we've got to the point that we've said ah just
a sec importance private and there's no getter so let's add a getter um yeah okay so we'll get rid of them go back here compile it so now we should be able to go in here deploy the contract have a look get the owner copy that make the owner and orth user um and now we should be able to set important to three and go important and get three back all right cooking with gas we're all all doing very well which is good just just to expose my solidity ignorance and fail the interview test
does that mean that when uh public uh properties of the contract they don't have a set function automatically like public is effectively making you a read only there's no such thing as a read write uh property yes that's correct there's no such thing as a it's yeah think of other languages where if you said public you'd be effectively making it a read-write property yeah whereas public is just saying um so for properties it's meaning create an automatic um yeah um where if it's a function it's meaning i can be called within the contract or externally and then there's internal private and external
um yeah do we want to have a way of revoking yes so what's that gonna be like so that would be copying that and now we've got say revoke yeah revoke why not um and so we're going to have them we've got to make sure they're right and then we've got false that's a good one we can do um so yeah all right so we've done that done that that's good all right we need to but let's add an event to the code to um so we know
you know when um importance is changed and changed by who you know so we're saying we've got a pool of users who can change important so how do we create an event i think since we define the event uh uh above the code uh just uh maybe just below the uh important variable and then we define uh what kind of variable that the event is going to output first of all we have to give the name to event maybe yeah we can say important has been set and and then uh we put the address as well as the the value of the important aspect and afterwards we put the emit
function emit function inside the set important function whoops i know that's all right so we've got that now we've said important all right so that's good so now the next one is what we'd really like to do is identify who are the authorized users so we want to have a um we want to have a string but um we're not going to worry about
the actual string type so we're going to use just ascii strings and so we want to have be able to look up so have a mapping between an address and a string and a string an address so we want to be able to essentially you know be able to have a string and find out who what the address is of that authorized user so how should things change to do that so we want so you want basically to give a tag to the addresses that you're storing in in
add author so you probably want to add the string as a parameter yeah another mapping correct um and another parameter correct so let's have it as a bytes so add auth user we're going to have the bytes and then we'll call that name and then maybe a mapping up here so we're going to have a mapping so what's it going to be between though what's the mapping going to be between string to address right yeah all right let's try that but so there is going to be a problem with
this you'll find out when we try and compile the code uh public and then that is fourth users um look up so instead of a bull we can use the the yeah true then we need to change all the logic so that it's like uh calling the contains or whatever function of the map yeah so if it's not not default yeah yeah length is right and yeah so that's good and then we've got um all right so here
we're thinking we're gonna have off users look up and we go in with um it's going to be what name equals and then user all right so that's that and any and change the true to the name oh yeah trying to change the true to the name is length what's going to uh bite you in the uh no something far more far more complicated and i wonder here let's go back here compile boom all right yeah we've got to say that that is call data call data so that's good
compile no matching type and look up line 15 comma 9. that should work shouldn't it just a sec dot length all right so let you know because you're getting the value which is not a boolean it'll be a uint 256. so let's compile the code again bool is not set line 32 oh yes so given that we're saying we're doing that so what we now need to do is make that light so it's an empty string
ah is it gonna be memory right sorry i just delete the mapping uh oh yeah that could be that'll be another way of doing it yeah that's interesting this must be an abi so i was hoping that this was actually going to fail and it must be a solidity nine thing or something like that so historically that would have failed and you would have had to use a byte 32 there
and then the question is if you're using a bytes 32 so let's assume that we do want to use a bytes 32 there how are we going to create a hash by bytes 32 kick yes so we've got kick 256 yeah yeah i don't know how does a variable link that's what i was trying to refer to the size how does a variable length be used as the key yeah it's gonna it's doing this internally so then at this point then
it's abi in code packed so this is obviously in the latest and greatest version of solidity being done under the covers which is why solidity is so um it will return a pack yeah that's true so it's going to return yeah true so we don't actually need to do the abi encode packed true true true true but anyway the kick act 256 will get us there and then at that point we use name hash here so i have a question peter i don't really understand one thing so bytes is supposed to be an array of bytes one so if it's uh
if it's empty your test with length uh it's not going to work so you should prevent anybody to add a user with the name that's an empty array yes well that's true very true yeah so when you were here we should be yeah require um let's see name dot length ah good on you frank for detecting the the bug yeah you didn't need to do formal verification for that either
i did i was uh in real time coding your contract industry yeah i've got a question on line 15 um where it's got like dot length um if you were to give it a well-formed address but an address that hadn't been added into the mapping would that give you the solidity equivalent of a null point of violation because the there's no bytes array to be returned uh no because um there's no no yeah there's no null what what will happen is the a bytes where the memory location is all zeros is the equivalent of if you interpret that you work out that the length of the byte array is
zero so its um solidity is very well designed so that the default for anything is something that makes sense so yeah mapping always has a value if it's not hasn't been said it's the default yeah yeah and that's the same for any memory location all right so then at this point um i was gonna i then was gonna dive into um libraries which is you know a good thing to do so as far as at the moment you know we've gone used done our own um ownable essentially and we could also have things like pausing which would be
another good thing and what um so what would be good to then do is try and talk about um things like open zeppelin where you've got these contracts that have been put together by a group of people and lots and lots of people have looked at them i don't know if they've been formally verified frank so but you know i guess there's enough people and i actually i think there was some effort to do some level of verification on them but um yeah ah yes well actually so um hayden has said look revoke authuser doesn't delete the auth users look up
so it doesn't need to however if it did you would get 5000 gas back so it would save you gas when you did this call so yeah all right so we've done a fair bit on that one and that's actually kept us going for one and a quarter hours quite amazing all right and so the next bit of code is um going to be and yeah here we go copy all right so this is some smaller code
i'll put this into the chat as well so have a look at this code this is um some code i did quite a while ago for someone as a birthday present and there was a bit of ether stored um inside the contract or the deployed contract and um so have a look at this code and tell me what it's doing and how how you could extract the ether especially if you um happen to have a big were given on a piece of paper over a big long number as well okay repeat the question
um and so the question was what is the code doing and how would you extract the cash so um chi chuan has said is it about brute forcing the hash so it's not quite brute forcing the hash but um you're not too far off so what you've got is you've got a user is defined and i've even given a hint by the the variable name as it being a masked user and we can have a look here and we can see that masked user must equal the message digest of message sender so i figured given i was deploying a contract onto ethereum mainnet it seemed to be a
really good idea to limit who could take the money to the intended recipient the person whose birthday it was so the big long number um or there were two big long numbers one was the deployed contract address and the other was the private key which you could then convert into a public key and then you'd have the address so um the idea was that then that if you've got the private key you submit a salt to happy function and then what it does is it does the salted message digest of the you know the the address of um the user
and that's the mask and then what you've got to do is work out a mask that will when um um 2 to the 16 plus 1 um will give you um zero and so if you can do that then you end up getting the value so you do need to brute force to work out um salt but you're only trying for two to the 16 combinations so it's you know once you've got your little bit of javascript or java or pick your programming language um then you're all good oh yeah so why did what why did i do the
salt rather than just saying look if you've got this if you've got this far why do we need to have this extra check i just thought it'd be interesting to force the person to learn a bit of solidity and a bit of cryptography um so just um you know something to do something for them to learn about i was studying a maths degree so i didn't think um doing a bit of crypto would be too hard so that is the so i can drag this across to here and just to check one thing and because the the the the happy recipient uh it doesn't have to actually write to the
contract write any data to the the blockchain they shouldn't get gas fees should they for just calling it um it is a transaction and you are updating the ledger because you're transferring balance so there was if they if they don't succeed if they don't get the right value oh yeah then they'll fail the require and they'll burn the amount of gas they've put up to execute so yeah they will burn gas so you what you'd want to do is work this all out offline so that you only present the right salt you wouldn't be banging any 65 000 dud transactions otherwise um yeah you're going to burn a lot of gas more than the birthday present uh yeah well it depends on how much the
birthday present was and now you're making thinking of a cheapskate and only had five birthday present but yeah these days i mean if it was on ethereum main net and you're at two or three hundred dollars a transaction um yes you'd want to have a rather large birthday present for it worthwhile one or two eighths should be okay the constructor didn't hash the name of the user i know it didn't because if it did that then it would be i i was concerned that um you could have an attack where maybe if you had that address just available to anyone it might be you know it shouldn't be it should be quite safe but the addresses are only um 160 bits in ethereum and i thought um
doing a you know essentially rehashing it made it slightly harder for people to um you know like just general attackers to break because then they were trying to break kick act 256 the full digest but i mean by the time where someone's you know you've got their quantum computer and broken 160 bit hashes i think we're all in trouble anyway um so um yeah that's a bit by the buy but is that yeah so that was something that i didn't need to do but um it also again added some complexity into you know what was actually going on and shouldn't function happy be bearable um oh yeah
it's ancient solidity so um not in that era um but yes new things have been added to make it payable so a big question is is that what is the original test is it too hard or too easy you know um i mean or is it just right because it's going to allow people to demonstrate their knowledge and you know and the speed with which they can um do it and the degree of help and hand-holding needed will define how good they are at solidity um i think that's what what i was you know where i got to and i mean you could have other things in it but i don't
think it really you really need it um and i know we skated over the whole evm gas cost thing but i think um um yeah all right so um one person has at least said that they think um the test should be a bit harder and i guess it really comes down to what are we trying to prove here are we trying to differentiate between people who are awesome and people who know enough or um yeah and if you were really if it was really about trying to find some top star solidity developer then i could imagine that what you're going to be doing is having more weight in the overall interview process on solidity
um so which is comes back to the process um yeah and that is that you know this is part of a much bigger process and really the test is a lot more than just reading and writing solidity it's going to be about how good you are at communicating and you know whether you can problem solve and work out stuff on the fly which is you know what working in one of these jobs is all about i don't think in 25 minutes you're going to learn much more than the basics of what a person in terms of the depth of their knowledge so making it to more the harder you make it probably the less you'll actually learn
yeah about them you you risk losing the fine grain you know like we had one candidate who was worried about the fact that there were external functions because you know anyone on the internet could you know call that function and it's like well how does this thing going to work if you don't have externals so you know so yeah are there any other thoughts on this before i talk about what's coming up next there's some basic uh security checks like how the user knows about the developer knows about security like checks check effects
before transferring or doing any kind of so that could be interesting to add yeah okay foreign and i i i just like to clarify or i'd like like to ask if you could clarify is this the level of um of complexity that we would be expecting from from an interview because um i've always been been afraid to apply because i always feel like hey look you know it's like like beyond beyond reentrancy uh controls and stuff like that um i've not really been you know i i don't have any you know further in-depth knowledge things like like using hard hat and and stuff like that uh whereas this seems relatively easy and just
asking the basics which uh which i think i'm very comfortable with so um i'd just like to ask if you could clarify what what exactly the level of of knowledge you expect from someone who's actually applying focus roles uh well it really depends on who they are and what role they're applying for so this was aimed at someone who was going to be part of the cross-chain team and solidity was one of many many things that they needed to know so it wasn't you know like they weren't um waking up and all they were doing was solidity and in fact it was something a skill that was good for them to have but um you know not something they'd need so i'd say
having some familiarity with truffle um and metamask and you know but then you're starting to talk about an overall javascript as well as solidity as well so which would be part of a much bigger type of interview okay thank you code coding testing you said did you do uh because what we you often used to do we would do a uh do it yourself here's a problem go away solve it submit the um submit the result um and then that way we could review it asynchronously and then
the second yeah was earlier in the review process then later in the view review process we'd have that one-on-one pair programming where we'd actually bring up one of the samples that they'd written and and yeah um we found that um so we had a hacker so we had a we've had various forms of that sort of initial test and in fact we had a hacker rank thing at one point and we've had a take-home test of other types and it doesn't you know it doesn't filter out heaps of people or it ends up being very labor-intensive to mark so if you can do automated marking then it doesn't filter out many people and if you have something that you know it maybe does
start to filter people out then it's pretty intensive so um yeah so we we've ended up dropping it um but yeah yeah you still need the uh the review because otherwise yeah people go and copy it from the internet and yeah yeah and at the end of the day um you know consensus is a big company and i'm one person so um yeah and i think you know having a having different processes and different um interviews that people go through that are job specific make a lot of sense um but yeah look as far as various people
being concerned about whether they should or shouldn't apply go for it you know if there's a job available where they're off they're asking about skills that you've got go for it i mean consensus is very busily hiring lots of people which comes to the next event in two weeks time we're having a networking and recruitment event and so if you're an employer and you're looking to hire some people please get in contact and if you're not looking for a job please turn up anyway and you can we'll break it have breakout rooms and you can meet people and you know just get to know some more people in the ecosystem after that i'm going to do a talk on
more advanced solidity and we'll um yeah because i did a talk on advanced solidity quite a few years ago and um yep i was just thinking maybe having an update on that could be interesting um and then uh leki is going to do an eth2 staking as a service talk and then that qbft consensus protocol talk is going to come up in february ah so yeah so we've got i'm just monitoring the chat but anyway look i think it's all good
all right well thank you everyone have a great day and talk to you all uh talk to you all later bye-bye thank you peter thanks peter thank you peter was excellent thanks peter bye bye that was the best zoom i've ever been to thank you very much
Related talks
- EVM: From Solidity to byte code, memory and storage
- Ethereum Quorum at EDCON 2024
- CodeIT 5.0 - Blockchain Conference 2
- Top 10 must-see opportunities for students — Solene Daviaud | Dev3pack
- Breaking into Blockchain: Technical Internships and Jobs
- Privacy Is a Slow, Beautiful Struggle
- Web3 开发者入门和加速成长
- Is Blockchain the Future of Technology? Andrew Chow, Zoe Gadsden, Sam Kazemanian and more...
- The New web3 Education Landscape
