« first day (3138 days earlier)      last day (1807 days later) » 

8:00 PM
but still, wrappers are overused
in an ideal world, every function would simply know what dependencies on impure functions every callee uses (recursively) … and when you test it you have to explicitly allow usage of the native function - or mock it
(I say ideal because you cannot know this in a world with virtual functions or function pointer)
 
@Ekin I do, existing versions installed by the OS / standard way? Don't think so.
 
8:22 PM
@StatikStasis They wanted me to prove my identity. This involved travelling back to Australia to have a certified copy of my passport made, which I did. Then after that they wanted me to confirm my 'Australian' address, which I couldn't do as I had left Australia.
Apparently people moving from one country to another is a thing they haven't planned for, and even after I had explained it to them, they still refused to release my money for ages.
Also, I can't remember the exact details, but the phone number you have to call to resolve problems like this costs a lot.....so being on hold for an hour costs money.
 
hello
 
@NikiC That's not your problem though...if someone wants to replace some standard functions in their app with a replacement, it's their problem to deal with the consequences.
 
8:42 PM
there's a mouse in my house o.o
my cat caught it
... then let it go ...
 
Jpv
Hey guys, noob question. Im using ajax to run a php function. I can return this as an object to js on the front end and manipulate the object to generate html. I can also do this on the backend and simply return all the html through ajax. and simply insert it into my html. Which method would you advise better? or are these two methods a bad idea?
 
@Tiffany your cat needs a stern talking to.
 
@Danack ... I think she thought it might've been a toy ... cause she will bring me her mouse toys and drop them on the ground near my desk ...
but it also means she didn't kill it and she's being a typical cat and trying to play with it
 
@Jpv I don't think that's a noob question....but either would be fine. If I already had some PHP that generated that bit of HTML (for say when the page is generated the first time) I would be tempted to return it as HTML.
If it was only ever rendered on the client page, then returning an object and rendering it client side would also be fine.
 
Jpv
@Danack , great. So im returning an array with an average of 800 entries. Each entry will turn into a <tr>. If i return all the html for those 800 entries through ajax, will it take a toll on my server?
 
8:49 PM
No. Er, and that's a lot of entries. Exactly how will they fit on a screen?
 
@bwoebi Depends what kind of C code. I find it's common to link to a shared library and then you write tests on that API. Writing stuff for the inside of that API is less standardized.
 
Jpv
@Danack well, the UI by default will be set to return 25 entries only, but the user can set it to return all at once.. Knowing my endusers, they are likely to return all the data to cross check with other sources. They usually use the browser search to find the serial number they are looking for.
This project is more of a 2 month terms for my company to audit all our vendors products. So, its all internal. But still trying to figure out what will be the best way to handle this.
 
Although returning 800 of something is not a big dataset, adding 800 rows to a table is going to be a bit clunky. Hypothetically, if I had to do that, I'd probably be more comfortable having the HTML for that generated on the server, and then have it all added in one go in the JS. Rather than having the JS have to generate the HTML from the data, and then add it, which could easily make the UI 'clunky' while the data is loaded.
However......that's really too much data for people to scroll through.
Depending on how your serial numbers are generated, you should be able to either only return a smaller set of relevant results, or just not display the results until they are likely to include the thing the person wants.
Having to put in numbers, and then scroll through the data returned sounds like a bad user experience.
IMO It would be better to only get the data when enough of the serial number is entered to make sure the correct one is included in the results.
I'm going to link this here as it goes a lot more into that view.
......just don't go looking at that guys views on anything else.....like 'was slavery good or bad'..... :face_palm:
 
Jpv
9:04 PM
@Danack awesome, thanks for the info!
 
@Danack Meh, that's not really true, it depends on a lot of factors.
 
@Danack good grief that all sounds infuriating.
 
9:20 PM
anyone know of a guide/article/blogpost on understanding how directories should be named?
I guess how to generalize/abstract the directory's contents into a coherent name?
I've been trying to get inspiration from looking at github repos but it's not doing much
 
naming stuff is hard...
 
I just really don't want to resort to doubled up words in my namespace ... there has to be a better way to do it
I have a class that could almost be an interface, except that it has a few getters that are used in children classes
 
Jpv
Talking about naming, one of my buddies from Networking just took over their department. While trying to make some updates, he realized that all the company servers / VMs are all named with Kingdom / Cities / Character names of GoT. He is not a fan at all of the show. Its been two months and he is still trying to figure which is which X-D
 
lol
former employer adopted the policy of "server's name should be self-explanatory" ... so server names specified the server's function/behavior. it ruined a lot of the fun in naming servers.
I guess I'll take a break and think on it
 
9:40 PM
I have offices table in my database which has id as pk and office_name , and I have another table in hierarchical design that is called officesParents which contains (id PK,office_id FK,Parent_office_id FK). My question do you recommend me to allow website user to insert values in the second table by numbers for example id 1, office_id 1,parent_office_id 1 ?
Or there is a better solution?
 
9:52 PM
@Tiffany I think that is the only question I see the experts of this room ever ask "What should I name this class/method that does [insert description]?"
 
John.
 
Solid name.
 
trustworthy.
@Tiffany I used to think repeated names were bad....but it makes organising things and thinking about things in different contexts be easier, imo.
> sorry was from the bottom of my heart; what you call "trolling" was only a bit cynicism; please
retain yourself; especially with this kind of pseudo statement marked with a "C"; I won't never
encourage mediocrity and such vulgarity; even if it has to be fixed with a slap on the hand is
necessary.
that guy needs to do either more, or less, drugs.
 
10:15 PM
I'll just name them after items on my shopping list. ToiletPaper, PaperTowels, Milk ...
 

« first day (3138 days earlier)      last day (1807 days later) »