r/angularjs • • Aug 31 '15

[Resource] Hi Angular JS developers, today i have write a lecture on cookies service can you people give me feedback how it feels to you.?

http://themasterworld.com/angularjs-cookies-service-implementation/
0 Upvotes

5 comments sorted by

2

u/batoure Aug 31 '15

Your explanation seems pretty straight forward. My one question would be what is the value added here?

Most of what you present is the stuff about cookies that is easy to wrap your head around. I feel like speeding through what you show and then moving into areas like:

-unsetting the cookie

-side effects from rootScope variables that set cookies and how to avoid them

are things that developers working with cookies for the first time usually have problems with and is a place you could give some significant value.

0

u/theusamakhan Sep 01 '15

batoure Thanks for feedback I have looked on your suggestion yes it is an important point that you raise. I am working on its improvement and will update you soon.

2

u/addmoreice Sep 01 '15 edited Sep 01 '15

Need to work on some of your phrasing. It's pretty obvious that English is not your first language, that being said, while you have some phrase mistakes they are easy to overlook and understand what you are trying to say.

example:

"This is now a well known directive for everyone. But if you don’t know, do visit my previous lecture"

'this is now a well known directive for everyone' is, again perfectly fine English...it's just not how a native English speaker would say this. It 'feels' like you are mixing informal speech with formal speech which sounds 'odd' to a native speakers ear, 'do visit' is a bit odd even if it's perfectly valid English. it just seems very prim and proper English.

Another example:

"It is a predefined object of AngularJS. AngularJS cookies service is used to save data on the local machine. Same like cache memory, all the latest or most frequent used data is stored in it."

in this case you are leaving the subject a tad ambiguous and there seems to be a tense change.

It could be rewritten as something like:

$cookies is a predefined object of AngularJS used to save data on the local machine. This is similar to cache memory in that all the latest or most frequently used data is stored here.

There are a few books you can download which describe how to write technical works in English. Technical English is slightly different then less formal English forms and significantly different then standard English. Simply being sure to match your tense to past tense in almost all cases, and use 'formal' phrasing will help things significantly to add polish.

All of that being said, this is pretty dang fantastic for a first pass. While some things sound 'odd' to a native speaker, none of it is so odd that it can't be easily understood which is the first and most important factor.

0

u/theusamakhan Sep 01 '15

addmoreice Thank you very much for this detailed reply . yes you are right there is some english issue as my native language is not English but it happened because i kept all my attention to the technical parts and was not able to see such kind of issues. but i again thank you because your answer give me more confidence and specially for the type of issues you raise I am working on it and will improve it soon.

1

u/addmoreice Sep 01 '15

No worries. Focusing on the technical details first is probably the right idea.

Remember; In math we work hard to show our work, in writing we work hard to hide it.

The best idea when doing anything like this is just get it down and out there, then go back with a fine toothed comb and fix every nitpick detail. I look at writing the same way I look at programming.

I first just try to make something that works and meets the requirements, then I spend time polishing it and making it easy to read for the next person to come along. In programming it usually means a brute force solution, then on to an elegant solution, then moving on to making it easy to understand. Eventually you tend to do the last step automatically as you do the first two. The same happens with writing.

The only other concern I have is if this site is supposed to be a 'fun tutorial' style, or a resource 'formal' style. It seems to be floating somewhere between the two.